Académique Documents
Professionnel Documents
Culture Documents
Microsoft(R) Windows 98
(C)Copyright Microsoft Corp 1981-1999.
* (I) Internal Command, (E) External Command,(C ) Config sys file.
1.
2.
3.
5.
Options:
/D
/A
/L
/N=number
/C
8.
9.
[Drive:] path
Note: Use DELTREE cautiously. Every file and subdirectory within the specified directory will be
deleted.
10. C:\WINDOWS> DIR/? (I)
Displays a list of files and subdirectories in a directory.
DIR [drive:] [path][filename] [Options]
[Drive:][Path][Filename] Specifies drive, directory, and/or files to list.
(Could be enhanced file specification or multiple filespecs.)
Options:
/P
Pauses after each screen full 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.
Sort order
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.
11. C:\WINDOWS> DISKCOPY/? (E)
Copies the contents of one floppy disk to another.
DISKCOPY [drive1: [drive2:]] [Options]
Options:
/1
Copies only the first side of the disk.
/V
Verifies that the information is copied correctly.
/M
Force multi-pass copy using memory only.
The two floppy disks must be the same type. You may specify the same drive for drive1 and
drive2.
12. C:\WINDOWS> DISKCOMP/?
Compares the contents of two floppy disks
DISKCOMP [drive1: [drive2:]
13. C:\WINDOWS> DOSKEY/? (E)
Edits command lines, recalls command lines, and creates macros
DOSKEY [/switch] [macro name= [text]]
/HISTORY
/MACROS
Macro name
text
UP, DOWN
Esc
F7
Alt+F7
[Chars]F8
F9
Alt+F10
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. C:\WINDOWS> ECHO/? (I)
Displays messages, or turns command-echoing on or off.
ECHO [ON | OFF]
ECHO [message]
Type ECHO without parameters to display the current echo setting.
15. C:\WINDOWS> EDIT/? (E)
MS-DOS Editor Version 2.0.026 Copyright (c) Microsoft Corp 1995.
EDIT [File name]
16. C:\WINDOWS>EXIT/? (I)
Quits the COMMAND.COM program (command interpreter).
EXIT
17. C:\WINDOWS> FDISK/? (E)
Configures a hard disk for use with MS-DOS.
FDISK [Options]
Options:
/STATUS
/X
Prompt can be made up of normal characters and the following special codes:
$Q
$$
$T
$D
$P
$V
$N
$G
$L
$B
$H
$E
$_
= (equal sign)
$ (dollar sign)
Current time
Current date
Current drive and path
Windows version number
Current drive
> (greater-than sign)
< (less-than sign)
| (pipe)
Backspace (erases previous character)
Escape code (ASCII code 27)
Carriage return and linefeed
Type PROMPT without parameters to reset the prompt to the default setting.
27. C:\WINDOWS> RD/? (I)
Removes (deletes) a directory.
RMDIR [drive:]path
RD [drive:]path
28. C:\WINDOWS> REN/? (I)
Renames a file/directory or files/directories.
RENAME [Old filename] [New filename]
Note that you cannot specify a new drive or path for your destination.
29. C:\WINDOWS> REM/? (C)
Records comments (remarks) in a batch file or CONFIG.SYS.
REM [comment]
6