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

Launch ica file

Status
Not open for further replies.

Muzzy

Programmer
Dec 14, 2001
68
GB
Hi All,

I need to launch a ica (Citrix) file using VBScript. I have got nowhere with this and decided I need help! Any ideas would be greatly appreciated.

Cheers

Muzzy
 
What code do you have thus far?

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
You will need to launch the Citrix client and pass the ICA file on the command line after the executable.
 
Do you have any sample code to display how I would do this?

Cheers

Muzzy
 
I thought this would do it but having trouble passing the arguments correctly.

Anyway this should get you started. It does launch connection manager, just not the connection.

Code:
On Error Resume Next
Dim WSHShell
Set WSHShell = wscript.createObject("wscript.shell")
ICAConnectionName = "mirage"
Call WSHShell.Exec(Chr(34)& "C:\Program Files\Citrix\ICA Client\pn.exe" & Chr(34) & " /APP"& Chr(34) & ICAConnectionName& Chr(34))
WScript.Quit(0)

I hope you find this post helpful. Please let me know if it was.

Regards,

Mark
 
Try using WFICA32.EXE in place of pn.exe and pass the full path to the ICA file. I don't think you need the /APP switch unless you are not using an application specific ICA file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top