我也想在页面中做一个链接,点击这个链接后就能打开相关的EXE文件,请DX们赐教,谢谢~!

xht_123qwe 2004-01-10 10:15:19
我也想在页面中做一个链接,点击这个链接后就能打开相关的EXE文件,请DX们赐教,谢谢~!
人笨,最好能具体一点(举个例子)!!
...全文
42 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
xht_123qwe 2004-01-10
  • 打赏
  • 举报
回复
错误类型:
(0x80070002)
/sendmail/temp.asp, 第 7 行

<%
dim wshshell,retcode
set wshshell=server.CreateObject("WScript.Shell")
cmd=server.mappath("rightsystem.exe")
response.write cmd

retcode=wshshell.run(cmd,1,true) '这行报错

if retcode=0 then
response.write "程序没有运行!"
else
response.write "程序有运行!"
end if

set WShShell=nothing

%>
我的可执行文件跟temp.asp文件放在同一目录下
luluso 2004-01-10
  • 打赏
  • 举报
回复
<%
dim wshshell,retcode
set wshshell=server.CreateObject("WScript.Shell")
cmd=server.mappath("\ckxt\temp\mett.exe")
response.write cmd

retcode=wshshell.run(cmd,1,true)

if retcode=0 then
response.write "程序没有运行!"
else
response.write "程序有运行!"
end if

set WShShell=nothing

%>
hj_911 2004-01-10
  • 打赏
  • 举报
回复
不是吧,做这样的dd可不好,别人的安全都没啦!

28,407

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