@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

            MDGx MAX Speed WinDOwS Tricks  Secrets  ugs  Fixes
            http://www.mdgx.com/
                             
			  MS-DOS 6.22 = DOS Commands
			  



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, and the *only* one
discussed here.
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 7.10 bundled with Windows 98 SE(U) is the most advanced MS-DOS OS ever
released.
- MS-DOS 8.00 [stripped down MS-DOS 7.10 :-(] = Windows ME = *last* Win9x (and
implicitly *last* MS-DOS) edition.
See DOS7CMD.TXT (part of W95-11D.EXE) for MS-DOS 7.xx/8.00 commands:
http://www.mdgx.com/95.htm

FYI:
Windows NTx [NT, 2000, XP, 2003, Vista, 2008, 7, 8, 8.1, 2012, 10, 2016] 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/10/2016 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://web.archive.org/web/20171221104755/http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx
- Windows XP MS-DOS subsystem commands (16-bit):
http://web.archive.org/web/20160722020912/http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/dos_cmds.mspx

All these DOS (native/real/true/pure) + Windows console (DOS
box/session/window) external + internal commands are more or less documented,
except TRUENAME, which is UNdocumented.
http://www.robvanderwoude.com/truename.php
See SECRETS.TXT (included) for more UNdocumented DOS commands + hidden
parameters:
http://www.mdgx.com/secrets.htm
See "MS-DOS 5.00 - 8.00 ESSENTIALS" in SOFTWARE.TXT (included) for DOS
commands replacements [free(ware)]:
http://www.mdgx.com/dos.htm
MS-DOS commands replacements from FreeDOS (free, open source):
http://www.freedos.org/software/

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 C:\DOS or C:\MSDOS [default] or somewhere in your PATH,
eventually specified in your CONFIG.SYS or AUTOEXEC.BAT, both located in C:\
root.
Install Unofficial Windows/WfWG 3.1x/95/98/ME + MS-DOS 5/6/7/8 Help System
HELP.HLP Update [1.2 MB]:
http://www.mdgx.com/files/HELPHLP.ZIP
And finally, install over (overwrite older files from HELPHLP.ZIP above) NEW
2020 DOS Help System Update [606 KB]:
http://www.mdgx.com/files/DOS7HELP.ZIP

To see details about the DOS commands used exclusively in CONFIG.SYS, go to
(refer to MS-DOS 7.xx/8.0, but most apply also to MS-DOS 5.0/6.xx):
- MSKB: Windows 98 SE Config.txt File:
http://support.microsoft.com/help/234853
- MSKB: Windows 98 SE Msdosdrv.txt File:
http://support.microsoft.com/help/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/help/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/help/97835
MS-DOS 6.22 required to use most Supplemental files!

External DOS/MS-DOS (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) default file locations:
* C:\ root :
COMMAND.COM
* C:\DOS or C:\MSDOS :
COMMAND.COM
CHOICE.COM
DISKCOPY.COM
FORMAT.COM
HELP.COM
KEYB.COM
MODE.COM
MORE.COM
SYS.COM
UNFORMAT.COM
ATTRIB.EXE
CHKDSK.EXE
DEBUG.EXE
DELTREE.EXE
EMM386.EXE
FC.EXE
FDISK.EXE
FIND.EXE
INTERLNK.EXE
INTERSVR.EXE
LABEL.EXE
MEM.EXE
MOVE.EXE
MSCDEX.EXE
MSD.EXE
NLSFUNC.EXE
POWER.EXE
QBASIC.EXE
SETVER.EXE
SMARTDRV.EXE
SORT.EXE
SUBST.EXE
VSAFE.EXE
XCOPY.EXE

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
LH = LOADHIGH
LOADHIGH = LH
MD = MKDIR
MKDIR = MD
PATH
PAUSE
PROMPT
RD = RMDIR
REM = :: = ;
REN = RENAME
RENAME = REN
RMDIR = RD
SET
SHIFT
TIME
TRUENAME
TYPE
VER
VERIFY
VOL

Internal DOS commands (built into MSDOS.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

AUTOEXEC.BAT + CONFIG.SYS are the operating system's native/real/true/pure
DOS/MS-DOS mode boot configuration files (plain text/ASCII, can be edited with
EDIT.COM in DOS or Notepad in Windows), both located in the root (main)
directory of the boot drive/partition (usually C:\).
IO.SYS + MSDOS.SYS are the operating system's native/real/true/pure DOS/MS-DOS
mode core boot files (binary, canNOT and should NOT be edited/changed,
otherwise the OS may lock up!), located in the root (main) directory of the
boot drive/partition (usually C:\).
See "Windows/WfWG 3.1x + MS-DOS 6.xx = *VITAL* BACKUP ISSUES" in READ1ST.TXT
(included) for more details.

How to (re)create DOS6CMD.TXT [partially, anyway ;)]:
Copy + paste text between cut & paste lines below into EDIT (DOS) or Notepad
(Windows) or better plain text editor/viewer:
Windows:
http://www.mdgx.com/w31toy.htm#W31
DOS:
http://www.mdgx.com/dos.htm
and save it as DOS6CMD.BAT [do NOT change BATch file name!]:

-----Begin cut & paste here-----
@ECHO OFF
IF EXIST %TEMP%\45.@#$ GOTO GO!
IF '%1'=='{}{}{}' GOTO YES
IF EXIST %TEMP%\DOS6CMD.TXT ATTRIB +A -H -R -S %TEMP%\DOS6CMD.TXT>NUL
COMMAND.COM /E:4096 /C DOS6CMD.BAT {}{}{}
GOTO END
:YES
ECHO.			       MS-DOS 6.22 = DOS Commands>%TEMP%\DOS6CMD.TXT
ECHO.			       >>%TEMP%\DOS6CMD.TXT
ECHO.>>%TEMP%\DOS6CMD.TXT
ECHO.>>%TEMP%\DOS6CMD.TXT
SET CMD1=%CMD1% ATTRIB.EXE BREAK CALL CD CHCP CHKDSK.EXE CHOICE.COM CLS COMMAND.COM
SET CMD1=%CMD1% COPY CTTY DATE DEBUG.EXE DEL DELTREE.EXE DIR DISKCOPY.COM DOSKEY.COM 1
SET CMD2=%CMD2% ECHO EDIT.COM EMM386.EXE ERASE EXIT FC FDISK.EXE FIND.EXE
SET CMD2=%CMD2% FOR FORMAT.COM GOTO HELP.COM IF INTERLNK INTERSVR KEYB.COM LABEL.EXE 2
SET CMD3=%CMD3% LOADHIGH MD MEM.EXE MODE.COM MORE.COM MOVE.EXE MSCDEX.EXE MSD.EXE
SET CMD3=%CMD3% NLSFUNC.EXE PATH PAUSE PROMPT RD REM REN SCANDISK.EXE SET SETVER.EXE SHIFT 3
SET CMD4=%CMD4% SHIFT SMARTDRV.EXE SORT.EXE SUBST.EXE SYS.COM TIME TRUENAME TYPE
SET CMD4=%CMD4% UNFORMAT.COM VER VERIFY VOL VSAFE.EXE XCOPY.EXE
SET T=%TEMP%\{}.@#$
SET C=%TEMP%\DOS6CMD.TXT
SET LINE=***************************************
SET LINE=%LINE%%LINE%
ECHO.>%TEMP%\45.@#$
DOS6CMD.BAT %CMD1%
:GO!
ECHO %LINE%>>%T%
ECHO.				     %1>>%T%
ECHO.>>%TEMP%\%1.@#$
ECHO %LINE%>>%T%
ECHO M | %1 /?>>%T%
ECHO.>>%C%
TYPE %T%>>%C%
DEL %T%>NUL
SHIFT
IF "%1"=="1" DOS6CMD.BAT %CMD2%
IF "%1"=="2" DOS6CMD.BAT %CMD3%
IF "%1"=="3" DOS6CMD.BAT %CMD4%
IF "%1"=="" GOTO LPX
GOTO GO!
:LPX
DEL %TEMP%\*.@#$>NUL
IF EXIST C:\DOS\ATTRIB.EXE ATTRIB +A -H -R -S %TEMP%\DOS6CMD.TXT>NUL
IF EXIST C:\MSDOS\ATTRIB.EXE ATTRIB +A -H -R -S %TEMP%\DOS6CMD.TXT>NUL
IF NOT EXIST C:\DOS\*.* GOTO M_S
IF EXIST %TEMP%\DOS6CMD.TXT COPY/Y %TEMP%\DOS6CMD.TXT C:\DOS>NUL
GOTO NXT
:M_S
IF NOT EXIST C:\MSDOS\*.* MD C:\MSDOS
IF EXIST %TEMP%\DOS6CMD.TXT COPY/Y %TEMP%\DOS6CMD.TXT C:\MSDOS>NUL
:NXT
IF NOT EXIST C:\DOS\DOS6CMD.TXT GOTO M_X
MEM /C | FIND /I "win386">NUL
IF ERRORLEVEL 1 GOTO D0S
IF EXIST %windir%\NOTEPAD.EXE NOTEPAD.EXE C:\DOS\DOS6CMD.TXT
GOTO END
:D0S
IF EXIST C:\DOS\EDIT.COM EDIT.COM C:\DOS\DOS6CMD.TXT
GOTO END
:M_X
IF NOT EXIST C:\MSDOS\DOS6CMD.TXT GOTO END
MEM /C | FIND /I "win386">NUL
IF ERRORLEVEL 1 GOTO D0S
IF EXIST %windir%\NOTEPAD.EXE NOTEPAD.EXE C:\MSDOS\DOS6CMD.TXT
GOTO END
:D0S
IF EXIST C:\MSDOS\EDIT.COM EDIT.COM C:\MSDOS\DOS6CMD.TXT
:END
EXIT
------End cut & paste here------

Then run DOS6CMD.BAT.
DOS6CMD.BAT creates C:\DOS\DOS6CMD.TXT or C:\MSDOS\DOS6CMD.TXT (depending
where your MS-DOS copy is installed) and then opens it for your viewing
pleasure with Notepad (if DOS6CMD.BAT executed from within Windows) or EDIT
(if DOS6CMD.BAT executed from native/real/true/pure MS-DOS).
Make sure ALL external commands [actual files] are located into their default
directories (see above) or somewhere in your PATH, eventually specified on the
"SET PATH=" statement in your CONFIG.SYS or AUTOEXEC.BAT [both located in C:\
root], so DOS6CMD.BAT can find them.

Command line parameters/switches/arguments are usually case insensitive [upper
case works same as lower case]. EXCEPTIONS:
FIND.EXE "string" [only if not using the /I parameter]
PROMPT $? = special codes [ANSI DOS console driver (ANSI.COM, ANSI.SYS or
NANSI.SYS) required to be already loaded in memory!]
See "F1-F12 Remapping = MS-DOS Mode + ANSI Driver" in DOSTIPS.TXT (included)
for details.

MS-DOS Commands on the Internet:
- Undocumented DOS Commands:
http://www.textfiles.com/hacking/MICROSOFT/dosundoc.txt
- The Undocumented DOS Commands:
http://digilander.libero.it/unno2/navighiamo/DOS.txt
- Undocumented COMMAND.COM Features:
http://www.unet.univie.ac.at/~a7425519/programme/command.htm
- NOTES ON MS-DOS 6.22 + BATCH programming on Win9x:
http://2dos.homepage.dk/batutil/help/INDEX.HTM
- MS-Dos7 Commands:
http://www.lagmonster.org/docs/DOS7/
- DOS 7 COMMANDS:
http://web.archive.org/web/20120310053804/http://www.colba.net/~hlebo49/dos7comm.htm
- First Steps towards System Programming under MS-DOS7 [3.3 MB, book in PDF
format]:
http://adoxa.altervista.org/dos7book/
- MSDOS Help + Commands:
http://www.computerhope.com/msdos.htm
- Essential DOS Commands + Concepts:
http://www.colorado.edu/geography/gcraft/tips/doshelp.html
- DOS Command Index:
http://www.easydos.com/dosindex.html
- MS-DOS v6.22 Help Command Reference:
http://www.vfrazee.com/ms-dos/6.22/help/
- Internal DOS Commands:
http://web.archive.org/web/20150602081326/http://dos.rsvs.net/DOSPAGE/DOS_IC.HTM
- External DOS Commands:
http://web.archive.org/web/20150602081326/http://dos.rsvs.net/DOSPAGE/DOS_EX.HTM
- The MS-DOS 7 Internal Commands:
http://thestarman.pcministry.com/DOS/DOS7INT.htm
- The MS-DOS 7 External Commands:
http://thestarman.pcministry.com/DOS/DOS7EXT.htm
- The Windows 95/98 Network Console Commands:
http://thestarman.pcministry.com/DOS/DOS7NET.htm
- DOS Commands:
http://www.uv.tietgen.dk/staff/mlha/PC/Soft/DOS/com/
- MS TechNet: MS-DOS 6.22 Batch Commands:
http://technet.microsoft.com/library/cc722477.aspx
- MS TechNet: MS-DOS 6.22 Supplemental Disk:
http://www.microsoft.com/technet/archive/msdos/01_intro.mspx
- Microsoft MS-DOS 5.0 Internal and External Commands:
http://support.microsoft.com/help/71986
- MS-DOS Reference:
http://www.nukesoft.co.uk/msdos/
- Batch Files & Batch Commands:
http://www.robvanderwoude.com/batchcommands.php
- Wikipedia: List of DOS commands:
http://en.wikipedia.org/wiki/List_of_DOS_commands
- Wikipedia: MS-DOS:
http://en.wikipedia.org/wiki/MS-DOS
- Wikipedia: Timeline of DOS operating systems:
http://en.wikipedia.org/wiki/Timeline_of_DOS_operating_systems
- MDGx Wikipedia Reference: Computer Memory Management Terms + System Files:
http://www.mdgx.com/mem7.htm#WKL
- See DOSTIPS.TXT (included) for more DOS tips + links.

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.
[U] = UNdocumented command and/or command line parameter(s)/switch(es).

All commands below are listed in alphabetical order.
______________________________________________________________________________

[E]				ATTRIB.EXE


Displays or changes file attributes.

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.

In case you see an error message similar to (example = substitute X with a
valid drive letter):

"Sharing violation reading drive X
Abort, Retry, Fail?"

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):

