Hi all,
I have another newb question for you all
I'm simply trying to password protect a script so it isn't run by accident. I've gotten this far using the help file and some posts here:
$pass = InputBox( "Password", "Please enter password", "", "*", 190, 115)
If @Error Then Exit
If $pass = "@reboot" Then
MsgBox( 1, "Accepted", "Password accepted!", 30)
Else
MsgBox( 1, "Rejected!", "Incorrect Password", 5)
EndIf
What I'm looking for is 1) have the rest of the script not start and exit if at anytime "Cancel" is pressed and 2) if the password is incorrect have it loop back and ask for it again, and obviously 3) have the rest of the script start after a successful password and clicking "OK".
Any help would be appreciated.