Run Application (ping.exe)

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


Public

Tested

My Own Work




<%
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"
%>


Views 4295 Downloads 1445

Classic ASP Components
JeffSmith
26
Revisions

v1.0