Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

649.Batch file rename -- How to move a list of files that in different folders to a common folder?

User: editor -- 2010-11-04          << 648  650 >>
Hits: 536
Type: Batch file rename   
Search all Batch file rename examples
Description:
How to move a list of files that in different folders to a common folder?
Input Sample:
There is a file containing a list of many files in different folder:
c:\data\a\001.txt
c:\data\b\002.txt
c:\data\b\003.txt
...
Output Sample:
Move all these files to c:\target
c:\target\001.txt
c:\target\002.txt
c:\target\003.txt
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume the file list is in list.txt with full pathname
1. ctrl-o open list.txt
2. ctrl-h open 'replace' window
* set 'replace unit' to 'Line'
* enter 'replace with pattern' entry to:

3. click "Replace", done!
4. ctrl-s save to m.bat
5. run m.bat, you can move all files to c:\target




Screenshot 1:  Replace_Window


Similar Examples:
How to batch rename files in different folders and move them to a common folder? (72%)
How to remove duplicate lines in multiple files in different sub-folders? (61%)
How to merge two or more csv files with different columns into one file? (60%)
How to move all the jpg files to its parent folder? (59%)
How to search all jpg files in subfolders and copy to a new folder? (58%)
How to delete a list of files from a directory and subdirectories? (58%)
How to parse all the fields in different segment from a text file? (58%)
How to save specified lines of text file into different files? (57%)

Check Demo of Batch file rename
Keywords:
common  different folder  how to move a list of files  move a list of files  folders  path  list of files  sum  folder  get  folders rename  move folder  full list  rename files in a folder  rename folder  move list of files  folders files  move list of file