home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.editors      What? Edlin ain't good enough for you?      123,932 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 123,622 of 123,932   
   Marion to Marion   
   Re: Strange questions (Was: How to edit    
   23 Jan 25 22:18:24   
   
   XPost: alt.comp.os.windows-10, alt.comp.software.firefox   
   From: marion@facts.com   
      
   On Thu, 23 Jan 2025 21:02:07 -0000 (UTC), Marion wrote :   
      
      
   > Anyone know how to escape those angle brackets in a batch script?   
      
   I solved that problem so that everyone can benefit from this simple batch   
   script, which you can tie to your Win+R runbox pinned to your taskbar:   
    Taskbar:Runbox > addbm   
   Where in the Registry you have added the "addbm.exe" key below:   
    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\   
    addbm.exe = C:\path\to\addbm.bat   
      
   And where the addbm.bat file contains the following working code:   
      
     @echo off   
     REM addbm.bat adds another link to the global bookmark file   
     setlocal   
     setlocal EnableDelayedExpansion   
      
     set bmfile=C:\path\to\global\bookmarks\bm.htm   
     echo.Global bookmark file is %bmfile%   
      
     :input   
     echo.Enter URL:   
     set /p "url="   
     echo.Enter Description:   
     set /p "description="   
      
     echo.Adding... %url% and %description% to the global bookmarks file   
      
     :append_html   
     echo.^%description%^^ >> %bmfile%   
     echo.%url% of %description% added to the global bookmark file %bmfile%   
     pause   
      
     REM What would be nice is to bring up a simple HTML editor also   
     set editor=gvim   
     %editor% %bmfile%   
      
     endlocal   
      
   Please improve so that billions of people can benefit from this script   
   which appends a new URL & description to the users' global bookmarks.   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca