adding url’s to the links toolbar in IE via script

80 pts.
Tags:
Batch files
Internet Explorer
VBScript
daily I have to add a couple of url's to the links toolbar for every new computer that comes into our office. it's simple to drag and drop manually but time consuming and tedious. does anyone know how I can have this done automatically with a simple batch file or vbs script?

Answer Wiki

Thanks. We'll let you know when a new response is added.

The simplest way, imho, is to use a simple batch file like this. (Line 4 is the heart of the solution.)

Copy line 4 as many times as you have links to insert on the new pc. save the batch file to a flash stick, or any accessable location of your choice, (i.e. server to which the new pc has access) cd to that location and run it on the new pc.

1 rem batch file to update new pc with standard url info.
2 rem the next line copies the link information to favourites bar folder.
3
4 copy http://g.msn.com/1me10IE8ENGB/604 C:\Users\Administrator\Favorites\Links
5
6 rem replace the “http://g.msn.com/1me10IE8ENGB/604″ with your url link.
7 rem replace the “C:\Users\Administrator\Favorites\Links” with your taget folder

The “http://g.msn.com/1me10IE8ENGB/604″ is the url for the msn live news update and should be replaced with the url you want to insert to the favourites bar. (Right click the shortcut of the link, select properties, and the url will be available for copying to the batch file)

The “C:\Users\Administrator\Favorites\Links” is the destination folder for the link and should be changed for the folder on the new pc which you want to hold the links. This is in the documents folder on the c drive.
(This link used is the one for the favourite folder on my pc.)

Simple enough really, but need to collect all the link and folder info first. Once it is done it is a soimple case of running it.

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Toggler
    Thank you. it looks like I was on the right track but something is not right I originally had the url's saved in the same folder as my batch file and i used the following code copy *.url "c:documents and settings%username%favoriteslinks" this would copy the url to the folder but it would not populate the toolbar automatically when I use your code (i even tried copiing line 4 exactly as it's typed as a test) I keep getting an "http:" is not a recognized command error.. am i missing something? or is it something like the "choice" command and xp isn't recognizing http: ?
    80 pointsBadges:
    report
  • Chippy088
    yes, of course it will, sorry I was not thinking straight. dos is finnicky. Try this instead. Copy the links you want to add to the new pc into a folder, on floppy or flash stick but use windows explorer to do it. I called my folder urllinks, dos dosn't like filenames more than 8 characters. Then change the batch file to the following --------------------------------------------------------- rem batch file to update new pc with standard url info. rem the next line copies the link information to favourites bar folder. copy urllinks*.* C:UsersAdministratorFavoritesLinks rem copies content of folder from removable medium to folder on new pc ---------------------------------------------------------- I've just done it now to check and it works. just double check the destination folder address for accuracy. I copy it from the toolbar link when using windows explorer. Hope it works for you. Dave
    4,625 pointsBadges:
    report
  • Chippy088
    just noticed that the slashes that seperate the folders don't show in the new listing. 4 copy Favorites*.* C:UsersAdministratorFavoritesLinks Don't understand how they got lost.....
    4,625 pointsBadges:
    report
  • Toggler
    thanks got it working like a charm now
    80 pointsBadges:
    report
  • Chippy088
    Good news. Glad to have been of assistance.
    4,625 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following