problem launching bat file from vbs script.
Posted on 2007-03-29
I'm trying to fire a bat file from within a vbs file - I see that cmd.exe launches in task manager, but it does not execute. I'm not sure how to debug this either.
The bat file runs flawlessly on its own.
Here's the vbs:
websites = "dmooreartist.com artist1111.com"
websitearray = split(websites," ")
For i = 0 to ubound(websitearray)
SUB changethedns ( domain )
set wshell = createobject("wscript.shell")
wshell.run "%comspec% /c C:\Documents and Settings\Administrator\Desktop\myIISScripts\changedns.bat " & domain, 0, True
set wshell = nothing