Friday, May 4, 2012

HOW CAN WE HIDE A FOLDER OR FILE USING COMMAND PROMPT

Here I am posting an idea in front of you to hide your folder.

Before starting the procedures just read the details given below.

If you are using a system with many users. Then you may need to hide your files or folders from others. And here is an idea for this. By using this method you can hide your files and folders from other users..you can use this in Windows 7 too.

While some one is trying to search hidden files by using folder option, they can change the hiding settings in folder options... But they cannot see this folder by searching so.

But if they remove the tick mark in the box of 'Hide protected operating system files' then this folder will be  visible to others.

Here let us start the procedures.

1. Go > Start

2. Go > Run

3. type cmd or command prompt and hit enter
(now cmd window will be opened)

4. enter the directory  letter with ':' and hit enter.
     then enter the folder name with cd command and hit enter.
     eg1:  let us take the 'abc' as the folder name.
           assume your folder is in the D drive. Then, type
           D:
           hit enter
     eg2: if your folder is inside of another folder in drive d.
            assume 'fld' as the another folder. the folder abc is in the folder fld. then type
            D:
            hit enter and then type
            cd fld
            hit the enter
            by this you can reach the location...

5. then type the code given below
    attrib +r +s +h folder
    (you can replace folder with folder name)
    eg: attrib +r +s +h abc
    hit enter

6. then type
     EXIT
     and hit enter

7. Just refresh your location. the folder will be  invisible.

Steps to get back your folder


1. Go > Start

2. Go > Run

3. type cmd or command prompt and hit enter
(now cmd window will be opened)


4. enter the directory  letter with ':' and hit enter.
     then enter the folder name with cd command and hit enter.
     eg1:  let us take the 'abc' as the folder name.
           assume your folder is in the D drive. Then, type
           D:
           hit enter
     eg2: if your folder is inside of another folder in drive d.
            assume 'fld' as the another folder. the folder abc is in the folder fld. then type
            D:
            hit enter and then type
            cd fld
            hit the enter
            by this you can reach the location...

5. then type the code given below
    attrib -r -s -h folder

    (you can replace folder with folder name)
    eg: attrib -r -s -h abc
    hit enter


6. then type
     EXIT
     and hit enter


Just try this.. if you have any doubt on this then comment it below... I will give you the solution for that...