Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- ::: Adapted from: https://stackoverflow.com/a/24792070/12343998
- Set "HideInput=For %%n in (1 2)Do if %%n==2 ((set /P "=_" < NUL > "!Str!" & findstr /A:1E /V "^$" "!Str!" NUL > CON) && del "!Str!" & set /P "#=")Else Set Str="
- Setlocal EnableDelayedExpansion
- %HideInput:#=PW%Enter Password
- cls
- color 07
- echo The password entered is: "%PW%"
- Endlocal
Add Comment
Please, Sign In to add comment