Re: Computer name in ASP
From: Ray Costanzo [MVP] (my)
Date: 12/07/04
- Next message: JayB: "Using WaitFor1.0 issue"
- Previous message: Bob Barrows [MVP]: "Re: Will ASP query be slow if field names are lengthy?"
- In reply to: Shahid Juma: "Re: Computer name in ASP"
- Next in thread: Mike Brind: "Re: Computer name in ASP"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 7 Dec 2004 15:02:49 -0500
Check the NTFS permissions on %windir%\system32\ping.exe. Oddly, on my
computer (XP SP1), ping.exe has my IUSR account specifically denied. When I
run this on a W2K Server, however, all is fine.
Also check the permissions on your cmd.exe (%comspec%). Permissions are
explicitely denied on this file as well.
Ray at work
"Shahid Juma" <shahid319REMOVETHIS@hotmail.com> wrote in message
news:ebbgvbJ3EHA.2804@TK2MSFTNGP15.phx.gbl...
> Thanks,
>
> I tried it and I get an "Access Denied", are there any permissions I need
to
> set?
>
> Thanks,
> Shahid
>
> "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
> message news:%23OC8mPJ3EHA.1264@TK2MSFTNGP12.phx.gbl...
> > Here's a poor-man's method that works well in an intranet environment.
It
> > pings the remote_addr using the -a switch which asks that ping.exe
return
> > the hostname, if it can be reverse-resolved:
> >
> > <%
> > Dim sIP
> > Dim oShell, oExec, sCommand, sOutput
> > sIP = Request.ServerVariables("REMOTE_ADDR")
> > ''watch for line wrap - begin
> > sCommand = "%comspec% /c @echo off & for /f ""tokens=2"" %q in ('ping -
- Next message: JayB: "Using WaitFor1.0 issue"
- Previous message: Bob Barrows [MVP]: "Re: Will ASP query be slow if field names are lengthy?"
- In reply to: Shahid Juma: "Re: Computer name in ASP"
- Next in thread: Mike Brind: "Re: Computer name in ASP"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|