It works, just not in TC of course, but the directory in changed in the console before it closes. Replace /c with /k to understand the logic.
Check help section 4a) to learn about totalcmd.exe parameters for changing directory. Or search the forum for WM_COPYDATA to change directory.
Icfu
Does TC have Date Parameter
Moderators: Hacker, petermad, Stefan2, white
2esunar
- Percentage characters ("%") have to be doubled in the "parameter" field.
- Don't forget the double quotes to support directories containing spaces.
- A "cd" on the command line would need to change the drive, too, so should be "cd /d" (only useful outside of TC).
Your example should work this way (if the specified directory exists):
- Like icfu explained, the external "cd" cannot change TC's internal working dir (TC help section 4a).cd d:\downloads\%Date:~-7,2%\%Date:~-10,2%
- Percentage characters ("%") have to be doubled in the "parameter" field.
- Don't forget the double quotes to support directories containing spaces.
- A "cd" on the command line would need to change the drive, too, so should be "cd /d" (only useful outside of TC).
Your example should work this way (if the specified directory exists):
Code: Select all
cmd=%ComSpec% /c
param=%%COMMANDER_PATH%%\TOTALCMD.EXE /O /S /L="d:\downloads\%%Date:~-7,2%%\%%Date:~-10,2%%"
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
-- TC starter menu: Fast yet descriptive command access!