Hi folks Warren Simondson forwarded me the below. Looks like some interesting stuff. Jim Warren Simondson <wsimondson@xxxxxxxx> wrote: Subject: Citrix Utility - QRYDEPTAPP Date: Sat, 30 Sep 2006 20:10:54 +1000 From: "Warren Simondson" <wsimondson@xxxxxxxxxxxxxxxxxxx> st1\:*{behavior:url(#default#ieooui) } Hi all, I?m back writing apps again. This ones a modification on QRYPUBAPP that I wrote earlier, but very handy for those people who publish apps with names like Desktop_ACCO and Excel_ACCO, for specific departments in a business. See below and attached files for a full explanation. If you can?t see the attachment, download the files from http://www.ctrl-alt-del.com.au/CAD_Utils.htm. More Citrix Apps to come?.wait until I send BOMPROF, a windows GUI that deletes multiple profiles in one hit. Great for removing multiple local or roaming profiles from Citrix serves. It?s better than the command line utility called delprof, because you can delete multiple profiles instantly, and see who owns the profile. Stay tuned, it?s not far away. QRYDEPTAPP is a command-line tool for Citrix Servers to check whether the current session is running a specified Published Application based on Department code. This utility was written for the purpose of allowing one login script to process specific commands for department coded published applications. This utility is FREEWARE and was written by Warren Simondson of Ctrl-Alt-Del IT Consultancy, Australia. www.ctrl-alt-del.com.au Thankyou to the CITRIX SDK available from www.citrix.com/cdn Usage: QRYDEPTAPP [deptcode] deptcode - identifies the published application name with the department code suffix (Not case sensitive. Published App cannot contain spaces.) (eg. QRYDEPTAPP ACCO checks a published app called explorer_acco for the last 4 letter code.) The ERRORLEVEL return code shows if the current session is running the specified Published Application based on Department Code. Example Script: usrlogon.cmd ------------ @ECHO OFF ::MAP K: FOR Specific Department ::******************************************************* ::ACCO - Any application that end with ACCO eg PUB APP NAME is DESKTOP_ACCO or EXCEL_ACCO :SUB1 QRYDEPTAPP ACCO :: No Match - goto sub2 IF ERRORLEVEL 1 goto SUB2 echo This is the correct published app. echo put other commands here for this app like: :: MAP K DRIVE net use k: \\server\accoshare GOTO END ::******************************************************* ::EXEC - Any application that end with EXEC eg PUB APP NAME is DESKTOP_EXEC or EXCEL_EXEC :SUB2 QRYDEPTAPP EXEC :: No Match - goto end IF ERRORLEVEL 1 goto end echo This is the correct published app. echo put other commands here for this app like: :: MAP K DRIVE net use k: \\server\execshare GOTO END ::******************************************************* :END Warren Simondson Ctrl-Alt-Del IT Consultancy Email: warren@xxxxxxxxxxxxxxxxxxx Website: http://www.ctrl-alt-del.com.au Business Hours: +61 7 3848 0285 Mobile: 0400 699 733 QRYDEPTAPP is a command-line tool for Citrix Servers to check whether the current session is running a specified Published Application based on Department code. This utility was written for the purpose of allowing one login script to process specific commands for department coded published applications. This utility is FREEWARE and was written by Warren Simondson of Ctrl-Alt-Del IT Consultancy, Australia. www.ctrl-alt-del.com.au Thankyou to the CITRIX SDK available from www.citrix.com/cdn Usage: QRYDEPTAPP [deptcode] deptcode - identifies the published application name with the department code suffix (Not case sensitive. Published App cannot contain spaces.) (eg. QRYDEPTAPP ACCO checks a published app called explorer_acco for the last 4 letter code.) The ERRORLEVEL return code shows if the current session is running the specified Published Application based on Department Code. Example Script: usrlogon.cmd ------------ @ECHO OFF ::MAP K: FOR Specific Department ::******************************************************* ::ACCO - Any application that end with ACCO eg PUB APP NAME is DESKTOP_ACCO or EXCEL_ACCO :SUB1 QRYDEPTAPP ACCO :: No Match - goto sub2 IF ERRORLEVEL 1 goto SUB2 echo This is the correct published app. echo put other commands here for this app like: :: MAP K DRIVE net use k: \\server\accoshare GOTO END ::******************************************************* ::EXEC - Any application that end with EXEC eg PUB APP NAME is DESKTOP_EXEC or EXCEL_EXEC :SUB2 QRYDEPTAPP EXEC :: No Match - goto end IF ERRORLEVEL 1 goto end echo This is the correct published app. echo put other commands here for this app like: :: MAP K DRIVE net use k: \\server\execshare GOTO END ::******************************************************* :END The freeware version is offered AS IS. Ctrl-Alt-Del IT Consultancy has made every effort possible to ensure that QRYDEPTAPP is free of any bugs or errors, however in no way is QRYDEPTAPP to be considered error or bug free. You assume all responsibility for any damages or lost data that may result from any errors or bugs in QRYDEPTAPP. IN NO EVENT WILL CTRL-ALT-DEL IT CONSULTANCY BE LIABLE TO YOU FOR ANY GENERAL, SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR OTHER DAMAGES ARISING OUT OF THIS PRODUCT. ÿþS Jim Kenzig Microsoft MVP - Terminal Services Provision Networks VIP CEO The Kenzig Group http://www.kenzig.com Blog: http://www.techblink.com Terminal Services Downloads: http://www.thinhelp.com
QRYDEPTAPP is a command-line tool for Citrix Servers to check whether the current session is running a specified Published Application based on Department code. This utility was written for the purpose of allowing one login script to process specific commands for department coded published applications. This utility is FREEWARE and was written by Warren Simondson of Ctrl-Alt-Del IT Consultancy, Australia. www.ctrl-alt-del.com.au Thankyou to the CITRIX SDK available from www.citrix.com/cdn Usage: QRYDEPTAPP [deptcode] deptcode - identifies the published application name with the department code suffix (Not case sensitive. Published App cannot contain spaces.) (eg. QRYDEPTAPP ACCO checks a published app called explorer_acco for the last 4 letter code.) The ERRORLEVEL return code shows if the current session is running the specified Published Application based on Department Code. Example Script: usrlogon.cmd ------------ @ECHO OFF ::MAP K: FOR Specific Department ::******************************************************* ::ACCO - Any application that end with ACCO eg PUB APP NAME is DESKTOP_ACCO or EXCEL_ACCO :SUB1 QRYDEPTAPP ACCO :: No Match - goto sub2 IF ERRORLEVEL 1 goto SUB2 echo This is the correct published app. echo put other commands here for this app like: :: MAP K DRIVE net use k: \\server\accoshare GOTO END ::******************************************************* ::EXEC - Any application that end with EXEC eg PUB APP NAME is DESKTOP_EXEC or EXCEL_EXEC :SUB2 QRYDEPTAPP EXEC :: No Match - goto end IF ERRORLEVEL 1 goto end echo This is the correct published app. echo put other commands here for this app like: :: MAP K DRIVE net use k: \\server\execshare GOTO END ::******************************************************* :END The freeware version is offered AS IS. Ctrl-Alt-Del IT Consultancy has made every effort possible to ensure that QRYDEPTAPP is free of any bugs or errors, however in no way is QRYDEPTAPP to be considered error or bug free. You assume all responsibility for any damages or lost data that may result from any errors or bugs in QRYDEPTAPP. IN NO EVENT WILL CTRL-ALT-DEL IT CONSULTANCY BE LIABLE TO YOU FOR ANY GENERAL, SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR OTHER DAMAGES ARISING OUT OF THIS PRODUCT.