Re: Running vbs from WSH in ASP page

From: Jason Brown [MSFT] (i-brjaso_at_online.microsoft.com)
Date: 10/28/04


Date: Thu, 28 Oct 2004 17:41:45 +1000

You should probably be looking at MSMQ (Message Queueing) for this

-- 
Jason Brown
Microsoft GTSC, IIS
This posting is provided "AS IS" with no warranties, and confers no
rights.
"Peter Shmeigel" <pshmigel@nolanitu.com.au> wrote in message 
news:uTN9Q5LvEHA.2016@TK2MSFTNGP15.phx.gbl...
> 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
    ... I see a whole bunch of problems with the code sample you show (using wscript ... mapping, permissions, etc.) and I'm not the least bit proficient in ASP. ... > When I run the vbs from the command line all is well. ...
    (microsoft.public.scripting.wsh)
  • Running vbs from WSH in ASP page
    ... We host a legitimate mailing list server. ... When I fire it from an ASP page ... Set oShell = CreateObject ... Are there any special permissions to set? ...
    (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)
  • Procedures dont have access to public Variables in ASP
    ... The problem is when running in ASP ... my .vbs file which is on the server using wscript or cscript all is fine. ... The only difference is the QuitOnError() procedure. ... sub SendEmail ...
    (microsoft.public.scripting.vbscript)
  • 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)