2. Open the command prompt in your system (Press Win key+R, type ‘cmd’ in the Run dialogue box and hit ‘Enter’).
3.Enter Command
Cd Desktop
And Press Enter.
cacls <folder_name> /e /c /d %username%
For instance, the command should be like this:
cacls private /e /c /d %username%
It will make the folder ‘Private’ inaccessible as well as undeletable. If any body tries to open or delete the folder, the following messages will be shown.
When you want to open that folder for your own need, type the following syntax in the command prompt and hit the ‘Enter’ key from your keyboard.
cacls <folder_name> /e /c /g %username%:f
This will return the folder into its normal form. This trick works in Windows XP, Windows 7 and Windows vista as well. But, make sure that the file system is NTFS. Otherwise, this technique won’t work.