executing batch files sequentially
Posted
by sushant
on Stack Overflow
See other posts from Stack Overflow
or by sushant
Published on 2010-04-07T06:18:10Z
Indexed on
2010/04/07
6:23 UTC
Read the original article
Hit count: 290
vbscript
dim shell,x,y
x="D:\d"
y="c.bat " & x
set shell=createobject("wscript.shell")
shell.run y
shell.run "a.bat"
set shell=nothing
when i run this script, it runs both batch files simultaneously. what i need is that it should run the first batch file(c.bat) and after it is completely executed, it should execute other(a.bat)
what i need works if i make another batch file and use:
call c.bat
call a.bat
© Stack Overflow or respective owner