ECHO A | ATTRIB +A -H -R -S C:\*.*
______________________________________________________________________________

[I]				BREAK


Sets or clears extended CTRL+C checking.

BREAK [ON | OFF]

Type BREAK without a parameter to display the current BREAK setting.
BREAK functionality is similar to pressing Ctrl+Break simultaneously.
______________________________________________________________________________

[I] [B]				CALL


Calls one batch program from another.

CALL [drive:][path]filename [batch-parameters]

  batch-parameters	Specifies any command-line information required by the
			batch program.

Must always use the .BAT file extension with the CALL command (examples):

Correct usage:

IF EXIST C:\MYBATS\MYBAT.BAT CALL C:\MYBATS\MYBAT.BAT
or:
CALL C:\MYBATS\MYBAT.BAT

Incorrect usage:

IF EXIST C:\MYBATS\MYBAT.BAT CALL C:\MYBATS\MYBAT
or:
CALL C:\MYBATS\MYBAT
______________________________________________________________________________

[I]				CD = CHDIR


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.
______________________________________________________________________________

[I]				CHCP


Displays or sets the active code page number.

CHCP [nnn]

  nnn   Specifies a code page number.

Type CHCP without a parameter to display the active code page number.

Must load NLSFUNC.EXE from CONFIG.SYS or AUTOEXEC.BAT followed by COUNTRY.SYS
before running CHCP to be able to (re)set active code page (examples):

CONFIG.SYS line:

INSTALLHIGH=C:\DOS\NLSFUNC.EXE C:\DOS\COUNTRY.SYS

AUTOEXEC.BAT lines:

C:\DOS\NLSFUNC.EXE C:\DOS\COUNTRY.SYS
CHCP 852

See "F1-F12 Remapping = MS-DOS Mode + ANSI Driver" in DOSTIPS.TXT (included)
for more language codes info.
______________________________________________________________________________

[E]				CHKDSK.EXE


Checks a disk and displays a status report.

CHKDSK [drive:][[path]filename] [/F] [/V]

  [drive:][path]	Specifies the drive and directory to check.
  filename		Specifies the file(s) to check for fragmentation.
  /F			Fixes errors on the disk.
  /V			Displays the full path and name of every file on the disk.

Type CHKDSK without parameters to check the current disk.

Instead of using CHKDSK, try using SCANDISK. SCANDISK can reliably detect
and fix a much wider range of disk problems.

CHKDSK.EXE should not be used if possible. Use SCANDISK.EXE (further below)
instead.
______________________________________________________________________________

[E] [B]				CHOICE.COM


Waits for the user to choose one of a set of choices.

CHOICE [/C[:]choices] [/N] [/S] [/T[:]c,nn] [text]

/C[:]choices	Specifies allowable keys. Default is YN
/N		Do not display choices and ? at end of prompt string.
/S		Treat choice keys as case sensitive.
/T[:]c,nn	Default choice to c after nn seconds
text		Prompt string to display

