Re: Running a VBS file from IIS/ASP
From: Paul Lynch (paul.lynch_at_nospam.com)
Date: 04/19/04
- Next message: Robert Abela: "several https sites on IIS"
- Previous message: Hermod Svingerud: "IISstate. Need help with log from IISstate!!"
- In reply to: Colin Steadman: "Running a VBS file from IIS/ASP"
- Next in thread: Colin Steadman: "Re: Running a VBS file from IIS/ASP"
- Reply: Colin Steadman: "Re: Running a VBS file from IIS/ASP"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Apr 2004 11:54:03 +0100
On 19 Apr 2004 02:21:08 -0700, google@colinsteadman.com (Colin
Steadman) wrote:
>I'm trying to setup an IIS/ASP webpage to run a .VBS script file. The
>VBS file is a scheduled task and the Intranet page will allow users to
>run it at any time.
>
>To do this I'm using the following code in my ASP page:
>
>Set oShell = Server.CreateObject ("WScript.shell")
> oShell.run Server.Mappath("test.vbs")
>Set oShell = Nothing
>
>
>The TEST.VBS which runs on the web server contains the following
>commands:
>
>On Error Resume Next
>Set oShell = CreateObject ("WScript.shell")
> oShell.run "sqlplus myUsername/myPassword@database @testsql.sql"
> oShell.run "net send myUsername Task Submitted"
> oShell.LogEvent 0, "TEST.VBS submitted a task."
>Set oShell = Nothing
>
>
>The problem I have is that the sqlplus line does not work. I get the
>NET SEND message ok, and I even get the event in Event Log, but the
>sqlplus command appears to hang and leave a sqlplus.exe process
>running at 0 CPU% as IWAM_SERVERNAME in the Task Manager until I kill
>it.
>
>If I run the VBS file manually on the server as myself it runs fine,
>so I assume its a permissions problem. I have therefore given the
>IUSR_SERVERNAME and IWAM_SERVERNAME users full control of the folder.
>And even added them to the Administrators group, but this has no
>effect.
>
>Can anyone suggest a cause to this not working as I'm all out of
>idea's.
>
>TIA,
>
>Colin
Colin,
I think you need to give your IWAM_ and IUSR_ accounts permissions on
the Oracle directories. See this KB article (point 10 ) :
HOWTO: Troubleshoot an ASP-to-Oracle Connectivity Problem
http://support.microsoft.com/?id=255084
Regards,
Paul Lynch
MCSE
- Next message: Robert Abela: "several https sites on IIS"
- Previous message: Hermod Svingerud: "IISstate. Need help with log from IISstate!!"
- In reply to: Colin Steadman: "Running a VBS file from IIS/ASP"
- Next in thread: Colin Steadman: "Re: Running a VBS file from IIS/ASP"
- Reply: Colin Steadman: "Re: Running a VBS file from IIS/ASP"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|