User: editor -- 2011-09-07 << 850 852 >> |
Hits: 4539 |
Type: Batch file rename |
Search all Batch file rename examples |
Description: |
How to move files to new directories according to leading chars of filename? |
Input Sample: |
files: 1.1.html 1.2.html 1.3.html 2.1.html 2.2.html 2.5.html 3.1.html 3.3.html |
Output Sample: |
move files to new subfolders according to first number: 1\1.1.html 1\1.2.html 1\1.3.html 2\2.1.html 2\2.2.html 2\2.5.html 3\3.1.html 3\3.3.html |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. open "Tools->Batch Runner" menu 2. drag multiple files from file browser to "Batch Runner" window 3. check option of 'set output filename', and change the following entry to: 4. check the preview at "output file" column to find out if the new name contains subfolders like 1\1.1.html 5. click "File Rename", all files will be moved to corresponding subfolders. Note: here ${FILENAME}<words($match,1,1,'\.')> means take the first word from FILENAME as subfolder, the delimiter of word is period: '.' |
Screenshot 1: Batch_Runner_Window |