在启动组建立程式快捷方式

来源:互联网 发布:淘宝上的纳米矿晶真吗 编辑:程序博客网 时间:2024/05/16 15:09

 

Set WshShell = WScript.CreateObject("WScript.Shell")

StrStartup = WshShell.SpecialFolders("AllUsersStartup")

set oShellLink = WshShell.CreateShortcut(StrStartup & "/housekeep.lnk")

oShellLink.TargetPath = "D:/settle/housekeep.exe"

oShellLink.Description = "housekeep"

oShellLink.WorkingDirectory = StrStartup

oShellLink.Save

set oShellLink = nothing

set WshShell = nothing

WScript.quit

原创粉丝点击