ERRORLEVEL is set to offset of key user presses in choices.
______________________________________________________________________________

[I]				CLS


Clears the screen.

CLS
______________________________________________________________________________

[E] [C] [U]			COMMAND.COM


Starts a new copy of the Windows Command Interpreter.

COMMAND [[drive:]path] [device] [/P] [/MSG] [/LOW] [/Y [/[C|K] command]]
  [drive:]path	Specifies the directory containing COMMAND.COM.
  device	Specifies the device to use for command input and output.
  /P		Makes the new Command Interpreter permanent (can't exit).
  /MSG		Stores all error messages in memory (requires /P as well).
  /LOW		Forces COMMAND to keep its resident data in low memory.
  /Y		Steps through the batch program specified by /C or /K.
  /C command	Executes the specified command and returns.
  /K command	Executes the specified command and continues running.
  /D		(DENY) Disables automatic disk "Fail" response enabled by /F
		switch.
  /F		(FAIL) Forces automatic "Fail" response to all "Abort, Retry,
		Fail" messages issued by DOS critical error handler. If disk
		not ready automatically goes to "Fail".

If used in CONFIG.SYS must be part of the SHELL command and/or COMSPEC
environment variable command (example):

SHELL=C:\COMMAND.COM C:\ /E:1024 /P /F
SET COMSPEC=C:\COMMAND.COM

In MS-DOS 5.00 - 6.22 you can use this undocumented workaround to force
COMMAND.COM to load "high", which requires an upper memory manager in
CONFIG.SYS, like EMM386.EXE or UMBPCI.SYS (+ HIMEM.SYS). Example:
SHELL=C:\COMMAND.COM /C LOADHIGH=C:\COMMAND.COM C:\ /E:512 /P
This works ONLY IF:
- a copy of your COMMAND.COM file resides in C:\ root (for compatibility with
older DOS programs/games that expect to find the command interpreter in the
root directory of your boot drive/partition);
- ALL your "SET <variable>=" lines are placed/moved into your AUTOEXEC.BAT
file from CONFIG.SYS (MS-DOS 6.00 - 6.22 ONLY);
- this command exists as your first AUTOEXEC.BAT line:
SET COMSPEC=C:\COMMAND.COM
- UMBs are enabled by this CONFIG.SYS line so COMMAND.COM (or ANY other
device/driver/TSR) can load in UMA:
DOS=HIGH,UMB
DISADVANTAGE: In some cases a second copy of COMMAND.COM remains resident in
(upper) memory. :(
More details:
http://www.robvanderwoude.com/dosmem.php

See "COMMAND.COM HIDDEN PARAMETERS" in SECRETS.TXT (included):
http://www.mdgx.com/secrets.htm#COMMAND
______________________________________________________________________________

[I]				COPY


Copies one or more files to another location.

COPY [/A | /B] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination
  [/A | /B]] [/V] [/Y | /-Y]

  source	Specifies the file or files to be copied.
  /A		Indicates an ASCII text file.
  /B		Indicates a binary file.
  destination	Specifies the directory and/or filename for the new file(s).
  /V		Verifies that new files are written correctly.
  /Y		Suppresses prompting to confirm you want to overwrite an
		existing destination file.
  /-Y		Causes prompting to confirm you want to overwrite an
		existing destination file.

The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line

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):

COPY/B VID_01.MPG + VID_02.MPG + VID_03.MPG VID_NEW.MPG

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):

COPY/B C:\TOOLS\PROGRAM0.EXE CON | MORE

Then dump the entire file contents from screen memory to a text/ASCII file
(example):

COPY/B CON PROGRAM0.TXT

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):

COPY/B CON LPT1

When done press Ctrl + Z at the same time (or F6) to return back to the DOS
prompt.

For compatibility reasons use the non-existent /Z switch (operation continues
uninterrupted) at the console/DOS command prompt and in DOS BATch files in
case using any command interpreter/shell other than MS COMMAND.COM (example):

COPY/Z C:\HERFILES\MYFILE.TXT C:\MYFILES

Can be combined with the valid /Y switch (example):

COPY/Y/Z C:\HERFILES\MYFILE.TXT C:\MYFILES
______________________________________________________________________________

[I] [B]				CTTY


Changes the terminal device used to control your system.

CTTY device

  device   The terminal device you want to use, such as COM1.

CTTY = Change TeleTYpewriter (old computer terminal/teleprinter).

Valid local/remote input/output (I/O) devices (examples, depending on hardware
configuration):
AUX
COM1
COM2
COM3
COM4
...
COMm
CON
LPT1
LPT2
LPT3
...
LPTn
NUL
PRN
Sustitute m (COMm) + n (LPTn) with a valid integer number from 1 to 9.
Meaning:
AUX = AUXiliary port
COMm = Serial COMmunication port # m (default: m = 1 - 9)
CON = CONsole = real/visible screen/display + keyboard ports
LPTn = Line PrinTer port # n (default: n = 1 - 9)
NUL = NULl = fake/invisible screen/display + keyboard ports
PRN = PRiNter port

Can be used in batch files [or at the DOS prompt] followed by NUL to disable
console (display) output:

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.
______________________________________________________________________________

[I]				DATE


Displays or sets the 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


Runs Debug, a program testing and editing tool.

DEBUG [[drive:][path]filename [testfile-parameters]]

  [drive:][path]filename  Specifies the file you want to test.
  testfile-parameters     Specifies command-line information required by
				 the file you want to test.

After Debug starts, type ? to display a list of debugging commands.

With DEBUG interface started:
Type G (case insensitive) and press Enter to start a DEBUG routine.
Type Q (case insensitive) and press Enter to exit (Quit) DEBUG and return to
the DOS prompt.

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

Examples of using DEBUG:
- "REBOOT WITH DEBUG":
http://www.mdgx.com/newtip19.htm#RWD
- "BACKUP MBR WITH DEBUG":
http://www.mdgx.com/newtip18.htm#BMWD
- "DEBUG BIOS PASSWORD":
http://www.mdgx.com/newtip20.htm#DBP
______________________________________________________________________________

[I]				DEL = ERASE


Deletes one or more files.

DEL [drive:][path]filename [/P]
ERASE [drive:][path]filename [/P]

  [drive:][path]filename  Specifies the file(s) to delete. Specify multiple
			  files by using wildcards.
  /P			  Prompts for confirmation before deleting each file.

Use this command line to delete all files within same directory without being
prompted [Y (Yes)/N (No)] before deleting each file (example):

ECHO Y | DEL C:\DIRNAME\*.*
______________________________________________________________________________

[E]				DELTREE.EXE


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		Suppresses prompting to confirm you want to delete
		the subdirectory.
  [drive:]path	Specifies the name of the directory you want to delete.

Note: Use DELTREE cautiously. Every file and subdirectory within the
specified directory will be deleted.

In case you see an error message similar to (example = substitute X with a
valid drive letter):

"Sharing violation reading drive X
Abort, Retry, Fail?"

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):

ECHO A | DELTREE.EXE/Y C:\DIRNAME
______________________________________________________________________________

[I]				DIR


Displays a list of files and subdirectories in a directory.

