Best Way to Lock a FOLDER

Tags:
Hacks Folder It Computers Tricks Idea Net Work Software
sanjaylimbu
  • By: sanjaylimbu
  • Subscribers: 10
  • Updated: 20-Jul-08
  • Videos: 3
  • Nepal English
  • Comments: 0
  • Views: 1,553
  • Added: 10-May-08

An easy way to lock a Folder. No need third party Software.
Just copy the following code and paste on Notepad then save on .bat (batch) format to your file.
..........................................................


cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST king goto MDLOCKER
    CONFIRM
echo Are you sure u 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 Locker "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%==me goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
    FAIL
echo Invalid password
goto end
    MDLOCKER
md king
echo Locker created successfully
goto End
    End

  1. Categories: How To, Science & Tech
  2. Related Link: Private
Comments on

Best Way to Lock a FOLDER

0 Comments | Be the first to comment
 
kpins