| 1. |
Solve : is this bat file right. cause it will not work.? |
|
Answer» @echo off @echo offFirst off, you need to add ^ before each $ (and possible the * and +). Also, ":no" and "echo you didn't well to bad" need to be on different lines.thanks but when i open it , it says choice is not a recognized internal or EXTERNAL command operable program or batch file.Quote from: computerperson#1 on May 20, 2009, 04:13:18 PM thanks but when i open it , it says choice is not a recognized internal or external command operable program or batch file.Because you don't have it on your computer...that's why. Use set /p variablename= instead.Code: [Select]@ECHO OFF :Begin ECHO 1 - Stars ECHO 2 - Dollar Signs ECHO 3 - Crosses ECHO 4 - Stop echo Enter Choice SET /P choice= IF %choice% EQU 4 goto end IF %choice% EQU 3 goto CRS IF %choice% EQU 2 goto DLR IF %choice% EQU 1 goto STR goto begin :STR ECHO ******************* ECHO. PAUSE CLS Goto Begin :DLR ECHO $$$$$$$$$$$$$$$$$$$$ ECHO. PAUSE CLS goto Begin :CRS ECHO +++++++++++++++++++++ ECHO. PAUSE CLS goto Begin :end Output: 1 - Stars 2 - Dollar Signs 3 - Crosses 4 - Stop Enter Choice 2 $$$$$$$$$$$$$$$$$$$$ Press any key to continue . . .Quote from: billrich on May 20, 2009, 04:56:49 PM Code: [Select]@ECHO OFFTry putting a CLS right after :begin ...thanks it works Quote from: computerperson#1 on May 21, 2009, 05:47:41 AM thanks it worksYou're welcome! You can stay as LONG as you want, either getting help or giving it! |
|