So, here's my problem:
I want to ask in which language they need it. So they must decide between de, en, es and fr. How do i do that?
If they type in "de", then the %variable1% should be de. If they type in "en", then the %variable1% should be en.
Thanks!
User input and variable? How?
Moderator: DosItHelp
Re: User input and variable? How?
SET /P is what you're looking for.
Steffen
Code: Select all
set /p "variable1=Enter the language [de, en, es, fr]: "
Steffen
-
- Posts: 1
- Joined: 07 Apr 2017 09:00
Re: User input and variable? How?
Well you could make separate sections in an array and use the following code
set en ==1 set fr==2
if %cho%==1 goto English
if %cho%==2 goto french
set en ==1 set fr==2
if %cho%==1 goto English
if %cho%==2 goto french
Re: User input and variable? How?
That's the wrong syntax for SET. Also I don't see where the value for %cho% is coming from.
Steffen
Steffen