List all hidden folders/files in Windows 7 & 10 code example Example: List all hidden folders/files in Windows 7 & 10 dir /S /A:H > hidden.txt