TSRunLogoff is a command-line utility to run a single application from one command with the additional function to run a logoff script upon exiting the initial application. This utility was written to allow a single call to launch an application in its own process, and on closing that application, a logoff script is executed to perform additional clean up tasks or post application processes. TSRunLogoff with its parameters can exist as a shortcut on the desktop, can be run in a script, or published as a single application. TSRunLogoff will work as a Seamless Published application in a Citrix environment. If single applications are launched via TSRunLogoff in a Seamless environment, the session will close after it has completed the processing of the logoff script as defined in the command line. TSRunLogoff does not require a special logoff command in the provided script. On closing of the initial application, the provided script will run in a hidden state. and the user is presented with a small status window, identifying that the logoff process is underway. On completion of the script, the session will be logged off. Usage: TSRunLogoff [[PATH][Application] [[PATH][Scriptname].] [/NL] [/?] PATH - Path to the Application Application - Application Executable PATH - Path to the script Scriptname - Script executable - can be .bat,.cmd, or any executable process. /NL - Do not logoff the session on completeion of the script. If this option is used, a session will still close if the initial application was presented as a published application. This option should be used for desktop applications that require a post script to run without the need to log off. /? - Show this help file TSRunLogoff without parameters will display this help file. NOTE: If a PATH or Application does not exist, TSRunLogoff will terminate at that point. The first parameter must be the initial application to run. E.G. TSRunLogoff "c:\Program Files\Office11\EXCEL.EXE" myscript.cmd This command will launch MS Excel. When MS Excel is closed by the user, the system will then run myscript.cmd until complete and finally logoff the session. This utility is FREEWARE and was written by Warren Simondson of Ctrl-Alt-Del IT Consultancy, Australia. www.ctrl-alt-del.com.au Although written for Terminal Server and Citrix environments, this application will function on non-TS/Citrix workstations and servers. This application has been tested on the following platforms: Windows 2008 Server Windows 2003 Server SP1 w/ Citrix PS 4.0/ XA 5.0 Windows 2003 Server SP1 (Terminal Server Application Mode) Windows 2000 Server SP4 w/ Citrix MF XP Windows 2000 Server SP4 (Terminal Server Application Mode) Windows 2000 Server SP4 w/ Citrix MF 1.8 The freeware version is offered AS IS. Ctrl-Alt-Del IT Consultancy has made every effort possible to ensure that TSRunLogoff is free of any bugs or errors, however in no way is TSRunLogoff 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 TSRunLogoff. 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.