Attached is a zip containing getpassword.exe which I wrote myself. To reassure yourself, do a virus scan before running. Crude but it works OK for a batch type project.
Writes the typed password into a file in the same folder called password.txt which you should read and delete immediately.
use it like this
test.bat
@echo off
echo Password demo
echo.
echo We will now ask for a password
echo.
getpassword.exe
for /f "delims=" %%P in (password.txt) do set password=%%P
del password.txt
echo the password typed was %password%
S:\Test\Basic\pword>test
Password demo
We will now ask for a password
Enter password : ***
the password typed was cat
[attachment deleted by admin]