SyntaxFix
Write A Post
Hire A Developer
Questions
A very short & easy solution i'm using is this:
@ECHO OFF SET /p NAME=- NAME ? ECHO "%NAME%" CALL :TRIM %NAME% NAME ECHO "%NAME%" PAUSE :TRIM SET %2=%1 GOTO :EOF
Results in:
- NAME ? my_name " my_name " "my_name"