i need batch file to mask the input with * without external file and i need the code to be fast to write letters
FOR EXAMPLE:
@echo off
set char=*
set /p variable=Enter your password:
set char=%variable%
echo %char%
pause
Here is a way to do it using Powershell in a batch file
Powershell is installed by default on all newer OS's so it's a good compromise. If you have to support XP machines, you can do something similar with VBScript.
Yes! There is a way in pure batch, with misusing of
xcopy
andprompt
command we can do itThe only problem is you can not use * as mask, in this case I'm using
-