How can I have bash-like password input in BATCH?
<p>I am trying to get a password input in a cmd program made in BATCH. I was wondering if it was possible to have bash-like password input in BATCH. ICYDK, i am talking about when you type a password in bash, it doesn't show the characters but instead the whole field is just blank.</p>

<p>I am currently using this:</p>

<pre><code>powershell -Command $pword = read-host "Enter password" -AsSecureString ; ^
    $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword) ; ^
[System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR) &gt; .tmp.txt 
set /p password=&lt;.tmp.txt &amp; del .tmp.txt
</code></pre>

<p>I was just wondering if it is possible.</p>