Create an Internet Explorer Favorite VBScript

On December 26, 2008, in Programming, by Mike Hudson

Use this simple script to create an internet explorer favorite link to the Microsoft MSDN library.

Const ADMINISTRATIVE_TOOLS = 6
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(ADMINISTRATIVE_TOOLS)
Set objFolderItem = objFolder.Self 
Set objShell = WScript.CreateObject("WScript.Shell")
strDesktopFld = objFolderItem.Path
Set objURLShortcut = objShell.CreateShortcut(strDesktopFld & "MSDN.url"
objURLShortcut.TargetPath = "http://msdn.microsoft.com"
objURLShortcut.Save
Tagged with:  

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!