Hide and unhide files using cmd prompt

- - Latest reply: HelpiOS
Posts
6773
Registration date
Friday October 30, 2015
Status
Contributor
Last seen
October 18, 2019
- Sep 26, 2019 at 06:58 PM
Hello,
please help me hide and unhide files using cmd prompt in my windows 7
See more 

1 reply

Posts
6773
Registration date
Friday October 30, 2015
Status
Contributor
Last seen
October 18, 2019
209
0
Thank you
Hi,

To hide or unhide a file or folder with Command Prompt, you must first run it with admin rights. Open the Start menu and search for cmd. Right click on it and choose Run as administrator.

To hide, enter this command:
  • attrib +s +h c:\your-file


To unhide, enter this command:
  • attrib -s -h c:\your-file


The letter C should be changed by the drive letter where your file or folder is located.
Respond to HelpiOS