DIR [drive:][path][filename] [/P] [/W] [/A[[:]attributes]]
  [/O[[:]sortorder]] [/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 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.

Directory [+ subdirectory(ies) (if any)] files list output can be redirected
to a text file (example):

DIR/A:-D/O:GEN/B/-P/S C:\DIRNAME\*.* > %TEMP%\DIRNAME.TXT

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


Copies the contents of one floppy disk to another.

DISKCOPY [drive1: [drive2:]] [/1] [/V] [/M]

  /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 of the same type.
You may specify the same drive for drive1 and drive2.
______________________________________________________________________________

[E] [C]				DOSKEY.COM


Edits command lines, recalls command lines, and creates macros.

DOSKEY [/switch ...] [macroname=[text]]

  /BUFSIZE:size	Sets size of macro and command buffer		(default:512)
  /ECHO:on|off	Enables/disables echo of macro expansions	(default:on)
  /FILE:file	Specifies file containing a list of macros
  /HISTORY	Displays all commands stored in memory
  /INSERT	Inserts new characters into line when typing
  /KEYSIZE:size	Sets size of keyboard type-ahead buffer		(default:15)
  /LINE:size	Sets maximum size of line edit buffer		(default:128)
  /MACROS	Displays all DOSKey macros
  /OVERSTRIKE	Overwrites new characters onto line when typing	(default)
  /REINSTALL	Installs a new copy of DOSKey
  macroname	Specifies a name for a macro you create
  text		Specifies commands you want to assign to the macro

  UP,DOWN arrows recall commands
      Esc clears current command
       F7 displays command history
   Alt+F7 clears command history
[chars]F8 searches for command beginning with [chars]
       F9 selects a command by number
  Alt+F10 clears macro definitions

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

DOSKEY macros (example):

LH DOSKEY DL=FOR%%A IN ($*) DO DEL %%A

In this case DL replaces the DEL/ERASE internal DOS command for deleting
multiple files.
______________________________________________________________________________

[I]				ECHO


Displays messages or turns command-echoing on or off.

ECHO [ON | OFF]
ECHO [message]

Type ECHO without parameters to display the current echo setting.

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


EDIT [/B] [/H] [/R] [/S] [/<nnn>] [/?] [file(s)]

  /B	   - Forces monochrome mode.
  /H	   - Displays the maximum number of lines possible for your hardware.
  /R	   - Load file(s) in read-only mode.
  /S	   - Forces the use of short filenames.
  /<nnn>   - Load binary file(s), wrapping lines to <nnn> characters wide.
  /?	   - Displays this help screen.
  [file]   - Specifies initial files(s) to load. Wildcards and multiple
	     filespecs can be given.

Run this command to edit binary files (example):

EDIT /70 C:\MYTOOLS\MYTOOL.EXE

 /70 = number of columns to force the file code to fit into the DOS screen.

NOTE:
QBASIC.EXE (+ QBASIC.HLP = optional) must be present inside the same directory
where EDIT.COM resides, because in all MS-DOS 5/6.xx editions DOS mode
text/ASCII editor (EDIT.COM) is just a stub which starts QBasic in edit mode,
similar to running this command:
QBASIC.EXE /EDITOR
More info:
http://support.microsoft.com/help/63777

More info:
http://support.microsoft.com/help/63713

More info:
http://en.wikipedia.org/wiki/MS-DOS_Editor
______________________________________________________________________________

[E] [C] [U]			EMM386 + EMM386.EXE


Enables or disables EMM386 expanded-memory support on a computer with an 80386
or higher processor. The EMM386 command also enables or disables Weitek
coprocessor support.

EMM386.EXE must be loaded as a device driver (using the DEVICE command) from
CONFIG.SYS:
http://support.microsoft.com/help/234853
See "My CONFIG.SYS + AUTOEXEC.BAT Step by Step:" -> "My CONFIG.SYS Lines
Explained" in MEMORY.TXT (included) for more details.

The EMM386 device driver, EMM386.EXE, provides expanded-memory support and
also provides access to the upper memory area.


				EMM386


Turns on or off EMM386 expanded memory support.

Syntax:

EMM386 [ON|OFF|AUTO] [W=ON|W=OFF]

To display the current status of EMM386 expanded-memory support, use the
following 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:

DEVICE=[drive:][path]EMM386.EXE [ON|OFF|AUTO] [memory] [MIN=size]
[W=ON|W=OFF] [Mx|FRAME=address|/Pmmmm] [Pn=address] [X=mmmm-nnnn]
[I=mmmm-nnnn] [B=address] [L=minXMS] [A=altregs] [H=handles] [D=nnn]
[RAM=mmmm-nnnn] [NOEMS] [NOVCPI] [HIGHSCAN] [VERBOSE] [WIN=mmmm-nnnn]
[NOHI] [ROM=mmmm-nnnn] [NOMOVEXBDA] [ALTBOOT] [NOBACKFILL]

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:

		1 => C000h     8 => DC00h
		2 => C400h     9 => E000h
		3 => C800h    10 => 8000h
		4 => CC00h    11 => 8400h
		5 => D000h    12 => 8800h
		6 => D400h    13 => 8C00h
		7 => D800h    14 => 9000h

    Values in the range 10 through 14 should be used
    only on computers that have at least 512K of memory.

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:\DOS\EMM386.EXE NOTR

See EMM386.TXT (included) for more details.
See "EMM386.EXE HIDDEN PARAMETERS" in SECRETS.TXT (included):
http://www.mdgx.com/secrets.htm#EMM
______________________________________________________________________________

[I]				EXIT


Quits the COMMAND.COM program (command interpreter).

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.
______________________________________________________________________________

[E]				FC.EXE


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	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] [U]				FDISK.EXE


Configures a hard disk for use with Windows/DOS/MS-DOS.

FDISK [/STATUS] [/MBR] [/PRMT] [/Q]
FDISK [x /EXT:n] [x /LOG:n] [x /LOGO:n] [x /PRI:n] [x /PRIO:n]

  /STATUS	Displays partition information.
		See "FDISK.EXE HIDDEN PARAMETERS" in SECRETS.TXT (included):
		http://www.mdgx.com/secrets.htm#FDISK-S
  x /EXT:n	See "FDISK.EXE HIDDEN PARAMETERS" in SECRETS.TXT (included):
		http://www.mdgx.com/secrets.htm#FDISK-X
  x /LOG:n	See "FDISK.EXE HIDDEN PARAMETERS" in SECRETS.TXT (included):
		http://www.mdgx.com/secrets.htm#FDISK-X
  x /LOGO:n	See "FDISK.EXE HIDDEN PARAMETERS" in SECRETS.TXT (included):
		http://www.mdgx.com/secrets.htm#FDISK-X
  x /PRI:n	See "FDISK.EXE HIDDEN PARAMETERS" in SECRETS.TXT (included):
		http://www.mdgx.com/secrets.htm#FDISK-X
  x /PRIO:n	See "FDISK.EXE HIDDEN PARAMETERS" in SECRETS.TXT (included):
		http://www.mdgx.com/secrets.htm#FDISK-X
  /MBR		See "FDISK.EXE HIDDEN PARAMETERS" in SECRETS.TXT (included):
		http://www.mdgx.com/secrets.htm#FDISK-M
  /PRMT		See "FDISK.EXE HIDDEN PARAMETERS" in SECRETS.TXT (included):
http://www.mdgx.com/secrets.htm#FDISK-F
  /Q		See "FDISK.EXE HIDDEN PARAMETERS" in SECRETS.TXT (included):
		http://www.mdgx.com/secrets.htm#FDISK-Q

See "FDISK.EXE HIDDEN PARAMETERS" in SECRETS.TXT (included):
http://www.mdgx.com/secrets.htm#FDISK
______________________________________________________________________________

[E]				FIND.EXE


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.
______________________________________________________________________________

[I] [B]				FOR


Runs a specified command for each file in a set of files.

FOR %variable IN (set) DO command [command-parameters]

  %variable	Specifies a replaceable parameter.
  (set)		Specifies a set of one or more files. Wildcards may be used.
  command	Specifies the command to carry out for each file.
  command-parameters
		Specifies parameters or switches for the specified command.

To use the FOR command in a batch program, specify %%variable instead of
%variable.
______________________________________________________________________________

[E] [U]				FORMAT.COM


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]
FORMAT drive: [/AUTOTEST] [/BACKUP] [/SELECT] [/U]

  /V[:label]	Specifies the volume label.
  /Q		Performs a quick format.
  /F:size	Specifies the size of the floppy disk to format (such
		as 160, 180, 320, 360, 720, 1.2, 1.44, 2.88).
  /B		Allocates space on the formatted disk for system files.
  /S		Copies system files to the formatted disk.
  /T:tracks	Specifies the number of tracks per disk side.
  /N:sectors	Specifies the number of sectors per track.
  /1		Formats a single side of a floppy disk.
  /4		Formats a 5.25-inch 360K floppy disk in a high-density drive.
  /8		Formats eight sectors per track.
  /C		Tests clusters that are currently marked "bad."
  /AUTOTEST	See "FORMAT.COM HIDDEN PARAMETERS" in SECRETS.TXT (included):
		http://www.mdgx.com/secrets.htm#FORMAT
  /BACKUP	See "FORMAT.COM HIDDEN PARAMETERS" in SECRETS.TXT (included):
		http://www.mdgx.com/secrets.htm#FORMAT
  /SELECT	See "FORMAT.COM HIDDEN PARAMETERS" in SECRETS.TXT (included):
		http://www.mdgx.com/secrets.htm#FORMAT
  /U		See "FORMAT.COM HIDDEN PARAMETERS" in SECRETS.TXT (included):
		http://www.mdgx.com/secrets.htm#FORMAT

See "FORMAT.COM HIDDEN PARAMETERS" in SECRETS.TXT (included):
http://www.mdgx.com/secrets.htm#FORMAT
______________________________________________________________________________

[E]				HELP.COM


Starts MS-DOS Help on MS-DOS commands.

HELP [/B] [/G] [/H] [/NOHI] [topic]

  /B		Allows use of a monochrome monitor with a color graphics card.
  /G		Provides the fastest update of a CGA screen.
  /H		Displays the maximum number of lines possible for your hardware.
  /NOHI		Allows the use of a monitor without high-intensity support.
  [topic]	Specifies the help topic to view.
