How to prompt for variable in a batch file?

How to prompt for variable in a batch file?, 10.0 out of 10 based on 1 rating
VN:F [1.9.7_1111]
Rating: 10.0/10 (1 vote cast)

For those that wanted to prompt users for information on their batch script, here is how you can do this.

@echo off
echo “Enter your name”
set /p Name=

echo “Enter your password”
set /p Password=

echo %Name% %Password%

No related Tech posts.

About the Author