Protect files and folders

Posted on October 30, 2008. Filed under: Tips & Tricks | Tags: , , , , , |

There are a lot of utilities out there that can protect your files and folders with password protection, encryption, backups, etc. But here i will share with you how to use a built-in tool in Windows to make your files and folders read only, and hidden. It is a very simple protection but effective.

Go to the parent folder of the file or folder you want to protect via command prompt(cmd). And enter as below.

To protect file, say setup.exe in d:\ –

d:\>attrib +r +a +s +h setup.exe

To protect folder, say Photos in d:\ –

d:\>attrib +r +a +s +h \Photos

Similarly,

To recover file, say setup.exe in d:\ –

d:\>attrib -r -a -s -h setup.exe

To recover folder, say Photos in d:\ –

d:\>attrib -r -a -s -h \Photos

Advertisements

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: