You can hide any of drive(s) by just adding two keys in windows registry
goto start>run
Type regedit and press enter. This will bring you to the registry editor.To hide any drive you have to follow these 2 steps
STEP1: Hide drive
goto HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurre ntVersionPoliciesExplorer now create a new DWORD value NoDrives 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: to hide C drive
Alpha number of C is 3 so 2^(3-1) = 4 (decimal value)
If you want to hide more than one drive than calculate the value of each drive as explained and then set sum of those numbers as value
Step2: Prevent Access to the drive
Now as we have make our drive invisbble but it is still accesible so to lock the drive we will create another DWORD value at
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurre ntVersionPoliciesExplorer
create a new DWORD value NoViewOnDrive and set its value same as you have calculated for hidding the drive(s)
Now your drive is locked. If you want to unlock and unhidden the drive then just delete these two keys and your drive is again accessible. You can also create two .reg files one for hidding and locking and another one for unlocking and unhidding.
To Hide Folders
U can lock the folders using the codes which will redirect to their respective folders for example
if u have a folder named Control in d: rename it as Control.{21EC2020-3AEA-1069-A2DD-08002B30309D} this will redirect you to control panel
CODE
Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}
Internet Explorer.{FBF23B42-E3F0-101B-8488-00AA003E56F8}
Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}
My Computer.{20D04FE0-3AEA-1069-A2D8-08002B30309D}
My Documents.{ECF03A32-103D-11d2-854D-006008059367}
Fonts.{BD84B380-8CA2-1069-AB1D-08000948F534}
and to unlock the folder, Go to start>Run>CMD>d:
then type dir/x
where the folder is shown as contro~1.{21 then rename to what ever you want).