Computer Pranks, Tricks,Tips

Collection of the excellent Computer Pranks,Computer Tricks and articles.

Sunday, August 28, 2011

How to Hide a File Using Command Prompt (CMD) in Windows

In this post, I’m going to show you a simple trick to hide a file using Command Prompt (CMD) in Windows.
You just need to follow two easy steps.

Step 1: Open Command Prompt

  • Click Start
  • Type cmd
  • Press Enter

(You can also open it using Win + R → type cmd → OK)


Step 2: Use the ATTRIB Command

In the Command Prompt window, type the following command:

Example:

attrib +s +h path_of_the_File

Example:

attrib +s +h d:\folder1\folder2\file_name

🔹 +s → Sets the System attribute
🔹 +h → Sets the Hidden attribute

Once you press Enter, the file will immediately disappear from normal view, making it hidden and less noticeable.

(In next post  i will give the trick to unhide that file...)

No comments: