批处理创建桌面快捷方式的问题
的有关信息介绍如下:我以前打魔兽世界私服的时候也用到过类似的批处理给你参考一下吧修改一些就可以达到你的要求了@echo offstart 五洲魔兽.exeecho Set WshShell = WScript.CreateObject("WScript.Shell") >五洲快捷.vbsecho strDesktop = WshShell.SpecialFolders("Desktop") >>五洲快捷.vbsecho Rem >>五洲快捷.vbsecho set oShellLink = WshShell.CreateShortcut(strDesktop ^& "\五洲魔兽.lnk") >>五洲快捷.vbsecho oShellLink.TargetPath = "%cd%\五洲魔兽.exe" >>五洲快捷.vbsecho oShellLink.WindowStyle = 1 >>五洲快捷.vbsecho oShellLink.Hotkey = "" >>五洲快捷.vbsecho oShellLink.IconLocation = "%cd%\wow.exe, 0" >>五洲快捷.vbsecho oShellLink.Description = "" >>五洲快捷.vbsecho oShellLink.WorkingDirectory = "%cd%" >>五洲快捷.vbsecho oShellLink.Save >>五洲快捷.vbsstart 五洲快捷.vbs@ping -n 2 127.1 >nul 2>nuldel 五洲快捷.vbs /f /sexit这个就是先运行游戏,然后在桌面上生成一个快捷方式,用到的也是VBS