Add button parameter for recursive file list

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
sEXEcutor
Junior Member
Junior Member
Posts: 10
Joined: 2009-09-14, 17:44 UTC

Add button parameter for recursive file list

Post by *sEXEcutor »

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 :)
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

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
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

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.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.
Post Reply