home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 3 / CDASC03.ISO / sorties / 314 / dos.txt < prev    next >
Text File  |  1993-04-01  |  38KB  |  1,185 lines

  1. @DOS Commands and Utilities                      Copyright 1991 David Jurgens
  2. :DOS commands:DOS summary
  3. ^DOS Command Summary
  4.  
  5.      ~APPEND~ d:path[[;][d:]path...]
  6.      APPEND~ [/E][/X]
  7.      ~ASSIGN~ [x[=]y[...]]
  8.      ~ATTRIB~ [±A][±R] [d:][path]filespec [/S]
  9.      ~BACKUP~ d:[path][filespec] d: [/A][/D:date][/F][/L][/M][/S][/T:time]
  10.     *BREAK [ON|OFF]
  11.      ~CD~ [d:][path]
  12.     *CHCP codepage
  13.      ~CHDIR~ [d:][path]
  14.      ~CHKDSK~ [d:][path][filespec] [/F][/V]
  15.     *CLS
  16.      ~COMMAND~ [device] [/E:size] [/P] [/C [d:][path]cmdstring]
  17.      ~COMP~ [d:][path][filespec] [d:][path][filespec]
  18.      ~COPY~ [/A][/B][d:][path]src[/A][/B] [d:][path][dest] [/A][/B][/V]
  19.      ~CTTY~ device
  20.      ~DATE~ [mm-dd-yy | mm/dd/yy | mm.dd.yy ]
  21.     *DEL [d:][path]filespec
  22.      ~DIR~ [d:][path][filespec] [/P][/W]
  23.      ~DISKCOMP~ [d: [d:]] [/1][/8]
  24.      ~DISKCOPY~ [d: [d:]] [/1]
  25.      ECHO [ON | OFF] [text]   (see ~BATCH~)
  26.      ~EDLIN~ [d:][path]filename [/B]
  27.      ~ERASE~ [d:][path]filespec
  28.     *EXIT
  29.     *FASTOPEN d:[=n]
  30.      ~FC~ [/B][/C][/L][LBn][/N][/nnnn][/T][/W] [d:]pathname1 [d:]pathname2
  31.      ~FDISK~ (menu driven)
  32.      ~FIND~ [/C][/N][/V] "string" [[d:][path]filespec ...]
  33.      FOR [%]%variable IN (set) DO command  (see ~BATCH~)
  34.      ~FORMAT~ [d:] [/1][/4][/8][/B][/N:# /T:#][/S][/V]
  35.      GOTO label (see ~BATCH~)
  36.      ~GRAFTABL~ [{ 437 | 860 | 863 | 865 }] [/STATUS]
  37.      ~GRAPHICS~ [COLOR{1|4|8} | COMPACT | GRAPHICS | THERMAL] [/B]
  38.         [/C] [/LCD] [/P port] [/R]
  39.      IF [NOT] condition command (see ~BATCH~)
  40.      ~JOIN~ [d:] { [d:[directory]] | [/D] }
  41.      ~KEYB~ kbcode[,[codepage][,d:[path]filespec]]
  42.      ~LABEL~ [d:][label]
  43.     *LH [d:]path
  44.     *LOADHIGH [d:]path
  45.      ~MKDIR~ [d:]path
  46.      ~MODE~ LPT#[:]=COM#
  47.      MODE LPT#[:] [width][,[lpi][,P]]
  48.      MODE COM#[:]baud[,[parity][,[databits][,[stopbits][,P]]]]
  49.      MODE vmode [[,shiftmode][,T]]
  50.      MODE device CODEPAGE PREPARE = ((cpage)[d:][path]filespec)
  51.      MODE device CODEPAGE SELECT = cpage
  52.      MODE device CODEPAGE REFRESH
  53.      MODE device CODEPAGE /STATUS
  54.      ~MORE~ [< d:[filespec]]
  55.      ~NLSFUNC~ [d:][path]filespec
  56.      ~PATH~ [=][[d:]dir [[;[d:]dir]...]]
  57.      PAUSE  [text]   (see ~BATCH~)
  58.      ~PRINT~ [d:][path][filespec]... [/B:bsize][/C][/D:device]
  59.         [/M:maxtik][/P][/Q:nfiles][/S:tslice][/T][/U:busytik]
  60.      ~PROMPT~ string
  61.      ~RD~ [d:]path
  62.      ~RECOVER~ [d:][path][filespec]
  63.      REM [text]   (see ~BATCH~)
  64.      ~REN~ [d:][path]oldname newname
  65.      ~RENAME~ [d:][path]oldname newname
  66.      ~REPLACE~ [d:][path]filespec [d:][path] [/A][/D][/P][/R][/S][/W]
  67.      ~RESTORE~ d:[path][filespec] d: [/A] [/B:date]
  68.         {[/E:time] | [/L:time]} [/M][/N][/S]
  69.      ~RMDIR~ [d:]path
  70.      ~SELECT~ [[d:] [d:][path]]] country keyboard
  71.     *SET [name=[string]]
  72.      ~SETVER~ [d:]
  73.      SETVER [d:][path]filespec n.nn
  74.      SETVER [d:][path]filespec /DELETE [/QUIET]
  75.      ~SHARE~ [/F:size][/L:locks]
  76.      SHIFT  (see ~BATCH~)
  77.      ~SORT~ [/R] [/+column]
  78.      ~SUBST~ [d: [[d:]path] [/D]]
  79.      ~SYS~ d:
  80.      ~TIME~ [hh:mm[:ss[.hun]]]
  81.      ~TREE~ [d:] [/F]
  82.      ~TRUENAME~ [filespec | path]   (undocumented DOS 4.01+)
  83.     *TYPE [d:][path]filespec
  84.     *VER
  85.     *VERIFY [ON | OFF]
  86.     *VOL [d:]
  87.      ~XCOPY~ [d:][path][srcspec] [d:][path][destspec] [/A][/D:mm-dd-yy]
  88.         [/E][/M][/P][/S][/V][/W]
  89.  
  90.  
  91.     * command is not listed in HelpPC
  92.     {} indicates one of the choices must be selected
  93.     [] optional
  94. :config.sys
  95. ^DOS - CONFIG.SYS Statements and Common Device Drivers
  96.  
  97. ^Standard Statements
  98.  
  99.     BREAK = {ON|OFF}    default=OFF
  100.     BUFFERS = n        default=2 (3 for AT)  range=[1..99]
  101.     COUNTRY = countrycode[,[codepage],[[d:][path]COUNTRY.SYS]] (DOS 2.1+)
  102.     DEVICE = [d:][path]filespec[.ext] [options]
  103.     DRIVPARM = /D:n [/C] [/F:n] [/H:n] [/N] [/S:n] [/T:n]
  104.     FCBS = m,n        default=4,0  range=[1..255],[0..255]
  105.     FILES = n        default=8  range=[8..255]
  106.     LASTDRIVE = d        default=E  range=[A..Z]
  107.     SHELL = [d:][path]filespec[.ext] [options]
  108.     STACKS = n,s        default=9,128   range=[8..64],[32..512]
  109.     SWITCHCHAR =
  110.  
  111. ^Device Drivers
  112.  
  113.     DEVICE = ANSI.SYS
  114.     DEVICE = DISPLAY.SYS CON=(displaytype[,codepage],ncodepages)
  115.     DEVICE = DRIVER.SYS /D:ddd [/C][/F:f][/H:hh][/N][/S:ss][/T:ttt]
  116.     DEVICE = PRINTER.SYS port=(printertype[,codepage],ncodepages)
  117.     DEVICE = RAMDRIVE.SYS [size] [sector] [dir] [/A|/E]   (DOS 3.2+)
  118.     DEVICE = VDISK.SYS [d:][path]vdisk.sys [comment] [size]
  119.         [comment] [sector] [comment] [dir] [/E[:{1..8}]]
  120. :append
  121. ^DOS APPEND Command
  122.  
  123. %    APPEND [path]
  124.  
  125.     - external, available since DOS 3.2 (also in some OEM 3.1 versions)
  126.     - a TSR program that sets or displays the search path for data files
  127.     - network drives are legal parameters
  128.     - if no parameter is supplied, the ~ASSIGN~'ed path list is displayed
  129.     - the semicolon can be used to separate multiple file paths
  130.     - a single semicolon cancels all ASSIGN'ed paths
  131.     - the program does not know whether the data file was in the expected
  132.       directory or in the APPEND path
  133.     - must be used before ASSIGN if the specified 'path' is in the DOS
  134.       program search path
  135.     - known to cause problems with some programs
  136. :assign
  137. ^DOS ASSIGN Command
  138.  
  139. %    ASSIGN [X[=]Y[...]] [/STATUS]
  140.  
  141.     X    physical drive
  142.     Y    new logical drive to mapped to drive Y
  143.     /status    display current assignments (DOS 5.0)
  144.  
  145.     ASSIGN A=C    redirects all access to drive A: to C:
  146.  
  147.     - external, available since DOS 3.0 (some OEM versions since 2.0)
  148.     - a TSR program that assigns a drive alias by redirecting disk
  149.       requests for the specified drive to another drive
  150.     - if no parameters are entered, all assignments are cancelled
  151.     - colons aren't necessary in this command
  152.     - defeats the ~COPY~ commands built in check for file dest = source
  153.     - should be avoided if possible, since it hides disk structure
  154.       from programs;  This includes ~BACKUP~, ~JOIN~, ~LABEL~, ~PRINT~,
  155.       ~RESTORE~, and ~SUBST~ included with DOS
  156.     - ~DISKCOMP~, ~DISKCOPY~, ~FORMAT~ and ~SYS~ ignore drive reassignment
  157.     - use ~SUBST~ in DOS 3.1 and later
  158. :attrib
  159. ^DOS ATTRIB Command
  160.  
  161. %    ATTRIB    [±A] [±H] [±R] [±S]  [d:][path][filespec] [/S]
  162.  
  163.     -A    clear archive attribute  (DOS 3.2+)
  164.     +A    set archive attribute  (DOS 3.2+)
  165.     -R    clear read-only attribute
  166.     +R    set read-only attribute
  167.     -S    clear system attribute  (after DOS 3.3)
  168.     +S    set system attribute  (after DOS 3.3)
  169.     -H    clear hidden attribute  (after DOS 3.3)
  170.     +H    set hidden attribute  (after DOS 3.3)
  171.     /S    process files in subdirectories also  (after DOS 3.3)
  172.  
  173.  
  174.     - external, available since DOS 3.0
  175.     - sets, clears or displays file attributes
  176.     - if no attributes are supplied, current attributes are displayed
  177.     - not network compatible
  178. :backup
  179. ^DOS BACKUP Command
  180.  
  181. %    BACKUP d:[path][filespec]  d: [/A] [/D:mm-dd-yy]
  182. %           [/F] [/L] [/M] [/S] [/T:hh:mm:ss]
  183.  
  184.     /A    append to files already on backup disk
  185.     /D:mm-dd-yy  backup files modified on or after specified date
  186.     /F    format target disk if not already formatted (DOS 3.3+)
  187.     /L:name create log of disk # for each backed up file
  188.     /M    backup only files modified since last backup (archive bit on)
  189.     /S    backup files in current directory and its subdirectories
  190.     /T:hh:mm:ss  backup modified on or after specified time (DOS 3.3+)
  191.  
  192.     - sets errorlevel as follows:
  193.       0    normal completion
  194.       1    no files found to backup
  195.       2    some files not backed up due to files sharing conflicts
  196.       3    terminated by user
  197.       4    terminated due to error
  198.  
  199.     - external, available since DOS 2.0
  200.     - don't use with a drive that is ~ASSIGN~'ed, ~SUBST~'ed or ~JOIN~'ed
  201.     - preserves attribute bits
  202.     - if the destination is a floppy disk, it is erased first (unless
  203.       /A option is supplied)
  204.     - if a hard disk is the destination, the files are placed in a
  205.       directory named \BACKUP
  206.     - later version of BACKUP create files named BACKUPID.@@@ that
  207.       contain control information;     see  ~BACKUP FORMAT~
  208. :chdir (dos):cd
  209. ^DOS CHDIR or CD Command
  210.  
  211.  
  212. %    CD [d:][path]dir
  213. %    CHDIR [d:][path]dir
  214.  
  215.  
  216.     - internal, available since DOS 2.0
  217.     - changes current directory to the specified directory;  if path is
  218.       omitted the directory is changed to 'dir' in the current directory
  219.     - the fully qualified pathname must can't exceed 63 characters
  220. :chkdsk
  221. ^DOS CHKDSK Command
  222.  
  223. %    CHKDSK [pathname] [/F] [/V]
  224.  
  225.     pathname is the name of a file or directory to check for fragmentation
  226.     /F    fix errors in file system structure
  227.     /V    verbose, display file names in each directory
  228.  
  229.  
  230.     - external, available since DOS 1.0
  231.     - reports on disk and memory statistics and disk problems
  232.     - attempts to fix file structure problems if the /F option is
  233.       supplied and structural damage is detected
  234.     - if a filename is specified, CHKDSK reports whether the file is
  235.       contiguous
  236.     - if lost cluster are found with /F option and the user chooses
  237.       to save them, files with the name FILEnnnn.CHK are created in
  238.       the root directory (/F)
  239.     - shouldn't be used on ~ASSIGN~'ed, ~JOIN~'ed, ~SUBST~'ed or 
  240.       network drives
  241.     - checks for the following anomalies:
  242.  
  243.       lost clusters (clusters allocated but not attached to a file)
  244.       cross linked clusters (multiple files claiming the same cluster)
  245.       invalid cluster numbers found in ~FAT~ chain
  246.       bad sectors located in FAT area
  247.       invalid first cluster number in directory entry
  248.       invalid file attributes in directory entry
  249.       directory structure damaged
  250. :command.com
  251. ^DOS - COMMAND.COM - Command Interpreter
  252.  
  253. %    COMMAND [device] [/C [d:][path]cmdstring][/E:size][/P]
  254.  
  255.     device     device to use for input and output (DOS 5.x)
  256.     /C     passes command string to temporary command processor
  257.     /E:size  sets environment size (see below) [160..32767]
  258.     /P     makes command processor permanent
  259.  
  260.  
  261.     - external, available since DOS 1.0
  262.     - in DOS versions 2.0 through 3.1, size is indicated in paragraphs;
  263.       versions 3.2 and after indicate size in bytes
  264.     - "COMMAND/C string"  is normally used in batch files to execute
  265.       other batch files and return
  266. :comp
  267. ^PC-DOS COMP Command
  268.  
  269. %    COMP [[d:][path]file1] [[d:][path]file2] [/A][/C][/D][/L][/N:nnn]
  270.  
  271.  
  272.     /D    display differences in decimal
  273.     /A    display differences in ASCII
  274.     /L    display line number where difference occurred
  275.     /N:nnn    compare only the first xxx lines
  276.     /C    case insensitive
  277.  
  278.     - external, available in PC DOS versions since 2.0
  279.     - compares the contents of two or more files;  wildcards are allowed
  280.     - see    ~FC~
  281. :copy
  282. ^DOS COPY Command
  283.  
  284. %    COPY source [/A][/B] [+source2[/A][/B]...] [dest] [/A][/B][/V]
  285.  
  286.  
  287.     /A    preceding file is ASCII
  288.     /B    preceding file is BINARY (copies ^Z if included in file)
  289.     /V    verify data after writing to dest (no comparison is made)
  290.  
  291.     - internal, available since DOS 1.0
  292.     - has minimal checking for destination being the same as the source
  293.     - if multiple files are specified with '+' they are appended to and
  294.       written to the destination
  295.     - to append to the destination the destination must be the first
  296.       filename in the source otherwise the data in the destination will
  297.       be lost
  298. :ctty
  299. ^DOS CTTY Command
  300.  
  301.  
  302. %    CTTY device
  303.  
  304.  
  305.     - internal, available since DOS 2.0
  306.     - redirects standard input and output to specified character device
  307.     - device must be a character device (NUL and PRN shouldn't be used
  308.       since they are output only)
  309. :date
  310. ^DOS DATE Command 
  311.  
  312.  
  313. %    DATE [mm-dd-yy | mm/dd/yy | mm.dd.yy ]
  314.  
  315.  
  316.     mm    month (1-12)
  317.     dd    day (1-31)
  318.     yy    year (80-99, 1980-1999) (1980-2079 DOS 3.0+)
  319.  
  320.  
  321.     - internal, available since DOS 1.0
  322.     - sets DOS date
  323.     - version 3.3 and later also update the ~CMOS~ setting if available
  324. :dir
  325. ^DOS DIR Command
  326.  
  327.  
  328. %    DIR [d:][path][filename] [/P][/W]
  329.  
  330.     
  331.     /P    pauses after each screen is displayed
  332.     /W    displays file names 5 per line
  333.  
  334.  
  335.     - internal, available since DOS 1.0
  336. :diskcomp
  337. ^DOS DISKCOMP Command
  338.  
  339.  
  340. %    DISKCOMP [drive1:] [drive2:] [/1] [/8]
  341.  
  342.     /1    compare the first side of the diskette only
  343.     /8    compare the first eight sectors of each track only
  344.  
  345.  
  346.     - sets errorlevel as follows:
  347.       0    disks were identical
  348.       1    disks were different
  349.       2    program terminated by user
  350.       3    bad sector found in diskette
  351.       4    command syntax error, bad drive specification or not
  352.         enough memory
  353.  
  354.     - external, available since DOS 2.0
  355.     - compares physical sectors of two diskettes
  356. :diskcopy
  357. ^DOS DISKCOPY Command
  358.  
  359. %    DISKCOPY [drive1:] [drive2:] [/1] [/v]
  360.  
  361.  
  362.     /1    Enables you to copy only one side of a disk.
  363.     /V    Verifies that the contents of the disk are copied properly.
  364.  
  365.  
  366.     - sets errorlevel as follows:
  367.       0    disks copied successfully
  368.       1    recoverable disks error occurred
  369.       2    program terminated by user
  370.       3    unreadable sector in source or unformattable destination
  371.       4    command syntax error, bad drive specification or not
  372.         enough memory
  373.  
  374.     - external, available since DOS 2.0
  375.     - copies source disk to destination sector by sector
  376.     - formats destination when necessary
  377. :driver.sys
  378. ^DOS DRIVER.SYS Format
  379.  
  380.  
  381. %    device=[d:][path]DRIVER.SYS [/C][/D:#][/F:#][/H:#][/N][/S:#][/T:#]
  382.  
  383.  
  384.     /C    changeline support required (AT and later)
  385.     /D:#    drive number (0-255, 0=A, 1=B)
  386.     /F:#    form factor
  387.     /H:#    number of heads (1-99, default:2)
  388.     /N    nonremovable media
  389.     /S:#    sectors per track (1-99, default 9)
  390.     /T:#    tracks per side (1-999, default 80)
  391.  
  392.     - device driver, available since DOS 3.2
  393.     - older IBM AT's and AT clones often don't handle 3½ inch 720K drives
  394.       correctly.  This is because when the BIOS in these machines detects
  395.       an 80 track disk it sets the data transfer rate to 500 KHz which
  396.       is too high for 720K disks.
  397. :drivparm
  398. ^CONFIG.SYS DRIVPARM Statement
  399.  
  400. %    DRIVPARM = /D:n [/C] [/F:n] [/H:n] [/N] [/S:n] [/T:n]
  401.  
  402.     /D:n    drive number n=[0..255] 0=A:, 1=B:, etc
  403.     /C    drive supports door closed status support
  404.     /F:n    form factor index (default is 2)
  405.           0   320K or 260K diskette
  406.           1   1.2Mb diskette
  407.           2   720K diskette
  408.           3   8 inch single density floppy
  409.           4   8 inch double density floppy
  410.           5   fixed disk
  411.           6   tape drive
  412.           7   other
  413.     /H:n    number of heads n=[1..99]
  414.     /N    indicates device is not removable
  415.     /S:n    number of sectors per track n=[1..99]
  416.     /T:n    number of tracks per side n=[1..999]
  417.  
  418.     - sets block device parameters
  419. :echo
  420. ^DOS ECHO Command
  421.  
  422.  
  423. %    ECHO [ON | OFF | msg]
  424.  
  425.     ON    turns command echo on in batch files (default)
  426.     OFF    turns command echo off in batch files
  427.     msg    message to write to the standard output
  428.  
  429.  
  430.     - internal, available since DOS 2.0
  431.     - displays text to standard output or sets batch echo mode
  432.     - if no parameters are supplied, it reports the echo state
  433.     - using "echo. " will output a blank line in most DOS versions
  434.     - DOS versions since 3.3 have the @ prefix available to disable
  435.       command echo for one command
  436. :EMM.SYS:Intel EMS driver
  437. ^EMM.SYS Format
  438.  
  439.  
  440. %    device=emm.sys COMP IO_ADDR {1..16} [MEM_ADDR] [EXPF=x] [EXPL=x]
  441. %            [H=x] [MC] [MCF=x] [MCL=x] [ND] [NE] [NP] [RD] [VI]
  442. :exe2bin
  443. ^DOS EXE2BIN Command
  444.  
  445.  
  446. %    EXE2BIN  [d:][path]sourcefile  [d:][path]destfile
  447.  
  448.  
  449.     - external, available since DOS 2.0
  450.     - converts .EXE files to .COM or .BIN files if the source meets the
  451.       following criteria: source file is a valid .EXE module, there is
  452.       no stack segment and the code size is less than 64K
  453. :fc
  454. ^DOS FC Command
  455.  
  456. %    FC file1 file2 [/A] [/B] [/C] [/L] [/LBn] [/N] [/nnnn] [/T] [/W]
  457.  
  458.     /A    abbreviate output for each differences (DOS 3.2)
  459.     /B    binary compare (default for BIN, COM, EXE, LIB, OBJ, SYS)
  460.     /C    case insensitive comparison
  461.     /L    compare ascii files line by line
  462.     /LBn    set internal buffer size to 'n' lines (default=100)
  463.     /N    display the line numbers for ASCII comparisons (DOS 3.2)
  464.     /nnnn    number of lines that must match to resynchronize (default is
  465.         3 lines, range=[1..9])
  466.     /T    don't expand tabs in comparison (default=expand tabs, DOS 3.2)
  467.     /W    ignore white space in comparisons
  468.  
  469.  
  470.     - external, available since DOS 2.0
  471.     - compares files and lists differences to standard output
  472. :fcbs
  473. ^CONFIG.SYS FCBS Statement
  474.  
  475. %    FCBS=m,p
  476.  
  477.     m    maximum number of files that can be opened via FCBS (default=4,
  478.         range=[1..255])
  479.     p    number of FCBS that cannot be automatically closed by DOS
  480.         (default=0, range=[0..m])
  481.  
  482.     - available since DOS 3.0
  483.     - SHARE increases the number of 'm' to 16 and 'p' to 8
  484. :fdisk
  485. ^DOS FDISK Command
  486.  
  487.  
  488.     - external, available since DOS 3.2  (PC DOS since 2.0)
  489.     - menu driven interface manipulates disk partition table
  490.     - each hard disk may have up to 4 partitions
  491.     - deleting a partition makes data in that partition unrecoverable
  492.     - updates the disk partition table
  493. :find
  494. ^DOS FIND Command
  495.  
  496.  
  497. %    FIND  [/C] [/I] [/N] [/V]  "string"  [d:][path][filespec]
  498.  
  499.  
  500.     /C    display count of lines containing "string"
  501.     /I    case insensitive search (version specific)
  502.     /N    display line numbers with each match
  503.     /V    display lines not containing 'string'
  504.  
  505.  
  506.     - external, available since DOS 2.0
  507.     - searches for 'string' in a file or files
  508. :format
  509. ^DOS FORMAT Command
  510.  
  511. %    FORMAT [d:] [/1] [/4] [/8] [/B] [/N:#] [/Q] [/S] [/T:#] [/U] [/V]
  512.  
  513.     d:    drive to format
  514.     /1    format single sided 5¼ diskette
  515.     /4    format 360K diskette in 1.2Mb drive, unreliable on 360k drive
  516.     /8    format diskette with 8 sectors per track instead of 9/15
  517.     /B    format diskette 8 sector per track, and reserve space for DOS
  518.     /F    specifies size of floppy to format (DOS 5.x+)
  519.     /N:#    specifies number of sectors per track, must be used with /T
  520.     /Q    use quick format (DOS 5.x+)
  521.     /S    copy DOS after format to make disk bootable
  522.     /T:#    specifies number of tracks on disk, must be used with /N
  523.     /U    format regardless, unconditional (DOS 5.x+)
  524.     /V    format and prompt for volume label
  525.  
  526.     - sets errorlevel as follows (DOS 3.2+):
  527.       0    format was successful
  528.       3    terminated by user
  529.       4    terminated due to error
  530.       5    terminated due to 'N' response to "Proceed with format prompt"
  531.  
  532.     - external, available since DOS 1.0
  533.     - different OEM versions support different options
  534.     - completely erases all data on a floppy disk;    resets root directory
  535.       and FAT on hard disks but leaves data intact, though inaccessible
  536.     - displays a warning if the target is a hard disk
  537. :graftabl
  538. ^DOS GRAFTABL Command
  539.  
  540.  
  541. %    GRAFTABL [cp] [/STATUS]
  542.  
  543.     cp      code page identifier
  544.     /STATUS   display the active code page
  545.  
  546.  
  547.     - external, available since DOS 3.0
  548.     - loads an extended graphics characters for characters 128-255 in
  549.       graphics mode
  550.     - this utility is a TSR that loads the character bitmaps into memory
  551.       and sets the ~INT 1F~ pointer to this bitmap table
  552.     - not necessary for PCjr or EGA systems
  553. :graphics
  554. ^DOS GRAPHICS Command
  555.  
  556. %    GRAPHICS [printer] [/B] [/C] [/D] [/F] [/P port] [/R]
  557.  
  558.     /B    print background in color (COLOR4 and COLOR8 printers only)
  559.     /C    center printout on page
  560.     /F    flip/rotate page 90 degrees
  561.     /LCD    print image using LCD aspect ratio
  562.     /P port specifies printer port (1=LPT1, 2=LPT2, 3=LPT3)
  563.     /R    print screen with black and white (same as on screen)
  564.  
  565.  
  566. %    Valid Printer Types
  567.     COLOR1       IBM PC Color Printer with black ribbon
  568.     COLOR4    IBM PC Color Printer with RGB ribbon
  569.     COLOR8    IBM PC Color Printer with CMY ribbon
  570.     COMPACT   IBM PC Compact Printer
  571.     GRAPHICS  IBM PC Graphics Printer (default)
  572.  
  573.  
  574.     - external, available since DOS 3.2 (PC DOS since 2.0)
  575.     - a TSR program that enables the PrtSc of a graphics display
  576.     - different versions of DOS have different parameters
  577.     - earlier versions were compatible with CGA modes only, later
  578.       versions handled enhanced video modes
  579.     - 640x200 graphics mode is printed with a 90 degree rotation
  580. :join
  581. ^DOS JOIN Command
  582.  
  583.  
  584. %    JOIN [d1: [d2:]path] [/D]
  585.  
  586.  
  587.     d1:     is the drive to add onto the subdirectory "d2:path"
  588.     d2:path  is the subdirectory that will be used to reference "d1:"
  589.     /D     cancels previous JOIN command
  590.  
  591.  
  592.     - external, available since DOS 3.0
  593.     - joins the root directory structure of a disk drive to a
  594.       subdirectory on another drive
  595.     - if no parameters are supplied, a list of current JOIN's is displayed
  596.     - "d1:" will no longer be available
  597.     - should not be used with drives that are ~SUBST~'ed or ~ASSIGN~'ed
  598.     - do not use ~BACKUP~, ~DISKCOMP~, ~DISKCOPY~, ~FORMAT~ and ~RESTORE~
  599.       with drives that are JOIN'ed
  600.     - network drives cannot be JOIN'ed
  601. :keyb:keybdv:keybfr:keybgr:keybit:keybsp:keybuk
  602. ^DOS KEYB Command
  603.  
  604. %    KEYB[xx]
  605. %    KEYB  [cp],[[d:][path]filename]] [/ID:nnn]
  606.  
  607.     xx      is a two-letter country code
  608.             DV    Dvorak keyboard
  609.             FR    French keyboard
  610.             GR    German keyboard
  611.             IT    Italian keyboard
  612.             SP    Spanish keyboard
  613.             UK    United Kingdom keyboard
  614.     cp      the code page for the desired character set
  615.     d:path      the drive and directory where "filename" is located
  616.     filename  the name of the keyboard definition file
  617.     nnn      keyboard ID in use
  618.  
  619.     - external, available since DOS 3.2  (PC DOS since 3.0)
  620.     - a TSR program that loads and replaces the ROM keyboard
  621.       translation table
  622.     - most commonly used to setup keyboards for use in countries other
  623.       than the US
  624.     - Ctrl-Alt-F1 returns the keyboard to the default configuration
  625.     - Ctrl-Alt-F2 returns the keyboard to the selected configuration
  626.     - implementation of this command varies between OEM DOS versions
  627. :label
  628. ^DOS LABEL Command
  629.  
  630.  
  631. %    LABEL [d:] [label]
  632.  
  633.  
  634.     - external, available since DOS 3.1 (PC DOS since 3.0)
  635.     - adds, changes, or deletes the disk volume label
  636.     - DOS 2.x created labels with the ~FORMAT~ /V command
  637.     - should not be used with network, ~SUBST~'ed or ~ASSIGN~'ed drives
  638.     - though it is possible to create multiple labels via programming,
  639.       only one label should exist per drive
  640. :mem (dos)
  641. ^DOS MEM Command
  642.  
  643.  
  644. %    MEM [/PROGRAM] [/DEBUG]
  645.  
  646.     /PROGRAM  displays names and segments of programs loaded in memory
  647.     /DEBUG      displays names and segments of programs, internal drivers,
  648.           and other information
  649.  
  650.     - external, available since DOS 4.0
  651.     - provides a description of memory similar to that of ~CHKDSK~ but
  652.       without checking the disk structure
  653. :mkdir (dos):md
  654. ^DOS MKDIR or MD Command
  655.  
  656.  
  657. %    MD [d:][path]newdir
  658. %    MKDIR [d:][path]newdir
  659.  
  660.  
  661.     - internal, available since DOS 2.0
  662.     - creates new directory in the specified path or in the current
  663.       directory if no path is specified
  664.     - the fully qualified pathname must not exceed 63 characters
  665.     - should not be used to create directories on drives that have been
  666.       ~ASSIGN~'ed, ~JOIN~'ed or ~SUBST~'ed.
  667. :mode
  668. ^DOS MODE command
  669.  
  670. %    MODE LPT#[:]=COM#
  671. %    MODE LPT#[:] [width][,[lpi][,P]]
  672.  
  673.     width    page print width (80 or 132, default:80)
  674.     lpi    vertical spacing in lines per inch (6 or 8, default:6)
  675.     P    continuous retry on time-out errors
  676.  
  677. %    MODE COM#[:]baud[,[parity][,[databits][,[stopbits][,P]]]]
  678.  
  679.     baud     data baud rate  (110,150,300,600,1200,2400,4800,4800,
  680.          9600 or 19200 (DOS 3.3), default:1200)
  681.     parity     data parity  (N=none, E=even, O=Odd, default:E)
  682.     databits number of data bits  (7 or 8, default:7)
  683.     stopbits number of stop bits  (1 or 2, default:1 (2 for 110 baud))
  684.     P     continuous retry on time-out errors
  685.  
  686. %    MODE vmode [,[shiftmode][,T]]
  687.  
  688.     vmode:
  689.      40    set display width to 40 characters (color only)
  690.      80    set display width to 80 characters (color only)
  691.      BW40    set CGA display to 40 columns black and white (color only)
  692.      BW80    set CGA display to 80 columns black and white (color only)
  693.      CO40    set CGA display to 40 columns color (color only)
  694.      CO80    set CGA display to 80 columns color (color only)
  695.      MONO    set display to MDA (monochrome only)
  696.  
  697.     shiftmode:
  698.      R    shift display one character to right (color only)
  699.      L    shift display one character to left (color only)
  700.  
  701.      T    display test pattern (color only)
  702.  
  703. %    MODE device CODEPAGE PREPARE = ((cpage)[d:][path]filespec)
  704. %    MODE device CODEPAGE SELECT = cpage
  705. %    MODE device CODEPAGE REFRESH
  706. %    MODE device CODEPAGE /STATUS
  707.  
  708.     device    device for codepage  (CON, PRN, LPT#)
  709.     cpage    code page number, or a list in parenthesis. Must
  710.         be one of the following: 437, 850, 860, 863, 865
  711.     /STATUS code page display status
  712.  
  713.  
  714.     - external, available since DOS 2.0
  715.     - codepage is applicable to DOS version 3.3 and higher
  716. :more
  717. ^DOS MORE Command
  718.  
  719.  
  720. %    MORE [< filename]
  721.  
  722.  
  723.     - external, available since DOS 2.0
  724.     - displays text 23 lines at a time to the standard output device
  725.     - text is read from the standard input device; redirection is
  726.       normally used with this command
  727.     - Ctrl-Break and Ctrl-C are used to abort the display
  728. :path
  729. ^DOS PATH Command
  730.  
  731.  
  732. %    PATH [=] [d:][path][;[d:][path]...]
  733.  
  734.  
  735.     - internal, available since DOS 2.0
  736.     - sets or displays DOS command search path
  737.     - multiple directory path names may be separated by semicolons ';'
  738. :pause
  739. ^DOS PAUSE Command
  740.  
  741.  
  742. %    PAUSE [msg]
  743.  
  744.     msg    optional message to display as a prompt
  745.  
  746.  
  747.     - internal, available since DOS 1.0
  748.     - pauses display and waits for keystroke
  749.     - msg parameter not available in all DOS versions
  750. :print
  751. ^DOS PRINT Command
  752.  
  753. %    PRINT [d:][path][filespec]...  [/B:bsize] [/C] [/D:device]
  754. %          [/M:maxtik] [/P] [/Q:nfiles] [/S:tslice] [/T] [/U:busytik]
  755.  
  756.     /B:bsize    internal buffer size; large 'bsize' improves performance
  757.     /C        cancel all files included on command line (up to /P)
  758.     /D:device    set print device; default is PRN
  759.     /M:maxtik    max CPU ticks print can have; default=2 range={1..255}
  760.     /P        set print mode (print files up to /C on command line)
  761.     /Q:nfiles    max files allowed in queue; default=10 range={1..32}
  762.     /S:tslice    CPU time slice value; default=8 range={1..255}
  763.     /T        terminate all files printing and in queue
  764.     /U:busytik    sets the number of ticks print waits for printer to
  765.             become available before giving up its time slice
  766.  
  767.     - external, available since DOS 2.0
  768.     - this program is a TSR print spooler
  769.     - expands tabs (0x09) to spaces
  770.     - availability of options varies with DOS versions
  771. :prompt
  772. ^DOS Prompt Command
  773.  
  774. %    PROMPT string
  775.  
  776.     "string" can be composed of any text combined with the following:
  777.  
  778.     $_    CR/LF pair
  779.     $$    dollar sign
  780.     $b    vertical slash symbol "│"
  781.     $d    system date
  782.     $e    escape character
  783.     $g    greater than symbol ">"
  784.     $h    destructive backspace
  785.     $l    less than symbol "<"
  786.     $n    current drive letter
  787.     $p    current path name
  788.     $q    equal symbol "="
  789.     $t    current time
  790.     $v    DOS version number
  791.  
  792.     - internal, available since DOS 2.0
  793.     - see    ~ANSI~
  794. :recover
  795. ^DOS Recover Command
  796.  
  797.  
  798. %    RECOVER d:[path][filename]
  799.  
  800.  
  801.     - attempts to rebuilds files from a disk with a damaged directory
  802.       or bad sectors
  803.     - this command isn't as capable as programs like Norton Utilities or
  804.       PC Tools and should be used as a last resort
  805. :ren:rename (DOS)
  806. ^DOS RENAME Command
  807.  
  808.  
  809. %    REN [d:][path]oldname newname
  810. %    RENAME [d:][path]oldname newname
  811.  
  812.  
  813.     - internal, available since DOS 1.0
  814.     - renames file 'oldname' to 'newname'
  815. :replace
  816. ^DOS Replace Command
  817.  
  818.  
  819. %    REPLACE [d:][path]filespec [d:][path] [/A][/D][/P][/R][/S][/U][/W]
  820.  
  821.  
  822.     /A    adds files to destination instead of replacing (mutually
  823.         exclusive with options /D and /S)
  824.     /D    only transfer files with more recent dates than the destination
  825.         files (mutually exclusive with /A)
  826.     /P    prompts before replacing
  827.     /R    replace read only files also
  828.     /S    search subdirectories;  incompatible with /A option
  829.     /U    replace files that are older than those in the source directory
  830.     /W    prompt for diskette before beginning operation
  831.  
  832.     - external, available since DOS 3.2
  833. :restore
  834. ^DOS RESTORE Command
  835.  
  836. %    RESTORE d:[path][filespec] d: [/A] [/B:mm-dd-yy]
  837. %        [/E:hh:mm] [/L:hh:mm] [/M] [/N] [/P] [/S]
  838.  
  839.     /A:mm-dd-yy    restore files modified on or after date specified
  840.     /B:mm-dd-yy    restore files modified on or before date specified
  841.     /D:mm-dd-yy    restore files modified on or before specified date
  842.     /E:hh:mm    restore files modified on or after specified time
  843.     /L:hh:mm    restore files modified on or before specified time
  844.     /M      restore files modified or deleted since last backup
  845.     /N      restore files that no longer exist on target
  846.     /P      prompt before restoring hidden, R/O or newer existing files
  847.     /S      restore files to subdirectories also
  848.  
  849.     - sets errorlevel as follows:
  850.       0    normal completion
  851.       1    no files found to restore
  852.       2    some files not restored due to files sharing conflicts
  853.       3    terminated by user
  854.       4    terminated due to error
  855.  
  856.     - external, available since DOS 2.0
  857.     - all parameters except /P and /S are new in DOS 3.3
  858. :rmdir (DOS):rd
  859. ^DOS RMDIR or RD Command
  860.  
  861.  
  862. %    RD [d:][path]dir
  863. %    RMDIR [d:][path]dir
  864.  
  865.  
  866.     - internal, available since DOS 2.0
  867.     - deletes directory 'dir' in the specified path or in the current
  868.       directory if no path is specified
  869.     - the fully qualified pathname must not exceed 63 characters
  870.     - should not be used to remove directories on drives that have been
  871.       ~ASSIGN~'ed, ~JOIN~'ed or ~SUBST~'ed.
  872. :select
  873. ^DOS SELECT Command
  874.  
  875. %    SELECT [[d1:] d2:[path]]  country  keyboard
  876.  
  877.     d1:       is the floppy disk (A: or B:) containing DOS system files
  878.     d2:[path]  disk/directory to receive the system files & country info
  879.     country       is a three digit code from the table below
  880.     keyboard   is a two character string from the table below
  881.  
  882. %                      Country         Keyboard
  883. %        Country            Code           Code
  884.  
  885.         Arabic            785
  886.         Australia        061        US
  887.         Belgium         032        BE
  888.         Canada (English)    001        US
  889.         Canada (French)        002        CF
  890.         Denmark         045        DK
  891.         Finland         358        SU
  892.         France            033        FR
  893.         Germany         049        GR
  894.         Hebrew            972
  895.         Italy            039        IT
  896.         Latin America        003        LA
  897.         Netherlands        031        NL
  898.         Norway            047        NO
  899.         Portugal        351        PO
  900.         Spain            034        SP
  901.         Sweden            046        SV
  902.         Switzerland (French)    041        SF
  903.         Switzerland (German)    041        SF
  904.         United Kingdom        044        UK
  905.         United States        001        US
  906.  
  907.     - external, available since DOS 4.0 (PC DOS since 3.0)
  908.     - configures system for specific country
  909.     - uses ~DISKCOPY~, ~FORMAT~ and ~XCOPY~ utilities
  910.  
  911. :setver
  912. ^DOS - SETVER Command
  913.  
  914.  
  915. %    SETVER [d:]                    
  916. %    SETVER [d:]filespec n.nn      
  917. %    SETVER [d:]filespec /DELETE [/QUIET]  
  918.  
  919.  
  920.     d:      Drive containing DOS system files (boot disk).
  921.     filespec  program filename
  922.     n.nn      version to be reported when DOS loads program
  923.     /DELETE   delete the SETVER entry for "filespec"
  924.     /QUIET    do not display message when deleting VERSION
  925.  
  926.  
  927.     - external, available since DOS 5.0
  928.     - sets the version number reported to a program when DOS loads
  929.       the application
  930.  
  931. :share
  932. ^DOS SHARE Program
  933.  
  934. %    SHARE [/F:size] [/L:locks]
  935.  
  936.     /F    allocates 'size' bytes for file sharing information (default
  937.         is 2048 bytes)
  938.     /L    configures the number of file regions that can be locked at
  939.         one time (default is 20)
  940.  
  941.  
  942.     - external, available since DOS 3.0
  943.     - a TSR that installs file sharing and locking for network
  944.       environments
  945.     - for large media in DOS versions 4.0 through DOS 4.01 (Compaq
  946.       DOS 3.31) this command must be issued to enable extended FCB
  947.       support;  otherwise a the older ~FCB~ function calls could destroy
  948.       critical disk data
  949. :sort
  950. ^DOS SORT Command
  951.  
  952.  
  953. %    SORT [/R] [/+n]
  954.  
  955.     /R    reverse or descending sort order
  956.     /+n    sort file starting at column 'n'
  957.  
  958.  
  959.     - external, available since DOS 2.0
  960.     - a filter that sorts an ASCII file provided via the standard input
  961.       device and writes output to the standard output devices
  962.     - DOS version 3.0+ perform case insensitive sorts, previous versions
  963.       were case sensitive
  964.     - DOS version 3.0+ treat foreign accented symbols as their english
  965.       counterparts if the country settings
  966. :stacks
  967. ^CONFIG.SYS STACKS Statement
  968.  
  969. %    STACKS = n,s
  970.  
  971.     n    number of stacks to use (default=9, range=[8..64])
  972.     s    each stack size in bytes (default=128, range=[32..512])
  973.  
  974.  
  975.     - available since DOS 3.2
  976.     - DOS version 3.2 and began switching to internal stacks before
  977.       servicing interrupts 02h, 08h-0Eh, 70h and 72h-77h.  This was to
  978.       protect applications from stack overflow during nested hardware
  979.       interrupt handling.
  980.     - STACKS=0,0 disables DOS's stack handling
  981. :subst
  982. ^DOS SUBST Command
  983.  
  984.  
  985. %    SUBST [d1: [d2:]path] [/D]
  986.     
  987.     d1:    drive to reference "path" through
  988.     d2:    drive containing the directory
  989.     path    directory pointed to by "d1:"
  990.     /D    deletes a substituted drive
  991.  
  992.  
  993.     - external, available since DOS 3.1
  994.     - substitutes a drive letter for a pathname
  995.     - should be avoided if possible, since it hides disk structure
  996.       from programs;  this includes ~BACKUP~, ~CHKDSK~, ~DISKCOMP~,
  997.       ~DISKCOPY~, ~FDISK~,  ~FORMAT~, ~JOIN~, ~LABEL~ and ~RESTORE~
  998.       commands and SUBST included with DOS
  999.     - ~CHDIR~, ~MKDIR~, ~PATH~ and ~RMDIR~ commands should be used
  1000.       with caution if a SUBST'ed drive is used as a parameter
  1001.     - network drives cannot be SUBST'ed
  1002. :sys
  1003. ^DOS SYS Command
  1004.  
  1005.  
  1006. %    SYS d:
  1007.  
  1008.     d:    is the drive to receive the system
  1009.  
  1010.  
  1011.     - external, available since DOS 1.0
  1012.     - transfers hidden system files IBMBIO.COM and IBMDOS.COM (IO.SYS
  1013.       and MSDOS.SYS for MS-DOS) from one disk to another making the
  1014.       disk capable of being booted (must copy COMMAND.COM first)
  1015.     - should not be used on network drives
  1016. :time (DOS)
  1017. ^DOS TIME Command 
  1018.  
  1019.  
  1020. %    TIME [ hh:mm:[ss[:nn]] ]
  1021.  
  1022.  
  1023.     hh    hours (0-23)
  1024.     mm    minutes (0-59)
  1025.     ss    seconds (0-59)
  1026.     nn    hundredths (0-99)
  1027.  
  1028.  
  1029.     - internal, available since DOS 1.0
  1030.     - sets DOS time
  1031.     - version 3.3 and later also update the ~CMOS~ setting if available
  1032. :tree
  1033. ^DOS TREE Command
  1034.  
  1035.  
  1036. %    TREE [d:] [/F] [/A]
  1037.  
  1038.  
  1039.     /F    displays files in each directory also
  1040.     /A    use ASCII characters instead of graphics characters in diagram
  1041.  
  1042.  
  1043.     - external, available since DOS 3.2 (PC DOS since 2.0)
  1044.     - displays the directory tree of a drive or directory
  1045.     - PC DOS version before 3.1 did not display filenames in the root
  1046.       directory when /F was specified
  1047. :truename
  1048. ^DOS TRUENAME Command  (undocumented)
  1049.  
  1050. %    TRUENAME [filespec | path]
  1051.     
  1052.     Returns the filename or pathname fully qualified even if the file
  1053.     has been ~SUBST~'ed or ~JOIN~'ed.  If no parm is specified it returns
  1054.     the fully qualified current directory.
  1055.     
  1056.     - internal, available since DOS 4.01
  1057. :xcopy
  1058. ^DOS XCOPY Command
  1059.  
  1060.  
  1061. %    XCOPY [d:][path][srcspec] [d:][path][destspec]
  1062. %          [/A] [/D:date] [/E] [/M] [/P] [/S] [/V] [/W]
  1063.  
  1064.  
  1065.     /A    copy only files with archive bit set, no attribute changes
  1066.     /D:date copy only files with dates the same or newer than 'date'
  1067.     /E    duplicate empty subdirectories on destination
  1068.     /M    copy only files with archive bit set, clears archive bit
  1069.     /P    prompt before copying file
  1070.     /S    include all child subdirectories
  1071.     /V    verify writes to destination
  1072.     /W    wait and prompt for disk before beginning copy
  1073.  
  1074.     - external, available since DOS 3.2
  1075. :.BAT:Batch Commands
  1076. ^Batch File Commands
  1077.  
  1078. %    ECHO [ON | OFF]  text
  1079.  
  1080.     Turns echoing of batch file commands on or off.  DOS is normally
  1081.     in the ON state.  ECHO without any parameters will display the
  1082.     current ECHO state.   If a text message is supplied as a parameter
  1083.     the message is written to the console.  To display a blank line,
  1084.     use the following:   ECHO.   (ECHO followed immediately by a period).
  1085.  
  1086.  
  1087. %    FOR %%var IN (set) DO command
  1088.  
  1089.     The FOR command allows repetitive execution of DOS commands.  For
  1090.     each iteration, "%%var" is replaced with an element of "set" and the
  1091.     command is executed.  Wildcards and paths are allowed as elements of
  1092.     "set" and represent any matching file names.   FOR commands cannot
  1093.     be nested.  To use FOR from the command line, only one "%" is
  1094.     necessary.  Example:
  1095.  
  1096.         FOR %%f IN (*.c) touch %%f
  1097.  
  1098.     will set the date and time of all files with the extension ".C".
  1099.  
  1100.  
  1101. %    GOTO label
  1102.  
  1103.     Causes batch file execution to transfer control to the line
  1104.     following the specified label.  A label is case insensitive,
  1105.     significant up to 8 characters and must be preceded by a colon
  1106.     on the line where it is defined.  The GOTO statement does NOT
  1107.     require a colon though.  If the specified label isn't found,
  1108.     batch file execution halts and the "Label not found" error is
  1109.     displayed.
  1110.  
  1111.  
  1112. %    IF [NOT] ERRORLEVEL number  command
  1113. %    IF [NOT] EXIST [d:][path]filename  command
  1114. %    IF [NOT] var1 == var2  command
  1115.  
  1116.     Provides a primitive conditional execution facility for batch files.
  1117.     If the condition is TRUE, the command is executed.  If false, the
  1118.     batch file continues at the next line.  The NOT parameter negates
  1119.     the condition.
  1120.     
  1121.     In the ERRORLEVEL test, "command" is executed if the ERRORLEVEL
  1122.     (return    code of previous program) is "number" or higher.
  1123.  
  1124.     The second form of the IF statement tests for the existence of a file
  1125.     or group of files (if wild cards are used) and executes "command"
  1126.     if found.  It cannot check for the existence of a subdirectory.
  1127.     
  1128.     The third IF test uses text variables.  These variables are case
  1129.     sensitive and must be at least 1 character long.  If the parameter
  1130.     may result in a null string, the variables should be quoted or
  1131.     pre/post-pended with another character.  Here's an example:
  1132.  
  1133.         IF "%1" == ""  GOTO null
  1134.         IF "%1" == "y" GOTO yes
  1135.         IF "%1" == "Y" GOTO yes
  1136.  
  1137.         :YES
  1138.         :NULL
  1139.  
  1140.  
  1141. %    PAUSE [text]
  1142.  
  1143.     BATCH file execution is halted and a prompt for a key is displayed.
  1144.     If a line of text is supplied the text is echoed to the display,
  1145.     followed by the prompt.  Prompts vary with DOS version.
  1146.  
  1147.  
  1148. %    REM [text]
  1149.  
  1150.     Displays "text" to the console if ECHO is ON.  Usually used to
  1151.     document batch files.  Similar to the ECHO command but can be
  1152.     disabled by turning ECHO off.
  1153.  
  1154.  
  1155. %    SHIFT
  1156.  
  1157.     Shifts the data in the BATCH file replaceable parameters from
  1158.     higher number parameters to lower number parameters.  Example:
  1159.  
  1160.     if TEST.BAT contains the following lines:
  1161.  
  1162.         echo  "%0 %1 %2 %3 %4 %5"
  1163.         shift
  1164.         echo  "%0 %1 %2 %3 %4 %5"
  1165.         shift
  1166.         echo  "%0 %1 %2 %3 %4 %5"
  1167.         shift
  1168.         echo  "%0 %1 %2 %3 %4 %5"
  1169.  
  1170.     and TEST.BAT is called with the following command line:
  1171.         
  1172.         test abc def ghi jkl mno
  1173.  
  1174.     the following would be displayed:
  1175.  
  1176.         "test abc def ghi jkl mno"
  1177.         "abc def ghi jkl mno "
  1178.         "def ghi jkl mno  "
  1179.         "ghi jkl mno   "
  1180.  
  1181.  
  1182.     - all the batch file commands listed here are internal
  1183.     - if < > or | are found in REM or ECHO statements, the text
  1184.       information supplied is redirected/piped.
  1185.