Jump to content

Lock'n v1.3 - Un/Lock your files; folders


FireFox
 Share

Recommended Posts

Lock'n 1.3

Update :

Version 1.3
Improved script and updated to current autoit stable version.

Version 1.2
Added function to remove or restore security tab !

_

Description :

Lock your data with a password, if the user wants to access on the protect data a "Denied Access" msgbox will come up !

Screenshot :

PqpjCup.png

How to use it ?

-Create a context item on "AllFilesystemObjects"

;Create this script in the same folder as Lock'n.exe
ShellExecute("Lock'n.exe", '/cm-Create')

;Remove the context menu
;~ ShellExecute("Lock'n.exe", '/cm-Remove')

-Set a new password for Lock'n

;Create this script in the same folder as Lock'n.exe
;Default password : Lock'n
ShellExecute("Lock'n.exe", '/password')

-Now right-click on any file/folder and click on "Un/Lock'n !"

-Enter the password and select what you want to lock then click on "Lock"

-Double click on the file/folder you have locked... Tadaa ! :D

-In order to unlock it, just do the same thing as locking.

-New ! Remove or restore security tab

;Create this script in the same folder as Lock'n.exe
;Remove security tab
ShellExecute("Lock'n.exe", '/st-Remove')
;Create this script in the same folder as Lock'n.exe
;Restore security tab
ShellExecute("Lock'n.exe", '/st-Restore')

_

Attachment :

Lock'n 1.3 : Lock'n.au3

Lock'n 1.2 : here

Enjoy ! :D

Edited by FireFox
Link to comment
Share on other sites

ERREUR 404 - Document non trouvé

L'erreur404 est un code d'erreur dans le protocole HTTP. Ce code est renvoyépar un serveur HTTP pour indiquer que la ressource demandée(généralement une page web) n'existe pas.

