Does TC have Date Parameter

English support forum

Moderators: white, Hacker, petermad, Stefan2

icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

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
This account is for sale
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

2esunar
cd d:\downloads\%Date:~-7,2%\%Date:~-10,2%
- Like icfu explained, the external "cd" cannot change TC's internal working dir (TC help section 4a).
- 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!
Post Reply