Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TUT] How to password protect files! [TUT]
#6
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.
Reply


Messages In This Thread
RE: [TUT] How to password protect files! [TUT] - by Deltron - 03-10-2011, 09:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  No OCX files peter12321a 3 1,169 02-17-2012, 06:14 PM
Last Post: Untitled
  [TUT]6 Steps to Troubleshooting PC Issues.[TUT] Codad Law 22 8,905 07-29-2011, 03:55 PM
Last Post: Evaluation
  {TUT} Everything About Your PC {TUT} INC3PT!0N™ 16 2,855 07-29-2011, 05:11 AM
Last Post: VIRUZ™
  [TUT] How to Organize Your Desktop Metapod 47 7,040 07-02-2011, 07:10 AM
Last Post: djakariuz
  [TUT] Make your PC clean & Fast & safe! WITH PICTURES! [/TUT] iRoroana 12 3,904 06-06-2011, 10:12 AM
Last Post: iRoroana

Forum Jump:


Users browsing this thread: 4 Guest(s)