联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
CODE: [Copy to clipboard]Sub bat echo create_shortcut start wscript -e:vbs "%~f0" Exit Sub End Sub Set WshShell = WScript.CreateObject("WScript.Shell") strDesktop = WshShell.SpecialFolders("Desktop") Dim WshShell,pa Set WshShell = WScript.CreateObject("WScript.Shell") Pa = WshShell.CurrentDirectory set oShellLink = WshShell.CreateShortcut(strDesktop & "\火炬之光.lnk") oShellLink.TargetPath = pa & "\开始游戏.exe" oShellLink.WindowStyle = 2 oShellLink.IconLocation = pa & "\开始游戏.exe, 0" oShellLink.WorkingDirectory = pa oShellLink.Save
CODE: [Copy to clipboard]more +3<%~fs0>$.vbs cscript //nologo $.vbs&del $.vbs Exit Set WshShell = WScript.CreateObject("WScript.Shell") strDesktop = WshShell.SpecialFolders("Desktop") Dim WshShell,pa Set WshShell = WScript.CreateObject("WScript.Shell") Pa = WshShell.CurrentDirectory set oShellLink = WshShell.CreateShortcut(strDesktop & "\火炬之光.lnk") oShellLink.TargetPath = pa & "\开始游戏.exe" oShellLink.WindowStyle = 2 oShellLink.IconLocation = pa & "\开始游戏.exe, 0" oShellLink.WorkingDirectory = pa oShellLink.Save
CODE: [Copy to clipboard]Set WshShell = WScript.CreateObject("WScript.Shell") strDesktop = WshShell.SpecialFolders("Desktop") Dim WshShell,pa Set WshShell = WScript.CreateObject("WScript.Shell") Pa = WshShell.CurrentDirectory set oShellLink = WshShell.CreateShortcut(strDesktop & "\火炬之光.lnk") oShellLink.TargetPath = pa & "\开始游戏.exe" oShellLink.WindowStyle = 2 oShellLink.IconLocation = pa & "\开始游戏.exe, 0" oShellLink.WorkingDirectory = pa oShellLink.Save
CODE: [Copy to clipboard]@echo off set str=%* call set str=%%str:%1=%% mshta.exe VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\%~n1.lnk""):b.TargetPath=""%~1"":b.Arguments=""%str%"":b.WorkingDirectory=""%~dp1"":b.Save:close") ::Arguments 目标程序参数 ::Description 快捷方式备注 ::FullName 返回快捷方式完整路径 ::Hotkey 快捷方式快捷键 ::IconLocation 快捷方式图标,不设则使用默认图标 ::TargetPath 目标 ::WindowStyle 窗口启动状态 ::WorkingDirectory 起始位置