Preview

Dos Commands

Good Essays
Open Document
Open Document
2623 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Dos Commands
DOS COMMANDS

Basic DOS commands
To clear your screen (Type CLS to clear your screen)
C:\>CLS
Fast Help after each command types /? after each commands
C:\>DIR /?
File Management Commands
DIR - to display all your DOS directories
C:\>DIR
DIR switches
DIR switches in details
/P Pauses after each screenful of information.
/W Uses wide list format.
/A Displays files with specified attributes. attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files - Prefix meaning not
/O List by files in sorted order. sortorder N By name (alphabetic) S By size (smallest first)
E By extension (alphabetic) D By date & time (earliest first)
G Group directories first - Prefix to reverse order
A By Last Access Date (earliest first)
/S Displays files in specified directory and all subdirectories.
/B Uses bare format (no heading information or summary).
/L Uses lowercase.
/V Verbose mode.
/4 Displays year with 4 digits (ignored if /V also given).
Switches may be preset in the DIRCMD environment variable. Override preset switches by prefixing any switch with - (hyphen)--for example, /-W. To create a directory
C:\>MD or MKDIR example (we just created a directory called example)
File Naming Convention
All DOS file names have a maximum length of 8 characters followed by an optional extension with a maximum length of 3 characters.
Example: AUTOEXEC.BAT
The following characters are reserved and cannot be used in an MS DOS environment
Colon:
Semicolon;
Slashes / \
Spaces
Greater than >
Less than <
Question mark?
Asterisk *
Period.
Dollar sign $
Quotes marks " "
Apostrophes ' '
Pipe sign |
Valid DOS names
AUTOEXEC.BAT, CONFIG.SYS, NAME.DOC, HELLO.TXT
Invalid DOS names
AUTOEXEC233.BAT, <Good>.EXE, NAME$. DOC
To remove a directory
C:\>RD or RMDIR example (removes the example directory)
To change a directory
C:\>CD or CHDIR example (press enter)
C:\>EXAMPLE ( I

You May Also Find These Documents Helpful