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: 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


Similar Examples:
How to move all files to specified sub-folders according to their extension? (68%)
How to move files to new folders which foldername is same as filename? (67%)
How to copy/remove files to a folder named by first part of filename? (66%)
How to split a file into many files according to first letter of each line? (63%)
How to merge 4 lines to one according to given rules? (59%)
How to rename all the files by adding the file size after filename? (59%)
How to remove the "." and following strings from multiple filenames? (58%)
How to rename files according to a given mapping list? (58%)

Check Demo of Batch file rename
Keywords:
directories  subfolders  move files to new folders  subfolder  leading  period  folders  ies  letters  acc  multiple directories  find period  find all directories  rename and move files to folders according file name  rename directories  rename subfolder  first letters  change beginning of filename