快捷方式的路径自己看情况改一改。供参考。- @echo off
- %1 %2
- mshta vbscript:createobject("shell.application").shellexecute("""%~0""","goto :code",,"runas",1)(window.close)&&exit /b
-
- :code
- echo Set objShell = WScript.CreateObject^("WScript.Shell"^) >%temp%\temp.vbs
- echo Set lnk = objShell.CreateShortcut("C:\users\public\desktop\火狐.lnk") >>%temp%\temp.vbs
- echo lnk.Arguments = """www.baidu.com""" >>%temp%\temp.vbs
- echo lnk.Save >>%temp%\temp.vbs
-
- cscript "%temp%\temp.vbs"
- del /f /q "%temp%\temp.vbs"
复制代码
|