@echo off REM REM *************************************************** REM * For help, type "ANDD /?" at the command prompt. * REM *************************************************** REM REM if "%1"=="" goto help2 if "%1"=="/?" goto helpme if "%1"=="help" goto helpme if "%1"=="?" goto helpme if "%1"=="/E" set ande=1 if "%1"=="/e" set ande=1 if "%1"=="/E" shift if "%1"=="/e" shift echo. set stringy= set andvar=and if "%1"=="/s" goto specific if "%1"=="/S" goto specific goto fronty :specific shift set andvar=%1 shift :fronty set stringy=%stringy% %1 shift if "%1"=="" goto nand if %1==%andvar% goto anden goto fronty :anden if "%ande%"=="1" echo %stringy% %stringy% set stringy= shift goto fronty :help2 echo For help, type the following line at the command prompt: echo ANDD /? goto finit :helpme echo ANDD echo Welcome to ANDD, a handy little batch file. Most programming languages allow echo you to use words such as "or" and "and" to make programs easier to create. echo I've been annoyed for quite a while that you couldn't use the word "and" in echo MS-DOS. Of course, not that one would expect you to be able to, but how echo convenient is it to tell your computer to simultaneously copy, rename, delete, echo and exit all at once? So while it works you can just sit back and relax. echo. echo That is the function of ANDD. Type your list of commands with this syntax: echo "ANDD {command} and {command2} and {command3} {etc.}" echo. echo Parameters: /E - echo every command and tell you when the list is finished. echo e.g. "ANDD /E copy 1.txt 2.txt and edit 2.txt and exit". echo /S - uses the next word in the command line instead of "and". echo e.g. "ANDD /S then echo This and that. then echo See?" echo. echo If both parameters are used at once, they must be entered in order. echo. echo If you like this very simple batch program, tell me about it by emailing echo me at the following address: echo DSRfeedback@yahoo.com echo. echo Thanks for using ANDD! goto finit :nand if "%ande%"=="1" echo %stringy% %stringy% if "%ande%"=="1" echo. if "%ande%"=="1" echo Finished multiple-command processing. :finit set ande=