Friday, June 27, 2008

Hide Folder From View( Hiding using Dos Promt)

Way To Hide Folder and Add other Attributes

If you want hide your folder say,
in d:\sample then you have to go to command prompt
go to corresponding folder and type

Attrib "folderName"_+r_+a_+s_+h

or

Attrib "folderName"_+h_+s

after executing the above command.The folder will be removed from sight
to see it again,

Attrib "folderName"_-r_-a_-s_-h

or

Attrib "folderName"_+h_+s

after executing the above command you can see the folder.

Note : Folder name should come within quotations and replace "_" with space.

Explanation:

+R - Use the +R option to make a file read-only. Read-only files may be read but they can`t be changed or deleted.

-R - Use the -R option to change the file protection attribute back to normal (so it can be read, changed, or deleted).

+A - Use the +A option to set the ARCHIVE attribute of a file. When the +A option is used, this flags the file as available for archiving when using the BACKUP or XCOPY commands.

-A - Use the -A option to turn off the ARCHIVE attribute.

+H - With DOS Versions 4 through 6, use the +H option to set the HIDDEN attribute of a file so that it will not appear in a directory listing.

-H - Use the -H option to turn off the HIDDEN attribute.

+S - With DOS Versions after Version 4, use the +S option to set the SYSTEM attribute of a file. When the +S option is used, this flags the file as a command file used only by DOS. The file will not appear in a directory listing. This attribute is generally reserved for programmers.

-S - Use the -S option to turn off the SYSTEM attribute.

after executing the above command you can see the folder.



Security Threat:
If the user tries to access from command prompt he can access its contents.

Source:
Other Blogs

No comments: