26 March, 2013

how to list hidden folders in windows command line

For showing all the folders which are hidden we can use the dir command in the windows command line

 dir /a:dh /s d:\


 the above command will show all the hidden directories in the drive D:\, it will also show the sub directories. Change the last string to the specified drive or folder where you want to search

for writing these output to a file , use the below command

dir /a:dh /s d:\ > FilesName.txt

Hope this helps t

No comments:

Post a Comment