DIR + Listing Files in a Directory
Lists files contained in a directory.
PC-DOS 2.0+ (revised from 1.1)
MS-DOS equivalent: DIR (2.0+)
DIR [d:][path][filename] [W]
[d:][path][filename] Specify the drive letter, path
name, or file name when you
wish to obtain a directory
listing of files that are not
in the current directory.
/P Tells DOS to pause when the
screen has been filled. To see
the next screen of file names,
press any key.
/W Displays a directory showing
only file names in a wide
format- -five names across
DIR is used to display the contents of a directory as well
as the file size in bytes, the date and time of last
modification, the number of bytes available on the disk, and any
subdirectories under the current directory.
displays the contents of the current working directory on drive
displays only those files in the current working directory of
drive C that have the .MAC extension.
If you have used the /V option with the FORMAT command, the
first line of the DIR listing will report the name of the disk
label. If you did not label your disk, this line reads
Volume in drive x has no label
This information is not provided in early versions of the DIR
command. The DIR command does not list hidden files that are
created by the FORMAT and the SYS commands. The CHKDSK command
lists these files. The /W and /P options affect only how the
files are displayed (wide or with pauses between screenfuls), not
the content of what is displayed on the screen.
[For related topics, press R]
DEL (DELETE) and ERASE Commands
RENAME EN) Command
|file: /Techref/dos/command/dir.htm, 2KB, , updated: 1999/2/20 11:24, local time: 2018/6/21 03:01,
|©2018 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/dos/command/dir.htm"> dos command dir</A>
|Did you find what you needed?|
PICList 2018 contributors:
o List host: MIT, Site host massmind.org, Top posters @20180621 RussellMc, Van Horn, David, Isaac M. Bavaresco, Sean Breheny, Neil, David C Brown, Bob Blick, Denny Esterline, Brent Brown, James Cameron,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!