Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , , ,

Sponsored Links



Lock your folder or drive using registry

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 24-11-2009
Member
 
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?
Reply With Quote
  #2  
Old 24-11-2009
Devasis's Avatar
Member
 
Join Date: Jan 2008
Posts: 3,367
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.
Reply With Quote
  #3  
Old 24-11-2009
Solomon's Avatar
Member
 
Join Date: May 2008
Posts: 4,056
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.
Reply With Quote
  #4  
Old 24-11-2009
Calvin K's Avatar
Member
 
Join Date: Apr 2008
Posts: 3,479
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
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Lock your folder or drive using registry"
Thread Thread Starter Forum Replies Last Post
Folder Lock Without Any Software Rohit Kasle (RK) Tips & Tweaks 5 24-07-2011 04:26 AM
Registry Setting for Lock on Screen Saver Colin Windows x64 Edition 4 19-08-2010 12:06 AM
Folder Lock Without Any Software JoeFrat Tips & Tweaks 5 10-01-2010 10:22 PM
Folder lock problem Rishab Raheja(RR) Windows Software 3 04-09-2009 03:52 PM
Take Ownership of a file, folder, registry key, or drive in Windows Vista Snake08 Guides & Tutorials 0 17-03-2009 08:10 PM


All times are GMT +5.5. The time now is 11:57 PM.