[THIN] Re: Script question

  • From: "Jeremy Saunders" <Jeremy.Saunders@xxxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Fri, 22 Jan 2010 04:01:28 +1100

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 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

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 

__________________________________________

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.
#####################################################################################

Other related posts: