Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1360.Batch file rename -- How to copy/remove files to a folder named by first part of filename?

User: Aaron -- 2016-04-10          << 1359  1361 >>
Hits: 877
Type: Batch file rename   
Search all Batch file rename examples
I would like to request a variation of scripts 851 and 1203.

Move and sort each text file into a folder with name that appears before the double underline __ characters.
Input Sample:
Sam Brown__textA.txt
Linda Cooper__text3.txt
Sam Brown__textC.txt
Linda Cooper__text2.txt
Sam Brown__textB.txt
Linda Cooper__text1.txt

Output Sample:
Folder name: Sam Brown

Sam Brown__textA.txt
Sam Brown__textB.txt
Sam Brown__textC.txt

Folder name: Linda Cooper

Linda Cooper__text1.txt
Linda Cooper__text2.txt
Linda Cooper__text3.txt

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 text files from windows file browser to "Batch Runner" window.
3. change 'set output filename' to:

4. click "File Rename" to move files to new location, or click "Copy/Download" to copy files to new location.

Screenshot 1:  Batch_Runner_Window

Similar Examples:
How to move files to new folders which foldername is same as filename? (68%)
How to batch rename files by removing first 3 characters of filename? (65%)
How to remove everything before first space in filename? (64%)
How to batch rename files to the new names from a list in a text file? (64%)
How to move files to new folders according to beginning letters of filename? (64%)
How to batch rename files by removing the first 3 characters of each file name? (63%)
How to rename files to the first and last line of file contents? (60%)
How to batch rename files with the first word of file contents? (60%)

Check Demo of Batch file rename
scripts  double  var  copy files  scrip  script  scr  download  down  copy file  remove text before set characters  rename first part of files  rename first part files  file name remove first 3 characters from filename  remove first 3 characters from a file name  rename file name remove first 3 characters  rename files to remove first 4 characters  rename files remove first characters