Windows 7 set /p not working

#1
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
 


Josephur

Windows Forum Admin
Staff member
Premium Supporter
#2
/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!
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.
Top