(view source code of cv2urlnt.bat as plain text)
@ECHO OFF
:: CNVRTURLNT.BAT, Version 3.00 for Windows NT:: Converts Microsoft Internet Explorer Favorites to Netscape Bookmarks file:: Written by Rob van der Woude:: http://www.robvanderwoude.com:: Save initial environmentSETLOCAL
:: Save initial directoryFOR /F "tokens=*" %%A IN ('CD') DO SET STARTDIR=%%A
:: Go to most recent "Favorites" directory if necessary.:: If you start this batch file in a Favorites directory, this step is skippedIF EXIST *.URL GOTO Header
CD /D %USERPROFILE%\FAVORITES
:Header:: If BOOKMARK.HTM already exists we'll just add the "favorites":: to the existing file; but first we'll remove the closing tagsIF EXIST BOOKMARK.HTM (
TYPE BOOKMARK.HTM | FIND /V /I "</DL>" > BOOKMARK.TMP
IF EXIST BOOKMARK.TMP (
COPY BOOKMARK.HTM BOOKMARK.OLD
DEL BOOKMARK.HTM
REN BOOKMARK.TMP BOOKMARK.HTM
)GOTO Favorites
):: Create the Bookmark file's header, using the PROMPT:: and ECHO ON technique to create the HTML tags> BOOKMARK.HTM ECHO ^<!DOCTYPE NETSCAPE-Bookmark-file-1^>
>> BOOKMARK.HTM ECHO ^<!-- This is an automatically generated file.
>> BOOKMARK.HTM ECHO It will be read and overwritten.
>> BOOKMARK.HTM ECHO Do not edit! --^>
>> BOOKMARK.HTM ECHO ^<TITLE^>'s Bookmarks^</TITLE^>
>> BOOKMARK.HTM ECHO ^<H1^>'s Bookmarks^</H1^>
>> BOOKMARK.HTM ECHO.
>> BOOKMARK.HTM ECHO ^<DL^>^<P^>
:FavoritesFOR %%A IN (*.URL) DO FOR /F "tokens=1* delims==" %%a IN ('TYPE "%%A" ^| FIND /V /I "BASEURL=" ^| FIND /I "URL="') DO (>> BOOKMARK.HTM ECHO ^<DT^>^<A HREF="%%b"^>%%~nA^</A^>)
:: Footer>> BOOKMARK.HTM ECHO ^</DL^>^<p^>
:: Return to initial directoryCD /D %STARTDIR%
:: Restore initial environmentENDLOCAL
page last modified: 2025-10-11; loaded in 0.0081 seconds