Page 1 of 1

Add button parameter for recursive file list

Posted: 2010-07-30, 17:46 UTC
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 :)

Posted: 2010-07-31, 17:56 UTC
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.

Posted: 2010-07-31, 18:20 UTC
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.