Stop and Start Website on IIS
I am trying to stop and start the website for my web service so that after the install the correct version is running on IIS.
14 posts
It probably does but disappears before you see it. You need those quotes in case the path to cmd.exe contains spaces (it never should but you never know). Does using a full path to the VBS (in quotes) work?Originally Posted by whourdady View Posthey Afrow,
with ExecWait '"$R0" /C cscript iisweb.vbs /stop WebService'
the command window does not even open
Edit: Everything after the /C is what you'd type in command prompt itself. If it doesn't work in command prompt then don't expect it to work on the command line either.ExecWait `"$R0" /C cscript "C:\some\iisweb.vbs" /stop WebService`