Carlosdl
29855 pts. | Apr 29 2009 1:36PM GMT
Notice that the above script will create a shortcut in the desktop, not a favorite in Internet Explorer.
Carlosdl
29855 pts. | Apr 29 2009 1:55PM GMT
To create the shortcut in the Favorites folder just replace this line:
strDesktopPath = WshShell.SpecialFolders(”Desktop”)
with this one:
strDesktopPath = WshShell.SpecialFolders(”Favorites“)
Toggler
80 pts. | May 26 2009 2:35PM GMT
I am actually attempting to do the same thing only I want mine to be added automatically to the links toolbar in IE..
can it be done at all via either the registry or batch file?
thanks
Dan
Sliverme
10 pts. | Oct 1 2009 1:46PM GMT
Thanks Carlosdl, works great. Is there a way to edit it so that I could run it as administrator and have it affect all users desktops? Thanks again…
Carlosdl
29855 pts. | Oct 2 2009 2:14PM GMT
I thought we could use the “AllUsersFavorites” special folder, but the SpecialFoders function does not find such a folder.
So, we can use the “AllUsersDesktop” special folder, and then replace “Desktop” with “Favorites” in the returned path.
I have not tested it, but I think this should work:
Set WshShell = CreateObject(”WScript.Shell”) strPath = replace(WshShell.SpecialFolders(”AllUsersDesktop”),”Desktop”,”Favorites”) Set objShortcutUrl = WshShell.CreateShortcut(strPath & “IT Answers.url”) objShortcutUrl.TargetPath = “http://itknowledgeexchange.techtarget.com/itanswers/” objShortcutUrl.Save






