batch file help...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

not really sure if this is possible, but what i have is a batch file that has
a line in it for the user to enter a password (set /p password=ENTER
PASSWORD). my question is, when they enter their password i would like for it
to display ****** or nothing at all. is this possible? thanks
 
=?Utf-8?B?Um95Y2U=?= said:
not really sure if this is possible, but what i have is a batch file
that has a line in it for the user to enter a password (set /p
password=ENTER PASSWORD). my question is, when they enter their
password i would like for it to display ****** or nothing at all. is
this possible? thanks

For wsh scripts there is passdlg from Bill Stewart
http://mywebpages.comcast.net/stewartb/misctools.html

For batches :
Conset from Frank P. Westlake
http://gearbox.maem.umr.edu/batch/f_w_util/conset.zip

wbat from Horst Schaeffer:
http://home.mnet-online.de/horst.muc/

Inp.com from Herbert Kleebauer
http://www.google.com/[email protected]&output=gplain

And a whole bunch of similar tools. Use google to search for more.
 
Royce said:
not really sure if this is possible, but what i have is a batch file that has
a line in it for the user to enter a password (set /p password=ENTER
PASSWORD). my question is, when they enter their password i would like for it
to display ****** or nothing at all. is this possible? thanks
Hi

For Windows XP and beyond:

--------------------8<----------------------
@echo off
echo WScript.Echo CreateObject("ScriptPW.Password").GetPassword >%temp%\pw.vbs
echo Please enter your password:
for /f "tokens=*" %%a in (
'cscript.exe //Nologo %temp%\pw.vbs') do set pw=%%a
del %temp%\pw.vbs
echo You entered: %pw%
'--------------------8<----------------------
 
Royce said:
not really sure if this is possible, but what i have is a batch file
that has a line in it for the user to enter a password (set /p
password=ENTER PASSWORD). my question is, when they enter their
password i would like for it to display ****** or nothing at all. is
this possible? thanks

This is possible in MS-DOS or win32 with getvard.exe (MS-DOS/Win9x) or
getvar.exe (Win32):

http://home.comcast.net/~stewartb/getkv.html

Example:

@echo off
getvar -v PW -f "%TEMP%\TEMP.BAT" -m -p "Enter password: "
if errorlevel 1 goto :END
call "%TEMP%\TEMP.BAT"
del "%TEMP%\TEMP.BAT"
echo You typed: %PW%
:END

Regards,

Bill
 
Back
Top