Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
All of the other os's work fine using start /min /wait....a piece of the batch file I'm running is below. However in XP Start /wait doesn't wait if any of the apps are 32bit installs. They will continue to load before the first one finishes. Microsoft says that this is normal, only when using windows scripting will the wait command work. How can I use cscript to run each of these start /wait commands? appreciate any help.
%cdrom%\ppbs create "Updating Software or Configuration of Lab Machines..." settext 1 "Installing Tivoli Agent..."
%cdrom%\ppbs movewindow 1 10 10
%cdrom%\Start /min /wait %cdrom%\tivoli\setup -s
%cdrom%\CHOICE /C:AB /N /T:A,40 > NUL
%cdrom%\ppbs destroy 1%cdrom%\ppbs create "Updating Software or Configuration of Lab Machines..." settext 1 "Installing McAfee Anti-Virus Ver 7..."
%cdrom%\ppbs movewindow 1 10 10
%cdrom%\Start /min /wait %cdrom%\av\avinstall.bat
%cdrom%\CHOICE /C:AB /N /T:A,40 > NUL
%cdrom%\ppbs destroy 1%cdrom%\ppbs create "Updating Software or Configuration of Lab Machines..." settext 1 "Installing Acrobat Reader Ver 6..."
%cdrom%\ppbs movewindow 1 10 10
%cdrom%\Start /min /wait %cdrom%\AReader6\AReader6.msi /qr
%cdrom%\CHOICE /C:AB /N /T:A,40 > NUL
%cdrom%\ppbs destroy 1%cdrom%\ppbs create "Updating Software or Configuration of Lab Machines..." settext 1 "Installing Microsoft Automatic Update Agent..."
%cdrom%\ppbs movewindow 1 10 10
%cdrom%\Start /min /wait %cdrom%\susnoad.msi /qr
%cdrom%\CHOICE /C:AB /N /T:A,40 > NUL
%cdrom%\ppbs destroy 1%cdrom%\ppbs create "Updating Software or Configuration of Lab Machines..." settext 1 "Installing Novell Agent..."
%cdrom%\ppbs movewindow 1 10 10
%cdrom%\Start /B /min /wait %cdrom%\Novell\ZfdAgent.msi /q Reboot=ReallySuppress
%cdrom%\CHOICE /C:AB /N /T:A,40 > NUL
%cdrom%\ppbs destroy 1

bkrocker,
instead of using batch files (.bat) use a NT command script (.cmd) you write them the same way, except a few things act alot nicer.
for example, I use a .cmd to auto install networking components and
start /wait %cdrom%\Install\Novell\setupnw.exe -u
works just fine for me, and the next object doesn't launch until novell is done.-Russell

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |