B brainuee New Member Joined Jul 7, 2013 Messages 7 Jul 7, 2013 Thread Author #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
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
Solution Josephur Jul 28, 2013 /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!
/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!
Josephur Windows Forum Admin Staff member Premium Supporter Microsoft Certified Professional Joined Aug 3, 2010 Messages 1,286 Jul 28, 2013 #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! Upvote 1 Downvote Solution You must log in or register to reply here.
/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!