ASP执行Cmd命令/程序,并显示读取/返回回显:

ASP执行Cmd,ASP执行Cmd命令,ASP执行Cmd程序,ASP执行Cmd并显示读取,ASP执行Cmd返回回显。

<%
Response.write CreateObject("wscript.shell").exec("cmd.exe /c ipconfig").StdOut.ReadAll
%>

<%=CreateObject("wscript.shell").exec("cmd.exe /c ipconfig").StdOut.ReadAll()%>