title: Require a Password to close an HTA
body: <p>I was hoping someone would be able to proved me some direction. I would like to set an application launcher I have created to require a password to be closed. Thank you for any assistance you are able to offer.
  But here is some incomplete code to show you my purpose.</p>
  
  <pre><code>Set objShell = CreateObject("Wscript.Shell")
  dim password
  password=InputBox("Please Enter Password:","3 - Tries Left")
  if password = ("9999") then 
      dim correct correct =MsgBox("Correct Password!",64,"correct")
      objShell.Run("shutdown /m shutdown -r -f -t 0")
  Else 
      dim again
      again =MsgBox("Incorrect Password! Do You Want To Try Again?",53,"Incorrect Password!")
      If again = 4 Then
          dim password2
          password2=InputBox("Please Enter Password:","2 - Tries Left")
          if password2 = ("9999") then
              dim correct2 
              correct2 =MsgBox("Correct Password!",64,"correct") 
  </code></pre>
  
  <p>Sorry ! I was unable to post all of the code.I just need to know what to put to close the existing window. I think telling it to close MSHTA.EXE will work.</p>