Board logo

标题: [求助]关于快捷方式的(决非烙铁) [打印本页]

作者: mrhjzhang     时间: 2006-9-9 05:16    标题: [求助]关于快捷方式的(决非烙铁)

我需要用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"

执行的时候有时候会漏掉?不清楚怎么回事。
不知道有没有更好的解决方案啊?
作者: willsort     时间: 2006-9-9 10:21
Re mrhjzhang:

      请告知此问题是随机的发生,还是发生在特定的文件或者特定的时间上?另外,问题发生时是否有任何错误信息提示?Shortcut.exe的版本?是否确定问题发生时目标程序确实存在?