Allow user-defined variables within WinCmd.ini

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Hemingway
Junior Member
Junior Member
Posts: 71
Joined: 2009-05-08, 14:38 UTC
Location: Niederrhein

Allow user-defined variables within WinCmd.ini

Post by *Hemingway »

As in BAT/CMD files, it would be helpful to implement "SET myownvariable=value" in WinCmd.ini.
%myownvariable% could then be used in various places of WinCmd.ini, such as paths, file lists, etc.
This little feature could help all those who edit their ini file manually.
Personal licence #34918 and proud of it!
TC64 und TC32, immer neueste Version, als Portable Apps
Win 10, immer aktuell
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You can use Autorun plugin in order to define your custom environment variables.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

You can also just creat a batch (.bat|.cmd) file to launch TC.

Code: Select all

SET myownvariable=value
START "" "C:\TC\TotalCmd.exe"
SETENV.exe (from Vincent Fatica's Home Page) can also be used to set permanent (or temporary) environment variables, without manually editting such variables via:
"My Computer" / Properties / System Properties / [Advanced] / [Environment Variables]
SETENV -u name value (User Environment, current User only)
SETENV -m name value (Machine Environment, e.g. All Users)
SETENV -d name value (Default User environment)
SETENV -v name value (Volatile, removed after reboot)
Post Reply