How about something like .... qprocess *|find "appname" >temp.lst for /f "tokens=1" %%i in (temp.lst) DO logoff %%i You could jazz it up with ... qprocess *|find "appname" >temp.lst.lst for /f "tokens=1" %%i in (temp.lst) DO MSG %%i You currently have appname running Please exit this program NOW. sleep 120 qprocess *|find "appname" >temp.lst for /f "tokens=1" %%i in (temp.lst) DO logoff %%i or you could change the last bit to qprocess *|find "appname" >temp.lst for /f "tokens=4" %%i in (temp.lst) DO Kill %%i -f to kill the process rather than log the user off -Ec -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On Behalf Of Philip Walley Sent: Thursday, 5 January 2006 2:47 a.m. To: thin@xxxxxxxxxxxxx Subject: [THIN] server log off script I'm need a way to log off connected users to a particular app on a nightly basis. I suck at scripting so I'm hoping someone here can help. thanks ************************************************ For Archives, RSS, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: //www.freelists.org/list/thin ************************************************ ************************************************ For Archives, RSS, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: //www.freelists.org/list/thin ************************************************