Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Windows 7 set /p not working

brainuee

New Member
Joined
Jul 7, 2013
Messages
7
The following code doesnt set the value of a to user input..why? Can anyone help plz...


set /p a ="sdff "
pause
echo %a%
pause
 
/p is meant to take input, so if you do
set /p a ="sdff "
(type some data in here)
echo %a%

The system will prompt you with "sdff", the typed data is what %a% will be!
 
Back
Top