Ronnie, 'start /wait' should pause the batch file until the launched program ends. Also, make sure you put a '/y' with those copy commands in case you're overwriting an existing file. Tony "Hamilton, Ronnie" <ronnie.hamilton@xxxxxxx> Sent by: thin-bounce@xxxxxxxxxxxxx 01/21/2010 10:41 AM Please respond to thin@xxxxxxxxxxxxx To <thin@xxxxxxxxxxxxx> cc 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 Sent: 21 January 2010 13:45 To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Script question Does this help? e.g. --- copy <source> <dest> start /wait iexplore http://www.bbc.co.uk copy <source> <dest --- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Hamilton, Ronnie Sent: 21 January 2010 10:57 To: thin@xxxxxxxxxxxxx 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. thanks Ronnie Visit our website : 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 NOTICE: This message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.