You are on page 1of 1

Open command prompt ( Press Win key+R, type

er ).

cmd

in the Run dialogue box and hit

Ent

In command prompt type the following syntax:


cacls <folder name> /e /c /d %username%
For instance in this article the command should be
cacls Private /e /c /d %username%

That command will make the folder Private inaccessible and un-deletable. If any bo
dy tries to access the folder or delete that, the following message will be show
n:

Now when you want to access the folder for your need then type the following syn
tax in the command prompt and hit Enter :
cacls <folder name> /e /c /g %username%:f

This will return the folder in its normal form.


This trick works in both Windows XP, Windows 7 as well as in Windows vista. But
the file system must be NTFS.

You might also like