Do you need to type secret information in to a batch file but only see stars here is the file to do it!

Step 1: The Code

Here is the code copy between the xxxxxxxxxxxx's
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx
@Echo Off
SetLocal EnableExtensions EnableDelayedExpansion

Set /P "=Enter a Password:" < Nul
Call :PasswordInput
Echo(Your input was:!Line!

Goto :Eof

::Author: Carlos Montiers Aguilera
::Last updated: 20150401. Created: 20150401.
::Set in variable Line a input password
For /F skip^=1^ delims^=^ eol^= %%# in (
'"Echo(|Replace.exe "%~f0" . /U /W"') Do Set "CR=%%#"
For /F %%# In (
'"Prompt $H &For %%_ In (_) Do Rem"') Do Set "BS=%%#"
Set "Line="
Set "CHR=" & For /F skip^=1^ delims^=^ eol^= %%# in (
'Replace.exe "%~f0" . /U /W') Do Set "CHR=%%#"
If !CHR!==!CR! Echo(&Goto :Eof
If !CHR!==!BS! (If Defined Line (Set /P "=!BS! !BS!" Set "Line=!Line:~0,-1!"
) Else (Set /P "=*" If !CHR!==! (Set "Line=!Line!^!"
) Else Set "Line=!Line!!CHR!"
Goto :_PasswordInput_Kbd

Step 2: The Code Explained

The code will allow you to enter a password then this password will be displayed on the screen to change this remove echo !line!

Please view the rest of my work here
Or more of my batch file tutorials here
And get windows Xp FREE LEGALY from Microsoft here
<p>Please visit my instructables too</p><p><a href="https://www.instructables.com/id/Teaching-Java-and-JavaScript" rel="nofollow">https://www.instructables.com/id/Teaching-Java-and-JavaScript</a></p><p>https://www.instructables.com/id/Password-Generator-With-Batch</p>
<p>sorry it's</p><p><a href="http://batch798.blogspot.in/" rel="nofollow">http://batch798.blogspot.in/</a></p>
<p>For more useful batch files visit my blog.</p><p>batch798.blogspot.in</p>
<p>See all my batch codes here</p><p><a href="https://www.instructables.com/id/Batch-codes/" rel="nofollow">https://www.instructables.com/id/Batch-codes/</a></p><p>:)</p>
<p>Please also look at my other instructables here </p><a href="https://www.instructables.com/member/Batchcc?show=INSTRUCTABLES" rel="nofollow">https://www.instructables.com/member/Batchcc?show=I...</a><br>Or more of my batch file tutorials here<br><a href="https://www.instructables.com/id/Full-screen-batch-matrix/" rel="nofollow">https://www.instructables.com/id/Full-screen-batch-...</a><br><br>And get windows Xp FREE LEGALY from Microsoft here<br><a href="https://www.instructables.com/id/Download-Windows-Xp-legally-FREE-from-microsoft/" rel="nofollow">https://www.instructables.com/id/Download-Windows-X...</a><p>:)</p>

About This Instructable




More by Batchcc:Extract Pictures From Word Documents Save your flash game progress Batch safely store passwords 
Add instructable to: