Results 1 to 4 of 4

Thread: Lock your folder or drive using registry

  1. #1
    Join Date
    Nov 2009
    Posts
    51

    Lock your folder or drive using registry

    I am using Windows XP and I want to know the steps to lock my drives or folders using registry. I know there are many software but I don't want to use that. Using registry I want to make my folder or drive inaccessible to other users. Is there any setting in registry to lock the folder?

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    Re: Lock your folder or drive using registry

    There are steps to lock your folder-
    1 Consider a folder that you want to lock named XXXX in your D:\, whose path is D:\XXXX.
    2 Open the Notepad and type the following-
    Code:
     ren xxxx xxxx.{21EC2020-3AEA-1069-A2DD-08002B30309D}
    3 Save the text file as loc.bat in the same drive.
    4 Open another new notepad text file and type the following
    Code:
    ren xxxx.{21EC2020-3AEA-1069-A2DD-08002B30309D} xxxx
    5 Save the text file as key.bat in the same drive.
    6 Click the loc.bat to lock xxxx folder and it will transform into control panel icon which is inaccessible.
    7 To unlock the folder click the key.bat file. Thus the folder will be unlocked and the contents are accessible.
    Last edited by Devasis; 24-11-2009 at 07:54 PM.

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    Re: Lock your folder or drive using registry

    To lock your drive follow this steps-
    1 Click on Start > Run and type Regedit to open Registry editor
    2 Naviagte HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Policies\Explorer
    3 Create a new DWORD value NoViewOnDrive and set its value as
    2^ (Alpha Number of Drive Letter-1) where Alpha number are simple counting of alphabets from A to Z as 1 – 26
    For example: If you want to lock D:\, Alpha number of D is 4 so 2^ (4-1) = 8 (decimal value)
    4 To unlock your drive just delete the key from the registry.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,522

    Re: Lock your folder or drive using registry

    To make your drives inaccessible for user, use following steps-
    1 Click on start> go to run and type regedit to open registry editor.
    2 Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ Explorer
    3 Assign this values to specified field-
    System Key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
    Value Name: NoViewOnDrive
    Data Type: REG_DWORD (DWORD Value)
    Value Data: 32-bit bitmask

    Drives:
    All Drives=67108863
    A=1
    B=2
    C=4
    D=8
    E=16
    F=32
    G=64
    H=128
    I=256
    J=512
    K=1024

Similar Threads

  1. Replies: 2
    Last Post: 05-06-2012, 10:58 AM
  2. Lock folder without any software
    By SpearMan in forum Tips & Tweaks
    Replies: 12
    Last Post: 11-10-2010, 08:49 PM
  3. Registry Setting for Lock on Screen Saver
    By Daisyel in forum Windows x64 Edition
    Replies: 1
    Last Post: 17-08-2010, 06:06 PM
  4. Can I lock a folder in Vista
    By nehal_serpa in forum Operating Systems
    Replies: 4
    Last Post: 04-08-2009, 06:10 PM
  5. Replies: 0
    Last Post: 17-03-2009, 07:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,828,721.37186 seconds with 16 queries