Downloads
26646.zip

A frustration for consultants who work on different servers every day is that almost all GUI connection tools, including the standard Citrix client, require housekeeping before you can connect to a server. To work around this problem, you can create a connection file that contains all the relevant data. My solution is to use a batch file that takes the target Citrix server's address as an argument, as well as the connection's desired resolution. The batch file, which Listing 1 shows, then generates an ICA file (i.e., a plain text file with information about the connection) and launches the ICA client to connect to the Citrix server.

Running this batch file leaves two files on your system: ica.log and tmp.ica, both in your global \%TEMP% folder. If you have the Sleep command on your system, you can uncomment the lines rem sleep 2 and rem del %icafile% to automatically delete the temporary ICA file.