Page 1 of 1

"?" parameter and variables

Posted: 2009-02-11, 23:39 UTC
by DrShark
Please add support for environment- and TC internal variables to dialog called by ? parameter used e.g. in button bar.

Posted: 2009-02-12, 17:32 UTC
by ghisler(Author)
Unfortunately they would collide with the internal parameters like %P%N, there could be an environment variable %P% here. Therefore they are only supported in the "Command" field (which does accept parameters too).

Posted: 2009-02-12, 20:02 UTC
by DrShark
ghisler(Author) wrote:Unfortunately they would collide with the internal parameters like %P%N, there could be an environment variable %P% here. Therefore they are only supported in the "Command" field (which does accept parameters too).
Ok. Can you add similar dialog/parameter (maybe %?%) to work with user commands and/or aliases.
Currently I created some user commands for TC commands with parameters, for example:
usercmd.ini wrote:[em_cd]
button=
cmd=CD
param=?
menu=CD <directory>
This "extended" version of cd command useful in some kind of scripts, but unfortunately I cannot past somthing like %windir% into prompt dialog...

Posted: 2009-02-13, 06:58 UTC
by nsp
DrShark wrote:This "extended" version of cd command useful in some kind of scripts, but unfortunately I cannot past somthing like %windir% into prompt dialog...
I agree, it could be fine if TC can replace those variable let say using special notation like %?VAR_NNAME% ....
But for CD it is useless as it is better to use command line or path title bar to do it (Command line support env variable and allow to have completion...)

Anyhow, if you do some scripting, you can do it in your own ...