TC install dir

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
adi2004
Junior Member
Junior Member
Posts: 4
Joined: 2004-11-18, 14:03 UTC

TC install dir

Post by *adi2004 »

i have installed TC on this location: e:\necesar\totalcmd650\
but if i move it to some other place, or if i rename its directory, i have to search and replace, in the configuration files, it's old location with the new one.

exeample from default.bar:

Code: Select all

button14=e:\necesar\totalcmd650\Tools\CalcPlus.exe
cmd14=e:\necesar\totalcmd650\Tools\CalcPlus.exe
path14=e:\necesar\totalcmd650\Tools\
menu14=Calculator Plus
button15=%windir%\regedit.exe
cmd15=%windir%\regedit.exe
path15=%windir%
menu15=Editor Registru
button16=e:\necesar\totalcmd650\Tools\TweakUI.exe
cmd16=e:\necesar\totalcmd650\tools\TweakUI.exe
path16=e:\necesar\totalcmd650\Tools\
menu16=TweakUI
as you can se the regedit.exe button will work anytime, but if i change the location of TC, calcplus, and tweakui will fail to start..

and another question:
if ai have a porogram installed in the same dir as TC (let's say e:\necesar\editplus2 ), how can i create shorcuts buttons (on the button bar) that will work eaven if the e:\necesar path is changed (to somethin like c:\abc ) ?

PS: TC is super cool!


and one more thing: how can i see (and change) the date and time of creation, access, modified? if i use windows, my antivirus scans the file and modifies this dates... :( puls, windows can't change them (i use XP)
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Use the environment variable %COMMANDER_PATH% instead of absolute paths. It points to the dir TC is installed in.
how can i see (and change) the date and time of creation, access, modified?
Configuration - Options - Custom columns - New - Add column - + - tc - creationdate - Add column - + - tc - accessdate. Then a few OK's and you should be set. :)

Don't think you can change them using TC.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
adi2004
Junior Member
Junior Member
Posts: 4
Joined: 2004-11-18, 14:03 UTC

Post by *adi2004 »

thanks... this is what i was looking for, and also, %COMMANDER_PATH%\..\ points to the directory one level up

to bad i can't change the dates of files... :( in FAR Commander it was possible. luckly i don't have to do this often

one more question: how can i change the main menu so i could exec programs from it?

Something like that dosent work:
MENUITEM "WhereIsIt 3.51", c:\wherisit\whereisit.exe

So i had to introduce the program into the start menu and from there i could write:
MENUITEM "WhereIsIt 3.51", cm_usermenu2


And another small observation: when i add a new program to the button bar it generates a config like this:

Code: Select all

button8=%commander_path%\..\EditPlus2\editplus.exe
cmd8=%commander_path%\..\EditPlus2\editplus.exe
path8=%commander_path%\..\EditPlus2\
menu8=EditPlus2
but it would be nicer if it would look like this:

Code: Select all

button8=%commander_path%\..\EditPlus2\editplus.exe
cmd8=editplus.exe
path8=%commander_path%\..\EditPlus2\
menu8=EditPlus2
Anyway... that was just a tiny observation... there's no difference...
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

You can change the path to a different path than your program directory. This can be used to supply the program a default path for storing your data.
Post Reply