Subscribe to Windows IT Pro
October 21, 2002 12:00 AM

Connect to a Citrix Server from the Command Line

Windows IT Pro
InstantDoc ID #26646
Rating: (0)
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.

Related Content:

ARTICLE TOOLS

Comments
  • Gerson Levitz
    10 years ago
    Dec 13, 2002

    This will only work if the admistrator has not set the option to run only published applications. Which should be the case from a security stand point.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.