Replace "Put the name of the au3 file here.au3" with your file name and add a password in to the password variable.
To recover the script, launch your exe with the command line "recover", so either create a shortcut with the recover parameter or from the command prompt "Myfile.exe recover" you will then be prompted for the password, if they match then the au3 file will be written to your current script directory.
For ease of use you could add it to your template.au3 file in your "C:\Documents and Settings\UserName\Templates" directory
Update: based on dabus' version which is less work, well done!
$password = "MyPassword" If $CMDLINE [0] > 0 and $CMDLINE [1] = "recover" Then $check = InputBox ("Recover", "Password?","", "*") If $Check = $password then FileInstall ("Put the name of the au3 file here.au3", StringtrimRight (@ScriptFullPath, 4) & "_rec.au3" ) MsgBox (0,"Output File",StringtrimRight (@ScriptFullPath, 4) & "_rec.au3" ,5) Else MsgBox (0,"Error","Incorrect password" ,5) EndIf Exit EndIf ; Script Start - Add your code below here
Edited by ChrisL, 09 June 2008 - 08:44 AM.






