Run Application (ping.exe)

This script uses WSH to open an executable and save the results to a textfile.

CodeFunctionName
What is this?

Public

Not Tested

Original Work
<html >
<head >
</head >
<body >
<%
dim wsh
set wsh = createobject("WScript.Shell")
response.write wsh.run("cmd /c C:\WINNT\system32\ping.exe " & "www.src.org > " & server.mappath("pingresults.txt"))
set wsh = nothing
response.redirect "pingresults.txt"
% >
</body >
</html >

Views 4,479

Downloads 1,540

CodeID
DB ID

JeffSmith
26
Revisions

v1.0

Monday
April
16
2018