请教,如何用asp调用启动服务器上的Exe程序。

我记得好象可以用wscript的。不过没用过,大虾们给抛两个例子上来,谢了先!
---------------------------------------------------------------

超连接过去就可以,不过必须在虚拟目录设置好
---------------------------------------------------------------

Set oWsh = Server.CreateObject("WScript.Shell")
i=oWsh.run("cmd /c ""Cscript.exe d:\ap_wo002.vbs " & Session("UID")& " >d:\ap_wo002.log""",0,false)

Published At
Categories with Web编程
Tagged with
comments powered by Disqus