Hi all,
I'm new to TC, so apologies if this is old material, but:
I am trying to set up a generic wincmd.ini that uses an environment variable to set the default location for one of the directory panes when TC opens.
In particular, I want to use %USERPROFILE% to open up the user's profile directory in the right pane when TC is launched.
I have tried this entry in the wincmd.ini file but to no avail:
[right]
path=%USERPROFILE%
and alternately
[right]
path=%$USERPROFILE%
But neither work. Actually I can't seem to get any Windows environment variable to work in this context.
Any suggestions/info?
Thanks!
Use of Environment Variables in wincmd.ini
Moderators: Hacker, petermad, Stefan2, white
TC writes the current path/tabs on exit so you have to edit the wincmd.ini while it's closed.
A safer and more permanent way is to use command line parameters.
See Help -> 4a Command line parameters
eg
A safer and more permanent way is to use command line parameters.
See Help -> 4a Command line parameters
eg
Code: Select all
totalcmd.exe /L=%USERPROFILE%
Last edited by ZoSTeR on 2013-05-31, 11:18 UTC, edited 1 time in total.
You can try this plugin, it allows to execute different actions (e.g. change directories) on TC start, just install it correctly and add following line to its configuration file:
Code: Select all
CommandExec /CD "%USERPROFILE%"
Last edited by MVV on 2013-05-31, 12:13 UTC, edited 1 time in total.