Help - Search - Members - Calendar
Full Version: Help with a batch script
MSFN Forums > Coding, Scripting and Servers > Programming (C++, Delphi, VB, etc.)

   
Google Internet Forums Unattended CD/DVD Guide
JayDogg
Hi Im making a batch script that runs an installer then calls a clean up batch script, here it is

cd "C:\Program Files\Nero"
start Nero.exe
pause
call cleanup.bat
del %0

the batch script it calls is

del /f /q "C:\Documents and Settings\Default User\Desktop\Nero SrartSmart.lnk"
rd /s /q "C:\Documents and Settings\All Users\Start Menu\Programs\Nero 8"
rd /s /q "C:\Documents and Settings\All Users\Start Menu\Programs\VSO"
del /f /q "C:\C:\Program Files\VSO\ConvertX.exe"
del /f /q "C:\C:\Program Files\VSO\ConvertXToDVD.exe"
del /f /q "C:\C:\Program Files\Nero\Nero.exe"
del /f /q "C:\C:\Program Files\Nero\Nero-8.1.1.0_eng.exe"
del %0

but what I need to know is how to make the pause wait till nero.exe is fully installed then call the cleanup.bat, is there a way I could set a time on for the pause to wait?

Any help would be great cause Im kinda new to batch scripts
jaclaz
Try
START "Nero" /DC:\Install\Nero\ /WAIT nero.exe
or
START "Nero" /WAIT nero.exe
http://www.ss64.com/nt/start.html

be aware of the "Title" and 8.3 naming with /D option problems.

jaclaz
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.