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

Help launching app with BV Script

Status
Not open for further replies.

pinkpanther56

Technical User
Jun 15, 2005
807
GB
Hi all

I have a logon script where I want to launch an exe but pass a config swith to it as well, I can make this work with a batch file but i'd like it to be in my VB Script.

The code is below the exe runs but the /APP Desktop part isn't passed on.

Code:
MyObj.Run "C:\Program Files\Citrix\ICA Client\pn.exe /APP Desktop"

Can anyone help?

Thanks.
 
I'd try this:
Code:
MyObj.Run """C:\Program Files\Citrix\ICA Client\pn.exe"" /APP Desktop"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Because (I think) your path contains spaces, you'll need to encapsulated the path with double quote. Do't forget the escaping character in VBS is a double quote so the path will look like this.

objShell.Run [blue]"[/blue][red]""[/red]c:\Program Files\Citrix\ICA Client\pn.exe[red]""[/red] /App Desktop[blue]"[/blue]

[blue]Argument that passes to objShell.Run[/blue]
[red]escape char (") + double quote (")[/red]

-Geates
 
%ProgramFiles% rather then C:\program files might also be nice
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top