Hello I'm using the following script to try and ping:
<% Response.Buffer = true %>
<%
url = "www.espn.c om"
Set objWShell = CreateObject("W Script.Shell")
Set objCmd = objWShell.Exec( "ping " & url)
strPResult = objCmd.StdOut.R eadall()
set objCmd = nothing: Set objWShell = nothing
strStatus = "offline"
if InStr(strPResul t,"TTL=")>0 then strStatus = "online"
response.write url & " is " & strStatus
response.write ".<br>" & replace(strPRes ult,vbCrLf,"<br >")
%>
I am getting the following error on the objWShell.Exec( "ping " & url):
WshShell.Exec error '80070005'
Access is denied.
/test.asp, line 6
I can understand there being permssions errors if I was moving files around
in different directories but this is a straight ping. There shouldnt be any
permissions error by my thinking. Any help would be appreciated.
Thank You
<% Response.Buffer = true %>
<%
url = "www.espn.c om"
Set objWShell = CreateObject("W Script.Shell")
Set objCmd = objWShell.Exec( "ping " & url)
strPResult = objCmd.StdOut.R eadall()
set objCmd = nothing: Set objWShell = nothing
strStatus = "offline"
if InStr(strPResul t,"TTL=")>0 then strStatus = "online"
response.write url & " is " & strStatus
response.write ".<br>" & replace(strPRes ult,vbCrLf,"<br >")
%>
I am getting the following error on the objWShell.Exec( "ping " & url):
WshShell.Exec error '80070005'
Access is denied.
/test.asp, line 6
I can understand there being permssions errors if I was moving files around
in different directories but this is a straight ping. There shouldnt be any
permissions error by my thinking. Any help would be appreciated.
Thank You
Comment