Certains navigateurs web affichent alors le message «404 File Not Found » (de l'anglais signifiant « fichier non trouvé ») àdestination de l'internaute.

Le premier 4 indique une erreur dans larequête, ici une mauvaise URL, venant d'une page obsolàte ou d'uneerreur de saisie d'adresse web de la part du visiteur. Le dernier 4indique le problème causé par cette erreur : la ressource estintrouvable.

(http://fr.wikipedia.org/wiki/Erreur_HTTP_404)

(English version: http://en.wikipedia.org/wiki/HTTP_404)

Page précédente

I'm looking forward to it though!

Mat

Edited by Mat
Link to comment
Share on other sites

Still not working! You should also probably give some warning before redirecting people like that... I don't mind, but you could be taking us anywhere.

You are actually killing me here. So close to finally finding something on these forums I could actually use... and the download doesn't work!

Mat

It wasn't a problem from me, finally fixed now :D

So close to finally finding something on these forums I could actually use...

What do you mean ? :D

Cheers, FireFox.

Edited by FireFox
Link to comment
Share on other sites

It just doesn't work. I try locking a folder and it does nothing. I try unlocking a folder, it does nothing. So therefore, it doesn't work. I am using Windows 7 RTM Enterprise 90-day Trial Build 7600.

But the problem is that it works for me and i'm on Win7 too...

@everybody

Version 0.0.0.2 available ! (see first post for update)

Cheers, FireFox.

Link to comment
Share on other sites

  • 2 years later...

You are great FireFox
I wanted something like this
you have made it just awesome.  :)

Keep up the good work.  ;)

Edited by PhoenixXL

My code:

PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Link to comment
Share on other sites

  • 11 months later...
  • 4 months later...
  • 8 months later...

Is there a problem with this script on a newer version of AutoIT?
I only get error messages while trying to compile it.

 

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /ShowGui /in "\\domain\folder$\username\Documents\AutoIT\Prosjekter\Lock'n\Lock'n.au3"
+>13:05:06 Starting AutoIt3Wrapper v.2.2.0.0 SciTE v.3.4.1.0   Keyboard:00000414  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0414)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper
! Obfuscator support has been discontinued and is replaced by Au3Stripper using "#Au3Stripper_" directives.
! The directive to run Au3Stripper is: #AutoIt3Wrapper_Run_Au3Stripper=y  ; Default is n
! #Au3Stripper_Parameters options are: 
!    /so or /striponly         : This is the default when no parameters are provided. same as /sf=1 /sv=1
!    /sf or /StripFunctions    : 1=Strip all unused Func's (1=default)
!    /sv or /StripVariables    : 1=Strip all unused Global var records (1=default)
!    /mo or /mergeonly         : Just merges the Include files into the source and strips the Comments, just like aut2exe would do.
!    /soi or /striponlyincludes: same as /striponly but will leave master script untouched.
!    /mi or /MaxIterations     : Sets the maximum Iterations Au3Stripper will perform. Default is 5.
!    /Beta                     : Use Beta Includes. Dont use AutoIt3Wrapper_Run_Au3Stripper.
-> No changes made..
>Running AU3Check (3.3.10.2)  from:C:\Program Files (x86)\AutoIt3  input:\\domain\folder$\username\Documents\AutoIT\Prosjekter\Lock'n\Lock'n.au3
+>13:05:10 AU3Check ended.rc:0
>Running Au3Stripper (1.2.0.0)  from:C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper cmdline:
- ### C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper\Au3Stripper.dat missing... Please get it from the website to make sure the Obfuscation will work correctly.
- 0.63 Iteration 1 Strip Functions result: Output  714 lines, stripped 3695 Func lines and 5493 Commentlines
- ### C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper\Au3Stripper.dat missing... Please get it from the website to make sure the Obfuscation will work correctly.
- 0.88 Iteration 2 Strip Variables result: Output  213 lines and stripped 501 lines
- ### C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper\Au3Stripper.dat missing... Please get it from the website to make sure the Obfuscation will work correctly.
- 0.88 Iteration 3 Strip Variables result: Output  196 lines and stripped 17 lines
- ### C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper\Au3Stripper.dat missing... Please get it from the website to make sure the Obfuscation will work correctly.
- 1.00 Iteration 4 Strip Variables result: Output  195 lines and stripped 1 lines
- ### C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper\Au3Stripper.dat missing... Please get it from the website to make sure the Obfuscation will work correctly.
- 1.00 Iteration 5 Strip Variables result: Output  195 lines and stripped 0 lines
+> Source    10019 lines 541342 Characters.
+> Stripped  4214 Func/Var lines and  5493 comment lines, Total 533053 Characters.
+> Saved     96% lines 98% Characters.
+> 1 Au3Stripper v1.2.0.0 finished created:\\domain\folder$\username\Documents\AutoIT\Prosjekter\Lock'n\Lock'n_stripped.au3
+>13:05:11 Au3Stripper ended.rc:0
>Running AU3Check (3.3.10.2)  from:C:\Program Files (x86)\AutoIt3  input:\\domain\folder$\username\Documents\AutoIT\Prosjekter\Lock'n\Lock'n_stripped.au3
"\\domain\folder$\username\Documents\AutoIT\Prosjekter\Lock'n\Lock'n_stripped.au3"(129,26) : error: _Exit(): undefined function.
GUISetOnEvent(-3, '_Exit')
~~~~~~~~~~~~~~~~~~~~~~~~~^
"\\domain\folder$\username\Documents\AutoIT\Prosjekter\Lock'n\Lock'n_stripped.au3"(139,33) : error: _Lock(): undefined function.
GUICtrlSetOnEvent($b_cr, '_Lock')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"\\domain\folder$\username\Documents\AutoIT\Prosjekter\Lock'n\Lock'n_stripped.au3"(153,31) : error: _Apply(): undefined function.
GUICtrlSetOnEvent(-1, '_Apply')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
\\domain\folder$\username\Documents\AutoIT\Prosjekter\Lock'n\Lock'n_stripped.au3 - 3 error(s), 0 warning(s)
!>13:05:11 AU3Check ended. Press F4 to jump to next error.rc:2
+>13:05:11 AutoIt3Wrapper Finished.
>Exit code: 2    Time: 5.788

Tried changing Obfuscator to Au3Stripper, but no success. It also opens a new script called Lock'n_stripped.au3 that has undefined functions.
Would really love to have something like this.

Cheers,
Akarillon

Challenge accepted!

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...