ICA Finder

When in Citrix it could be handy to know what ICA called you when you are going through the login sequence – when usrlgon.cmd gets called – you dont really know that even still.  So this code does it for you.  Written in MS VS C++ and tested in PS 4 – it works a s a DOS type command –

icafinder <STRING> where the string is the name of an ICA.  If the ICAfinder detects a string its exit code will be 1 and if not 0 meaning you can include it in an command file – eg

D:\Admin\icafinder.exe Current
If ERRORLEVEL  1 Goto Found
If ERRORLEVEL  0 Goto NORMALUSER

Where Current is a portion of say an ICA File – #NLS Explorer Current

I based the app on the Citrix Example and you can download here.

www.dhrobertson.com/icafinder

Use Microsoft Visual C++ 2005 and use the command line… nmake -f makefile.txt – should work… might need a bit of tweaking

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s