vbs脚本创建windows快捷方式

'Create a WshShell Object
Set WshShell = Wscript.CreateObject("Wscript.Shell")

'currentpath
path=createobject("Scripting.FileSystemObject").GetFolder(".").Path

'Set the Target Path for the shortcut
oShellLink.TargetPath = path & "\php-win.exe"

'Set the additional parameters for the shortcut
oShellLink.Arguments = "bin\main.php"

'1:default 3:Maximize 7:Minimize
oShellLink.WindowStyle = 3

'hotKey
oShellLink.Hotkey = "Ctrl+Alt+e"

'desc
oShellLink.Description = "this is a php grograme"

'workingDirectory
oShellLink.WorkingDirectory = path

'icon
oShellLink.IconLocation = path & "\zs.ico"

'Save the shortcut
oShellLink.Save

'Clean up the WshShortcut Object
Set oShellLink = Nothing

 

发表评论

电子邮件地址不会被公开。

ERROR: si-captcha.php plugin: GD image support not detected in PHP!

Contact your web host and ask them to enable GD image support for PHP.

ERROR: si-captcha.php plugin: imagepng function not detected in PHP!

Contact your web host and ask them to enable imagepng for PHP.