Question

I am looking for analogue of Unix/Linux shell command read. Now I use variables set via set password="bigsecret" and %password% but I want use via command prompt. Any ideas?

Était-ce utile?

La solution

set /p password="Please enter your password: "
echo you entered %password%.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top