![]() |
中国DOS联盟-- 联合DOS 推动DOS 发展DOS --联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum |
| 游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟 |
|
中国DOS联盟论坛 现在时间是 2026-08-06 18:48 |
共 48,039 主题排行 / 350,124 发帖 / 今日 0 篇 / 48,252 会员排行 |
| DOS批处理 & 脚本技术(批处理室) » 运行VBS出错 |
| 可打印版本 597 / 0 |
| 第1楼 monday | 发表于 2007-12-06 14:21 |
| 新手上路 发帖 1 积分 4 | |
|
运行VBS出错 on error resume next
dim fu,gui,cgo,mdir,game,mgame set fu = wscript.createObject("wscript.shell") Set gui = WScript.CreateObject("Scripting.FileSystemObject") cgo = "1.bat" mdir = wscript.arguments.item(0) game = wscript.arguments.item(1) mgame = "cmd /c cd /d "&mdir&" &&start "&game If gui.FileExists(mdir & game) Then fu.run mgame,0,0 else fu.run cgo WScript.Sleep(9000) fu.run mgame,0,0 end if 运行这段代码 可是直接就出来一个 cmd 窗口 上面是 我的程序所在盘符 F:\ 大家帮我看看应该是哪的原因啊? |
|
|
[ 联系联盟系统管理团队 -
中国DOS联盟 -
标准版 ] Sponsored by ifanr Inc | © 2001–2023 |