______________________________________________________________________________

[I] [B]				GOTO


Directs Windows to a labelled line in a batch program.

GOTO label

  label		Specifies a text string used in the batch program as a label.

You type a label on a line by itself, beginning with a colon.
______________________________________________________________________________

[I] [B]				IF


Performs conditional processing in batch programs.

IF [NOT] ERRORLEVEL number command
IF [NOT] string1==string2 command
IF [NOT] EXIST filename command

  NOT			Specifies that MS-DOS should carry out the command
			only if the condition is false.
  ERRORLEVEL number	Specifies a true condition if the last program run
			returned an exit code equal to or greater than the
			number specified.
  command		Specifies the command to carry out if the condition is
			met.
  string1==string2	Specifies a true condition if the specified text
			strings match.
  EXIST filename	Specifies a true condition if the specified filename
			exists.
______________________________________________________________________________

[E] [C]				INTERLNK + INTERLNK.EXE


Connects two computers via parallel or serial ports and enables the computers
to share disks and printer ports. For example, you could connect a laptop
computer to a desktop computer and share files. You must install the
INTERLNK.EXE device driver before you can use this command.

Syntax:

INTERLNK [client[:]=[server][:]]

To display the current status of the Interlnk program, use the following
syntax:

INTERLNK

Parameters:

client
    Specifies the letter of the client drive that is redirected to a drive
    on the Interlnk server. The drive must be one that was redirected when
    you started Interlnk.

server
    Specifies the letter of the drive on the Interlnk server that will be
    redirected. The drive must be one listed in the This Computer (Server)
    column of the Interlnk server screen. If no drive letter is specified,
    the client drive will no longer be redirected.


				INTERLNK.EXE


Redirects requests for operations on one or more Interlnk client drives or
printer ports to one or more drives or printer ports on the Interlnk server.
This device driver must be loaded by a DEVICE or DEVICEHIGH command in your
CONFIG.SYS file.

You must install the INTERLNK.EXE device driver before you can use the
INTERLNK and INTERSVR commands.

Syntax:

DEVICE=[drive:][path]INTERLNK.EXE [/DRIVES:n] [/NOPRINTER]
[/COM[:][n|address]] [/LPT[:][n|address]] [/AUTO] [/NOSCAN] [/LOW]
[/BAUD:rate] [/V]

Parameters:

[drive:][path]
    Specifies the location of the INTERLNK.EXE file.

Switches:

/DRIVES:n
    Specifies the number of redirected drives. By default, the number is 3.
    If you specify 0 as a value for n, Interlnk redirects only printers.

/NOPRINTER
    Specifies that printers not be redirected when you install INTERLNK.EXE.
    By default, Interlnk redirects all available printer ports.

/COM[:][n|address]
    Specifies a serial port to use for data transfer. The n parameter
    specifies the number of the serial port. The address parameter specifies
    the address of the serial port. If you omit n or address, the Interlnk
    client searches all serial ports and uses the first port that it finds
    connected to the server. If you specify the /COM switch and omit the
    /LPT switch, the client searches only for serial ports. By default,
    Interlnk scans all serial and parallel ports.

/LPT[:][n|address]
    Specifies a parallel port to use for data transfer. The n parameter
    specifies the number of the parallel port. The address parameter
    specifies the address of the parallel port. If you omit n or address,
    the Interlnk client uses the first parallel port that it finds connected
    to the server. If you specify the /LPT switch and omit the /COM switch,
    the client searches only for parallel ports. By default, Interlnk scans
    all serial and parallel ports.

/AUTO
    Installs the INTERLNK.EXE device driver in memory only if the client can
    establish a connection with the server when the client starts up. By
    default, Interlnk is installed in memory even if the client cannot
    establish a connection with the server.

/NOSCAN
    Installs the INTERLNK.EXE device driver in memory, but prevents
    establishing a connection between client and server during setup. By
    default, the client tries to establish a connection with the server as
    soon as you install INTERLNK.EXE.

/LOW
    Loads the INTERLNK.EXE device driver into conventional memory, even if
    the upper memory area is available. By default, INTERLNK.EXE is loaded
    into the upper memory area if the upper memory area is available.

/BAUD:rate
    Sets a maximum baud rate for serial communication. Valid values for rate
    are 9600, 19200, 38400, 57600, and 115200. The default is 115200.

/V
    Prevents conflicts with a computer's timer. Specify this switch if you
    have a serial connection between computers and one of them stops running
    when you use Interlnk to access a drive or printer port.
______________________________________________________________________________

[E] [C]				INTERSVR


Starts the Interlnk server.

Syntax:

INTERSVR [drive:[...]] [/X=drive:[...]] [/LPT:[n|address]]
[/COM:[n|address]] [/BAUD:rate] [/B] [/V]

To copy Interlnk files from one computer to another, use the following syntax:

INTERSVR /RCOPY

Parameter:

drive:
    Specifies the letter(s) of the drive(s) that will be redirected. By
    default, all drives are redirected.

Switches

/X=drive:
    Specifies the letter(s) of drive(s) that will not be redirected. By
    default, all drives are redirected.

/LPT:[n|address]
    Specifies a parallel port to use. The n parameter specifies the number
    of the parallel port. The address parameter specifies the address of the
    parallel port. If you omit n or address, the Interlnk server uses the
    first parallel port that it finds connected to the client. If you
    specify the /LPT switch and omit the /COM switch, the server searches
    only for parallel ports. By default, all parallel and serial ports are
    scanned.

/COM:[n|address]
    Specifies a serial port to use. The n parameter specifies the number of
    the serial port. The address parameter specifies the address of the
    serial port. If you omit n or address, the Interlnk server searches all
    serial ports and uses the first port that it finds connected to the
    client. If you specify the /COM switch and omit the /LPT switch, the
    server searches only for serial ports. By default, all parallel and
    serial ports are scanned.

/BAUD:rate
    Sets a maximum serial baud rate. Valid values for rate are 9600, 19200,
    38400, 57600, and 115200. The default value is 115200.

/B
    Displays the Interlnk server screen in black and white. Use this switch
    if you have problems reading your monochrome monitor.

/V
    Prevents conflicts with a computer's timer. Use this switch if you have
    a serial connection between computers and one of them stops running when
    you use Interlnk to access a drive or printer port.

/RCOPY
    Copies Interlnk files from one computer to another, provided that the
    computers are connected with a 7-wire, null-modem serial cable and that
    the MODE command is available on the computer where you are installing
    Interlnk.
______________________________________________________________________________

[E] [C]				KEYB.COM


Configures a keyboard for a specific language.

KEYB [xx[,[yyy][,[drive:][path]filename]]] [/E] [/ID:nnn]

  xx				Specifies a two-letter keyboard code.
  yyy				Specifies the code page for the character set.
  [drive:][path]filename	Specifies the keyboard definition file.
  /E				Specifies that an enhanced keyboard is installed.
  /ID:nnn			Specifies the keyboard in use.

MS-DOS 6.22 - CUSTOMIZING FOR INTERNATIONAL USE:
http://2dos.homepage.dk/batutil/help/COUNTRY.HTM
Non USA Keyboard Layouts:
http://web.archive.org/web/20080609160917/http://oldfiles.org.uk/powerload/codepage.htm
International keyboard parameters for DOS sessions:
http://www.toshiba.ca/support/techsupport/tsbs/all/-TSB000581.htm
MS-DOS 6.22 COUNTRY.TXT file:
http://support.microsoft.com/help/117850
Codepage Support Setup Information:
http://support.microsoft.com/help/60080
Active Code Page Versus Selected Code Page:
http://support.microsoft.com/help/67584
List of available keyboard codes + code pages (character sets):
http://support.microsoft.com/help/262283
List of keyboard layouts:
http://www.microsoft.com/globaldev/reference/keyboards.mspx
List of Locale ID (LCID) values:
http://www.microsoft.com/globaldev/reference/lcid-all.mspx
List of keyboard scan codes:
http://www.microsoft.com/whdc/device/input/scancode.mspx

See "F1-F12 Remapping = MS-DOS Mode + ANSI Driver" in DOSTIPS.TXT (included)
for more language codes info.
______________________________________________________________________________

[I]				LABEL


Creates, changes or deletes the volume label of a disk.

LABEL [drive:][label]
______________________________________________________________________________

[I] [D]				LOADHIGH = LH


Loads a program into the upper memory area.

LOADHIGH [drive:][path]filename [parameters]
LH [drive:][path]filename [parameters]
LOADHIGH [/L:region1[,minsize1][;region2[,minsize2]...] [/S]]
	 [drive:][path]filename [parameters]

