bat如何写快捷方式lnk文件

2024-11-16 11:47:02
推荐回答(2个)
回答(1):

' 2>nul&@wscript -e:vbs "%~f0"&goto :eof
PH = "E:\Program Files\Tencent\qq"
set Ink = WScript.CreateObject("WScript.Shell").CreateShortcut(WScript.CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\qq.lnk")
Ink.TargetPath = PH & "\qq.exe"
Ink.IconLocation = PH & "\qq.exe"
Ink.Description = "打开QQ"
Ink.WorkingDirectory = ph
Ink.Save

改成你的目录和文件
"E:\Program Files\Tencent\qq"
"\qq.exe"
"打开QQ"

回答(2):

你想写什么命令?