RE: Running vbs from WSH in ASP page
From: Tom Lavedas (tlavedas_at_hotmail.remove.com)
Date: 10/28/04
- Next message: David Wang [Msft]: "Re: PKZIPC, ASP and WSH"
- Previous message: MikeVa [MSFT]: "Re: Help!"
- In reply to: Peter Shmeigel: "Running vbs from WSH in ASP page"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 28 Oct 2004 12:57:10 -0700
I see a whole bunch of problems with the code sample you show (using wscript
instead of cscript, client side code as opposed to server side, address
mapping, permissions, etc.) and I'm not the least bit proficient in ASP. My
suggestion is to try here: http://www.aspfaq.com/show.asp?id=2059 and maybe
search that site if that particular article doesn't lead you to the answer.
Tom Lavedas
===========
"Peter Shmeigel" wrote:
> We host a legitimate mailing list server. W2K server SP4/IIS5
> Because of the 10,000 addresses, when sending from CDO in an ASP it takes a
> long time.
> To avoid timeout issues etc I wanted to use a vbs fired from wsh.
> When I run the vbs from the command line (wscript myfunc.vbs) all is well.
> When I fire it from an ASP page (so users can launch the mailing procedure)
> it fails. I can't pick up the error message. I have a feeling it is
> permissions based.
>
> code from asp page
>
> Dim oShell
> Set oShell = CreateObject ("WSCript.shell")
> strWshCommand = "wscript c:\inetpub\wwwroot\mailman\mailsendscript.vbs"
> mess=oShell.Run(strWshCommand)
> Set oShell = Nothing
> Response.Write ("mess:") & mess
>
> I have tried moving the vbs file, assigning way too much permission for the
> file - no go.
>
>
> What should the IIS settings be for application protection?
> Are there any special permissions to set?
> I have seen tons of problems like this on the web all without a proper
> solution.
> Any gurus wanna help?
>
>
> Deflated - Yusuf Muraben
>
>
>
- Next message: David Wang [Msft]: "Re: PKZIPC, ASP and WSH"
- Previous message: MikeVa [MSFT]: "Re: Help!"
- In reply to: Peter Shmeigel: "Running vbs from WSH in ASP page"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|