Saved Bookmarks
| 1. |
Solve : Bach Programming Help? |
|
Answer» Hello, show(Press 1 if you want to do A, 2 if you want to do B) But I can't get how I create/define/make variables and how I get the INPUT value for that variable. Could someone help me, please ? obs: Using Comand Prompt from WinServ2k3 :label0 ::use set /p to get input, example set /p x=Enter your CHOICE: if "%x%"=="1" Goto Label1 if "%x%"=="2" Goto Label2 cls & echo You have made an invalid choice & Goto label0 :label1 :label2 Thanks! Lemme just ask another question: What is the difference between this: Quote cls & echo You have made an invalid choice & Goto label0 ....and this: Quote cls?there isnt one, using & is the same as starting a new line so it LOOKS like cls & echo You have made an invalid choice & Goto label0 but its really cls echo you have made an invalid choice goto label0 Ahh! I tought it was something like that =)! Thanks again! |
|