Sometimes we want to copy a folder with all sub-folders and apply a command to every file.
We have to get a full file list for doing this, here are few ways:
1) Execute the batch command [face=courier]dir /s /b *.* > filelist.txt[/face] for every selected folder and work with these lists.
2) OR we can write a batch or vbs function for recursive searching thorough all sub-folders (the worst choice).
3) OR we can execute three commands: a) File List With Subdirs b) Select All c) launch a command with %L parameter
4) and finally - my suggestion. Could you add a button parameter for temp list file with all paths+names of selected files/folders including all files in their subfolders? It will shorten many vbscripts :)
Add button parameter for recursive file list
Moderators: Hacker, petermad, Stefan2, white
How about using Branch View (Ctrl+B or Ctrl+Shift+B), select all files, and then use Ghislers MakeBAT plugin < https://plugins.ghisler.com/plugins/makebat.zip > to make a bat file to perform the requested commands to all selected files.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
The problem I found with trying to do some of this with Batch, it seems to choke on duplicating folders with Unicode characters, ie: †
Though launching a prompt or cmd from a folder with † or the like can perform file operations on the directory contents.
Though launching a prompt or cmd from a folder with † or the like can perform file operations on the directory contents.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.