Larry
Tue Sep 16 08:34:33 CDT 2003
Thanks, Bob, but I am not running Norton, etc. on this server so it can't be
the "culprit".
Larry
"Bob Barrows" <reb_01501@yahoo.com> wrote in message
news:eRSIDfEfDHA.2248@TK2MSFTNGP09.phx.gbl...
> Could this be the problem? Given that you've already checked Permissions,
> that is:
>
http://www.aspfaq.com/show.asp?id=2180
>
> Bob Barrows
>
> Larry Woods wrote:
> > I'm talking about a .vbs WScript.
> >
> > Here is the ASP Page ( in wwwroot ):
> >
> > <% dim s
> >
> > s=Server.MapPath("listprocesses.vbs")
> > CommandLine s,""
> >
> > Sub CommandLine(progName,strVariable)
> > 'Create Shell Object
> > Set objScriptShell = Server.CreateObject("Wscript.Shell")
> > 'now run your program and dump the results into a .txt file
> > ss= "cscript " & progName & " " & strVariable _
> > & "> " & Server.MapPath("shellLog") & "\log" & ".txt"
> >
> > objScriptShell.Run (ss, 0, True)
> > End Sub
> >
> > And here is the vbs script that I am trying to execute ( in wwwroot ):
> >
> > '
> > ' listprocesses.vbs
> > '
> > set objService = getobject("winmgmts:")
> > dim s
> > for each Process in objService.InstancesOf("Win32_process")
> > if lcase(process.name)="dllhost.exe" then
> > s=s & Process.Name & vbTab & Process.processid & vbCrLf
> > end if
> > Next
> > WScript.echo s
> >
> > TIA,
> >
> > Larry
> >
> >
> > "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
> > news:%23Aau1HBfDHA.4024@TK2MSFTNGP11.phx.gbl...
> >> Do you have On Error Resume Next in your ASP page?
> >>
> >> Also, when you talk about a script - I assume you don't mean a .bat
> >> batch file, but rather a .vbs WScript file (or similar)?
> >>
> >> Cheers
> >> Ken
> >>
> >> "Larry Woods" <larry@lwoods.com> wrote in message
> >> news:ehW9PFBfDHA.3076@tk2msftngp13.phx.gbl...
> >>> I get no indication that the script worked. The script is supposed
> >>> to create a small text file. The file ain't there! When I execute
> >>> the script from the command line it works fine.
> >>>
> >>>
> >>> "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message
> >>> news:O1n2V1AfDHA.1712@TK2MSFTNGP11.phx.gbl...
> >>>> There are lots of sample scripts on the web. When you say "it
> >>>> doesn't work" - what do you mean? Do you get an error? (the number
> >>>> 1 problem I see is permissions problems)
> >>>>
> >>>> Cheers
> >>>> Ken
>
>
>