📌  相关文章
📜  vb6 在启动文件夹中创建快捷方式 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:07.858000             🧑  作者: Mango

代码示例1
'Create a WshShell ObjectSet wshshell = CreateObject("Wscript.Shell") ' select shortcut name and folderSet oshelllink = wshshell.CreateShortcut(wshshell.specialfolders("allusersstartup") & "\aaa.lnk") 'Set the Target Path for the shortcutoshelllink.TargetPath = "notepad.exe" 'Set the additional parameters for the shortcutoshelllink.Arguments = "c:\windows\desktop\aaa.txt" 'Save the shortcutoshelllink.Save 'Clean up the WshShortcut ObjectSet oshelllink = NothingSet wshshell = Nothing