Prefix to reverse order: put in front of above /O List by files in sorted order, sortorder:.Prefix meaning not: can be added to above attributes /A displays only files with these attributes:./P Pauses after each screenful of information.Specifies drive, directory, and/or files to list.Directory names should be separated by the " " character.ĭisplays a list of files and subdirectories in a directory.ĭIR attributes]] sortorder]]
A new path can beĭefined by typing the command Path, where refers to the series of directories for the path. Path at a DOS prompt will display the current DOS path. The path refers to the directories in which DOS will look for commands. If a command cannot be found, it may be because the command is not in the DOS path.For example, the folder "Program Files" is displayed in DOS as "Progra~1". DOS does not, so when a filename is longer than 8Ĭharacters, DOS will truncate the file name to an abbreviated form that is 8 characters long. Long filenames and allows spaces in file names. *.* refers to all files in the current directory. For example, *.txt refers to all files that have theĮxtension "txt".
The *(asterisk) character is used as a wildcard in DOS.Any of the flags or paths listed in square brackets- are optional-all others are required.dir /? will display information about the syntax and options of the DIR command). Quick reference information for any of the following commands can be displayed by adding the /? flagĪfter the command.
DOS is a non-graphical line-oriented command-driven computer operating system.
It is highly recommended that you upgrade to Windows 10 or 8.ĭOS (Disk Operating System) was the first widely-installed operating system for IBM-compatible personal computers. No further development will take place on these products and security updates are no longer issued. These products are no longer actively supported by Microsoft. If we are unable to resolve your Windows 9x/2000/XP/Vista issue, you may be able to find help in Microsoft's Knowledge Base. NOTE: Windows 95/98, Windows Me, Windows 2000, Windows XP, and Windows Vista are no longer supported by the Help Desk. Introduction to basic DOS command prompt use.