\\\$1\ \\$2 ..
20 \\\$1\ # \\$2 ..
5 -l # Long listing
5 -r # Recursively descend and print subdirectories
20 dosdir -l A # List root directory on drive A
20 dosdir -r C x/y # Recursively list directory x/y
20 dosdir -r fd1 # List device /dev/fd1
Dosdir reads standard IBM PC diskettes or hard disk partitions in \s-2MS-DOS\s+2 format and lists their contents on standard output. Directory names should contain slashes to separate components, even though \s-2MS-DOS\s+2 uses backslashes. The names dosdir , dosread , and doswrite are all links to the same program. The program sees which function to perform by seeing how it was called. A drive code of A causes the program to use /dev/dosA, for example, a link to /dev/fd0. Similarly, to have hard disk partition 1 be DOS drive C, /dev/dosC could be a link to /dev/hd1, and so on for other drive codes. A normal device name may also be used instead of a drive code.