[THIN] Re: Script question

  • From: "Hamilton, Ronnie" <ronnie.hamilton@xxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Thu, 21 Jan 2010 16:46:38 -0000

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
address/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.


Other related posts: