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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with WshShell.Run statement

Status
Not open for further replies.

Briandr

MIS
Jul 11, 2003
177
US
Hi,

Can anyone take a look at this and tell me how I need to fix it in order to get it to work?

WshShell.Run "CitrixOnlinePluginFull.exe /silent ENABLE_SSON="no" ENABLE_DYNAMIC_CLIENT_NAME="Yes" SERVER_LOCATION=" move /Y "%ALLUSERSPROFILE%\Start Menu\Programs\Startup\Online plug-in.lnk"

Thanks.
 
All quoted arguments need to be escaped with another double quote to avoid misinterpretation - I think.

Code:
WshShell.Run "CitrixOnlinePluginFull.exe /silent ENABLE_SSON=[red]"[/red]"no[red]"[/red]" ENABLE_DYNAMIC_CLIENT_NAME=[red]"[/red]"Yes[red]"[/red]" SERVER_LOCATION=[red]"[/red]"[URL unfurl="true"]http://citrix.abc.org[/URL][red]"[/red]" move /Y [red]"[/red]"%ALLUSERSPROFILE%\Start Menu\Programs\Startup\Online plug-in.lnk[red]"[/red]""

-Geates

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding

"There are seldom good technological solutions to behavioral problems."
- Ed Crowley, Exchange guru and technology curmudgeon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top