Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Program to rename files from a txt file. (Read 4332 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Program to rename files from a txt file.

Is there a program, for windows, that will rename a bunch of files with information contained in a text file.

I realize that, with Linux, it is very easy to so this with a "3 line" shell script, but I don't have Linux installed and I don't feel like writing a "3 page" Java program with windows.

 

Program to rename files from a txt file.

Reply #1
Quote
I don't feel like writing a "3 page" Java program with windows.

Why not use something simpler then, like Python.

You could easily do something like this with Python in relatively few lines.

By the way, this has nothing to do with audio so I've moved it to the off-topic section.

Program to rename files from a txt file.

Reply #2
Or even easier you could do it with a batch file

Program to rename files from a txt file.

Reply #3
Quote
Or even easier you could do it with a batch file


Program to rename files from a txt file.

Reply #4
Code: [Select]
FOR /F "tokens=1,2 delims='='" %%i in (textfile.txt) DO MOVE %%i %%j

Just 1 line needed, this presumes that the format of the text file is
oldname=newname

Program to rename files from a txt file.

Reply #5
Quote
Code: [Select]
FOR /F "tokens=1,2 delims='='" %%i in (textfile.txt) DO MOVE %%i %%j

Just 1 line needed, this presumes that the format of the text file is
oldname=newname

Hmmm... tried that, got "Syntax error"!

Win98. Changed "textfile.txt" to match the file I was using. Otherwise my batch file was exactly as above.
Cheers,
Alan

Program to rename files from a txt file.

Reply #6
Which OS you using?

Program to rename files from a txt file.

Reply #7
This only works in NT-based OSes 

-Eugene
The  greatest  programming  project of all took six days;  on the seventh  day  the  programmer  rested.  We've been trying to debug the !@#$%&* thing ever since. Moral: design before you implement.

Program to rename files from a txt file.

Reply #8
Win98 (as I said above). More to the point which OS should I be using?

Edit: Thanks Eugene, your reply wasn't there when I first re-opened this page.

Cheers,
Alan
Cheers,
Alan

Program to rename files from a txt file.

Reply #9
You might want to get 4DOS then. But the syntax is different, IIRC.

-Eugene
The  greatest  programming  project of all took six days;  on the seventh  day  the  programmer  rested.  We've been trying to debug the !@#$%&* thing ever since. Moral: design before you implement.

Program to rename files from a txt file.

Reply #10
[deleted]