Ricksmuseum

Batch files & VBScripts helping each other

Category: VBScript, Programming, Tech, General — Rick Companje — 27 June 2007 @ 21:16

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

VBScript:
Batchfile - VBScript

SendTo New Folder

Category: VBScript, Plugins & Add-on, Programming, Tech, General — Rick Companje — 10 June 2007 @ 15:54

SendTo New Folder

This SendTo Folder VBScript I wrote can be useful when you want to move files or folders in your Windows Explorer directly to a new or existing folder using the SendTo menu (Kopiëren naar… in Dutch)