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

Solution 1:

dir /a lists everything, visible and hidden files altogether.

Solution 2:

Depend on the environment, dir /a may work.

In other systems, dir /A: may be needed. That is, put a colon after the /A

This answer might apply to JP Software's 4DOS, as well.

Another option is to not use DIR, but to use the ATTRIB command. You're probably familiar with that command for changing file attributes. However, it can also be useful for simply showing files.