'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