"?" parameter and variables
Moderators: Hacker, petermad, Stefan2, white
"?" parameter and variables
Please add support for environment- and TC internal variables to dialog called by ? parameter used e.g. in button bar.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Ukraine's National Bank special bank account:
UA843000010000000047330992708
- ghisler(Author)
- Site Admin
- Posts: 50505
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Ok. Can you add similar dialog/parameter (maybe %?%) to work with user commands and/or aliases.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).
Currently I created some user commands for TC commands with parameters, for example:
This "extended" version of cd command useful in some kind of scripts, but unfortunately I cannot past somthing like %windir% into prompt dialog...usercmd.ini wrote:[em_cd]
button=
cmd=CD
param=?
menu=CD <directory>
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Ukraine's National Bank special bank account:
UA843000010000000047330992708
I agree, it could be fine if TC can replace those variable let say using special notation like %?VAR_NNAME% ....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...
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 ...