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,633 of 123,932    |
|    Marion to Marion    |
|    Re: Strange questions (Was: How to edit     |
|    24 Jan 25 18:14:05    |
      XPost: alt.comp.os.windows-10, alt.comp.software.firefox       From: marion@facts.com              On Fri, 24 Jan 2025 18:03:06 -0000 (UTC), Marion wrote :                     > Amazon told me they only select one out of a million of their customers to       > be invited to the Amazon Vine program, so I'm not normal in that sense.              Oops. Too many zeros. One out of about ten-thousand customers. My bad.       While we're correcting mistakes, here's the Vine script for all to benefit.              The miserable part was escaping all the special characters in the URIs.               @echo off        REM 20240124 addvine.bat adds Amazon/Vine search links to global HTML        setlocal        setlocal EnableDelayedExpansion               REM #1 set your favorite text HTML editor        REM set editor=notepad++        set editor=gvim               REM #2 set the location of your global vine search file        set vinefile=C:\path\to\your\global\search\link\html\file\vine.htm        if not exist "%vinefile%" (        echo.The file "%vinefile%" does not exist. Exiting...        pause        goto :END        ) else (        echo.Global Vine HTML search file is %vinefile%        )               :input_item        echo.Enter search item: ; for example, gas camp stove        set /p "item="               :replace_spaces_with_+        set "amazon_item=%item: =+%"               :replace_spaces_with_%20        set "vine_item="        for %%a in (%item%) do (        if "%%a"=="" (        set "vine_item=!vine_item!%%20"        ) else (        if defined vine_item (        set "vine_item=!vine_item!%%20"        )        set "vine_item=!vine_item!%%a"        )        )               echo Original item: %item%        echo Amazon item: %amazon_item%        set vine_item=!vine_item!        echo Vine item: %vine_item%        echo.Adding... "%amazon_item%" and "!vine_item!" to %vinefile%               :append_html        echo.^ |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca