Hello,
I need a little help - maybe someone knows the solution.
When in "change directory menu" (ctr-D -> configure) I put comand like this: cd c:\%Date:~-4,4%\ (which now coresponds to c:\2021\) it doesn't works.
But it works at Windows command line window.
Is there alternate function to made dynamic directory menu such as: c:\<current year>\?
Best Regards.
Change Directory Menu: Need Help with Parameters: "cd c:\%Date:~-4,4%"
Moderators: Hacker, petermad, Stefan2, white
Re: Change Directory Menu: Need Help with Parameters: "cd c:\%Date:~-4,4%"
Variable substitution is done in command line interpreter CMD.exe.
iF you want to do so you have to create a small batch that call TC like
and then call this batch...
// to create folder you can use <[Y] but this syntax is not valid with CD
iF you want to do so you have to create a small batch that call TC like
Code: Select all
@"%commander_exe%" /S c:\%Date:~-4,4%\
// to create folder you can use <[Y] but this syntax is not valid with CD
Re: Change Directory Menu: Need Help with Parameters: "cd c:\%Date:~-4,4%"
2Faraday
You can put this command in your usercmd.ini file:
and then use this in the Command field of the "Change directory menu" item:
The usercmd.ini is in the same folder as your wincmd.ini file. If it is not there - then make it (it is a simple ANSI text file)
You can put this command in your usercmd.ini file:
Code: Select all
[em_goto_datedir]
cmd=%COMSPEC% /C
param="%%COMMANDER_EXE%%" /O /S c:\%%Date:~-4,4%%\
iconic=1
Code: Select all
em_goto_datedir
The usercmd.ini is in the same folder as your wincmd.ini file. If it is not there - then make it (it is a simple ANSI text file)
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
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
Re: Change Directory Menu: Need Help with Parameters: "cd c:\%Date:~-4,4%"
Thank all of You very much all.