Skip to content


HOWTO: Ms Dos ask for a parameter on command prompt

You can use the set command to ask for a parameter on the dos command prompt.
Assign it to a variable which can be used later.

set /p VAL=Please provide a value for this parameter: 
echo %VAL%

Posted in Scripting. Tagged with , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

You must be logged in to post a comment.