怎么用批处理给一个文件创建快捷方式
2个回答
展开全部
Rem 把要创建快捷方式的文件拖到此批处理文件上
'&@cls&start /min cscript //nologo //e:vbs "%~f0" "%~dpn1.lnk" "%~f1" "%~dp1"&goto :eof
set WshShell = WScript.CreateObject("WScript.Shell")
set oShellLink = WshShell.CreateShortcut(WScript.Arguments(0))
oShellLink.TargetPath = WScript.Arguments(1)
'oShellLink.WindowStyle = 1
'oShellLink.Hotkey = "CTRL+SHIFT+F"
'oShellLink.IconLocation = "notepad.exe, 0"
'oShellLink.Description = "Shortcut Script"
oShellLink.WorkingDirectory = WScript.Arguments(2)
oShellLink.Save
'&@cls&start /min cscript //nologo //e:vbs "%~f0" "%~dpn1.lnk" "%~f1" "%~dp1"&goto :eof
set WshShell = WScript.CreateObject("WScript.Shell")
set oShellLink = WshShell.CreateShortcut(WScript.Arguments(0))
oShellLink.TargetPath = WScript.Arguments(1)
'oShellLink.WindowStyle = 1
'oShellLink.Hotkey = "CTRL+SHIFT+F"
'oShellLink.IconLocation = "notepad.exe, 0"
'oShellLink.Description = "Shortcut Script"
oShellLink.WorkingDirectory = WScript.Arguments(2)
oShellLink.Save
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询