Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

batch scripting problem

Status
Not open for further replies.

gfunk123

IS-IT--Management
May 22, 2001
143
GB
I need to run two commands one after the other from a bat file. The commands need to be run in a specific order upon user login (logon scripts)- for example - -

"C:\Program Files\Microsoft Office\Office\EXCEL.EXE"
"C:\Program Files\Microsoft Office\Office\WINWORD.EXE"

using the above example, excel will run and the script will pause until excel has been closed before running the winword command. I need to (using the above as an example) open excel first and when thats FINISHED loading up, then run excel. I have tryed putting the commands in the startup folder but after testing it seems to randomly load up the items and doesnt follow any specific order.

Is there a command that will continue the script without waiting for the first program to close

any help on this will be greatly appreciated

Gary.Brett@HalifaxCetelem.Com
 
Have you tried using the pause command in your logon script? I am not sure, but it might work.

It would look something like this..

"C:\Program Files\Microsoft Office\Office\EXCEL.EXE"
pause
"C:\Program Files\Microsoft Office\Office\WINWORD.EXE"


Hope this helps...


mot98..[peace]

"Where's the beer?"
 
cd\Program Files\Microsoft Office\Office\EXCEL.EXE
start EXCEL.EXE
cd\Program Files\Microsoft Office\Officestart WINWORD.EXE

try this the command start open a new windows for the program

for the 2 open at same times.

 
When i do this it just opens two more cmd session windows but with "c:../../.EXCEL.exe as the title etc
 
if you are using kix than using a call procedure will run a specific batch file and once executed will than come back to original file.

Thought it might help :)

Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top