Mdir is the mtools tool command that simulates the dir command of the MS-DOS to display contents of directories in the MS-DOS file system.
Syntax
Mdir [-afwx/] [Directory]
Parameters:
- -/Display all subdirectories and files in the directory.
- -A: hide the file.
- -F does not display the remaining available space on the disk.
- -W only displays the directory or file name and displays it in a horizontal layout so that a large number of directories or files can be displayed at a time.
- -X only displays the complete paths of all subdirectories and files in the directory. No other information is displayed.
Instance
Show content in disk
$ Mdir-/:\*
After the preceding command is executed, mdir displays all the subdirectories in the specified disk "a: \" and their file information, as shown below:
Volume in drive A has no label # load information
Volume Serial Number is 13D2 ~ 055C
Directory forA: \ # Directory information
./TEST <DIR>
# Display format: file name, directory size, modification time
AUTORUN. INF 265
AUTORUN. BAT 43
3 files 308 bytes # Total statistics size
724 325 bytes free # available space