Академический Документы
Профессиональный Документы
Культура Документы
�����������������http://www.mdgx.com/������������������
��������������������
MS-DOS 7.10 = DOS + Windows Console Commands
��������������������������������������������
Newer versions of MS-DOS 16-bit were installed only as part of MS Windows 95,
98 + ME 32-bit (+ 16-bit) Operating Systems:
- MS-DOS 7.00 = Windows 95/95a OSR1.
- MS-DOS 7.10 = Windows 95B OSR2.0/95B OSR2.1/95C OSR2.5/98/98 SP1/98 SE(U).
- MS-DOS 8.00 [stripped down MS-DOS 7.10 :-(] = Windows ME = *last* Win9x (and
implicitly *last* MS-DOS) edition.
MS-DOS 7.10 bundled with Windows 98 SE(U) is the most advanced MS-DOS OS ever
released, and *only* one discussed here.
Older native/real/true/pure MS-DOS 16-bit versions were released only as
stand-alone 16-bit Operating Systems:
- MS-DOS 5.0
- MS-DOS 5.0a
- MS-DOS 6.0
- MS-DOS 6.20
- MS-DOS 6.21
- MS-DOS 6.22 = *last* stand-alone MS-DOS edition.
See DOS6CMD.TXT (part of W31-11D.ZIP) for MS-DOS 6.xx commands:
http://www.mdgx.com/31.htm
FYI:
Windows NTx [NT, 2000, XP, 2003, Vista, 2008, 7, 8, 2012] DOS console
commands:
- A-Z Index of Windows CMD command line:
http://www.ss64.com/nt/
- Windows XP/2003/Vista/2008/7/8/8.1/2012 Command Line Reference:
http://technet.microsoft.com/library/cc754340.aspx
- Windows 2003 Command Line Reference:
http://technet.microsoft.com/library/cc778084.aspx
- Windows XP Command Line Reference:
http://technet.microsoft.com/library/bb490890.aspx
- Windows XP Command line reference A-Z:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-
us/ntcmds.mspx
- Windows XP MS-DOS subsystem commands (16-bit):
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-
us/dos_cmds.mspx
To see more DOS commands details run the HELP.COM command from any DOS prompt
followed by a space and the command file name [followed or not by a dot (.)
and the respective command file extension]:
HELP FILENAME.EXT
Example:
HELP EMM386.EXE
which is different from (same command file name without file extension):
HELP EMM386
Substitute FILENAME with any valid DOS command file name.
Substitute EXT with actual file extension (if any = external commands only).
These 4 files are required for running HELP:
HELP.COM = DOS based command help tool
HELP.HLP = DOS based help file used by HELP.COM
QBASIC.EXE = QBasic DOS based tool used by HELP.COM
QBASIC.HLP = QBasic DOS based help file used by QBASIC.EXE
and should reside into %windir%\COMMAND [%windir% = usually C:\WINDOWS]
[default] or somewhere in your PATH, eventually specified in your CONFIG.SYS
or AUTOEXEC.BAT, both located in C:\ root.
These 4 files are NOT installed by Windows 95/98/ME. You need to copy them by
hand onto your hard disk from your Windows Setup CD-ROM:
- \OTHER\OLDMSDOS = Windows 95/95a OSR1/95B OSR 2.0/95B OSR 2.1/95C OSR 2.5.
- \TOOLS\OLDMSDOS = Windows 98/98 SP1/98 SE(U)/ME.
Then install Unofficial MS-DOS 7.xx/8.00 Help System HELP.HLP Update [327 KB]:
http://www.mdgx.com/files/HELPHLP.EXE
To see details about the DOS commands used exclusively in CONFIG.SYS, open
these 2 plain text/ASCII files located into %windir% [usually C:\WINDOWS] with
Notepad or better plain text editor/viewer (Windows):
http://www.mdgx.com/toy.htm#TXT
or EDIT (DOS):
- CONFIG.TXT = Internal CONFIG.SYS DOS commands [actual files do NOT exist =
built into C:\IO.SYS and/or C:\COMMAND.COM], also @ MSKB:
http://support.microsoft.com/kb/234853
- MSDOSDRV.TXT = External CONFIG.SYS DOS commands [actual files exist = *.EXE
or *.SYS], also @ MSKB:
http://support.microsoft.com/kb/234868
IMPORTANT:
IF using ANY 3rd party DOS shell processor (command interpreter) OTHER THAN
COMMAND.COM (default), like 4DOS:
http://www.4dos.info/sources.htm
http://www.jpsoft.com/download.htm#free
DR-DOS:
http://en.wikipedia.org/wiki/DR-DOS
NDOS (included with Symantec Norton Utilities):
http://en.wikipedia.org/wiki/4DOS#NDOS
http://en.wikipedia.org/wiki/Norton_Utilities#Norton_Utilities_for_DOS.2FWindows_3.
1
etc, some DOS commands names and/or functions are different!
Refer to your respective software documentation for details.
FYI:
MS-DOS 6.22 Supplemental Disk:
http://support.microsoft.com/kb/117600
Direct download [762 KB, free]:
http://download.microsoft.com/download/win31/Update/1/DOS/EN-US/sup622.exe
contains more DOS commands:
http://www.microsoft.com/technet/archive/msdos/01_intro.mspx
COMMANDS.TXT: Supplemental Disk Commands:
http://support.microsoft.com/kb/97835
MS-DOS 6.22 required to use most Supplemental files!
Internal DOS commands (built into IO.SYS +/- COMMAND.COM), which can be used
from native/real/true/pure DOS/MS-DOS mode outside Windows, from a DOS/MS-DOS
prompt inside Windows or from inside a batch file, including AUTOEXEC.BAT:
BREAK
CALL
CD = CHDIR
CHCP
CHDIR = CD
CLS
COPY
CTTY
DATE
DEL = ERASE
DIR
ECHO
ERASE = DEL
EXIT
FOR
GOTO
IF
LABEL
LFNFOR
LH = LOADHIGH
LOADHIGH = LH
LOCK
MD = MKDIR
MKDIR = MD
PATH
PAUSE
PROMPT
RD = RMDIR
REM = :: = ;
REN = RENAME
RENAME = REN
RMDIR = RD
SET
SHIFT
TIME
TRUENAME
TYPE
UNLOCK
VER
VERIFY
VOL
Internal DOS commands (built into IO.SYS), which can be used only from inside
CONFIG.SYS:
ACCDATE
BREAK
BUFFERS
BUFFERSHIGH
DEVICE
DEVICEHIGH
DOS
FCBS
FCBSHIGH
FILES
FILESHIGH
INCLUDE
INSTALL
INSTALLHIGH
LASTDRIVE
MENUCOLOR
MENUDEFAULT
MENUITEM
MULTITRACK
NUMLOCK
SHELL
SHELLHIGH
STACKS
STACKSHIGH
SWITCHES
EXCEPTIONS:
CVT + EXTRAC32 command line parameters screen output display NOT available.
CVT displays only a graphical interface when executed without any parameters.
REGEDIT + SCANDISK command line parameters NOT available from within Windows.
XCOPY32 command line parameters NOT available from native/real/true/pure
MS-DOS because LFN (Long File Names) support is only available from within
Windows.
START command [available only from within Windows] line parameters screen
output display canNOT be redirected to a text file.
LEGEND:
[E] = External command = actual file executable exists: *.COM or *.EXE.
[I] = Internal command = actual file executable does NOT exist.
All internal commands are built into IO.SYS + COMMAND.COM and load into
memory at boot time from within IO.SYS [default], CONFIG.SYS and/or
AUTOEXEC.BAT [custom].
[B] = DOS BATch [*.BAT] file specific command. Most can be also used from
DOS/MS-DOS.
[C] = CONFIG.SYS only command and/or can be also used in CONFIG.SYS.
[D] = Available ONLY from native/real/true/pure DOS/MS-DOS.
[W] = Available ONLY from within Windows DOS console (box/session/window).
[U] = UNdocumented command and/or command line parameter(s)/switch(es).
[X] = Extra command: NOT installed by default by Windows 95/98/ME. You need to
copy it manually onto your hard disk [preferably to %windir%\COMMAND] from
your Windows Setup CD-ROM/floppies:
- \OTHER\OLDMSDOS = Windows 95/95a OSR1/95B OSR 2.0/95B OSR 2.1/95C OSR 2.5.
- \TOOLS\OLDMSDOS = Windows 98/98 SP1/98 SE(U)/ME.
More info:
http://en.wikipedia.org/wiki/Address_Resolution_Protocol
______________________________________________________________________________
[E] ATTRIB.EXE
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.
while running an ATTRIB.EXE command line, you must press A (Abort) or F (Fail)
to be allowed to continue.
This means you are trying to modify file(s)/directory(ies) attributes already
in use by the OS or by a running program.
Workaround:
Add "ECHO A | " in front of all command lines that use the ATTRIB command
(example):
[I] BREAK
Must always use the .BAT file extension with the CALL command (examples):
Correct usage:
Incorrect usage:
[I] CD = CHDIR
CHDIR [drive:][path]
CHDIR[..]
CD [drive:][path]
CD[..]
[I] CHCP
Displays or sets the active code page number.
CHCP [nnn]
Type CHCP without a parameter to display the active code page number.
CONFIG.SYS line:
INSTALLHIGH=C:\WINDOWS\COMMAND\NLSFUNC.EXE C:\WINDOWS\COMMAND\COUNTRY.SYS
AUTOEXEC.BAT lines:
C:\WINDOWS\COMMAND\NLSFUNC.EXE C:\WINDOWS\COMMAND\COUNTRY.SYS
CHCP 852
[E] CHKDSK.EXE
Instead of using CHKDSK, try using SCANDISK. SCANDISK can reliably detect
and fix a much wider range of disk problems.
[I] CLS
CLS
______________________________________________________________________________
[I] COPY
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).
Run this command to join pieces of the same MPG video file back together
(example):
Preset COPY + MOVE command line switches can be forced to run automatically
without being prompted for input every time the COPY + MOVE commands are
executed, by adding them into the COPYCMD environment variable listed in
CONFIG.SYS or AUTOEXEC.BAT (example):
SET COPYCMD=/Y
Run this command to view the contents of any file (if it fits in memory), 1
screen at a time (example):
Then dump the entire file contents from screen memory to a text/ASCII file
(example):
When done press Ctrl + Z at the same time (or F6) to return back to the DOS
prompt.
And/or print the entire file contents from screen memory to the default
printer port in text/ASCII format (example):
When done press Ctrl + Z at the same time (or F6) to return back to the DOS
prompt.
Options:
//B Batch mode: Suppresses script errors and prompts from displaying
//D Enable Active Debugging
//E:engine Use engine for executing script
//H:CScript Changes the default script host to CScript.exe
//H:WScript Changes the default script host to WScript.exe (default)
//I Interactive mode (default, opposite of //B)
//Job:xxxx Execute a WSF job
//Logo Display logo (default)
//Nologo Prevent logo display: No banner will be shown at execution time
//S Save current command line options for this user
//T:nn Time out in seconds: Maximum time a script is permitted to run
//X Execute script in debugger
______________________________________________________________________________
CTTY device
CTTY NUL
After that must reenable console (display) output from within same batch file
[or from the DOS prompt]:
CTTY CON
Otherwise all following DOS commands and their standard console (display)
output will NOT be visible.
______________________________________________________________________________
Converts 16-bit FAT (FAT16) file system to 32-bit FAT (FAT32) file system.
[/NOP] Suppress all warning dialogs, as well as user queries associated with
the warning dialogs that the converter displays when it detects a
problem.
[/MIN] This parameter overrides the minimum volume size logic that the
converter uses to determine whether converting a volume to FAT32 is
feasible. The conversion will take place even if the volume is too
small to economically convert to FAT32.
[/HIB] The converter checks for any file in the following list of hibernate
files present in the root directory of the volume to be converted to
FAT32.
[I] DATE
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.
______________________________________________________________________________
[E] DEBUG.EXE
A Guide to DEBUG:
http://thestarman.pcministry.com/asm/debug/debug.htm
DEBUG Tutorial:
http://www.armory.com/~rstevew/Public/Tutor/Debug/debug-manual.html
Computer DEBUG routines:
http://www.computerhope.com/rdebug.htm
DEBUG Command:
http://en.wikipedia.org/wiki/Debug_%28command%29
Use this command line to delete all files within same directory without being
prompted [Y (Yes)/N (No)] before deleting each file (example):
[E] DELTREE.EXE
Note: Use DELTREE cautiously. Every file and subdirectory within the
specified directory will be deleted.
while running a DELTREE.EXE command line, you must press A (Abort) or F (Fail)
to be allowed to continue.
This means you are trying to delete directory(ies) already in use by the OS or
by a running program.
Workaround:
Add "ECHO A | " in front of all DELTREE.EXE command lines to delete all files
(and subdirectories, if any) within same directory without being prompted
[A (Abort)/R (Retry)/F (Fail)] before deleting each file/directory (example):
[I] DIR
Preset DIR command line switches can be forced to run automatically every time
the DIR command is executed by adding them into the DIRCMD environment
variable listed in CONFIG.SYS or AUTOEXEC.BAT (example):
SET DIRCMD=/A/O:GEN/P/V
______________________________________________________________________________
[E] DISKCOPY.COM
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
In this case DL replaces the DEL/ERASE internal DOS command for deleting
multiple files.
______________________________________________________________________________
[I] ECHO
To avoid the display of each command when running a batch (.BAT) file, add "@"
in front of the "ECHO OFF" command line, which should be the 1st batch command
(example):
@ECHO OFF
______________________________________________________________________________
[E] EDIT.COM
/70 = number of columns to force the file code to fit into the DOS screen.
More info:
http://en.wikipedia.org/wiki/MS-DOS_Editor
______________________________________________________________________________
EMM386.EXE must be loaded as a device driver (using the DEVICE command) from
CONFIG.SYS:
see %windir%\CONFIG.TXT [%windir% = usually C:\WINDOWS], also at:
http://support.microsoft.com/kb/234853
See "My CONFIG.SYS + AUTOEXEC.BAT Step by Step:" -> "My CONFIG.SYS Lines
Explained" in MEMORY.TXT (included) for more details.
EMM386
Syntax:
EMM386
Parameters:
ON|OFF|AUTO
Activates the EMM386 device driver (if set to ON), or suspends the
EMM386 device driver (if set to OFF), or places the EMM386 device driver
in auto mode (if set to AUTO). Auto mode enables expanded-memory support
only when a program calls for it. The default value is ON.
W=ON|W=OFF
Enables (if set to W=ON) or disables (if set to W=OFF) Weitek
coprocessor support. The default value is W=OFF.
EMM386.EXE
EMM386.EXE provides access to the upper memory area and uses extended memory
to simulate expanded memory. This device driver must be loaded by a DEVICE
command in your CONFIG.SYS file and can be used only on computers that have an
80386 or higher processor.
EMM386 also makes it possible to load programs and device drivers into upper
memory blocks (UMBs).
Syntax:
Parameters:
[drive:][path]
Specifies the location of the EMM386.exe file.
[ON|OFF|AUTO]
Activates the EMM386 device driver (if set to ON),
or suspends the EMM386 device driver (if set to OFF),
or places the EMM386 device driver in auto mode (if
set to AUTO). Auto mode enables expanded-memory support
and upper-memory-block support only when a program
calls for it. The default value is ON. Use the EMM386
command to change this value after EMM386 has started.
memory
Specifies the maximum amount of extended memory
(in kilobytes) that you want EMM386 to provide as
expanded/Virtual Control Program Interface (EMS/VCPI)
memory. This amount is in addition to the memory used
for UMBs and EMM386 itself. Values for memory are in
the range 64 through the lesser of either 32768 or
the amount of extended memory available when EMM386
is loaded. The default value is the amount of free
extended memory. If you specify the NOEMS switch, the
default value is 0. EMM386 rounds the value down to
the nearest multiple of 16.
Switches:
MIN=size
Specifies the minimum amount of EMS/VCPI memory
(in kilobytes) that EMM386 will provide, if that
amount of memory is available. EMM386 reserves this
amount of extended memory for use as EMS/VCPI memory
when EMM386 is loaded by the DEVICE=EMM386.EXE
command in your Config.sys file. EMM386 may be able
to provide additional EMS/VCPI memory (up to the
amount specified by the MEMORY parameter) if
sufficient XMS memory is available when a program
requests EMS/VCPI memory. Values are in the range 0
through the value specified by the MEMORY parameter.
The default value is 256. If you specify the NOEMS
switch, the default value is 0. If the value of
MIN is greater than the value of MEMORY, EMM386 uses
the value specified by MIN.
W=ON|W=OFF
Enables or disables support for the Weitek co-processor.
The default setting is W=OFF.
Mx
Specifies the address of the page frame. Valid
values for x are in the range 1 through 14. The
following list shows each value and its
associated base address in hexadecimal format:
FRAME=address
Specifies the page-frame segment base directly.
To specify a specific segment-base address for
the page frame, use the FRAME switch and
specify the address you want. Valid values for
address are in the ranges 8000h through 9000h
and C000h through E000h, in increments of 400h. To
provide expanded memory and disable the page frame,
you can specify FRAME=NONE; however, this setting
may cause some programs that require expanded memory
to work incorrectly.
/Pmmmm
Specifies the address of the page frame. Valid
values for mmmm are in the ranges 8000h through
9000h and C000h through E000h, in increments of
400h.
Pn=address
Specifies the segment address of a specific page,
where n is the number of the page you are specifying
and address is the segment address you want. Valid
values for n are in the range 0 through 255. Valid
values for address are in the ranges 8000h through
9C00h and C000h through EC00h, in increments of 400h.
The addresses for pages 0 through 3 must be contiguous
to maintain compatibility with version 3.2 of the
Lotus/Intel/Microsoft Expanded Memory Specification
(LIM EMS). If you use the Mx switch, the FRAME switch,
or the /Pmmmm switch, you cannot specify the addresses
for pages 0 through 3 for the /Pmmmm switch.
X=mmmm-nnnn
Prevents EMM386 from using a particular range of
segment addresses for an EMS page or for UMBs. Valid
values for mmmm and nnnn are in the range A000h
through FFFFh and are rounded down to the nearest
4K boundary. The X switch takes precedence over the
I switch if the two ranges overlap.
I=mmmm-nnnn
Specifies a range of segment addresses to be used
(included) for an EMS page or for UMBs. Valid
values for mmmm and nnnn are in the range A000h
through FFFFh and are rounded down to the nearest
4K boundary. The X switch takes precedence
over the I switch if the two ranges overlap.
B=address
Specifies the lowest segment address available
for EMS "banking" (swapping of 16K pages). Valid
values are in the range 1000h through 4000h. The
default value is 4000h.
l=minXMS
Ensures that the specified amount (in kilobytes)
of extended memory will still be available after
EMM386 is loaded. The default value is 0.
A=altregs
Specifies how many fast alternate register sets
(used for multitasking) you want to allocate to
EMM386. Valid values are in the range 0 through
254. The default value is 7. Every alternate register
set adds about 200 bytes to the size in memory of
EMM386.
H=handles
Specifies how many handles EMM386 can use. Valid
values are in the range 2 through 255. The default
value is 64.
D=nnn
Specifies how many kilobytes of memory should be
reserved for buffered direct memory access (DMA).
Discounting floppy disk DMA, this value should reflect
the largest DMA transfer that will occur while EMM386
is active. Valid values for nnn are in the range
16 through 256. The default value is 32.
RAM=mmmm-nnnn
Specifies a range of segment addresses to be used
for UMBs; also enables EMS support. If you do
not specify a range, EMM386 uses all available adapter
space to create UMBs and a page frame for EMS.
NOEMS
Provides access to the upper memory area but
prevents access to expanded memory.
NOVCPI
Disables support for VCPI programs. This
switch must be used with the NOEMS switch.
If you specify the NOVCPI switch without specifying
the NOEMS switch, EMM386 does not disable
VCPI support. If you specify both switches,
EMM386 disregards the MEMORY parameter and the
MIN switch. Disabling support for VCPI programs
reduces the amount of extended memory allocated.
HIGHSCAN
Specifies that EMM386 use an additional check
to determine the availability of upper memory
for use as UMBs or EMS windows. On some
computers, specifying this switch may have no
effect or might cause EMM386 to identify upper memory
areas as available when they are not. As a
result, your computer may stop responding.
VERBOSE
Directs EMM386 to display status and error
messages while loading. By default, EMM386 displays
messages only if it encounters an error condition.
You can abbreviate VERBOSE as V. (To display status
messages without adding the VERBOSE switch, press
and hold the ALT key while EMM386 starts and loads.)
WIN=mmmm-nnnn
Reserves a specified range of segment addresses
for Windows instead of for EMM386. Valid values
for mmmm and nnnn are in the range A000h through
FFFFh and are rounded down to the nearest 4K
boundary. The X switch takes precedence over the
WIN switch if the two ranges overlap. The WIN
switch takes precedence over the RAM, ROM, and I
switches if their ranges overlap.
[NOHI]
Prevents EMM386 from loading into the upper
memory area. Normally, a portion of EMM386 is
loaded into upper memory. Specifying this switch
decreases available conventional memory and increases
the upper memory area available for UMBs.
[ROM=mmmm-nnnn]
Specifies a range of segment addresses that
EMM386 uses for shadow RAM--random-access memory
used for read-only memory (ROM). Valid values
for mmmm and nnnn are in the range A000h through
FFFFh and are rounded down to the nearest 4K
boundary. Specifying this switch may speed up your
system if it does not already have shadow RAM.
[NOMOVEXBDA]
Prevents EMM386 from moving the extended BIOS data
from conventional memory to upper memory.
[ALTBOOT]
Specifies that EMM386 use an alternate handler to
restart your computer when you press CTRL+ALT+DEL.
Use this switch only if your computer stops responding
or exhibits other unusual behavior when EMM386 is loaded
and you press CTRL+ALT+DEL.
[NOBACKFILL]
When EMM386 is configured to provide upper memory
blocks (by the NOEMS or RAM switches), EMM386
will also automatically backfill less than 640K of
conventional memory to bring total conventional memory
up to 640K. However, because Windows does not support
backfilled conventional memory, use the NOBACKFILL
switch if your computer has less than 640 KB of
conventional memory.
[NOTR]
The EMM386.EXE default detection code searches for the presence of a Token
Ring Network adapter, which may cause some computers to hang. In such cases
use the NOTR parameter to disable this search.
This is valid ONLY for EMM386.EXE versions 4.45 - 4.49 [MS-DOS 6.00 - 6.22] up
to 4.95 [Windows 95/98/ME, a.k.a. MS-DOS 7.00/7.10/8.00]. Example:
DEVICE=C:\WINDOWS\EMM386.EXE NOTR
[I] EXIT
EXIT
CanNOT quit the 1st COMMAND.COM instance (parent) and/or any permanent shell
environment instance, usually loaded in memory using the CONFIG.SYS SHELL
command with the /P (permanent) parameter (example):
SHELL=C:\COMMAND.COM C:\ /P
or from native/real/true/pure MS-DOS or from AUTOEXEC.BAT (example):
C:\COMMAND.COM /P
More info:
http://www.robvanderwoude.com/exit.php
Even more info:
http://www.robvanderwoude.com/command.php
Causes a DOS BATch file (*.BAT) to end (terminate) when used as its last line.
Certain BATch files run from a DOS box/console/session/window (inside Windows)
may need extra "help" to end properly and return to the DOS prompt, depending
on how they are executed: directly from a DOS box/console/session/window, from
within a PIF [MS-DOS Program Information File] file, at Windows GUI
startup/shutdown/logoff time, from within other Windows/DOS programs/BATch
files etc (use these commands either separately or in this exact order if
using all 3):
CLS
MODE CO80
EXIT
MODE CO80 = requires VGA [640x400] display.
______________________________________________________________________________
EXTRAC32 [/Y] [/A] [/D | /E] [/L dir] cabinet [filename ...]
EXTRAC32 [/Y] source [newname]
EXTRAC32 [/Y] /C source destination
[E] EXTRACT.EXE
EXTRACT [/Y] [/A] [/D | /E] [/L dir] cabinet [filename ...]
EXTRACT [/Y] source [newname]
EXTRACT [/Y] /C source destination
[E] FC.EXE
Compares two files or sets of files and displays the differences between
them.
/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.
______________________________________________________________________________
[E] FIND.EXE
If a pathname is not specified, FIND searches the text typed at the prompt
or piped from another command.
______________________________________________________________________________
FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A] [host]
FTPUPLD contents:
username
password
cd ftpdirectory/ftpsubdirectory
bin
put filename.ext
bye
If FTPUPLD is not located into the same directory/folder as FTP.EXE, its full
path name must be specified on the FTP command line.
Substitute servername, FTPUPLD, username, password, ftpdirectory,
ftpsubdirectory, filename + file extension with actual values.
Passwords, ftp (sub)directory names, file names + file extensions are usually
case sensitive.
More info:
http://en.wikipedia.org/wiki/FTP
Even more info:
http://thestarman.pcministry.com/DOS/ftp.htm
______________________________________________________________________________
Install Unofficial MS-DOS 7.xx/8.00 Help System HELP.HLP Update [327 KB]:
http://www.mdgx.com/files/HELPHLP.EXE
______________________________________________________________________________
GOTO label
[E] IEXTRACT.EXE
Windows IP Configuration
Options:
/? displays usage text
/cp <classpath> set class path
/cp:p <path> prepend path to class path
/cp:a <path> append path to class path
/n <namespace> namespace in which to run
/p pauses before terminating if an error occurs
/v verify all classes
/d:<name>=<value> define system property
/a execute AppletViewer
/vst print verbose stack traces (requires debug classes)
/prof[:options] enable profiling (/prof:? for help)
Classname:
.CLASS file to be executed.
Arguments:
command-line arguments to be passed on to the class file
More info:
http://www.mdgx.com/add.htm#MSE
______________________________________________________________________________
[I] LABEL
/L:region1[,minsize1][;region2[,minsize2]]...
Specifies the region(s) of memory into which to load
the program. Region1 specifies the number of the first
memory region; minsize1 specifies the minimum size, if
any, for region1. Region2 and minsize2 specify the
number and minimum size of the second region, if any.
You can specify as many regions as you want.
[drive:][path]filename
Specifies the location and name of the program.
______________________________________________________________________________
LOCK [drive:]
CAUTION:
Only writable external, floppy + removable drives can be LOCKed from within a
Windows DOS box/console/session/window, and only if they are not used by the
OS.
Hard drives/partitions can be LOCKed/UNLOCKed only from native/real/true/pure
MS-DOS mode.
Trying to LOCK/UNLOCK a hard drive/partition or a drive in use from within
Windows GUI (DOS box/console/session/window) will return this error message:
Use this command line to LOCK a valid drive letter without being prompted for
input (example):
ECHO Y | LOCK C:
______________________________________________________________________________
[I] MD = MKDIR
Creates a directory.
MKDIR [drive:]path
MD [drive:]path
______________________________________________________________________________
[E] MODE.COM
Adjust keyboard typematic rate (valid values: 2 - 32) and delay (valid values:
1, 2, 3 + 4) to fastest allowed:
Adjust DOS VGA text screen resolution by running one of these commands
(examples):
All 80 Columns MODEs require VGA (640x400) display [default on modern Personal
Computers (PCs)/IBM clones].
DOS text screen resolution is usually reset back to default (or whatever other
built-in resolution) upon exit by most DOS CGA/EGA/VGA/XVGA programs, because
some are not programmed to preserve previous DOS screen resolution.
Some of these DOS text screen resolutions require an ANSI DOS console driver
(ANSI.COM, ANSI.SYS or NANSI.SYS) to be loaded in memory from CONFIG.SYS or
AUTOEXEC.BAT (example):
DEVICEHIGH=C:\WINDOWS\COMMAND\ANSI.SYS /X
More info:
http://support.microsoft.com/kb/150323
[E] MORE.COM
MORE [drive:][path]filename
MORE < [drive:][path]filename
command-name | MORE [drive:][path][filename]
Certain commmands screen/display output may span more than 1 DOS page
screen/display (usually 25 lines if using default "MODE CO80" DOS screen
resolution), and cannot be viewed entirely without a "page break" type command
parameter, which may not be built into the command/executable.
Workaround:
Add " | MORE" at the end of such command lines to force 1 page at a time
screen/display (example):
MEM/A/C | MORE
and then press a key to view next available page screen/display in case such
commands scroll through more than 1 page screen.
______________________________________________________________________________
[E] MOVE.EXE
To rename a directory:
MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2
Preset COPY + MOVE command line switches can be forced to run automatically
without being prompted for input every time the COPY + MOVE commands are
executed, by adding them into the COPYCMD environment variable listed in
CONFIG.SYS or AUTOEXEC.BAT (example):
SET COPYCMD=/Y
______________________________________________________________________________
Usage:
MSD [/B][/I]
Use MSD [/B] [/I] to examine technical information through the MSD interface.
Displays protocol statistics and current TCP/IP connections using NBT (NetBIOS
over TCP/IP).
NBTSTAT [-a RemoteName] [-A IP address] [-c] [-n] [-r] [-R] [-s] [S]
[interval]
-a (adapter status) Lists the remote machine's name table given its
name.
-A (Adapter status) Lists the remote machine's name table given its
IP address.
CAUTION:
Disable NetBIOS in case not using it for security reasons:
http://www.mdgx.com/newtip19.htm#INS
______________________________________________________________________________
[E] NLSFUNC.EXE
NLSFUNC [[drive:][path]filename]
CONFIG.SYS line:
INSTALLHIGH=C:\WINDOWS\COMMAND\NLSFUNC.EXE C:\WINDOWS\COMMAND\COUNTRY.SYS
AUTOEXEC.BAT line:
C:\WINDOWS\COMMAND\NLSFUNC.EXE C:\WINDOWS\COMMAND\COUNTRY.SYS
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.
SET PATH=etc...
Run this command from a DOS prompt to add a new directory to the PATH
environment (example):
PATH=%PATH%;C:\MYDIR1;
This adds C:\MYDIR1 to the end (appends) of existing PATH line, which can be
verified by running this command from a DOS prompt (example):
PATH
PATH=C:\;C:\WINDOWS;C:\DOS;C:\WHATEVER;C:\MYDIR1;
All PATH entries should be properly terminated with a semicolon (;).
PAUSE
______________________________________________________________________________
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] destination-list
Options:
-t Ping the specified host until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
-i TTL Time To Live.
-v TOS Type Of Service.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each reply.
PROMPT [text]
Prompt can be made up of normal characters and the following special codes:
$Q = (equal sign)
$$ $ (dollar sign)
$T Current time
$D Current date
$P Current drive and path
$V Windows version number
$N Current drive
$G > (greater-than sign)
$L < (less-than sign)
$B | (pipe)
$H Backspace (erases previous character)
$E Escape code (ASCII code 27)
$_ Carriage return and linefeed
Type PROMPT without parameters to reset the prompt to the default setting.
SET PROMPT=etc...
More info:
http://en.wikipedia.org/wiki/QBasic
______________________________________________________________________________
[I] RD = RMDIR
Removes (deletes) an empty directory, which may not contain any files or
subdirectories.
RMDIR [drive:]path
RD [drive:]path
______________________________________________________________________________
More info:
http://www.mdgx.com/reg.htm#RER
______________________________________________________________________________
Note that you cannot specify a new drive or path for your destination.
______________________________________________________________________________
[E] [W] ROUTE.EXE
All symbolic names used for destination are looked up in the network database
file NETWORKS. The symbolic names for gateway are looked up in the host name
database file HOSTS.
If the command is PRINT or DELETE, wildcards may be used for the destination
and gateway or the gateway argument may be omitted.
Diagnostic Notes:
Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1
The route addition failed: 87
Examples:
> route PRINT
> route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3
^destination ^mask ^gateway ^metric
> route PRINT
> route DELETE 157.0.0.0
> route PRINT
______________________________________________________________________________
To check and repair the current drive, type SCANDISK without parameters.
More info:
http://www.mdgx.com/newtip18.htm#SHS
Even more info:
http://www.mdgx.com/lastweek.htm#UNDEFSCAN
______________________________________________________________________________
<option>
? : Displays usage.
BACKUP : Backup the registry and related system configuration files.
RESTORE : Choose a backup to restore.
FIX : Repair the registry.
COMMENT="<comment>"
: Adds the specified comment to the CAB file while backing up.
SET [variable=[string]]
Syntax
DEVICE=[drive:][path]SETVER.EXE
Parameters
SHIFT
______________________________________________________________________________
SMARTDRV [/X] [[drive[+|-]]...] [/U] [/C | /R] [/F | /N] [/L] [/V | /Q | /S]
[InitCacheSize [WinCacheSize]] [/E:ElementSize] [/B:BufferSize]
[E] SORT.EXE
Sorts input and writes results to the screen, a file or another device
[E] SYS.COM
Copies MS-DOS system files and command interpreter to a disk you specify.
[I] 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.
______________________________________________________________________________
Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name
Options:
-d Do not resolve addresses to hostnames.
-h maximum_hops Maximum number of hops to search for target.
-j host-list Loose source route along host-list.
-w timeout Wait timeout milliseconds for each reply.
______________________________________________________________________________
TRUENAME without any parameters displays full path (fully qualified file name)
to current drive/partition letter + directory name.
Type full path of desired directory name or file name to display (example):
TRUENAME C:\MYDIR\MYFILE.EXE
Typing any text string that does not correspond to any actual file name or
directory name will erroneously display as file/directory name. :(
______________________________________________________________________________
[I] TYPE
UNLOCK [drive:]
CAUTION:
Only writable external, floppy + removable drives can be LOCKed from within a
Windows DOS box/console/session/window, and only if they are not used by the
OS.
Hard drives/partitions can be LOCKed/UNLOCKed only from native/real/true/pure
MS-DOS mode.
Trying to LOCK/UNLOCK a hard drive/partition or a drive in use from within
Windows GUI (DOS box/console/session/window) will return this error message:
VER
Parameters
[I] VERIFY
Tells Windows whether to verify that your files are written correctly to a
disk.
[I] VOL
Displays the disk volume label and serial number, if they exist.
VOL [drive:]
______________________________________________________________________________
WIN [/D:[F][M][S][V][X]]
Copies files (except hidden and system files) and directory trees.
XCOPY source [destination] [/A | /M] [/D:date] [/P] [/S [/E]] [/V] [/W]
XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/W]
[/C] [/I] [/Q] [/F] [/L] [/H] [/R] [/T] [/U]
[/K] [/N]