Windows 7 set /p not working

brainuee

New Member
Joined
Jul 7, 2013
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 Bottom