|
Answer» I am trying to run the following simple batch file: [I am using the pauses just to step through the file]
c:
cd\
pause
cd dxr
cd program
pause
dir
pause
C:\DXR\PROGRAM\Dxr32 /si /pn1-5000 /pfc:\temp\Test-5.pdf
C:\DXR\PROGRAM\Dxr32 /si /pn10001-15000 /pfc:\temp\Test-6.pdf
pause
This operation is calling a program of ours that is CREATING PDF's in 5000 page segments. HOWEVER I can not get the second segment created because I need to wait until the first operation has completed.
I KNOW that this is a simple batch file and I have been able to successfully create the 2 PDF files by placing a 'Pause' between the two operation. Doing this does require interaction with a person and I am wanting the ability to run this unattended.
I have tried placing 'start /wait' at the beginning of the line but it did not help
Thanks in advance for your time........
Markuse :
Code: [Select]ping -n 1 -w 1000 1.1.1.1 >nul <--- 1 second ping -n 1 -w 10000 1.1.1.1 >nul <--- 10 second ping -n 1 -w 100000 1.1.1.1 >nul <--- 100 secondstart /wait "" C:\DXR\PROGRAM\Dxr32 /si /pn1-5000 /pfc:\temp\Test-5.pdfQuote from: devcom on September 17, 2008, 11:01:40 AM use :
Code: [Select]ping -n 1 -w 1000 1.1.1.1 >nul <--- 1 second ping -n 1 -w 10000 1.1.1.1 >nul <--- 10 second ping -n 1 -w 100000 1.1.1.1 >nul <--- 100 second er, no.
Quote from: mdpratorI need to wait until the first operation has completed. You might want to throw in the /b switch to PREVENT a secondary window.
Code: [Select]start /wait /b "" C:\DXR\PROGRAM\Dxr32 /si /pn1-5000 /pfc:\temp\Test-5.pdf
Sidewinder,
Thank you so much for your suggestion [ start /wait /b "" ] it worked like a champ.........
Thanks again.............. Another satisfied customer... Nice catch, SW, with the /b switch. Just to explain...
The start command needs to have a string supplied to it CALLED the "title". This can be a blank string, just 2 quote marks, but it cannot be left out.
start "title" program.exe param1 param2 param3
|