Can I define "totalcmd.inc" to other path

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
dindog
Senior Member
Senior Member
Posts: 316
Joined: 2010-10-18, 07:41 UTC

Can I define "totalcmd.inc" to other path

Post by *dindog »

I got drive G: and sometime Y: for virtual drive.... So I added cm_GotoDriveG as well as cm_GotoDriveY in "totalcmd.inc" file. I have to remind myself everytime TC update not overwritting it by the default one... or I will have to add the commands again.

can I put it to other path and call it when TC starts like usercmd.ini?
Last edited by dindog on 2015-09-06, 02:37 UTC, edited 1 time in total.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You can add these commands into your custom main menu file, and you can add them as numbers (2067 for cm_GotoDriveG) and not strings so there won't be any need in patching totalcmd.inc. Also you can use e.g. TCFS2 to pass these commands as numbers.

Also you can simply add your commands to begin or end of totalcmd.inc (I've checked, it works, but command browser shows them in wrong groups). So it won't be hard to patch file even with e.g. batch.
User avatar
dindog
Senior Member
Senior Member
Posts: 316
Joined: 2010-10-18, 07:41 UTC

Post by *dindog »

MVV wrote:You can add these commands into your custom main menu file, and you can add them as numbers (2067 for cm_GotoDriveG) and not strings so there won't be any need in patching totalcmd.inc. Also you can use e.g. TCFS2 to pass these commands as numbers.

Also you can simply add your commands to begin or end of totalcmd.inc (I've checked, it works, but command browser shows them in wrong groups). So it won't be hard to patch file even with e.g. batch.
Thanks. Just out of curious, why TC left some gotodrive command undefined at the beginning?

PS. there are INC files in the Language folder, but TC seem ignore commnads defined there....


Anyway, we got much large volume of harddrive now, and usb sticks, memory cards, removable harddrive... should we consider define all command from a to z by default?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Just out of curious, why TC left some gotodrive command undefined at the beginning?
I think in order to save space because these commands are not needed for everyone (there are some similar groups of commands that have defined only first N commands, e.g. cm_UserMenuN, cm_SrcActivateTabN, cm_SrcSortByColN etc.).
there are INC files in the Language folder, but TC seem ignore commnads defined there....
These are only for translation but not for defining new commands.
Post Reply