Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.