passing variable from vbscript to batch file
Posted
by sushant
on Stack Overflow
See other posts from Stack Overflow
or by sushant
Published on 2010-03-29T08:47:57Z
Indexed on
2010/03/29
8:53 UTC
Read the original article
Hit count: 236
vbscript
i am using vbscript to call a batch file. my script looks like:
dim shell
set shell=createobject("wscript.shell")
shell.run "a.bat"
set shell=nothing
my batch file is simple and looks like:
D:
cd D:\d
winzip32.exe -min -a D:\a
i want to pass a variable from a script to the batch file. lets say the destination folder.
how do i do that?
any help is very much appreciated.
© Stack Overflow or respective owner