Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For a batch thing I'm making, I need to know how can create something like a password system, that hides the text you're typing and/or replaces it with asterisks (*) – so nobody can see what I'm typing in?

How can I do that?

share|improve this question
1  
May be this SO question will give some idea, stackoverflow.com/questions/664957/… – JackLock May 3 '13 at 15:15

You can not do it natively within DOS.

You would have to use something like EditVar and run it like this:

editv32 -m -p "Enter the password: " PWD

This could cause an issue with antivirus though because it sees it as a code injection device.

share|improve this answer
    
It IS a code injection device. Albeit an harmless one. Because code injection is needed to manipulate the Env-Vars in this way. And it doesn't work on 64-bit Windows systems ! (At least, not the last time I tried it.) – Tonny May 3 '13 at 14:07
    
I compiled a 64-bit version as well. – Bill_Stewart Jul 21 '14 at 3:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .