⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 createshortcut.vbs

📁 Apress - Managing Enterprise Systems With The Windows Script Host Source Code
💻 VBS
字号:
'create a shortcut on desktop that starts Notepad with Autoexec.bat 
'as parameter
Dim objShell, strDesktop, objShortCut
'create a shortcut on desktop 
Set objShell = CreateObject("WScript.Shell")
strDesktop = objShell.SpecialFolders("Desktop") 'get the path to desktop
Set objShortCut = objShell.CreateShortCut(strDesktop & "\Show AutoExec.lnk")
objShortCut.IconLocation = "c:\winnt\system32\SHELL32.dll,9"
objShortCut.TargetPath = "notepad.exe" 'script to execute
objShortCut.Arguments = "c:\autoexec.bat" 'argument to pass
objShortCut.HotKey =  "ALT+CTRL+N" 'hotkey to start 
objShortCut.Save ' save and update shortcut

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -