How to Hide Files in Windows Using CMD

If you want to keep your sensitive files and data secure on a Windows system, one way to achieve this is by hiding the files using Command Prompt (CMD). This method can help you protect your privacy and prevent unauthorized access to important information. Below are the steps to hide files in Windows using CMD:

Step 1: Access Command Prompt

To begin, press Win + R on your keyboard to open the ‘Run’ dialog box. Type ‘cmd‘ and press Enter to open Command Prompt.

Step 2: Navigate to the Directory

Use the ‘cd‘ command to navigate to the directory where the file you want to hide is located. For example, if the file is on the desktop, you can type ‘cd Desktop‘ and press Enter.

Step 3: Hide the File

Once you are in the directory containing the file, type ‘attrib +h filename.extension‘ and press Enter. Replace ‘filename.extension‘ with the name of the file you want to hide. This command sets the ‘hidden’ attribute for the file.

Step 4: Verify the File is Hidden

To confirm that the file is hidden, go to the directory where the file is located. At this point, the file should no longer be visible in the directory.

By following these simple steps, you can easily hide files in Windows using CMD. Remember that while this method can help keep your files out of sight, it is not a foolproof security measure. For added security, consider using encryption or password protection for sensitive files.