Problems with shortcuts

May 20, 2008
603
0
Sammamish, WA
My arguments don't seem to be retained when making shortcuts. After the
shortcut is created, I can't even add the @file.ini using right-click /
properties.

I want to have two different icons which start using two different INI
files.

How do I make a shortcut with a specified INI file?

TCC 11.00.50 Windows Vista [Version 6.0.6002]
TCC Build 50 Windows Vista Build 6002 Service Pack 2

C:\Users\Cookie\Desktop>shortcut "C:\Program Files\JPSoft\TCMD11\TCMD.EXE"
"@C:\Users\Cookie\AppData\Lo
cal\JPSoft\TCMD11.INI" D:\ "Take command version 11.00.50" "11.00.50 Take
Command.lnk" 1

C:\Users\Cookie\Desktop>shortcut "11.00.50 Take Command.lnk"
Command=C:\Program Files\JPSoft\TCMD11\tcmd.exe
ArgumentsDirectory=D:\
Description=Take command version 11.00.50
Link=11.00.50 Take Command.lnk
IconOffset=0
Mode=1
Hotkey
--
Jim Cook
2010 Sundays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Monday.
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
> My arguments don't seem to be retained when making shortcuts. After the
> shortcut is created, I can't even add the @file.ini using right-click /
> properties.
>
> I want to have two different icons which start using two different INI
> files.
>
> How do I make a shortcut with a specified INI file?
>
> TCC 11.00.50 Windows Vista [Version 6.0.6002]
> TCC Build 50 Windows Vista Build 6002 Service Pack 2
>
> C:\Users\Cookie\Desktop>shortcut "C:\Program
> Files\JPSoft\TCMD11\TCMD.EXE"
> "@C:\Users\Cookie\AppData\Lo
> cal\JPSoft\TCMD11.INI" D:\ "Take command version 11.00.50" "11.00.50
> Take Command.lnk" 1

Try prefixing the @ with a / -- there's an undocumented Windows "feature"
that deletes shortcut arguments beginning with an @.

Rex Conn
JP Software
 
Jul 1, 2008
81
0
74
Montreal
Try prefixing the @ with a / -- there's an undocumented Windows "feature"
that deletes shortcut arguments beginning with an @.

As far as I can tell, the argument is not deleted, it's just not displayed, either by the TCC shortcut command or by right-clicking on the shortcut and selecting "properties". Presumably the Windows "feature" hides it from the shortcut command. However, opening the .lnk file with a hex editor, you can see the @c:\foo\tcmd.ini argument is there. To see if it works, I copied an existing tcc shortcut and my tcmd.ini to c:\foo. I changed a couple of colour settings in tcmd.ini and added @c:\foo\tcmd.ini to the shortcut command line. It worked as expected, my colours were off.

11.0.50 under WinXP SP3
--
Peter
 
Similar threads
Thread starter Title Forum Replies Date
Charles S. Roaten Problems with TCSTART.BTM Support 1
vefatica Office problems better Support 0
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
Peter Murschall CMDebug 26.01.37 has problems with Alias Support 21
C unzip problems Support 2
C TCC 26 BATCOMP BTM problems? Support 5
Alpengreis WAD [v26 Beta RC3]: MSGBOX color problems Support 4
Alpengreis QUERYBOX problems Support 5
R New Cloud Storage Tab in TCC options causing problems Support 0
Craig Fitzgerald Problems using tcstart.btm Support 3
M Problems with @REGBREAD on remote system Support 4
K_Meinhard Help problems Support 3
S Problems with dir command in the debugger Support 5
D How to? Path problems in TCC20 Support 1
G Version 20.11 installed on Windows 10 problems Support 9
M WAD Set statements in () causes problems Support 8
M Fixed Set "VAR=VAL" format causes problems Support 12
H Problems with PSUBST Support 3
Alpengreis The TCMD Display problems and font size ... Support 2
cgunhouse Problems With IFTP Support 3
Gamegod Fixed TCC identify Chinese problems Support 30
vefatica 21-22 Update problems Support 8
T Problems with the new help format Support 18
cgunhouse Event Plugin Problems With 19.10.43 Support 2
C @replace and @xreplace problems Support 5
Alpengreis Forum problems? Support 0
N Fixed Problems with SHA256/384/512 Support 5
Alpengreis [TC 19.0 Beta 22/23] Install/Update-"Problems" Support 4
P Problems registering Support 5
R Parser problems after build 44 Support 5
LowdhamStation Serial port problems Support 7
vefatica Is jpsoft.com having ISP problems? Support 10
M Problems when being logged in Support 4
vefatica Both IFTP problems remain in build 50 Support 35
vefatica IFTP problems (broken pipe?) Support 24
Joe Caverly VIEW window in a TCC tab window problems Support 5
S Forum Implementation Problems Support 2
S Forum (XenForo) problems Support 3
S Problems to create new threads Support 6
S Fixed CLIPMONITOR problems Support 9
Roedy WAD Minor long-standing install problems Support 6
E Problems with Tabbed Toolbar Support 2
S Log and foldermonitor problems Support 3
vefatica Installation problems Support 1
J Problems for a neophyte Support 30
C Active FTP Problems Support 4
J Still problems understanding "foldermonitor" Support 9
J syntax problems multiple commands (command & command) Support 4
J 4NT problems after going to Windows 7 Support 5
vefatica Installer problems Support 23

Similar threads