How-to: Copy files using filename list
Appearance
Task description
Locate the files specified in a list within a base folder and copy the found files to a destination folder, preserving their folder paths relative to the base folder.
Instructions
Below are three methods to accomplish the task.
Copy using file type filter
This is the simplest method but limited by the file type field limit (1022 characters).
Steps:
- Navigate to the base folder in one panel and to the target folder in the other panel.
- Go to the panel with the base folder and select all files and folders.
- Press
F5to open the Copy dialog. - In the
Only files of this typefield, list the filenames to copy separated by spaces. Put filenames that contain spaces in double quotes and append|**\to the end of the field to avoid creating empty folders. - Start the copy operation.
- Unselect all files that are still selected.
Use branch view and load selection from file
Steps:
- Prepare a plain text list file with one filename per line, each listed exactly as
*"filename"(an asterisk followed by the filename in double quotes). - Navigate to the base folder in one panel and to the target folder in the other panel.
- Go to the panel with the base folder.
- Open branch view via the menu
Commands→Branch view (Ctrl+B), which displays all files in the folder and its subfolders. - Use the menu option
Mark→Load Selection From File. - Select your prepared list file and click
Open. The files matching the list will be selected in branch view. - Press
F5to open the Copy dialog and enable theKeep relative pathsoption. - Start the copy operation.
Use search with a search list
Searching using a search list performs a separate search for each line in the list, which is be inefficient if the folder structure is large.
Steps:
- Prepare a plain text list file with one filename per line, each listed exactly as
*"filename". - Save the list file in the base folder.
- Navigate to the base folder in one panel and to the target folder in the other panel.
- Go to the panel with the base folder.
- Open the Search dialog (
Alt+F7). - In the
Search infield, enter@listfilename.txt(replace with your actual list filename). - Click
Start search. - Click
Feed to listboxwhen the search is finished. - Press
Ctrl+Ato select all files. - Press
F5to open the Copy dialog and enable theKeep relative pathsoption. Note that this will recreate the full folder path within the target folder, by default including the drive letter without colon. - Start the copy operation.
- In one panel, navigate to the target folder containing the newly created folder structure.
- In the other panel, navigate inside the newly created folder structure, descending through folders until you reach the intended relative folder level.
- Select all files and folders at this level.
- Press
F6(Move) and move them to the target folder. - Delete the now empty top-level folder named after the drive letter.