Use the Hidden Files Detector | By Kvc And it is a batch Program. It will definately help you out. You can see the code inside it for understanding. Although, the simple command in cmd would be. CD /d "D." Attrib -r -s -a -h *.* If D. is your required drive letter, path. .)