RE: Running vbs from WSH in ASP page

From: Tom Lavedas (tlavedas_at_hotmail.remove.com)
Date: 10/28/04


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
>
>
>



Relevant Pages

  • Re: Running vbs from WSH in ASP page
    ... > When I run the vbs from the command line all is well. ... > When I fire it from an ASP page ... I have a feeling it is> permissions based. ... > Set oShell = Nothing ...
    (microsoft.public.scripting.wsh)
  • Re: FolderExists and UNC path
    ... Traditionally ASP uses the IUSR_account so try mapping a drive using that username and password or assigning permissions to that account or changing to a different one if you don't know or can't change the password. ... When I ran this command from the server logged with my user it ...
    (microsoft.public.scripting.vbscript)
  • Re: EFS and IIS
    ... > NTFS permissions should be as secure as EFS for this purpose, ... > Neither NTFS nor EFS necessarily protect against remote attacks such as ... > permissions, if System is required to have permissions to those files. ... > as showcode.asp, save your include files as .ASP instead of .INC, etc. ...
    (microsoft.public.inetserver.iis.security)
  • AW: ASP Dot Net Security Guidelines
    ... Betreff: Re: ASP Dot Net Security Guidelines ... Basically you'll treat an asp.net application server as you would an asp ... > to set the permissions as it brings up access denied errors on the ...
    (Focus-Microsoft)
  • Re: Access97 DB locks up the asp code at times
    ... of these users created the query off the asp and that's the problem. ... but I could never see the employee.ldb on the folder ... I'll chat with our IT group about setting the proper permissions. ... All database users, including the IUSR_MachineName account, need ...
    (microsoft.public.inetserver.asp.general)