批处理怎么随意建立一个文件的快捷方式在桌面?
1个回答
展开全部
@echo off echo Rem >%temp%\123.vbs echo set WshShell = WScript.CreateObject("WScript.Shell") >>%temp%\123.vbs echo strDesktop = WshShell.SpecialFolders("Desktop") >>%temp%\123.vbs echo Rem >>%temp%\123.vbs echo set oShellLink = WshShell.CreateShortcut("%userprofile%\桌面\新建图标.lnk") >>%temp%\123.vbs echo Rem oShellLink.TargetPath = WScript.ScriptFullName >>%temp%\123.vbs echo oShellLink.TargetPath = "D:\相应的执行程序.exe" >>%temp%\123.vbs echo oShellLink.WindowStyle = 1 >>%temp%\123.vbs echo oShellLink.Hotkey = "" >>%temp%\123.vbs echo oShellLink.IconLocation = "D:\相应的执行程序.exe, 0" >>%temp%\123.vbs echo oShellLink.Description = "说明。。。。。" >>%temp%\123.vbs echo oShellLink.WorkingDirectory = "D:\" >>%temp%\123.vbs echo oShellLink.Save >>%temp%\123.vbs start %temp%\123.vbs 请修改自己相应的路径
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询