Joe, Why don't you remove Logoff and Shutdown from the start menu, then replace them with shortcuts to a script(s) that handles your app then shuts the machine down or logs the user off? Alex ----- Original Message ----- From: Joe Shonk To: thin@xxxxxxxxxxxxx Sent: Tuesday, March 08, 2005 7:14 AM Subject: [THIN] Re: Logoff scripts... It a published desktop. Also, it is a script that is running, the problem is when users select logoff Windows closes the script before it closes the application it launches. I need windows to close the application first and wait for the script to complete. Joe ------------------------------------------------------------------------------ From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Jeff Durbin Sent: Monday, March 07, 2005 8:27 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Logoff scripts... Publish a wrapper script that starts your app, then closes it. That way, Windows is terminating your wrapper script. ------------------------------------------------------------------------------ From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Joe Shonk Sent: Monday, March 07, 2005 1:22 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Logoff scripts... Hello, Does anyone know how to change the logoff process? It seems that W2k3 terminates the applications then runs the logoff script. I need to run a logoff script first in order to shutdown an application in the proper order. If I let W2k3 terminate the application, it shutdown incorrectly. Any ideas? Joe