mask a password

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • araman
    New Member
    • Jan 2008
    • 53

    mask a password

    I use the follwing code to map a network drive. the password is shown while typing, is there a way to mask it




    Set objNetwork = WScript.CreateO bject("WScript. Network")
    strLocalDrive = "J:"
    strRemoteShare = "\\10.92.36.199 \data"
    strPer = "FALSE"
    strUsr = InputBox("Usern ame for J: drive:")
    strPas = InputBox("Passw ord for J: drive:")
    objNetwork.MapN etworkDrive strLocalDrive, strRemoteShare, strPer, strUsr, strPas


    Thanks
    Lance
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #2
    Dear,


    I don't think it's possible with inputbox.
    why not adding a form with a textbox and set the passwordchar to a hiding character like "#" . (see attachment"

    br,
    Attached Files

    Comment

    • araman
      New Member
      • Jan 2008
      • 53

      #3
      Thanks, but it seems an hta is the way to go for this

      Thanks for the reply

      Comment

      Working...