Monday, October 15, 2018

Hide Unhide Folders

Hide Unhide Folders

Hide Folders


Supposing that you hide the important files and folders in your computer by means of downloaded software, you can think about hiding them by using the built-in Command Prompt. Moreover, after they are hided through CMD, they can be displayed again. And this text will show you how to hide or unhide files and folders with CMD immediately.

First Open Run Dialog Using WinKey + R Then Type CMD then Enter or
 Start > All Programs > Accessories > Command Prompt or
Start > cmd then Press Enter

You can Choose any way u like.



You Can See A Path Like This.



C Driver User File then Computer Name.

Using DIR code You Can See All The Folders Inside User Folder



If You Want To Hide a folder In Your Desktop You Have To Change The Path To The Desktop.
To Do So Type CD Desktop

CD Code For Change Directory.
Then Type MD New

MD for Made Directory. MD Space NEW
New Is The Folder Name
You Can See In Your desktop New Folder Is created.





Then Create Some Files or Copy Some files To folder.

After That You Can Enter Hiding Code to Apply Hide Attribute To The All The Files Inside New Folder.






Attrib +h +s +r /s /d *.* is The Code to Hide All Files.
Before Enter That Make Your Path Is the New Folder Path. 


What is attrib?
The attrib command is a Windows command prompt command. The main purpose of this command is to remove and set file attributes (hidden, read-only, system and archive). The attributes provide security to software programs. It displays, sets or removes the read-only, hidden and archive file attributes assigned for a file or directory.
It allows a user to change the file attribute directly using this command. Let's understand how it works.
There are four attributes in Windows files
  • Hidden
    It makes files or folders invisible to the user to provide for safety of the files or folders.
  • Read-only
    It provides the read-only attribute to the file, in other words no one can delete or make changes to that specific file that has the read-only attribute.
  • Archived
    Provide a backup of file. Hence help in recovering of files.
  • System
    Mark the file as an important system file, hence change the priority of the file.
Parameters of attrib command
  • +r : Used to set the file attribute as read-only.
  • -r : Used to clear the read-only file attribute.
  • +a : Used to set the file attribute as archive.
  • -a : Used to clear the archive file attribute.
  • +s : Used to set the file attribute as a system file.
  • -s : Used to clear the system file attribute.
  • +h : Used to make the file attribute as hidden not visible to the user.
  • -h : Used to clear the hidden file attribute.
  • [Drive:][Path] File Name: Provides the location and name of the directory where files or folders are stored, Then provide the file or folder name and then set the attribute that you want to apply.

To Unhide Files Type Attrib -h -s -r /s /d *.*

You Can See Hidden Files Un hidden.


If You Want To Hide a Folder In a D or E or other drive.
first go to the Drive.
Type D: Enter for D Drive E: for E: Like That.

Then create a folder and Type Hiding code after going to the new folder path.
That's All.



References : c-sharpcorner.com



0 comments:

Post a Comment