What would be the Windows batch equivalent for HTML's input type=“password”?

前端 未结 12 2114
有刺的猬
有刺的猬 2020-12-01 18:51

I need to get authentication credentials from the users within a Windows script but the classic \"first Google result\" approach:

SET /P USR=Username: 
SET /         


        
12条回答
  •  粉色の甜心
    2020-12-01 19:27

    another alternative is my EditV32 (x86) or EditV64 (x64) command-line tools. For example:

    editv32 -m -p "Password: " PWD
    

    -m means "masked input" and -p is the prompt. The user's input is stored in the PWD environment variable. You can get it here:

    http://www.westmesatech.com/editv.html

提交回复
热议问题