Skip to content

Instantly share code, notes, and snippets.

@gtd3
Created August 20, 2013 17:57
Show Gist options
  • Save gtd3/6284887 to your computer and use it in GitHub Desktop.
Save gtd3/6284887 to your computer and use it in GitHub Desktop.
Create a Shortcut
Set objShell = WScript.CreateObject("WScript.Shell")
'All users Desktop
allUsersDesktop = objShell.SpecialFolders("AllUsersDesktop")
'The current users Desktop
usersDesktop = objShell.SpecialFolders("Desktop")
'Where to create the new shorcut
Set objShortCut = objShell.CreateShortcut(usersDesktop & "\ALT_TCG_Camacct.url")
'What does the shortcut point to
objShortCut.TargetPath = "http://tcgalt.camacct.com"
'Create the shortcut
objShortCut.Save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment