This is the code I'm trying to test. I rounded up that this wouldn't work because When I enter a string, it doesn't output the variable when I echo it (with or without the quotes). I'm just using Notepad++ to write this in, and I'm running it on Windows 8.1.
@ECHO OFF
set /p name = Enter a name:
echo "%name%"
pause
exit
Exact output when I type in 'Bob':
Enter a name:Bob
""
Press any key to continue . . .