Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Microsoft(R) Windows 98
(C)Copyright Microsoft Corp 1981-1999.
* (I) Internal Command, (E) External Command,(C ) Config sys file.
C:\WINDOWS>ATTRIB/? (E)
Displays or changes file attributes.
ATTRIB [+R | -R] [+A | -A] [+S | -S] [+H | -H] [[drive:][path] [filename]] [/S]
+
R
A
S
H
/S
Sets an attribute.
Clears an attribute.
Read-only file attribute.
Archive file attribute.
System file attribute.
Hidden file attribute.
Processes files in all directories in the specified path.
C:\WINDOWS>CD/? (I)
Displays the name of or changes the current directory.
CHDIR [drive:][path]
CHDIR [..]
CD [drive:][path]
CD[..]
.. Specifies that you want to change to the parent directory.
Type CD drive: to display the current directory in the specified drive.
Type CD without parameters to display the current drive and directory.
C:\WINDOWS>CHKDSK/? (E)
Checks a disk and displays a status report.
CHKDSK [drive:][[path]filename] [/F] [/V]
[Drive:][Path]
Filename
/F
/V
/D
/A
/L
/N=number
/C
/OFF[LINE]
C:\WINDOWS>DEFRAG/?
DEFRAG <volume> [-a] [-f] [-v] [-?]
volume
drive letter or mount point (d: or d:\vol\mountpoint)
-a
Analyze only
-f
Force defragmentation even if free space is low
-v
Verbose output
-?
Display this help text
C:\WINDOWS>DELTREE/? (E)
Deletes a directory and all the subdirectories and files in it.
To delete one or more files and directories:
DELTREE [/Y] [drive:] path [[drive:] path [...]]
/Y
[drive:] path
Note: Use DELTREE cautiously. Every file and subdirectory within the specified directory will be
deleted.
C:\WINDOWS>DIR/? (I)
Displays a list of files and subdirectories in a directory.
DIR [drive:][path][filename] [/P] [/W] [/A [[:] attributes]]
[/O [[:] sort order]] [/S] [/B] [/L] [/V] [/4]
[drive:][path][filename]
Specifies drive, directory, and/or files to list.
(Could be enhanced file specification or multiple filespecs.)
/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.
3
/4
Switches may be preset in the DIRCMD environment variable. Override preset switches by prefixing
any switch with - (hyphen)--for example, /-W.
C:\WINDOWS>DISKCOPY/? (E)
Copies the contents of one floppy disk to another.
DISKCOPY [drive1: [drive2:]] [/1] [/V] [/M]
/1
/V
/M
The two floppy disks must be the same type. You may specify the same drive for drive1 and drive2.
C:\WINDOWS>DISKCOMP/?
Compares the contents of two floppy disks
DISKCOMP [drive1: [drive2:]]
C:\WINDOWS>DOSKEY/? (E)
Edits command lines, recalls command lines, and creates macros
DOSKEY [/switch ...] [macroname=[text]]
/BUFSIZE:size
/ECHO:on|off
/FILE:file
/HISTORY
/INSERT
/KEYSIZE:size
/LINE:size
/MACROS
/OVERSTRIKE
/REINSTALL
macroname
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
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.
C:\WINDOWS>EDIT/? (E)
MS-DOS Editor Version 2.0.026 Copyright (c) Microsoft Corp 1995.
EDIT [/B] [/H] [/R] [/S] [/<nnn>] [/?] [file(s)]
/B
/H
/R
/S
/<nnn>
/?
[file]
C:\WINDOWS>EXIT/? (I)
Quits the COMMAND.COM program (command interpreter).
EXIT
C:\WINDOWS>FC/? (E)
Compares two files or sets of files and displays the differences between them.
FC [/A] [/C] [/L] [/LBn] [/N] [/T] [/W] [/nnnn] [drive1:][path1]filename1
[drive2:][path2]filename2
FC /B [drive1:][path1]filename1 [drive2:][path2]filename2
/A
/B
/C
/L
/LBn
/N
/T
/W
/nnnn
Displays only first and last lines for each set of differences.
Performs a binary comparison.
Disregards the case of letters.
Compares files as ASCII text.
Sets the maximum consecutive mismatches to the specified number of lines.
Displays the line numbers on an ASCII comparison.
Does not expand tabs to spaces.
Compresses white space (tabs and spaces) for comparison.
Specifies the number of consecutive lines that must match after a mismatch.
C:\WINDOWS>FDISK/? (E)
Configures a hard disk for use with MS-DOS.
FDISK [/STATUS] /X
/STATUS
/X
C:\WINDOWS>FIND/? (E)
Searches for a text string in a file or files.
FIND [/V] [/C] [/N] [/I] "string" [[drive:][path]filename[ ...]]
/V
Displays all lines NOT containing the specified string.
/C
Displays only the count of lines containing the string.
/N
Displays line numbers with the displayed lines.
/I
Ignores the case of characters when searching for the string.
"string"
Specifies the text string to find.
[drive:][path]filename
Specifies a file or files to search.
If a pathname is not specified, FIND searches the text typed at the prompt or piped from another
command.
5
C:\WINDOWS>FORMAT/? (E)
Formats a disk for use with MS-DOS.
FORMAT drive: [/V[:label]] [/Q] [/F:size] [/B | /S] [/C]
FORMAT drive: [/V[:label]] [/Q] [/T:tracks /N:sectors] [/B | /S] [/C]
FORMAT drive: [/V[:label]] [/Q] [/1] [/4] [/B | /S] [/C]
FORMAT drive: [/Q] [/1] [/4] [/8] [/B | /S] [/C]
/V[:label]
/Q
/F:size
/B
/S
/T:tracks
/N:sectors
/1
/4
/8
/C
C:\WINDOWS>LABEL/? (E)
Creates, changes, or deletes the volume label of a disk.
LABEL [drive:][label]
C:\WINDOWS>MD/? (I)
Creates a directory.
MKDIR [drive:]path
MD [drive:]path
C:\WINDOWS>MEM/? (E)
Displays the amount of used and free memory in your system.
MEM [/CLASSIFY | /DEBUG | /FREE | /MODULE modulename] [/PAGE]
/CLASSIFY or /C
/DEBUG or /D
/FREE or /F
/MODULE or /M
/PAGE or /P
C:\WINDOWS>MORE/? (E)
Displays output one screen at a time.
MORE [drive:][path]filename
MORE < [drive:][path]filename
command-name | MORE [drive:][path][filename]
[drive:][path]filename Specifies file(s) to display one screen at a time
command-name
Specifies a command whose output will be displayed.
C:\WINDOWS>MOVE/? (E)
Moves files and renames files and directories.
To move one or more files:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
To rename a directory:
MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2
[drive:][path]filename1
destination
[drive:][path]dirname1
dirname2
/Y
Specifies the location and name of the file or files you want to move.
Specifies the new location of the file. Destination can consist of a drive
letter and colon, a directory name, or a combination. If you are moving
only one file, you can also include a filename if you want to rename the
file when you move it.
Specifies the directory you want to rename.
Specifies the new name of the directory.
Suppresses prompting to confirm creation of a directory or overwriting
of the destination.
Causes prompting to confirm creation of a directory or overwriting of
the destination.
/-Y
Prompt can be made up of normal characters and the following special codes:
$Q
$$
$T
$D
$P
$V
$N
= (equal sign)
$ (dollar sign)
Current time
Current date
Current drive and path
Windows version number
Current drive
7
$G
$L
$B
$H
$E
$_
Type PROMPT without parameters to reset the prompt to the default setting.
C:\WINDOWS>RD/? (I)
Removes (deletes) a directory.
RMDIR [drive:]path
RD [drive:]path
C:\WINDOWS>REN/? (I)
Renames a file/directory or files/directories.
RENAME [drive:][path][directoryname1 | filename1] [directoryname2 | filename2]
REN [drive:][path][directoryname1 | filename1] [directoryname2 | filename2]
Note that you cannot specify a new drive or path for your destination.
C:\WINDOWS>REM/? (C)
Records comments (remarks) in a batch file or CONFIG.SYS.
REM [comment]
C:\WINDOWS>SET/? (I)
Displays, sets, or removes Windows environment variables.
SET [variable=[string]]
variable
string
C:\WINDOWS>TIME/? (I)
Displays or sets the system time.
TIME [time]
Type TIME with no parameters to display the current time setting and a prompt for a new one. Press
ENTER to keep the same time.
C:\WINDOWS>TYPE/? (I)
Displays the contents of text files.
TYPE [drive:][path]filename
8
C:\WINDOWS>VER/? (I)
Displays the Windows version.
VER
C:\WINDOWS>VOL/? (I)
Displays the disk volume label and serial number, if they exist.
VOL [drive:]
C:\WINDOWS>VERIFY/?
Tells cmd.exe whether to verify that your files are written correctly to a disk.
VERIFY [ON | OFF]
Type VERIFY without a parameter to display the current VERIFY setting.
C:\WINDOWS>XCOPY/? (E)
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]
source
destination
/A
/M
/D: date
/P
/S
/E
/W
/C
/I
/Q
/F
/L
/H
/R
/T
/U
/K
/Y
/-Y
/N