You can pass command prompt parameters to Total Commander (see the help file) but not perform file operation actions automatically in this manner if that’s what you are asking. I have placed a wish for an automation feature in the form of macros and scripting abilities. I hope some time in the future we’ll see this implemented.
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!" Christian Ghisler Rules!!!
Hmm, why use TC for batch operations? You can already do this with normal batch files! I'm using this a lot for repetitive jobs, e.g. a backup of my development directory twice a day using the Windows scheduler.
I use TC's search feature to search for files whose archive bit is set. Then I pass the results to the listbox. I open WinRAR and I copy+paste the list from the listbox to WinRAR - whose icon I have on TC's toolbar - in order to create a backup copy of the files concerned.
The whole process takes about as long as it took me to write this (45 seconds).
2Wincomuser,
After "Feed to listbox" step you may just press Alt+F5 (Pack), and probably Alt+R (to select RAR archiver) if needed, then Enter and done. A bit easier .
To achieve maximum compression (or other criteria you like) configure rar packer in TC's options. I use the following switches:
-ed creates a bit smaller archives but has some inconvenience when moving to archive - it leaves empty dirs on the disk. No problem, of course when just packing (copying to archive).