I'm in a class and we discussed what set /p does, but I wasn't paying close attention, I was wondering if anyone could explain to me what set /p does and an example of how I can use it in a batch file for dos
theashman88
36
Light Poster
Recommended Answers
Jump to Post
set /p
is aset
command with a 'prompt' flag fed to it, meaning that it will prompt the user for a value to set the variable to. Example (untested):set /p "myvar=Enter a value: " echo You said %myvar%
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.