Bug reports will be moved here when the described bug has been fixed
Moderators: Hacker , petermad , Stefan2 , white
rus73
Junior Member
Posts: 29 Joined: 2013-05-30, 08:39 UTC
Location: Russia
Post
by *rus73 » 2023-05-22, 00:32 UTC
Why cm_Create Shortcut command doesn't work with variables?
Code: Select all
cm_CreateShortcut /GT="%$DESKTOP%"
cm_CreateShortcut /GT="%USERPROFILE%\Desktop"
Do not Working.
Sir_SiLvA
Power Member
Posts: 3378 Joined: 2003-05-06, 11:46 UTC
Post
by *Sir_SiLvA » 2023-05-22, 01:03 UTC
rus73 wrote: 2023-05-22, 00:32 UTC
Why cm_Create Shortcut command doesn't work with variables?
Sorry, but WHERE is this a BUG?
rus73 wrote: 2023-05-22, 00:32 UTC
Code: Select all
cm_CreateShortcut /GT="%$DESKTOP%"
cm_CreateShortcut /GT="%USERPROFILE%\Desktop"
Do not Working.
Because it is not implemented.
Hoecker sie sind raus!
Fla$her
Power Member
Posts: 2992 Joined: 2020-01-18, 04:03 UTC
Post
by *Fla$her » 2023-05-22, 04:44 UTC
This is a bug for the "Command:" field. First, the environment variables should be disclosed, and only then the parameters of the internal command should be considered.
For example, for TCFS2.exe /ef "tem(`cm_CreateShortcut /T=%$DESKTOP%`)" there is no such problem, because this principle applies here.
Overquoting is evil! 👎
rus73
Junior Member
Posts: 29 Joined: 2013-05-30, 08:39 UTC
Location: Russia
Post
by *rus73 » 2023-05-22, 06:55 UTC
Fla$her
Yes i use this command %COMMANDER_PATH%\Utility\TCFS2\TCFS2.exe /ef "tem(`cm_CreateShortcut /GT="%$DESKTOP%"`)".
ghisler(Author)
Site Admin
Posts: 50406 Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:
Post
by *ghisler(Author) » 2023-05-22, 10:21 UTC
The /T parameter in cm_CreateShortcut, cm_copy and cm_renmov doesn't currently support environment variables. I will add it.
rus73
Junior Member
Posts: 29 Joined: 2013-05-30, 08:39 UTC
Location: Russia
Post
by *rus73 » 2023-05-22, 10:31 UTC
Great, and we'll be waiting for it.
Thank you very much!
Fla$her
Power Member
Posts: 2992 Joined: 2020-01-18, 04:03 UTC
Post
by *Fla$her » 2023-05-24, 18:32 UTC
Fixed in 11.00b4.
Overquoting is evil! 👎