Batch rename using text file for new name
Solved/Closed
Related:
- Batch script rename file with date
- Rename lg tv - Guide
- Rename computer cmd - Guide
- Cannot find script file startupcheck.vbs - Viruses & Security Forum
- Script file not found platform.resv ✓ - Windows 8 Forum
- Lg tv rename inputs ✓ - Smart TV Forum
7 responses
SenHu
Posts
15
Registration date
Friday 22 May 2009
Status
Member
Last seen
2 February 2010
14
31 May 2009 à 09:23
31 May 2009 à 09:23
You have the old name and new name in two columns in a file. I will call the file "names.txt". Here is the script that will rename all of them in a batch.
This script is in biterscripting. You can download it free from http://www.biterscripting.com . It installs in minutes.
Save the script in file C:\Scripts\rename.txt. Start biterscripting. Enter the following command.
It will rename all the files one by one. Then export them.
Email me if you need more help.
Sen
var string names ; cat "names.txt" > $names
while ($names <> "")
do
var str line ; lex "1" $names > $line
var str oldname, newname ; wex "1" $line > $oldname ; wex "1" $line > $newname
system rename ("\""+$oldname+"\"") ("\""+$newname+"\"")
done
This script is in biterscripting. You can download it free from http://www.biterscripting.com . It installs in minutes.
Save the script in file C:\Scripts\rename.txt. Start biterscripting. Enter the following command.
script rename.txt
It will rename all the files one by one. Then export them.
Email me if you need more help.
Sen