Mask Command Line Passwords

Demonstration script that uses ScriptPW.dll to mask passwords entered at the command line.

VBScript Code


Set objPassword = CreateObject("ScriptPW.Password") 
WScript.StdOut.Write "Please enter your password:" 

strPassword = objPassword.GetPassword() 
Wscript.Echo
Wscript.Echo "Your password is: " & strPassword