Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Running .bat File to call .vbs in IIS6

18 views
Skip to first unread message

get...@yahoo.com

unread,
Jan 21, 2007, 9:58:42 PM1/21/07
to
Here we go..

I need to execute either a .bat file that calls iisweb.vbs or execute
iisweb.vbs directly from an asp page using IIS6 on 2003 r2

Here is my asp page

<%
Set oWSH= Server.CreateObject("WScript.Shell")
oWSH.Run "d:\SERVER/stopsf.bat", 1, True
set oWSH = nothing
%>

Here is my .bat file
iisweb.vbs /stop WEEBSITE /s 10.x.x.x

Basically I am trying to create an ASP page that will allow a user to
stop and start a website when they need to just by clicking a button.

Thanks!!

Getzjd

unread,
Jan 21, 2007, 10:23:10 PM1/21/07
to
The .bat file successfully stops the website when run from the server /
directory

I just cannot get it to excecute via webpage.

Getzjd

unread,
Jan 21, 2007, 11:26:58 PM1/21/07
to
I also added .bat as a registered application/batch in mime types.

Security is not a concern for this server. it is internal only

0 new messages