Advertisement
Advertisement
| 04.08.2008 at 07:04AM PDT, ID: 23304604 | Points: 250 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: |
Option Explicit
Dim objShell, objDesktop, objLink
Dim strAppPath, strWorkDir, strIconPath
' --------------------------------------------------
' Here are the variables that to change if you are making a 'real' script
strWorkDir ="C:\windows"
strAppPath = "https://www.campusship.ups.com/cship/create"
strIconPath = "%SystemRoot%\system32\ups.ico"
Set objShell = CreateObject("WScript.Shell")
objDesktop = objShell.SpecialFolders("Desktop")
Set objLink = objShell.CreateShortcut(objDesktop & "\UPS CampusShip.lnk")
' ---------------------------------------------------
' Section which adds the shortcut's key properties
objLink.Description = "UPS CampusShip"
objLink.IconLocation = strIconPath
objLink.TargetPath = strAppPath
objLink.WindowStyle = 3
objLink.WorkingDirectory = strWorkDir
objLink.Save
WScript.Quit
' End of creating a desktop shortcut
MakeDesktopShortcut "Shortcut to UPS CampusShip", "https://www.campusship.ups.com/cship/create"
|