Reputation: 91
I typed in this:
:Password1
Echo so, make up a password for your info.
Set /p %password%=
echo OKAY! your password is %password% , right?
echo (Y/N)
and it comes out as this:
So, make up a password for your info.
(me:) Password
OKAY! your password is , right?
I want it to say
"OKAY! your passsword is "Password", right?"
Upvotes: 9
Views: 93917
Reputation: 51
All you need to do is remove the %% when typing in your set command. This is what it should be:
:Password1
Echo so, make up a password for your info.
Set /p password=
echo OKAY! your password is %password% , right?
echo (Y/N)
Upvotes: 4
Reputation: 716
Your set statement is wrong you should not use % there. It should be
set /p password=
Upvotes: 6