Hello,
I want to use a case structure with a batch file, but I don't know how to work with variables.
I know it should look something like this:
show(Press 1 if you want to do A, 2 if you want to do B)
:label0
get X
if x==1 then goto label1
if x==2 then goto label2
else show(invalid number, try again)
goto label0
:label1
[do A]
goto label_end
:label2
[do B]
goto label_end
:label_end
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