|
|
|
|
![]() ![]() |
![]() Group: Members
Posts: 10 Joined: 9-February 08 Member No.: 57,623 |
Post
#1
Feb 10 2008, 12:25 AM
Steps: 1- make a new folder ( name it as you like ) 2- inside this folder make a (.TXT ) file & copy the following inside it: CODE Quote: cls @ECHO OFF title Folder Private if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK if NOT EXIST Private goto MDLOCKER :CONFIRM echo Are you sure you want to lock the folder(Y/N) set/p "cho=>" if %cho%==Y goto LOCK if %cho%==y goto LOCK if %cho%==n goto END if %cho%==N goto END echo Invalid choice. goto CONFIRM :LOCK ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" echo Folder locked goto End :UNLOCK echo Enter password to unlock folder set/p "pass=>" if NOT %pass%== password here goto FAIL attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private echo Folder Unlocked successfully goto End :FAIL echo Invalid password goto end :MDLOCKER md Private echo Private created successfully goto End :End 3- After u copy the command go to line ( 23 ) u will find "password here" Change to any password u want. 4- After that, save it as locker.bat (the txt file will change to an application file) 5- Now go back to the folder & u will find a this locker.bat file. 6- Click on it & u will find a new folder called Private. 7- Now copy what u want in it & after that go to locker.bat by clicking it, it will open and ask you if you want to lock your folder? Y/N ? 8- Type Y 9- If you want to UNLOCK your folder, go open locker.bat & type your password and the Private folder will be made visible again. Tested and working :] Hide stuff from strangers, lol... |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [MODERATOR]
Posts: 2,501 Joined: 28-May 05 From: Devon, England Member No.: 7,593 ![]() myCENT:8.70 |
Post
#2
Feb 10 2008, 11:20 AM
Another advantage to Linux. To lock any file or folder so that only you have access, use the following command: [console] chmod 0600 filename [/console] Job done Still, that script is pretty cool to use on a Windows machine. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#3
Feb 10 2008, 03:12 PM
wow thank you, i never knew you could do this, i doubt ill use it, maybe I will, depends, but I never knew you could even lock a folder, but very nice script. Good job on this |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 164 Joined: 7-September 07 Member No.: 49,538 |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED]
Posts: 200 Joined: 30-January 08 Member No.: 57,072 |
Post
#5
Feb 10 2008, 03:55 PM
thanks very much. I like that bat file. With this locker, i can hidden some file clearly., |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED]
Posts: 225 Joined: 8-April 05 Member No.: 5,385 |
Post
#6
Feb 10 2008, 04:54 PM
Very nice script, though you will definitely have to hide the batch file after you lock the folder because your password is stored inside of it in plain text. rvalkass is right though, linux for the win! |
![]() Group: Members
Posts: 7 Joined: 4-January 08 Member No.: 55,693 |
|
![]() Group: Members
Posts: 1 Joined: 15-April 08 From: Searching......... Member No.: 60,818 |
Post
#8
Apr 15 2008, 11:45 AM
1)Cmd to the location of Folder 2)cd <name of folder> there u go ur in the Folder |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#9
Apr 15 2008, 12:44 PM
QUOTE(john_engit @ Apr 15 2008, 12:45 PM) [snapback]385085[/snapback] 1)Cmd to the location of Folder 2)cd <name of folder> there u go ur in the Folder There is no need for that, crashcore pointed out the flaw with this; the password is stored in the bat in plain text! Is there a way to add md5'ing into this script, such as use a tool to get the md5 of your password and put that in the bat file instead, use it to compare the md5 of any code entered with the "correct" one? This post has been edited by Jimmy: Apr 15 2008, 12:47 PM |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED]
Posts: 184 Joined: 20-April 06 From: from the Dumpster in the back Member No.: 22,158 |
Post
#10
Apr 16 2008, 05:13 AM
Windows shell commands? If you enabled: show hidden files and folders and extensions, you can just change the folder name, and then you can access the folder. it will show up as : Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D} the ".{21EC2020-3AEA-1069-A2DD-08002B30309D}" after the control panel is a reference to a registry key. |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
1 | muskrat | 940 | 15th July 2006 - 05:23 PM Last post by: BuffaloHelp |
|||
![]() |
1 | Jasontian | 1,144 | 8th December 2007 - 03:59 AM Last post by: jlhaslip |
|||
![]() |
7 | pasten | 877 | 10th May 2009 - 10:11 PM Last post by: mahesh2k |
|||
![]() |
1 | Seth teh ROM masta | 504 | 15th August 2008 - 08:00 AM Last post by: truefusion |
|||
![]() |
1 | myshop | 380 | 10th February 2007 - 05:53 PM Last post by: serverph |
|||
![]() |
1 | technischburo | 254 | 26th June 2008 - 12:25 AM Last post by: jlhaslip |
|||
![]() |
1 | dogtag | 539 | 12th June 2007 - 07:32 PM Last post by: truefusion |
|||
![]() |
1 | jsyzfyj | 432 | 24th November 2007 - 02:20 PM Last post by: rvalkass |
|||
![]() |
2 | EquiPow | 331 | 22nd July 2008 - 03:10 AM Last post by: BuffaloHelp |
|||
![]() |
2 | Picc84 | 444 | 13th December 2007 - 01:09 AM Last post by: BuffaloHelp |
|||
![]() |
1 | sad-3y3s | 447 | 19th July 2007 - 02:08 AM Last post by: Kubi |
|||
![]() |
3 | it01y2 | 806 | 13th June 2007 - 02:07 PM Last post by: wanchope |
|||
![]() |
2 | anoopnair | 443 | 22nd June 2007 - 11:59 PM Last post by: jlhaslip |
|||
![]() |
1 | joeblogg | 199 | 16th October 2008 - 05:13 AM Last post by: BuffaloHelp |
|||
![]() |
7 | Aero147 | 8,089 | 20th August 2004 - 08:33 AM Last post by: OpaQue |
|||
|
Open Discussion | Time is now: 4th July 2009 - 08:50 PM |
Web Hosting Powered by ComputingHost.com.