process control in batch files

G

Guest

I have a batch file that calls adobe distiller as follows

del tmp.eps tmp1.eps
call "c:\Acrobat 4.0\Distillr\AcroDist.exe" e:\pp_v3\north\maps\%1.eps
rem copy %2 %1.bak

If this is run in Win98, after AcroDist completes processing, it returns
control to the batch file. In 2000 and XP1, it has to be terminated from the
screen to return control back to the batch file. Is there any way to force
AcroDist to terminate and send control back to the batch file.
 
P

Pegasus \(MVP\)

mjf_ferguson said:
I have a batch file that calls adobe distiller as follows

del tmp.eps tmp1.eps
call "c:\Acrobat 4.0\Distillr\AcroDist.exe" e:\pp_v3\north\maps\%1.eps
rem copy %2 %1.bak

If this is run in Win98, after AcroDist completes processing, it returns
control to the batch file. In 2000 and XP1, it has to be terminated from the
screen to return control back to the batch file. Is there any way to force
AcroDist to terminate and send control back to the batch file.

Your post is a little unclear. You write "it has to be terminated".
What has to be terminated? AcroDistiller? If so then this would
be an issue with AcroDistiller, not with Windows: That it does
not close down after finishing the conversion job. I suspect there
may be some switches you need to specify - check the Acro
Distiller command line switches and the FAQs.

Getting the batch file to continue immediately would be easy but
I suspect this is not what you want.

BTW, the "call" statement is used when invoking other batch
files. "AcroDist.exe" is an executable, not a batch file, hence
you should omit the word "call".,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top