Batch files & VBScripts helping each other
To run command-line tools from a VBScript can be a little hassle because of the limited buffer size of the StdOut and StdErr. A nice solution which gives you VBScript functions and a command line window is shown in this example. The batch file calls the VBScript and waits. The VBScript generates a temporary batch file which is executed by the first one and deleted after execution.
I use this to run the pdf2swf tool multiple times to create a swf for every pdf page.
Batchfile:
@echo off
call makebatchfile.vbs boek-warnock.pdf 302
call converter-temp.bat
del converter-temp.bat

Reageer op dit bericht / Leave a message
