- May
- 62
- 0
Is there a way to pre-set _tcfolder by command before "unhiding" the "Folders" view if TCMD is started with the "Folders" view set to Auto-Hide?
I start TCMD with the "Folders" (and "List") view set to Auto-Hide. Since I want to have _tcfolder set to the current disk drive and directory on startup my tcstart.btm includes the following:
Much to my chagrin this doesn't work and _tcfolder remains unset.
And, it is not possible to set _tcfolder from the command line with either CDD /T or CDD /TO.
After "Folders" view is opened _tcfolder is immediately set to the directory specified by the "Start In" directory of the shortcut and from then on both CDD /T and CDD /TO work the way they should. i.e. they way I want them to ;)
Is this WAD :( or am I missing something>
I start TCMD with the "Folders" (and "List") view set to Auto-Hide. Since I want to have _tcfolder set to the current disk drive and directory on startup my tcstart.btm includes the following:
Code:
iff %_tctab == 1 then
CDD /T %USERPROFILE%\Documents
else
CDD %USERPROFILE%\Documents
endiff
Code:
TCC 16.00.41 x64 Windows 7 [Version 6.1.7601]
Copyright 2014 JP Software Inc. All Rights Reserved
Registered to "Me"
[C:\Users\rchapman\Documents]echo %_tcfolder
ECHO is OFF
C:\Users\rchapman\Documents]cdd /t .
[C:\Users\rchapman]echo %_tcfolder
ECHO is OFF
[C:\Users\rchapman]cdd /to .
C:\Users\rchapman]echo %_tcfolder
ECHO is OFF
After "Folders" view is opened _tcfolder is immediately set to the directory specified by the "Start In" directory of the shortcut and from then on both CDD /T and CDD /TO work the way they should. i.e. they way I want them to ;)
Code:
C:\Users\rchapman\Documents]echo %_tcfolder
C:\Program Files\JPSoft\TCMD16x64
[C:\Users\rchapman]cdd /to .
[C:\Users\rchapman]echo %_tcfolder
C:\Users\rchapman