asp中怎样执行 ipconfig /all 这个命令
Set net = Server.CreateObject( "wscript.network ")
Set sh = Server.CreateObject( "wscript.shell ")
接下来怎样执行 ipconfig /all 这个命令?
------解决方案--------------------晕,代码如下,我本机测试通过
function a()
Set sh = Server.CreateObject( "wscript.shell ")
cmdStr = "cmd.exe /c ipconfig /all "
str = sh.Exec(cmdStr).StdOut.ReadAll()
Response.write str
set sh=nothing
end function