Is there a way to make a variable to show dots. (not make it to just show it) like:
set=password=code
echo password=%password%
Then it show:
password=****
Is there a way to make a variable to show dots. (not make it to just show it) like:
set=password=code
echo password=%password%
Then it show:
password=****
If you know the length of the password (could be retrieved with :strlen), then you only need to add one asterix per count.
setlocal EnableDelayedExpansion
call :strlen password pwd_length
set "masked_pwd="
FOR /L %%n in (1 1 !pwd_length!) do set "masked_pwd=!masked_pwd!*"