How to list all files on all hard drives with output in MS-DOS batch?

Posted by Leandro on Super User See other posts from Super User or by Leandro
Published on 2012-02-10T14:47:10Z Indexed on 2013/11/01 21:58 UTC
Read the original article Hit count: 299

Filed under:
|
|
|

How can I list all files (including system and hidden) on all hard drives (not removable drives)?

I think in something like a:

dir -a -h *.* /s > file.txt

but this is for the specific drive where I'm.

How can I do something like that but with C:, D:, etc, but I don't know the DOS's name of the drivers, and i need a .bat to do this (an automatic listing). Implementer can't also know the names of drivers.

© Super User or respective owner

Related posts about file

Related posts about batch