/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.

/S	Shrinks a UMB to its minimum size while the program
	is loading.

[drive:][path]filename
	Specifies the location and name of the program.
______________________________________________________________________________

[I]				MD = MKDIR


Creates a directory.

MKDIR [drive:]path
MD [drive:]path
______________________________________________________________________________

[E] [U]				MEM.EXE


Displays the amount of used and free memory in your system.

MEM [/CLASSIFY | /DEBUG | /FREE | /MODULE modulename] [/PAGE]

  /CLASSIFY or /C  Classifies programs by memory usage. Lists the size of
		   programs, provides a summary of memory in use, and lists
		   largest memory block available.
  /DEBUG or /D     Displays status of all modules in memory, internal drivers,
		   and other information.
  /FREE or /F      Displays information about the amount of free memory left
		   in both conventional and upper memory.
  /MODULE or /M    Displays a detailed listing of a module's memory use.
		   This option must be followed by the name of a module,
		   optionally separated from /M by a colon.
  /PAGE or /P      Pauses after each screenful of information.
  /ALL or /A	   Displays HMA status (if any) and brief memory summary.

See "MEM.EXE HIDDEN PARAMETERS" in SECRETS.TXT (included):
http://www.mdgx.com/secrets.htm#MEM
______________________________________________________________________________

[E]				MODE.COM


Configures system devices.

Printer port:	   MODE LPTn[:] [COLS=c] [LINES=l] [RETRY=r]
Serial port:	   MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s] [RETRY=r]
Device Status:	   MODE [device] [/STATUS]
Redirect printing: MODE LPTn[:]=COMm[:]
Prepare code page: MODE device CP PREPARE=((yyy[...]) [drive:][path]filename)
Select code page:  MODE device CP SELECT=yyy
Refresh code page: MODE device CP REFRESH
Code page status:  MODE device CP [/STATUS]
Display mode:	   MODE [display-adapter][,n]
		   MODE CON[:] [COLS=c] [LINES=n]
Typematic rate:	   MODE CON[:] [RATE=r DELAY=d]

Valid devices (examples, depending on hardware configuration):
AUX
COM1
COM2
COM3
COM4
...
COMm
CON
LPT1
LPT2
LPT3
...
LPTn
NUL
PRN
Sustitute m (COMm) + n (LPTn) with a valid integer number from 1 to 9.
Meaning:
AUX	= AUXiliary port
COMm	= Serial COMmunication port # m (default: m = 1 - 9)
CON	= CONsole = real/visible screen/display + keyboard ports
LPTn	= Line PrinTer port # n (default: n = 1 - 9)
NUL	= NULl = fake/invisible screen/display + keyboard ports
PRN	= PRiNter port

Adjust keyboard typematic rate (valid values: 2 - 32) and delay (valid values:
1, 2, 3 + 4) to fastest allowed:

MODE CON: RATE=32 DELAY=1

Adjust DOS VGA text screen resolution by running one of these commands
(examples):

MODE CO80	= COlor 80 Columns + 25 Lines [default]
MODE CO80,25	= COlor 80 Columns + 25 Lines [default]
MODE CO80,43	= COlor 80 Columns + 43 Lines
MODE CO80,50	= COlor 80 Columns + 50 Lines
MODE CO40	= COlor 40 Columns + 25 Lines
MODE CO40,25	= COlor 40 Columns + 25 Lines
MODE CO40,43	= COlor 40 Columns + 43 Lines
MODE CO40,50	= COlor 40 Columns + 50 Lines
MODE BW80	= BW (Black + White) 80 Columns + 25 Lines
MODE BW80,25	= BW (Black + White) 80 Columns + 25 Lines
MODE BW80,43	= BW (Black + White) 80 Columns + 43 Lines
MODE BW80,50	= BW (Black + White) 80 Columns + 50 Lines
MODE BW40	= BW (Black + White) 40 Columns + 25 Lines
MODE BW40,25	= BW (Black + White) 40 Columns + 25 Lines
MODE BW40,43	= BW (Black + White) 40 Columns + 43 Lines
MODE BW40,50	= BW (Black + White) 40 Columns + 50 Lines
MODE MONO	= MONOchrome (Black + White) + 25 Lines
MODE MONO,25	= MONOchrome (Black + White) + 25 Lines
MODE MONO,43	= MONOchrome (Black + White) + 43 Lines
MODE MONO,50	= MONOchrome (Black + White) + 50 Lines

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:\DOS\ANSI.SYS /X

More info:
http://support.microsoft.com/help/150323

See "F1-F12 Remapping = MS-DOS Mode + ANSI Driver" in DOSTIPS.TXT (included)
for more info.
______________________________________________________________________________

[E]				MORE.COM


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.

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


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 Specifies the location and name of the file
				 or files you want to move.
  destination		  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.
  [drive:][path]dirname1  Specifies the directory you want to rename.
  dirname2		  Specifies the new name of the directory.

  /Y		  Suppresses prompting to confirm creation of a directory
		  or overwriting of the destination.
  /-Y		  Causes prompting to confirm creation of a directory or
		  overwriting of the destination.

The switch /Y may be present in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.

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
______________________________________________________________________________

[E] [D] [C]			MSCDEX.EXE


Usage:

MSCDEX.EXE [/D:<device name> ...] [/M:<n>] /E /V [/L:<drive letter>] /S /K

/D:<device name>	Allows you to specify a name for the device
			driver. This name must be identical to the
			device name used in the CONFIG.SYS file.
/M:<n>			Specifies the number of sector buffers used
			to cache the path table of a CD-ROM/DVD disk.
			Typically, each drive should have a minimum
			of four to five buffers. The larger this
			number is, the less your computer will have
			to read directly from the CD-ROM/DVD drive.
			Minimum 2 and maximum 30 buffers allowed.
/E			Tells MSCDEX.EXE to use expanded memory if
			your system is using expanded memory.
			A LIM 3.2 or newer EMS compatible memory manager
			(EMM386.EXE, QEMM386.SYS, RM386.EXE, 386MAX.SYS)
			must be loaded with EMS enabled from CONFIG.SYS.
/V			Displays information on memory usage
			when you boot your PC.
/L:<drive letter>	Allows you to specify the letter you want
			to assign to the first CD-ROM/DVD drive.
/S			Allows the CD-ROM/DVD to be shared on MS-NET
			based systems.
/K			Tells MSCDEX.EXE to use any KANJI (Japanese)
			file structures, if present, rather than the
			default of alphanumeric file structures.

More details @ MSKB:
http://support.microsoft.com/help/87165
Even more info:
http://www.mdgx.com/newtip1.htm#CDROM4
Even more info:
http://www.mdgx.com/newtip4.htm#CDROMNAME
______________________________________________________________________________

[E] [X]				MSD.EXE


Provides detailed technical information about your computer.

MSD [/I] [/F[drive:][path]filename] [/P[drive:][path]filename]
    [/S[drive:][path][filename]]

MSD [/B][/I]

  /B				Runs MSD using a black and white color scheme.
  /I				Bypasses initial hardware detection.
  /F[drive:][path]filename	Requests input and writes an MSD report to the
				specified file.
  /P[drive:][path]filename	Writes an MSD report to the specified file
				without first requesting input.
  /S[drive:][path][filename]	Writes a summary MSD report to the specified
				file. If no filename is specified, output is to
				the screen.

Use MSD [/B] [/I] to examine technical information through the MSD interface.

See MSD62.TXT (included) for more details.
______________________________________________________________________________

[E]				NLSFUNC.EXE


Loads country-specific information.

NLSFUNC [[drive:][path]filename]

  [drive:][path]filename	Specifies the file containing country-specific
				information.

Must load NLSFUNC.EXE from CONFIG.SYS or AUTOEXEC.BAT followed by COUNTRY.SYS
to be able to (re)set code page (example):

CONFIG.SYS line:

INSTALLHIGH=C:\DOS\NLSFUNC.EXE C:\DOS\COUNTRY.SYS

AUTOEXEC.BAT line:

C:\DOS\NLSFUNC.EXE C:\DOS\COUNTRY.SYS

See "F1-F12 Remapping = MS-DOS Mode + ANSI Driver" in DOSTIPS.TXT (included)
for more language codes info.
______________________________________________________________________________

[I] [C]				PATH


Displays or sets a search path for executable files.

PATH [[drive:]path[;...]]
PATH ;

Type PATH ; to clear all search path settings and direct MS-DOS to search
only in the current directory.
Type PATH without parameters to display the current path.

If used in CONFIG.SYS must be preceded by the SET command (example):

SET PATH=etc...

SET prefix is not necessary if used in BATch files like AUTOEXEC.BAT.

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

