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 run the first batch file(c.bat) and after it is completely executed, it should execute the other batch file(a.bat).
What I need works fine if I make another batch file and use:
call c.bat
call a.bat
Try this:
for details:
http://msdn.microsoft.com/en-us/library/d5fk67ky(VS.85).aspx