Can ms dos list all files and directory (including hidden ones)

ms-dos

I think there used to be a command called

dir -a

or something like that.

Now it's no longer there isn't it?

To see hidden file we need

dir /a:h

which will show only hidden files, which is not what I want.

So how to display all files, whether hidden or not?

Best Answer

Just list all attributes in /a. That'd be dir /a:drhsa on real DOS and a few more letters on Windows with NTFS, all listed under /a in help.

Related Question