Here is what I did:
I exported CHROME BOOKMARKS (also did this to my GOOGLE BOOKMARKS) as a single .html file. This can be done in Chrome through the bookmark manager's ORGANIZE | EXPORT dropdown.
I then opened my USER\Favorites folder. I don't use IE so it had all the default links IE comes with. I created a new folder called CHROME BOOKMARKS.
I opened IE and clicked the star shaped FAVORITES button. I pulled the ADD TO FAVORITES menu down and selected IMPORT AND EXPORT.
This launched an import wizard. I told it I was importing Favorites, and directed it to the .html file Chrome exported (#1), and told it to import to the CHROME BOOKMARKS folder I created (#2).
This created a .url file for each bookmark I had in Chrome which included both the BOOKMARKS BAR and the OTHER BOOKMARKS.
I tested and confirmed that a .URL file is launched in Chrome by double clicking or by drag and drop.
You can import the .URL files into Chrome, too. Leave the CHROME BOOKMARKS folder in your User\Favorites
folder and then in Chrome click OTHER BOOKMARKS | IMPORTED FROM IE. I think you can also do this in Chrome's Settings | USERS | Import Bookmarks and Settings, but I did not try this.
4Open the HTML file and drag&drop every link to the desktop or a folder? Works in Firefox at least. – Daniel Beck – 2012-08-20T09:27:51.590
1Do you want real Windows shortcuts (
.lnk
) or just.url
files (Internet Explorer's bookmarks format)? – Daniel Beck – 2012-08-20T09:29:30.2001The Internet Shortcut extension (
.url
) is what I want. The drag&drop method works, but it would take me a while to do it manually. How can I speed things up? Also, I couldn't find out why I can't add description to the shortcuts after I've dropped them in the folder. – amiregelz – 2012-08-20T10:04:47.207Given that
.url
files are simple text files, it should be easy to write a script that converts links in an HTML file to.url
files. Do you have Cygwin? – Daniel Beck – 2012-08-20T10:18:08.140Not at the moment, but I can install it. – amiregelz – 2012-08-20T10:30:27.617
The following works like a charm on OS X based on a Safari bookmarks file, I don't have the batch scripting skills or a Cygwin ready to create a proper Windows solution.
#/bin/bash BASEDIR='~/Desktop/bookmarks' ; IFS=$'\n' ; for line in $( grep -oi '<a .*</a>' "$1" ) ; do url=$( echo "$line" | sed 's|.*HREF="\(.*\)".*|\1|g' ) ; name=$( echo "$line" | sed 's|.*>\(.*\)</A>.*|\1|g;s|/||g' ) ; echo '[InternetShortcut]' > "$BASEDIR/$name.url" ; echo "URL=$url" >> "$BASEDIR/$name.url" ; done
Reads the HTML file passed as first argument; writes shortcuts to~/Desktop/bookmarks
. – Daniel Beck – 2012-08-20T10:55:17.347I'm not sure how to use Cygwin to run this script on Windows. – amiregelz – 2012-08-20T15:51:59.327
Take the entire thing, insert a linebreak after
#!/bin/bash
, change the value assigned toBASEDIR
to an empty folder you prepared, and save ashtmltourl.sh
. Open the Cygwin shell, runchmod +x /path/to/htmltourl.sh
, then/path/to/htmltourl.sh /cygdrive/c/path/to/bookmarks.html
. If you could provide a Chrome bookmark HTML file, I could can adapt the script if necessary. – Daniel Beck – 2012-08-20T16:19:08.040