Idoc - Pub - All Commands in Ms Dos PDF
Idoc - Pub - All Commands in Ms Dos PDF
COMMANDS
IN
MS DOS
Contributed By
SAMEER DAREKAR
In the crowd of all advanced Operating Systems, very simple
and powerful operating system DOS is loosing its presence.
This booklet is merely collection of DOS commands. All
information in this booklet is copyrighted stuff by Microsoft
& others. I had just recompiled these commands for ease of
use (Collected these commands years ago, when I started
learning computers). Do visit Microsoft site for detailed info
about MS DOS. This booklet really helped me a lot. Hope
you will also find this booklet useful.
THIS BOOKLET CONTAIN ALL REGULARLY USED COMMANDS IN MS DOS WITH THEIR HELP
[drive:][path][filename]
Specifies drive, directory, and/or files to list.
(Could be enhanced file specification or multiple filespecs.)
/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).
CHDIR [drive:][path]
CHDIR[..]
CD [drive:][path]
CD[..]
MKDIR [drive:]path
MD [drive:]path
5. RD
Removes (deletes) a directory.
RMDIR [drive:]path
RD [drive:]path
6. COPY
Copies one or more files to another location.
COPY [/A | /B] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination
[/A | /B]] [/V] [/Y | /-Y]
To append files, specify a single file for destination, but multiple files
for source (using wildcards or file1+file2+file3 format).
7. XCOPY
Copies files and directory trees.
XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/W]
[/C] [/I] [/Q] [/F] [/L] [/H] [/R] [/T] [/U]
[/K] [/N]
DATE [date]
Type DATE without parameters to display the current date setting and
a prompt for a new one. Press ENTER to keep the same date.
10. VER
Displays the Windows version.
VER
Windows 98 [Version 4.10.1998]
11. TYPE
Displays the contents of text files.
TYPE [drive:][path]filename
12. EDIT
MS-DOS Editor Version 2.0.026 Copyright (c) Microsoft Corp 1995.
V. OPTIONS MENU
Options
+-----------------+
¦ Settings... ¦
¦ Colors... ¦
+-----------------+
The following are special codes you can use in DOSKey macro definitions:
$T Command separator: allows multiple commands in a macro
$1-$9 Batch parameters: equivalent to %1-%9 in batch programs
$* Symbol replaced by everything following macro name on the command
line
14. WIN
Starts Windows.
WIN [/D:[F][M][S][V][X]]
EXIT
17. TIME
Current time is 12:12:46.21a
Enter new time:
18. DELTREE
Deletes a directory and all the subdirectories and files in it.
Note: Use DELTREE cautiously. Every file and subdirectory within the
specified directory will be deleted.
19. MOVE
Moves files and renames files and directories.
To rename a directory:
MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2
ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:][path]filename] [/S]
+ Sets an attribute.
- Clears an attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
/S Processes files in all directories in the specified path.
21. SCANDISK
SCAN YOUR DISK FOR ERRORS IN IT AND REMOVES THEM
For information about the command-line parameters supported by
ScanDisk for Windows, look up 'checking for errors, in disks' in
the Windows Help index. Then view the topic 'Checking your disk
for errors every time your computer starts.'
22. COMMAND
Starts a new copy of the Windows Command Interpreter.
Instead of using CHKDSK, try using SCANDISK. SCANDISK can reliably detect
and fix a much wider range of disk problems.
25. DISKCOPY
Copies the contents of one floppy disk to another.
FDISK [/STATUS] /X
*****************************************************************************
Microsoft Windows 98
Fixed Disk Setup Program
(C)Copyright Microsoft Corp. 1983 - 1998
FDISK Options
Current fixed disk drive: 1
/A Displays only first and last lines for each set of differences.
/B Performs a binary comparison.
/C Disregards the case of letters.
/L Compares files as ASCII text.
/LBn Sets the maximum consecutive mismatches to the specified number of
lines.
/N Displays the line numbers on an ASCII comparison.
/T Does not expand tabs to spaces.
/W Compresses white space (tabs and spaces) for comparison.
/nnnn Specifies the number of consecutive lines that must match after a
mismatch.
29. FIND
Searches for a text string in a file or files.
If a pathname is not specified, FIND searches the text typed at the prompt
or piped from another command.
29. FORMAT
Formats a disk for use with MS-DOS.
LABEL [drive:][label]
C:\WINDOWS>LABEL
Volume in drive C is HDD-A-1-SRD
Volume Serial Number is 397F-15E1
Volume label (11 characters, ENTER for none)?
32. SYS
Copies MS-DOS system files and command interpreter to a disk you specify.
Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
Default action is to extract files in list, except those in xlist, to exdir;
file[.zip] may be a wildcard. -Z => ZipInfo mode ("unzip -Z" for usage).
PATH [[drive:]path[;...]]
PATH ;
Type PATH ; to clear all search-path settings and direct Windows to search
only in the current directory.
Type PATH without parameters to display the current path.
Thank You!:)