This script uses WSH to open an executable and save the results to a textfile.
<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 >
<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,483
Downloads 1,542
CodeID
DB ID