2

If I hide a file using command attrib +s +h file.txt. Then set the option 'view hidden files' in Windows 7, but it is not possible to see file.txt. Why can't I see the files hidden by the batch script?

2 Answers 2

5

Because of the +s parameter you would also need to uncheck the Hide protected operating system files (Recommended) checkbox in "Folder Options" - "View" to see the file you've hidden.

2

Try the following command:

dir /S /aH 

also

dir /B /S /a-D

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .