Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

362.Batch file rename -- How to batch rename files in different folders and move them to a common folder?

User: Jon -- 2009-12-09          << 361  363 >>
Hits: 567
Type: Batch file rename   
Search all Batch file rename examples
Description:
I am looking to do a batch file rename across multiple folders, but I don't know
where all the files are. So I want it to search for all the files from my list,
and figure out the input directory, then rename and move them all to a common
folder. How do I set the Input directory as C: and have it search the whole drive
for my list of files?
Input Sample:
filea.xml
fileb.xml
filec.xml
Output Sample:
renamedfilea.xml
renamedfileb.xml
renamedfilec.xml
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume you have a list in a text file like:
filea.xml
fileb.xml
...

1. First of all, you need to generate a ";" separated string like "filea.xml;fileb.xml;...."(If you need help on how to generate the string from file, please raise a new request for it)

2. Open "Tools->Batch Runner" menu, click "Search files" button.
* Put the string "filea.xml;fileb.xml;..." into the "file name filter" entry
* Set Search directory to C:\
* Check "Search subdirectory" option
* Click "Search" to start search, click "Close" when finish
3. To rename the file, you need check "Set output filename", and change ${FILENAME} to the new rule you need.
4. To move the file in new folder, you need to check "Change output folder", and select the new folder(should create in advance)
5. Click "File Rename", you will rename all files and move into new folder. If you want to keep original file and make a copy in new folder, you can click "Copy/Download" button instead.

Similar Examples:
How to move a list of files that in different folders to a common folder? (72%)
How to batch rename files from month name to month number? (63%)
How to batch rename files by keeping only the numbers at the end? (62%)
How to search all jpg files in subfolders and copy to a new folder? (61%)
How to batch rename files by removing all the letters and keep the rest? (60%)
How to batch rename files by adding parenthesis for each number? (60%)
How to batch rename files to the first 8 characters of the second line of file content? (60%)
How to batch rename files by generating a random word that in the list? (59%)

Check Demo of Batch file rename
Keywords:
figure  different folder  input directory  common  xml  subdirectory  whole  folders  file name filter  create  output whole batch file to text file  search multiple folders move rename  across multiple folders rename files  batch file rename and create file in a different folder  rename multiple files text list  create a file list of directory batch file  batch input text file list  batch file input from list text file