TSRUNLOGOFF will do what you need. Free from Ctrl-Alt-Del It Consultancy. http://www.ctrl-alt- del.com.au/CAD_TSUtils.htm If this doesn't do what you need, dro me a line and I'll write a bit of code the allows a sequence of multiple commands to execute in a specific order after the previous application close. This is what TSRUNLOGOFF does but it only handles two executables at the moment. - 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. -- Warren Simondson Ctrl-Alt-Del IT Consultancy Pty Ltd Website: http://www.ctrl-alt-del.com.au On Fri, Jan 22nd, 2010 at 5:38 AM, "Hamilton, Ronnie" <ronnie.hamilton@xxxxxxx> wrote: > Jim not sure if I follow here should I use the launchIT from within > the > script or publish Launch it because when I publish LaunchIt with the > CMD > file it fails > > ________________________________ > > From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] > On > Behalf Of Jim Kenzig > Sent: 21 January 2010 18:26 > To: thin@xxxxxxxxxxxxx > Subject: [THIN] Re: Script question > > > And thinking about what he is doing Tim Mangan's Launchit utility may > be > the way to go http://www.tmurgent.com/download%5CLaunchIt.zip > > Jim Kenzig > http://www.kenzig.com > > > > > On Thu, Jan 21, 2010 at 1:18 PM, Jim Kenzig <jkenzig@xxxxxxxxx> > wrote: > > > And I think Robocopy is better than Xcopy.... > Jim Kenzig > http://www.kenzig.com <http://www.kenzig.com/> > > > > > On Thu, Jan 21, 2010 at 12:11 PM, Joe Shonk > <joe.shonk@xxxxxxxxx> wrote: > > > Agreed... xcopy is better and also the start command > should have a Title specified (as you also corrected). Even if it > is > "". > > > > Joe > > > > From: thin-bounce@xxxxxxxxxxxxx > [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Jeremy Saunders > Sent: Thursday, January 21, 2010 10:01 AM > > To: thin@xxxxxxxxxxxxx > Subject: [THIN] Re: Script question > > > > > > > > > > An error in your script and a couple of ways to do it > better... > > > > xcopy "D:\Java deployment files\Java 1.6.0_12\*.*" > "%AppData%\Sun\Java\Deployment\" /e/s/v/y > > start "Starting IE" /wait "%ProgramFiles%\Internet > Explorer\iexplore.exe" http://server <http://server/> > address/frmservlet?config=Live > > xcopy "D:\Java deployment files\Java 1.6.0_14\*.*" > "%AppData%\Sun\Java\Deployment\" /e/s/v/y > > > > Hope that helps. > > > > Cheers, > > Jeremy. > > > > From: thin-bounce@xxxxxxxxxxxxx > [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Hamilton, Ronnie > Sent: Friday, 22 January 2010 12:47 AM > To: thin@xxxxxxxxxxxxx > Subject: [THIN] Re: Script question > > > > lads, > > > > script below what I am trying to do is replace the > properties file in the user profile call my web app and then set the > properties file back to the default. > > > > if I place a pause in my third line and run the command > file I get the correct version of Java and after I hit a key I get > the > latest version the next time I run another app. So very close.... > > > > Ronnie > > > > copy "D:\Java deployment files\Java 1.6.0_12\*.*" > "C:\Documents and Settings\%username%\Application > Data\Sun\Java\Deployment\" > start /wait "C:\Program Files\Internet > Explorer\iexplore.exe" http://server address/frmservlet?config=Live > <http://server%20address/frmservlet?config=Live> > copy "D:\Java deployment files\Java 1.6.0_14\*.*" > "C:\Documents and Settings\%username%\Application > Data\Sun\Java\Deployment\" > > > > ________________________________ > > From: thin-bounce@xxxxxxxxxxxxx > [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Webster > Sent: 21 January 2010 16:20 > To: thin@xxxxxxxxxxxxx > Subject: [THIN] Re: Script question > > START /WAIT is "supposed" to wait until iexplore > terminates and then continue with the next line in the batch file. > > > > > > Webster > > > > From: thin-bounce@xxxxxxxxxxxxx > [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Hamilton, Ronnie > Subject: [THIN] Re: Script question > > > > Hi Andrew, > > > > have tried this and it still gets the 2nd copy of the > config file. > > > > does the /wait command mean wait till IE launches before > continuing with the script of wait for a period of time before > launching > ? > > > > Ronnie > > > > ________________________________ > > From: thin-bounce@xxxxxxxxxxxxx > [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Andrew Wood > Subject: [THIN] Re: Script question > > Does this help? e.g. > > > > --- > > copy <source> <dest> > > start /wait iexplore http://www.bbc.co.uk > <http://www.bbc.co.uk/> > > copy <source> <dest > > --- > > > > > > From: thin-bounce@xxxxxxxxxxxxx > [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Hamilton, Ronnie > Subject: [THIN] Script question > > > > Hi > > > > I am publishing a cmd file to copy a file to the users > profile and then run IE. > > > > My question is how can I copy the original file back to > the users application after IE runs. > > > > I have tried to put the copy command at the end but IE > hasn't opened with the settings from the first file. > > Visit our website : www.ltai.ie <http://www.ltai.ie/> > > __________________________________________ > > Lufthansa Technik Airmotive Ireland Limited. Registered > in Ireland. Reg. No. 45999. Registered Office: Naas Road, Rathcoole, > Co.Dublin. > > Lufthansa Technik Airmotive Ireland Leasing Limited. > Registered in Ireland. Reg. No. 140891. Registered Office: Naas > Road, > Rathcoole, Co.Dublin. > > __________________________________________ > > The information in this email and in any attachments is > confidential and may be privileged. If you are not the intended > recipient, please destroy this message, delete any copies held on > your > systems and notify the sender by return email. You should not read, > retain, copy, disseminate, distribute, disclose or use this email or > its > contents in any way. Any such action is strictly prohibited. Thank > you. > > > > > > > ________________________________ > > > Confidentiality and Privilege Notice > This document is intended solely for the named > addressee. The information contained in the pages is confidential > and > contains legally privileged information. If you are not the > addressee > indicated in this message (or responsible for delivery of the message > to > such person), you may not copy or deliver this message to anyone, > and > you should destroy this message and kindly notify the sender by > reply > email. Confidentiality and legal privilege are not waived or lost by > reason of mistaken delivery to you. > > > ________________________________ > > > > > ************************************************ For Archives, RSS, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: //www.freelists.org/list/thin Follow ThinList on Twitter http://twitter.com/thinlist Thin List discussion is now available in blog format at: http://thinmaillist.blogspot.com Thinlist MOBILE Feed http://thinlist.net/mobile ************************************************