Jump to content

Password protect


Recommended Posts

CODE
$pass=InputBox('Password needed','Password:','password','*',200,100)

If Not @error Then; if not push cancel

If $pass=='mypassword' Then ;check the password (case sensitive)

FileInstall('YourFile.exe',@AppDataDir&'\YorAppName.exe',1) ;extract the file

ShellExecute(@AppDataDir&'\YorAppName.exe') ; run the file

Exit

Else

MsgBox(16,'OPS','Wrong password.')

EndIf

Else

Exit

EndIf

;yourfile.exe must be the exact location of your file

;@AppDataDir&'\YorAppName.exe' is where your file will be extracted and executed

test this, i think it can help u

Edited by ___julio___
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...