中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-02 05:38
48,037 主题排行 / 350,122 发帖 / 今日 2 篇 / 48,250 会员排行
DOS批处理 & 脚本技术(批处理室) » [求助]关于快捷方式的(决非烙铁)
可打印版本  959 / 1
第1楼 mrhjzhang 发表于 2006-09-09 05:16
初级用户 发帖 39 积分 100
[求助]关于快捷方式的(决非烙铁)
我需要用bat创建快捷方式。
以前搜索论坛,有两种。
第一种用一个类似的模仿,不可取。
另一个用了“Shortcut.exe”
本来用的蛮好的,但是发现一个大问题。
Shortcut.exe反映不够
怎么说呢
任务多的时候会出现漏网的现在。
例如
rd /s /q "%allusersprofile%\「开始」菜单\程序\附件\系统工具"
rd /s /q "%userprofile%\「开始」菜单\程序\附件"
if not exist "%allusersprofile%\「开始」菜单\程序\附件" md "%allusersprofile%\「开始」菜单\程序\附件"
shortcut /f:"%allusersprofile%\「开始」菜单\程序\附件\画图.lnk" /a:c /t:"%windir%\system32\mspaint.exe" /w:"d:"
shortcut /f:"%allusersprofile%\「开始」菜单\程序\附件\计算器.lnk" /a:c /t:"%windir%\system32\calc.exe"
shortcut /f:"%allusersprofile%\「开始」菜单\程序\记事本.lnk" /a:c /t:"%windir%\system32\notepad.exe"

rd /s /q "%userprofile%\「开始」菜单\程序\游戏"
rd /s /q "%allusersprofile%\「开始」菜单\程序\游戏"
md "%allusersprofile%\「开始」菜单\程序\游戏"
shortcut /f:"%allusersprofile%\「开始」菜单\程序\游戏\接龙.lnk" /a:c /t:"%windir%\system32\freecell.exe"
shortcut /f:"%allusersprofile%\「开始」菜单\程序\游戏\扫雷.lnk" /a:c /t:"%windir%\system32\winmine.exe"
shortcut /f:"%allusersprofile%\「开始」菜单\程序\游戏\纸牌.lnk" /a:c /t:"%windir%\system32\spider.exe"
shortcut /f:"%allusersprofile%\「开始」菜单\程序\游戏\蜘蛛.lnk" /a:c /t:"%windir%\system32\sol.exe"

执行的时候有时候会漏掉?不清楚怎么回事。
不知道有没有更好的解决方案啊?
第2楼 willsort 发表于 2006-09-09 10:21
元老会员 发帖 1,512 积分 4,432
Re mrhjzhang:

请告知此问题是随机的发生,还是发生在特定的文件或者特定的时间上?另外,问题发生时是否有任何错误信息提示?Shortcut.exe的版本?是否确定问题发生时目标程序确实存在?
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023