Looking for some help with this error from the prograqmming deities on this site.
WshShell.Exec
Error '80070002'
The system cannnot find the file specified
Line, 5
I am trying to include this ASP page below to preform a ping on IP addresses and I keep getting the error above.
What's crazy is I have a win2000 server that this code works fine on. However I am now trying to run this same code on a win2003 server and I keep getting this error.
My eyes are starting to glass over from reading junk off the MSDN web site about WMI and IIS. Can someone please point me in the right direction before I pass out.. LOL
<%
function PingStats(IPAddress)
url = IPAddress
Set objWShell = CreateObject("WScript.Shell")
Set objCmd = objWShell.Exec("ping" & url)
strPResult = objCmd.StdOut.Readall()
set objCmd = nothing: Set objWShell = nothing
strStatus = "offline"
if InStr(strPResult,"TTL=")>0 then strStatus = "online"
Pingstats = strStatus & "," & strPResult
'response.write url & " is " & strStatus
'response.write ".<br>" & replace(strPResult,vbCrLf,"<br>")
End function
%>
WshShell.Exec
Error '80070002'
The system cannnot find the file specified
Line, 5
I am trying to include this ASP page below to preform a ping on IP addresses and I keep getting the error above.
What's crazy is I have a win2000 server that this code works fine on. However I am now trying to run this same code on a win2003 server and I keep getting this error.
My eyes are starting to glass over from reading junk off the MSDN web site about WMI and IIS. Can someone please point me in the right direction before I pass out.. LOL
<%
function PingStats(IPAddress)
url = IPAddress
Set objWShell = CreateObject("WScript.Shell")
Set objCmd = objWShell.Exec("ping" & url)
strPResult = objCmd.StdOut.Readall()
set objCmd = nothing: Set objWShell = nothing
strStatus = "offline"
if InStr(strPResult,"TTL=")>0 then strStatus = "online"
Pingstats = strStatus & "," & strPResult
'response.write url & " is " & strStatus
'response.write ".<br>" & replace(strPResult,vbCrLf,"<br>")
End function
%>