Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Renaming Files (Any type)
Old 07-06-2008, 10:36 PM Renaming Files (Any type)
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
Hi All,

I am trying to rename lot's of files (thousands in fact) but not all in one go, a folder at a time (about 30 folders)...

My question is regarding a tool that can rename these files in such a way that when they are renamed, they must be in the same order as in windows explorer (referring to the sort order I gave before renaming them) this is all because they are being added to a description file...So in a nutshell, the files need to be in the same exact order when they are renamed (as they were before they were renamed) because the original filenames will be stored in a text file that was made before the renaming process. I hope you understand what I am getting at. If you have a better (re) naming convention, please advise.

Thank you!
-Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-06-2008, 10:42 PM Re: Renaming Files (Any type)
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
I found one that will do, it's called Smart Rename, I found it at this site:

Code:
http://mgccl.com/2007/12/29/smartrename-batch-renaming-tool-for-windows
Here's the downlod link for anyone who wishes to use it.

Code:
http://mgccl.com/files/smartrename.zip
Btw, it's all english, no chinese.

Enjoy!
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 07-06-2008, 11:47 PM Re: Renaming Files (Any type)
Brian07002's Avatar
Defies a Status

Posts: 2,140
Name: ...
Location: ...
Trades: 0
Actually, No this didn't do what I wanted, but it was as close as I could possibly want without getting it done...What I realize now, is that I could do this very simply if I was able to export BOTH columns to text so that the end result would be:

Old File Name.old New File Name.new
Old File Name.old New File Name.new
Old File Name.old New File Name.new
Old File Name.old New File Name.new

Notice how the old names and new names are in one row? That is how I need the file to display them. 1 per row (1 old + 1 new)

Thanks again!
-Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 07-07-2008, 02:03 PM Re: Renaming Files (Any type)
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
I'm not sure exactly what you're trying to do but, whenever I need to rename a large number of files, I just scribble up a quick and dirty bash script.
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 07-07-2008, 08:58 PM Re: Renaming Files (Any type)
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
I do the same - get a list of files, and rename them per some logic. The files themselves are apart from the sort order. The only way to keep them synced is to generate a new file name based on the old one.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 07-08-2008, 01:42 AM Re: Renaming Files (Any type)
Skilled Talker

Posts: 77
Name: Bill Benson
Location: Florida
Trades: 0
Sounds like it would be a lot easier in a db. That being said:

Rename the line in a text file with 1000String. Next line 1001String etc.

Then when you pull the string from the txt file, first grab the first 4 digits, thats your sort order, then the grab the 5th character to the end. That's your file name.

Flat files are good for speed, but it still sounds like its time for you to put this in a db if I understand your question correctly.
bill benson is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Renaming Files (Any type)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23616 seconds with 12 queries