Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1112.Advanced search and replace -- How to copy all files under all sub-folders "sym" to common folder?

User: leestudley -- 2013-07-31          << 1111  1113 >>
Hits: 1593
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
collect all files under a given named sub-directories( ie \SYM\ ) and keep duplicates with appended name ie xxxx(2)
Input Sample:
prj\sym\YfileA.1
prj\sym\XfileB.1

frog\prj\sym\XfileB.1
frog\prj\sym\Xfiled.1
Output Sample:
common\sym\YfileA.1
common\sym\XfileB.1
common\sym\XfileB(1).1
common\sym\Xfiled.1
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
######## Getting file list ###########

Assume d:\test\ folder is the root folder for all folders.
1. ctrl-h open 'replace' dialogue
* set 'replace unit' to 'Line'
* set 'search for pattern' to:

* set 'replace with pattern' to:

* uncheck 'print unmatched unit' option
* set "input file" entry to:

2. click 'replace', all files in sym or SYM under d:\test will be listed
3. ctrl-s save the list to "list.txt"

######## Rename and Copy files ###########
4. open "Tools->Batch Runner" window
5. click "Import List" button to import list.txt
6. click title of "Input File", make sure files are sorted
7. check "set output file" option, set following entry to:

8. check "Change output foler", set following entry to:

9. click "Copy/Download" button, done!

Screenshot 1:  Replace_Window


Screenshot 2:  Batch_Runner_Window


Similar Examples:
How to search all jpg files in subfolders and copy to a new folder? (67%)
How to move a list of files that in different folders to a common folder? (67%)
How to batch rename files in different folders and move them to a common folder? (65%)
How to merge files in all folders into one folder? (64%)
How to move the jpg files under all the subfolders from xxx.jpg to oldxxx.jpg? (62%)
How to copy a specific file to all sub-folders? (61%)
How to move all files whose names are ended with numbers to another folder? (56%)
How to move all files to specified sub-folders according to their extension? (52%)

Check Demo of Advanced search and replace
Keywords:
collect  subdirectories  directories  subfolders  output foler  subfolder  duplicates  given  common  give  all subdirectories  import list of files  search folder and list  search and copy and replace file  replace file name with file title  search and replace files in in a list of  search and replace in all files in folder  copy file name