Created
August 20, 2013 17:57
-
-
Save gtd3/6284887 to your computer and use it in GitHub Desktop.
Create a Shortcut
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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