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

Using the WScript.Shell in an ASP page on IIS 5.1

418 views
Skip to first unread message

John

unread,
Feb 10, 2003, 10:27:09 PM2/10/03
to
I tried running a simple script on an IIS 5.1 page and it
keeps saying permission denied.
<%
Dim Shell
Set Shell = CreateObject("WScript.Shell")

Shell "cmd /c dir c:\ >> c:\inetpub\wwwroot\test.log"
Response.write "<a href='test.log'>download</a>"
%>

Now on a (new install) IIS 5.0 server it worked but on a
(new install) 5.1 server it did not work....what is the
problem and why do i keep getting 500.100 asp error,
permission denied.

Any help would be usefull

Tim Coffey

unread,
Feb 27, 2003, 3:39:35 AM2/27/03
to
run filemon and regmon from www.sysinternals.com and analyze the logs. Also ensure you don't have AV software with script blocking enabled. For
further, try here:
microsoft.public.scripting.wsh

Thank you. I hope this information is helpful.

Tim Coffey [MSFT]

This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.
--------------------
| Content-Class: urn:content-classes:message
| From: "John" <jfhar...@hotmail.com>
| Sender: "John" <jfhar...@hotmail.com>
| Subject: Using the WScript.Shell in an ASP page on IIS 5.1
| Date: Mon, 10 Feb 2003 19:27:09 -0800
| Lines: 16
| Message-ID: <0b9201c2d17d$75e11e40$3301...@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcLRfXXhAHTXjR0mSiGCk0PfBzg8Qg==
| Newsgroups: microsoft.public.inetserver.iis
| Path: cpmsftngxa08
| Xref: cpmsftngxa08 microsoft.public.inetserver.iis:244015
| NNTP-Posting-Host: TK2MSFTNGXA02 10.40.1.51
| X-Tomcat-NG: microsoft.public.inetserver.iis

0 new messages