03-10-2011, 09:37 PM
(03-10-2011, 09:06 PM)Deltron Wrote: No need for software.
1. Copy and paste the following into notepad:
Code:cls
@ECHO OFF
title Folder Confidential
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Confidential 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 Confidential "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 the Password to unlock folder
set/p "pass=>"
if NOT %pass%== Enter your password here FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Confidential
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md confidential
echo Confidential created successfully
goto End
:End
Replace "Enter your password here" in the code with your password.
2. Save this file as "Hello.bat".
3. Double click the Hello.bat file, and a Confidential folder should be created. Move anything desired into this folder.
4. Now to lock the file, click on the Hello.bat file. Enter "y" and the folder is now hidden and locked.
5. To access it, click on the Hello.bat file once again and enter the password.
lol you think that's secure though? I can open the bat file and look at the code. Then all I would need to do is open cmd prompt and go to the directory with the bat file, and type in "md confidential"
Unlocked..