Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Desktop shortcut question 1

Status
Not open for further replies.

supportahm1980

Technical User
May 30, 2006
208
0
0
US
Hello all I know how to create a deskto shortcut icon however in the target path I am trying to pass a switch.

Ideally I would like the target path to be this:
"C:\Program Files\Citrix\ICA Client\pn.exe" /APP "Remote Access"

but I am having trouble incorporating /APP "Remote Access"
and escaping the /APP

Any clue? thanks in advance.




Code:
strProgFl = colProcEnvVars("ProgramFiles")


	strdesktop = ObjShell.SpecialFolders("Desktop")
	strshortcut1 = strdesktop & "\Remote Access.lnk"
	If Not fso.FileExists(strshortcut1) Then
    	SET myshortcut = ObjShell.CreateShortcut(strshortcut1)
    	myshortcut.TargetPath = strProgFl & "\Citrix\ICA Client\pn.exe" 
    	myshortcut.WorkingDirectory = strProgFl & "\Citrix\ICA Client"
    	myshortcut.IconLocation = strProgFl & ("\Citrix\ICA Client\pn.exe,0")
    	myshortcut.Save
	End If
 
myshortcut.Arguments = "/APP ""Remote Access"""

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks for the Post PH... I have run into this same thing!

Big Help!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top