i want to add url link to internet explorer by using batch commands in a batch file.For example, i want to add follwoing link
http://itknowledgeexchange.techtarget.com/itanswers/
using batch commands.
Thanx
Software/Hardware used:
ASKED:
April 29, 2009 6:22 AM
UPDATED:
October 5, 2009 5:41 PM
Notice that the above script will create a shortcut in the desktop, not a favorite in Internet Explorer.
To create the shortcut in the Favorites folder just replace this line:
strDesktopPath = WshShell.SpecialFolders(“Desktop”)
with this one:
strDesktopPath = WshShell.SpecialFolders(“Favorites“)
You’re right, that was copy&paste too quick
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
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…
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