Anil
Anil

Reputation: 1

How can I display folders with both hidden and system attributes

I hide folders on my Windows machine using attrib +h +s d:\<filename>. Now I forgot folder names and not able to retrive hidden folders.

I tried attrib -h -s d:, but it didn't work.

Upvotes: -2

Views: 48

Answers (1)

Shahi Papon
Shahi Papon

Reputation: 91

Run the following command in the Command Prompt to list all files and folders, including hidden and system ones, on the drive:

dir d:\ /a:h /s

/a:h: Lists hidden files and folders. /s: Searches recursively in all subdirectories. Reference

If you find your desired hidden folders then try unhide command again.

attrib -h -s "d:\<foldername>"

Upvotes: 1

Related Questions