Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

851.Batch file rename -- How to move files to new folders according to beginning letters of filename?

User: editor -- 2011-09-07          << 850  852 >>
Hits: 312
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


Similar Examples:
How to move all files to specified sub-folders according to their extension? (68%)
How to rename all the files by adding the file size after filename? (59%)
How to remove all folders in a list containg folders and files? (58%)
How to rename all files by adding a letter 'x' behind each filename? (58%)
How to rename files according to a given mapping list? (58%)
How to move the last line to the beginning for multiple text files? (57%)
How to batch rename files by removing first 3 characters of filename? (56%)
How to move a string from the beginning of the line to the end of the line? (55%)

Check Demo of Batch file rename
Keywords:
directories  subfolders  move files to new folders  subfolder  period  folders  ies  letters  first word  acc  multiple directories  rename directories  first letters  rename files first word  rename subfolder  rename file to first word  change multiple folders  folders rename