PDA

View Full Version : Calling a subroutine from a script


fkish
02-16-2006, 03:50 PM
Hi

Maybe I'm just missing this in the help or the samples but can I call as subroutine from a VBScript?

Basically I have a vbscript that finds files over a specific sizes and I and want to call a Subroutine that zips the file and deletes the original. The vbscript works and subroutine works I just want to link them together.

Thanks,
Frank

kinook
02-17-2006, 07:49 AM
Not directly. Probably the easiest way would be to store the filenames in a temporary macro from script code, and add the related steps after that, referencing the temporary macro within the step that needs the filenames.