Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 42,409 of 42,547    |
|    Oliver to All    |
|    Re: How do you remove ampersand from a W    |
|    16 Nov 24 08:52:26    |
      XPost: alt.comp.os.windows-10, rec.photo.digital       From: ollie@invalid.net              To clarify my quetion...              I don't ask you to do my debugging, but I would like to know if I       faithfully followed the suggestions, so here's the file after I followed       what I thought were the suggestions (with the comments removed).              Only one top-level directory is supposed to be created (which was how the       original posted script worked - which was a fully working script).              Did I follow your suggestions correctly or did I mess up in understanding?               @echo off        set today=%DATE:~10,4%%DATE:~7,2%%DATE:~4,2%               :BEGIN        set title=123456789 123456789 123456789 123456789 123456789 123456789       123456789 123456789 123456789 1234567890        set /p "asin=ASIN: "        set /p "brand=BRAND: "        set /p "item=ITEM: "        set "item=%item:&=and%"        set /p "description=DESCRIPTION: "        set "description=%description:&=and%"        set /p "bullets=BULLETS: "        set "bullets=%bullets:&=and%"               set "dirname=%today% %brand% %item% %asin%"        set "name=%brand% %item% %asin%"               mkdir %dirname%\%pic%        cd %dirname%               echo.%title% > %name%.txt        echo."%cd%\" >> %name%.txt        echo.ASIN=%asin% >> %name%.txt        echo.BRAND=%brand% >> %name%.txt        echo.ITEM=%item% >> %name%.txt        echo.DESCRIPTION=%description% >> %name%.txt        echo.BULLETS=%bullets% >> %name%.txt               mkdir cam        mkdir cam\vid        mkdir pic        mkdir .\pic\jnk        mkdir .\pic\cap        mkdir wip        cd pic               convert -size 800x800 canvas: %name%_1a.jpg        convert -size 800x800 canvas: %name%_2a.jpg        convert -size 800x800 canvas: %name%_3a.jpg               cd ..\..               set /p repeat=Do you want to make another Amazon vine-review directory?[y/n]:        if %repeat%== y goto BEGIN        if not %repeat%== y goto END               END:        exit /B 0              --- 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