@ECHO OFF REM Go to most recent "Favorites" directory if necessary. REM If you start this batch file in a "Favorites" directory REM this step is skipped. IF EXIST *.URL GOTO Header C: CD %windir%\PROFILES\%USERNAME%\FAVORITES :Header REM If BOOKMARK.HTM already exists we'll just add the "favorites" REM to the existing file; but first we'll remove the closing tags IF EXIST BOOKMARK.HTM TYPE BOOKMARK.HTM | FIND /V /I "/DL" > BOOKMARK.HTM IF EXIST BOOKMARK.HTM GOTO Favorites PROMPT $L!DOCTYPE NETSCAPE-Bookmark-file-1$G %COMSPEC% /C >> BOOKMARK.HTM PROMPT $L!-- This is an automatically generated file. %COMSPEC% /C >> BOOKMARK.HTM PROMPT It will be read and overwritten.$_Do not edit! --$G %COMSPEC% /C >> BOOKMARK.HTM PROMPT $LTITLE$G's Bookmarks$L/TITLE$G %COMSPEC% /C >> BOOKMARK.HTM PROMPT $LH1$G's Bookmarks$L/H1$G %COMSPEC% /C >> BOOKMARK.HTM PROMPT $_$LDL$G$LP$G %COMSPEC% /C >> BOOKMARK.HTM :Favorites REM Create temporary batch file URL.BAT ECHO @ECHO OFF>URL.BAT ECHO SET URL=%%1>>URL.BAT FOR %%A IN (*.URL) DO CALL ADDURL.BAT %%A REM Footer PROMPT $L/DL$G$Lp$G %COMSPEC% /C >> BOOKMARK.HTM REM Remove temporary batch file and restore default PROMPT DEL TEMP1.BAT DEL URL.BAT PROMPT $P$G