Solved Change user input into asterisk(Star)

Microsoft Windows xp inside out, second...
April 25, 2014 at 03:05:04
Specs: Windows XP, pentium 4 3.00Ghz. 1gb ram
How to change 123456 in the following batch code to display asterisk(star) on command prompt?

echo Enter password to Unlock Your Secure Folder
set/p "pass=>"
if NOT %pass%== 123456 goto FAIL
exit cmd.exe
echo Invalid password


See More: Change user input into asterisk(Star)

Report •

April 25, 2014 at 10:59:52
✔ Best Answer
perhaps a lazy option

color 01
title="Enter Your Password and hit enter to Unlock secure folder"
set/p pass="pass=>"
if %pass% equ 123456 goto success
color cf
echo Invalid password
goto begins
color 0f
echo success

if you are interested in a vbs script that may be a better route


message edited by mikelinus

Report •
Related Solutions

Ask Question