which displays something like this (example):

PATH=C:\;C:\WINDOWS;C:\DOS;C:\WHATEVER;C:\MYDIR1;

All PATH entries should be properly terminated with a semicolon (;).

Such DOS commands executed from a DOS box/console/session/window within
Windows GUI modify the PATH environment ONLY (temporary) within that
particular DOS session, and they do NOT carry over to ANY other DOS session
(started separately).
To permanently modify the PATH environment (which carries over to ALL DOS
sessions), such commands MUST be run from native/real/true/pure MS-DOS mode
outside Windows (Windows/WfWG 3.xx, 95/95a/95B/95C, 98/98 SP1/98 SE), or
modify/create the "Path" registry Expanded String [REG_EXPAND_SZ] Value
(Windows NTx OSes: NT4, 2000, XP, 2003, Vista, 2008, 7, 8, 8.1, 2012, 10,
2016) or String [REG_SZ] Value (Windows 9x OSes: ME) under these registry keys
(global, affects all users):
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
and/or (local, affects only currently logged in user):
HKEY_CURRENT_USER\Environment
Comprehensive Windows Registry Guide:
http://www.mdgx.com/reg.htm
______________________________________________________________________________

[I] [B]				PAUSE


Suspends processing of a batch program and displays the message:
Press any key to continue....

PAUSE
______________________________________________________________________________

[E] [C]				POWER + POWER.EXE


Turns power management on and off, reports the status of power management,
and sets levels of power conservation.

Syntax:

POWER [ADV[:MAX|REG|MIN]|STD|OFF]

To display the current power setting, use the following syntax:

POWER

Parameters:

ADV[:MAX|REG|MIN]|STD|OFF

ADV[:MAX|REG|MIN]
    Conserves power when applications and hardware devices are idle. In
    some cases, performance may be affected if an application is active
    instead of idle. Use MAX for maximum power conservation. Use REG,
    the default setting, to balance power conservation with application
    and device performance. Use MIN if the performance of an application
    or device is not satisfactory when you specify MAX or REG.

STD
    If your computer supports the Advanced Power Management (APM)
    specification, STD conserves power by using only the
    power-management features of your computer's hardware. If your
    computer does not support the APM specification, STD turns off power
    management.

OFF
    Turns off power management.


				POWER.EXE


Reduces power consumption when applications and devices are idle. The power
manager device driver conforms to the Advanced Power Management (APM)
specification. This device driver must be loaded by a DEVICE command in your
CONFIG.SYS file.

Syntax:

DEVICE=[drive:][path]POWER.EXE [ADV[:MAX|REG|MIN]|STD|OFF] [/LOW]

Parameters:

drive:path
    Specifies the location of the POWER.EXE file.

ADV[:MAX|REG|MIN]|STD|OFF

