I want to prompt the user for some input detail, and then use it later as a command line argument.
This question is related to
input
batch-file
cmd
A rather roundabout way, just for completeness:
for /f "delims=" %i in ('type CON') do set inp=%i
Of course that requires ^Z as a terminator, and so the Johannes answer is better in all practical ways.
Source: Stackoverflow.com