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

来源:岁月联盟 编辑:exp 时间:2011-08-24

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()%>

本文来自: 雪域博客