ADV[:MAX|REG|MIN
    Conserves power when applications and hardware devices are idle. In
    some cases, performance may be affected if an application is active
    instead of idle. Use MAX for maximum power conservation. Use REG,
    the default setting, to balance power conservation with application
    and device performance. Use MIN if the performance of an application
    or device is not satisfactory when you specify MAX or REG.

STD
    If your computer supports the Advanced Power Management (APM)
    specification, STD conserves power by using only the
    power-management features of your computer's hardware. If your
    computer does not support the APM specification, STD turns off power
    management.

OFF
    Turns off power management.

Switch:

/LOW
    Loads the POWER.EXE device driver into conventional memory, even if the
    upper memory area is available. By default, POWER.EXE is loaded into the
    upper memory area if the upper memory area is available.
______________________________________________________________________________

[I] [C]				PROMPT


Changes the Windows + DOS command prompt.

PROMPT [text]

  text	Specifies a new command prompt.

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	MS-DOS 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.

If used in CONFIG.SYS must be preceded by the SET command (example):

SET PROMPT=etc...

PROMPT special codes (non-default colors, complex layouts, multi-line prompt
messages etc) can be used ONLY with an ANSI DOS console driver (ANSI.COM,
ANSI.SYS or NANSI.SYS) loaded in memory from CONFIG.SYS or AUTOEXEC.BAT.
See "F1-F12 Remapping = MS-DOS Mode + ANSI Driver" in DOSTIPS.TXT (included)
for more info.
______________________________________________________________________________

[E] [X]				QBASIC.EXE


Starts the MS-DOS QBasic programming environment.

QBASIC [/B] [/EDITOR] [/G] [/H] [/MBF] [/NOHI] [[/RUN] [drive:][path]filename]

  /B		Allows use of a monochrome monitor with a color graphics card.
  /EDITOR	Starts the MS-DOS Editor (MS-DOS EDIT.COM).
  /G		Provides the fastest update of a CGA screen.
  /H		Displays the maximum number of lines possible for your hardware.
  /MBF		Converts the built-in functions MKS$, MKD$, CVS and CVD to
		MKSMBF$, MKDMBF$, CVSMBF and CVDMBF, respectively.
  /NOHI		Allows the use of a monitor without high-intensity support.
  /RUN		Runs the specified Basic program before displaying it.
  [[drive:][path]filename] Specifies the program file to load or run.

NOTE:
QBASIC.EXE (+ QBASIC.HLP = optional) must be present inside the same directory
where EDIT.COM resides, because in all MS-DOS 5/6.xx editions DOS mode
text/ASCII editor (EDIT.COM) is just a stub which starts QBasic in edit mode,
similar to running this command:
QBASIC.EXE /EDITOR
More info:
http://support.microsoft.com/help/63777

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
______________________________________________________________________________

[I] [B] [C]			REM = :: = ;


Records comments (REMarks) in a batch (*.BAT) file (AUTOEXEC.BAT), CONFIG.SYS,
MSDOS.SYS, *.CFG, *.INF and *.INI (WINBOOT.INI, SYSTEM.INI, WIN.INI) files.

REM [comment]	= only in *.BAT + CONFIG.SYS
:: [comment]	= only in *.BAT
; [comment]	= only in CONFIG.SYS, MSDOS.SYS, *.CFG, *.INF + *.INI
______________________________________________________________________________

[I]				REN = RENAME


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.
______________________________________________________________________________

[E] [D]				SCANDISK.EXE


Runs the ScanDisk disk-repair program.

To check and repair a drive, use the following syntax:
   SCANDISK [drive: | /ALL] [/CHECKONLY | /AUTOFIX [/NOSAVE]] [/SURFACE]
To check and repair an unmounted DriveSpace compressed volume file, use:
   SCANDISK drive:\DRVSPACE.nnn [/CHECKONLY | /AUTOFIX[/NOSAVE]]
To examine a file for fragmentation, use the following syntax:
   SCANDISK /FRAGMENT [drive:][path]filename
To undo repairs you made previously, use the following syntax:
   SCANDISK /UNDO [drive:]
For [drive:], specify the drive containing your Undo disk.

 /ALL		Checks and repairs all local drives.
 /AUTOFIX	Fixes damage without prompting.
 /CHECKONLY	Checks a drive, but does not repair any damage.
 /CUSTOM	Configures and runs ScanDisk according to SCANDISK.INI settings.
 /NOSAVE	With /AUTOFIX deletes lost clusters rather than saving as files.
 /NOSUMMARY	With /CHECKONLY or /AUTOFIX prevents ScanDisk from stopping at
		summary screens.
 /SURFACE	Performs a surface scan after other checks.
 /MONO		Configures ScanDisk for use with a monochrome display.

To check and repair the current drive, type SCANDISK without parameters.
______________________________________________________________________________

[I] [C]				SET


Displays, sets or removes Windows + MS-DOS environment variables.

SET [variable=[string]]

  variable	Specifies the environment-variable name.
  string	Specifies a series of characters to assign to the variable.

Type SET without parameters to display the current environment variables.

If used in CONFIG.SYS must be followed by an environment variable name or
command [internal command name followed by CMD, i.e. COPYCMD] (examples):

SET PATH=etc...
SET PROMPT=etc...
SET COPYCMD=/Y
SET DIRCMD=/A/O:GEN/P/V
______________________________________________________________________________

[E] [D]				SETVER.EXE


Sets the MS-DOS version number that MS-DOS reports to a program.
Loads into memory the MS-DOS version table, which lists names of programs and
the number of the MS-DOS version with which each program is designed to run.
This device driver must be loaded by a DEVICE or DEVICEHIGH command in your
Config.sys file.

Syntax

DEVICE=[drive:][path]SETVER.EXE

Parameters

Display current version table:	SETVER [drive:path]
Add entry:			SETVER [drive:path] filename n.nn
Delete entry:			SETVER [drive:path] filename /DELETE [/QUIET]

  [drive:path]		Specifies location of the SETVER.EXE file.
  filename		Specifies the filename of the program.
  n.nn			Specifies the MS-DOS version to be reported to the program.
  /DELETE or /D		Deletes the version-table entry for the specified program.
  /QUIET or /Q		Hides the message typically displayed during deletion of
			version-table entry.
______________________________________________________________________________

[I] [B]				SHIFT


Changes the position of replaceable parameters in a batch file.

SHIFT
______________________________________________________________________________

[E] [D] [C]			SMARTDRV.EXE


Installs and configures the SMARTDrive disk-caching utility.

SMARTDRV [/X] [[drive[+|-]]...] [/U] [/C | /R] [/F | /N] [/L] [/V | /Q | /S]
	 [InitCacheSize [WinCacheSize]] [/E:ElementSize] [/B:BufferSize]

 /X		Disables write-behind caching for all drives.
 drive		Sets caching options on specific drive(s). The specified
		drive(s) will have write-caching disabled unless you add +.
 +		Enables write-behind caching for the specified drive.
 -		Disables all caching for the specified drive.
 /U		Do not load CD-ROM/DVD caching module.
 /C		Writes all information currently in write-cache to hard disk.
 /R		Clears the cache and restarts SMARTDrive.
 /F		Writes cached data before command prompt returns (default).
 /N		Doesn't write cached data before command prompt returns.
 /L		Prevents SMARTDrive from loading itself into upper memory.
 /V		Displays SMARTDrive status messages when loading.
 /Q		Does not display status information.
 /S		Displays additional information about SMARTDrive's status.
 InitCacheSize	Specifies XMS memory (KB) for the cache.
 WinCacheSize	Specifies XMS memory (KB) for the cache with Windows.
 /E:ElementSize	Specifies how many bytes of information to move at one time.
 /B:BufferSize	Specifies the size of the read-ahead buffer.

See "OUTSMART SMARTDRIVE" in MYTIPS31.TXT (included):
http://www.mdgx.com/newtip2.htm#OUTSMART
______________________________________________________________________________

[E]				SORT.EXE


Sorts input and writes results to the screen, a file or another device

SORT [/R] [/+n] [[drive1:][path1]filename1] [> [drive2:][path2]filename2]
[command |] SORT [/R] [/+n] [> [drive2:][path2]filename2]

  /R				Reverses the sort order; that is, sorts Z to A,
				then 9 to 0.
  /+n				Sorts the file according to characters in
				column n.
  [drive1:][path1]filename1	Specifies file(s) to be sorted
  [drive2:][path2]filename2	Specifies a file where the sorted input is to be
				stored.
  command			Specifies a command whose output is to be sorted.
______________________________________________________________________________

[E] [D]				SUBST.EXE


Associates a path with a drive letter.

SUBST [drive1: [drive2:]path]
SUBST drive1: /D

  drive1:	Specifies a virtual drive to which you want to assign a path.
  [drive2:]path	Specifies a physical drive and path you want to assign to
		a virtual drive.
  /D		Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.
______________________________________________________________________________

[E]				SYS.COM


Copies MS-DOS system files and command interpreter to a disk you specify.

SYS [drive1:][path] drive2:

  [drive1:][path] Specifies the location of the system files.
  drive2:	  Specifies the drive the files are to be copied to.
______________________________________________________________________________

[I]				TIME


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.
______________________________________________________________________________

[I] [U]				TRUENAME


Reserved command name

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


Displays the contents of text files.

TYPE [drive:][path]filename
______________________________________________________________________________

[E]				UNFORMAT.COM


Restores a disk erased by the FORMAT command or restructured by the RECOVER
command.

UNFORMAT drive: [/J]
UNFORMAT drive: [/U] [/L] [/TEST] [/P]
UNFORMAT /PARTN [/L]
drive:	Specifies the drive to unformat.
/J	Verifies that the mirror files agree with the system information on
	the disk.
/U	Unformats without using MIRROR files.
/L	Lists all file and directory names found, or, when used with the
	/PARTN switch, displays current partition tables.
/TEST	Displays information but does not write changes to disk.
/P	Sends output messages to printer connected to LPT1.
/PARTN	Restores disk partition tables.

MIRROR, UNDELETE and UNFORMAT
Copyright (C) 1987-1993 Central Point Software, Inc.

UNFORMAT works only with FAT16 formatted drives/partitions!
______________________________________________________________________________

[I] [U]				VER


Displays the MS-DOS version.

VER

Parameters

  /R	(REVISION) Displays OS revision number and DOS module memory location.

See "VER HIDDEN PARAMETERS" in SECRETS.TXT (included):
http://www.mdgx.com/secrets.htm#VER
______________________________________________________________________________

[I]				VERIFY


Tells MS-DOS 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.
______________________________________________________________________________

[I]				VOL


Displays the disk volume label and serial number, if they exist.

VOL [drive:]
______________________________________________________________________________

[E]				VSAFE.EXE


Continuously monitors your computer for viruses and displays a warning when it
finds one. VSAFE is a memory-resident program that uses 22K of memory.

Do not use the VSAFE command when Windows is running.

Syntax
    VSAFE [/option[+ | -] ...] [/NE] [/NX] [/Ax | /Cx] [/N] [/D] [/U]

Switches

option
    Specifies how VSAFE monitors for viruses. Use a plus or minus sign (+ or
    -) after the number to turn an option on or off. The following list
    describes the options you can choose.

    1
        Warns of formatting that could completely erase the hard disk. The
        default setting is "on."

    2
        Warns of an attempt by a program to stay in memory. The default
        setting is "off."

    3
        Prevents programs from writing to disk. The default setting is
        "off."

    4
        Checks executable files that MS-DOS opens. The default setting is
        "on."

    5
        Checks all disks for boot sector viruses. The default setting is
        "on."

    6
        Warns of attempts to write to the boot sector or partition table of
        the hard disk. The default setting is "on."

    7
        Warns of attempts to write to the boot sector of a floppy disk. The
        default setting is "off."

    8
        Warns of attempts to modify executable files. The default setting is
        "off."
/NE
    Prevents VSafe from loading into expanded memory.

/NX
    Prevents VSafe from loading into extended memory.

/Ax
    Sets the hot key as ALT plus the key specified by x.

/Cx
    Sets the hot key as CTRL plus the key specified by x.

/N
    Allows VSAFE to monitor for possible viruses on network drives.

/D
    Turns off checksumming.

/U
    Removes VSAFE from memory.
______________________________________________________________________________

[E] [U]				WIN.COM


Starts Windows 3.1x or Windows for WorkGroups (WfWG) 3.1x.

WIN [/B] [/N] [/D:[C][F][S][V][X]]

/B	Creates a file, BOOTLOG.TXT, that records system messages generated
	during system startup (boot).
/N	Causes Windows not to load network drivers.
/D:	Used in combination with one or more of the following switches for
	troubleshooting when Windows does not start correctly.
   C	Turns off 32-bit file access.
   F	Turns off 32-bit disk access.
	Equivalent to SYSTEM.INI file setting: 32BitDiskAccess=FALSE.
   S	Specifies that Windows should not use ROM address space between
	F000:0000 and 1 MB for a break point.
	Equivalent to SYSTEM.INI file setting: SystemROMBreakPoint=FALSE.
   V	Specifies that the ROM routine will handle interrupts from the hard
	disk controller.
	Equivalent to SYSTEM.INI file setting: VirtualHDIRQ=FALSE.
   X	Excludes all of the adapter area from the range of memory that
	Windows scans to find unused space.
	Equivalent to SYSTEM.INI file setting: EMMExclude=A000-FFFF.
   :	Starts Windows/WfWG 3.1x without displaying startup logo.

See "WIN.COM SWITCHES" in MYTIPS31.TXT (included):
http://www.mdgx.com/newtip10.htm#WINSWITCH

See "WIN.COM HIDDEN PARAMETERS" in SECRETS.TXT (included):
http://www.mdgx.com/secrets.htm#WIN
______________________________________________________________________________

[E]				XCOPY.EXE


Copies files (except hidden and system files) and directory trees.

XCOPY source [destination] [/A | /M] [/D:date] [/P] [/S [/E]] [/V] [/W]

  source	Specifies the file(s) to copy.
  destination	Specifies the location and/or name of new files.
  /A		Copies files with the archive attribute set,
		doesn't change the attribute.
  /M		Copies files with the archive attribute set,
		turns off the archive attribute.
  /D:date	Copies files changed on or after the specified date.
  /P		Prompts you before creating each destination file.
  /S		Copies directories and subdirectories except empty ones.
  /E		Copies any subdirectories, even if empty.
  /V		Verifies each new file.
  /W		Prompts you to press a key before copying.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
