home *** CD-ROM | disk | FTP | other *** search
/ Lion Share / lionsharecd.iso / utils_mz / xdosman.zip / CHAPT6.DOC < prev    next >
Text File  |  1991-11-28  |  163KB  |  5,857 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                                    Chapter 6.
  8.  
  9.  
  10.  
  11.                             X-DOS Command Reference
  12.  
  13.      Introduction
  14.  
  15.           This chapter contains a detailed explanation of the functions and
  16.           features of all the X-DOS internal and external commands. Though
  17.           X-DOS is command compatible with MS-DOS, many of the commands in
  18.           X-DOS have been considerably enhanced, supporting switches not
  19.           available in MS-DOS with many being accessed from user friendly
  20.           menus. For this reason, in order to get the most out of the
  21.           powerful features offered by X-DOS, we suggest you read the
  22.           detailed explanation of the commands you most frequently use in
  23.           order to better understand these additional features.
  24.  
  25.           In the explanation of each command a number of headings appear
  26.           which are explained below:
  27.  
  28.           Purpose:    A brief description of the general function of the
  29.                       command.
  30.  
  31.           Type:       The command type, (i.e. external, or internal to
  32.                       COMMAND.COM or MAX.COM).
  33.  
  34.           Syntax:     The syntax (format) to be used when typing the
  35.                       command at the command line.
  36.  
  37.           Where:      A description of the items listed under Syntax.
  38.  
  39.           Remarks:    Special features or points that should be noted when
  40.                         using this command.
  41.  
  42.           Examples:   Examples of usages of the command.
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.                                       6-1
  63.  
  64.  
  65.  
  66.  
  67.      The ADDPATH Command
  68.  
  69.           Purpose:    This command adds a temporary path to the end of the
  70.                       current search path which is defined by the PATH
  71.                       command.
  72.  
  73.           Type:       Internal to COMMAND.COM
  74.  
  75.           Syntax:     ADDPATH
  76.                       [d:][path]directory;[d:][path]directory[;(...)]
  77.  
  78.           Where:      d:path - is the drive and path to the directory you
  79.                       want to add to the current search path.
  80.  
  81.                       directory - is the name of the directory to add to
  82.                       the current search path.
  83.  
  84.                       ;(...) - shows that you can add several paths, each
  85.                       separated with a semicolon.
  86.  
  87.           Remarks:    The ADDPATH command adds the path to one or more
  88.                       directories at the end of the current search path.
  89.                       This addition to the search path is only active until
  90.                       you reboot your computer. To make permanent changes
  91.                       to the search path you must use the PATH command in
  92.                       your AUTOEXEC.BAT configuration file.
  93.  
  94.           Examples:   Suppose that you have a current search path like
  95.                       this:
  96.  
  97.                       C:\DOS;C:\BUSINESS
  98.  
  99.                       If you have a directory C:\DOS\UTIL in which you
  100.                       store your utilities files and you want to
  101.                       temporarily add the UTIL path you could type:
  102.  
  103.                       ADDPATH C:\DOS\UTIL
  104.  
  105.                       Your current search path will now look like this:
  106.  
  107.                       C:\DOS;C:\BUSINESS;C:\DOS\UTIL
  108.  
  109.                       The C:\DOS\UTIL path will remain active until you
  110.                       reboot your computer.
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.                                       6-2
  124.  
  125.  
  126.  
  127.  
  128.      The ALIAS Command
  129.  
  130.           Purpose:    This command allows you to define aliases for
  131.                       commands and redefine the function keys on your
  132.                       keyboard.
  133.  
  134.           Type:       Internal to COMMAND.COM
  135.  
  136.           Syntax:     ALIAS [d:][path][filename]orALIAS
  137.                       alias=commandorALIAS mPFn=command
  138.  
  139.           Where:      d:path - is the drive and path to the file which
  140.                       holds your alias definitions.
  141.  
  142.                       filename - is the name of the file which holds your
  143.                       permanent alias definitions.
  144.  
  145.                       alias= - is a temporary alias you want to define.
  146.                       This alias definition is lost when you reboot your
  147.                       computer.
  148.  
  149.                       command - is the command, including any parameters,
  150.                       that you want to assign to a temporary alias or
  151.                       function key definition.
  152.  
  153.                       ~mPFn= - is the function key you temporarily want to
  154.                       redefine. The tild (~) indicates a function key
  155.                       translation. The 'm' is optional and must be
  156.                       substituted with an A to specify the [Alt] key, a C
  157.                       to specify the [Ctrl] key, or an S to specify the
  158.                       [Shift] key. The 'n' must be substituted with the
  159.                       number of the function key you are redefining, from 1
  160.                       to 10.
  161.  
  162.           Remarks:    You cannot redefine the [F3] function key alone (it
  163.                       is fixed as repeat the last command as in MS-DOS) but
  164.                       it can be redefined in combination with the <>, , or
  165.                       <> keys.
  166.  
  167.                       Also, the [F11] and F[12] function keys cannot be
  168.                       redefined since most BIOSs do not return any code
  169.                       when those keys are typed.
  170.  
  171.           Examples:   If you want to assign the command to run your
  172.                       favourite Word Processor to the key combination
  173.                       [Shift] [F2], you can type at the command line the
  174.                       command :
  175.  
  176.                       ALIAS SPF2=WORDPROC.EXE
  177.  
  178.                       Note that if you want to use the function keys, the
  179.                       statement FKEY=ON must appear in your CONFIG.SYS
  180.  
  181.  
  182.  
  183.  
  184.                                       6-3
  185.  
  186.  
  187.  
  188.  
  189.                       file.
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.                                       6-4
  246.  
  247.  
  248.  
  249.  
  250.      The APPEND Command
  251.  
  252.           Purpose:    This command allows your programs to locate non-
  253.                       executable files such as overlay files, data files,
  254.                       and configuration files in other directories than the
  255.                       default directory.
  256.  
  257.           Type:       Internal to MAX.COM
  258.  
  259.           Syntax:     APPEND [d:][path][directory];[(...)]
  260.  
  261.           Where:      d:path - is the drive and path to the directory you
  262.                       want to include in the search for non-executable
  263.                       files.
  264.  
  265.           directory   - is the directory you want to include in the search
  266.                       for non-executable files.
  267.  
  268.           ;(...)      - shows that you can include several directories,
  269.                       each separated by a semicolon.
  270.  
  271.           Remarks:    The PATH command searches only for files with the
  272.                       .EXE, .COM and .BAT filename extensions. You can use
  273.                       the APPEND command to extend the search path to non
  274.                       executable files.
  275.  
  276.           Examples:   Suppose you have your favourite Word Processor in the
  277.                       directory C:\WORDPROC and it uses the file
  278.                       WORDPROC.INI in that directory, but you wish to
  279.                       access WORDPROC.EXE from anywhere, you would type the
  280.                       command :
  281.  
  282.                       APPEND C:\WORDPROC
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.                                       6-5
  307.  
  308.  
  309.  
  310.  
  311.      The ATTRIB Command
  312.  
  313.           Purpose:    This command lets you display or modify the Archive,
  314.                       System, Hidden, and Read-Only file attributes.
  315.  
  316.           Type:       Internal to MAX.COM
  317.  
  318.           Syntax:     ATTRIB [d:][path][filespec] [+A / -A] [+S / -S] [+H /
  319.                       -H] [+R / -R]
  320.  
  321.           Where:      d:path - is the drive and path to the files you want
  322.                       to display or change attributes on.
  323.  
  324.                       filespec - is the file or range of files to display
  325.                       or change attributes on.
  326.  
  327.                       + - turns the specified attribute ON.
  328.                       - - turns the specified attribute OFF.
  329.                       A - indicates the Archive file attribute.
  330.                       S - indicates the System file attribute.
  331.                       H - indicates the Hidden file attribute.
  332.                       R - indicates the Read-Only file attribute.
  333.  
  334.           Remarks:    If ATTRIB is used with a file specification but no
  335.                       attribute switches, ATTRIB shows all the attributes
  336.                       for the spcified files.
  337.  
  338.                       The wildcards '?' and '*' can be used with the ATTRIB
  339.                       command to modify more than one file.
  340.  
  341.           Examples:   Suppose you want to make the X-DOS.SYS file read-
  342.                       write and non hidden, you would type the command :
  343.  
  344.                       ATTRIB -R-H X-DOS.SYS
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.                                       6-6
  368.  
  369.  
  370.  
  371.  
  372.      The BACKUP (XBACK) Command
  373.  
  374.           Purpose:    Backup is the default alias that is assigned to the
  375.                       XBACK program for compatibility reasons. Thus there
  376.                       is no program on your X-DOS diskette called BACKUP,
  377.                       the actual command name being XBACK. Please refer to
  378.                       Chapter 10. for full details on using the BACKUP
  379.                       (XBACK)  program.
  380.  
  381.                       This command can make backups of data on your hard
  382.                       disk onto diskettes to reduce the possibility of data
  383.                       loss. You should make a backup of your hard disk data
  384.                       on a regular basis. Files that are backed up with the
  385.                       BACKUP command are stored in a special format and
  386.                       must be restored again with the X-DOS RESTORE
  387.                       command.
  388.  
  389.           Syntax:     XBACK [d1:] [d2:] [/switches]  Running in manual mode
  390.  
  391.                       or
  392.  
  393.                       BACKUP d1:[path1][filespec] d2: [/switches] Running
  394.                       in automatic backup mode
  395.  
  396.                       or
  397.  
  398.                       RESTORE d3: d4:[path2][filespec2] [/switches] Running
  399.                       in automatic restore mode
  400.  
  401.           Where:      d1: - is the hard disk drive which contains the file
  402.                       you want to backup.
  403.  
  404.                       d2: - is the floppy drive to which you want to backup
  405.                       to.
  406.  
  407.                       path1 - is the path to the files you want to backup
  408.                       on hard disk drive d1:.
  409.  
  410.                       filespec1 - is the range of files you want to backup.
  411.  
  412.                       d3: - is the floppy drive from which you want to
  413.                       restore files.
  414.  
  415.                       d4: - is the hard disk drive onto which you want to
  416.                       restore files.
  417.  
  418.                       path2 - is the path to the directory you want to
  419.                       restore files to on the hard disk drive.
  420.  
  421.                       filespec2 - is the range of files you want to restore
  422.                       from the backup set.
  423.  
  424.  
  425.  
  426.  
  427.  
  428.                                       6-7
  429.  
  430.  
  431.  
  432.  
  433.      The BOOT Command
  434.  
  435.           Purpose:    This command reboots your computer.
  436.  
  437.           Type:       Internal to COMMAND.COM
  438.  
  439.           Syntax:     BOOT
  440.  
  441.           Remarks:    The BOOT command is a 'warm' boot and does not
  442.                       completely reinitialize your computer. It is the
  443.                       equivalent of typing [CTRL][ALT][DEL].
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.                                       6-8
  490.  
  491.  
  492.  
  493.  
  494.      The BREAK Command
  495.  
  496.           Purpose:    This command changes or displays the [Ctrl] C and
  497.                       [Ctrl] Break checking mode.
  498.  
  499.           Type:       Internal to COMMAND.COM
  500.  
  501.           Syntax:     BREAK [ON | OFF]
  502.  
  503.           Where:      ON - specifies that BREAK mode will be turned ON.
  504.  
  505.                       OFF - specifies that BREAK mode will be turned OFF.
  506.  
  507.           Remarks:    When this command is used with no parameters, the
  508.                       current state of the BREAK will be displayed. When
  509.                       you set the BREAK to ON, X-DOS will check for a
  510.                       [CTRL] C or [CTRL][BREAK] every time it is called,
  511.                       and will terminate the application if a break key has
  512.                       been pressed. If the BREAK state is OFF, X-DOS checks
  513.                       for the break key only when performing IO operations
  514.                       to the keyboard, the screen and the COM and LPT
  515.                       ports.
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.                                       6-9
  551.  
  552.  
  553.  
  554.  
  555.      The CACHE Command
  556.  
  557.           Purpose:    This command can be used to enable or disable the
  558.                       internal X-DOS cache once it is installed.
  559.  
  560.           Type:       Internal to COMMAND.COM
  561.  
  562.           Syntax:     CACHE [ON | OFF]
  563.  
  564.           Where:      ON - turns on the internal X-DOS cache when it has
  565.                         previously been turned off with the CACHE OFF
  566.                       command.
  567.  
  568.                       OFF - turns off the internal X-DOS cache, temporarily
  569.                       disabling it.
  570.  
  571.           Remarks:    You may wish to disable the cache when running
  572.                       special disk programs such as defragmenters. This can
  573.                       easily be done by typing the CACHE=OFF command
  574.                       directly from the command line avoiding the need to
  575.                       edit the CONFIG.SYS file. After completing your disk
  576.                       operations you can then re-enable the cache with the
  577.                       CACHE=ON command.
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.                                       6-10
  612.  
  613.  
  614.  
  615.  
  616.      The CD (CHDIR) Command
  617.  
  618.           Purpose:    This command changes the default directory to another
  619.                       directory. You can change directory without entering
  620.                       any path to the directory, and you can even use
  621.                       wildcards in the directory specification.
  622.  
  623.           Type:       Internal to COMMAND.COM
  624.  
  625.           Syntax:     CD [d:][path][directory]
  626.  
  627.           Where:      d: - is the optional drive on which you want to
  628.                       change default directory. You will still remain in
  629.                       the default directory on the current drive.
  630.  
  631.                       path - is the optional path to the directory to which
  632.                       you want to change.
  633.  
  634.                       directory - is the directory you want to change to.
  635.                       You can use the '?' and '*' wildcards in the
  636.                       directory specification.
  637.  
  638.           Remarks:    If you do not specify a path, CD will display a TREE
  639.                       of the drive specified or the default drive if no
  640.                       drive is specified.
  641.  
  642.                       You do not need to specify a full path to access a
  643.                       subdirectory. If CD cannot find it as it is typed, it
  644.                       will search for it in the whole drive.
  645.  
  646.                       You can specify wildcards such as '?' or '*' to
  647.                       search for a subdirectory, CD will stop at the first
  648.                       one that matches your specification.
  649.  
  650.           Examples:   Suppose you want to change to the directory UTIL,
  651.                       which can be accessed as C:\DOS\TOOLS\UTIL in your
  652.                       drive, you can type the command:
  653.  
  654.                       CD UTIL or CD UT*
  655.  
  656.                       from anywhere in the current drive. Note that if you
  657.                       have two directories with the same name on your disk,
  658.                       you should input the full path with the CD command.
  659.  
  660.                       Note that each time you use the CD command,
  661.                       references to the directories you access are stored
  662.                       in a special buffer, allowing you to use the POPD
  663.                       command to recall any directory you have accessed.
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.                                       6-11
  673.  
  674.  
  675.  
  676.  
  677.      The CDD Command
  678.  
  679.           Purpose:    This command changes both the default drive and
  680.                       directory to another drive and directory. You can
  681.                       change directory without entering any path to the
  682.                       directory, and you can even use wildcards in the
  683.                       directory specification.
  684.  
  685.           Type:       Internal to COMMAND.COM
  686.  
  687.           Syntax:     CDD [d:][path][directory]
  688.  
  689.           Where:      d: - is the optional drive on which the directory you
  690.                       want to change to is located.
  691.  
  692.                       path - is the optional path to the directory to which
  693.                       you want to change.
  694.  
  695.                       directory  - is the directory you want to change to.
  696.                       You can use the '?' and '*' wildcards in the
  697.                       directory specification.
  698.  
  699.           Remarks:    See the CD command.
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.                                       6-12
  734.  
  735.  
  736.  
  737.  
  738.      The CHGDATE Command
  739.  
  740.           Purpose:    This command allows you to change the time stamp and
  741.                       date stamp of a file or range of files.
  742.  
  743.           Type:       Internal to MAX.COM
  744.  
  745.           Syntax:     CHGDATE [d:][path]filespec [/T HH:MM] [/D MM-DD-YY]
  746.  
  747.           Where:      d:path - is the drive and path to the file or range
  748.                       of files you want to change time and/or date stamp
  749.                       on.
  750.  
  751.                       filespec - is the file or range of files to change
  752.                       time and/or date stamp on.
  753.  
  754.                       /T HH:MM - enters a new time stamp in the form HH:MM
  755.                       where HH denotes hours in 24 hour format and MM
  756.                       denotes minutes.
  757.  
  758.                       /D MM-DD-YY - enters a new date stamp in the form MM-
  759.                       DD-YY where MM denotes the month, DD denotes the day,
  760.                       and YY denotes the last two digits of the year.
  761.  
  762.           Remarks:    If you do not specify switches for date and time, the
  763.                       current time and/or date will be used instead.
  764.  
  765.           Examples:   If you change the date and time of all the files with
  766.                       a .COM extension in the DOS directory to a certain
  767.                       date you would type the command:
  768.  
  769.                       CHGDATE C:\DOS\*.COM /T 12:00 /D 01-01-91
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.                                       6-13
  795.  
  796.  
  797.  
  798.  
  799.      The CHKDSK Command
  800.  
  801.           Purpose     This command analyzes directories, files, and cluster
  802.                       allocation on hard disks and diskettes. CHKDSK
  803.                       provides information on disk usage and can optionally
  804.                       check a disk for bad sectors, mark them as bad, and
  805.                       try to save any data allocated to the cluster in
  806.                       which the bad sector is located. CHKDSK can also
  807.                       display repeated files on your disk.
  808.  
  809.           Type:       External Command
  810.  
  811.           Syntax:     CHKDSK [d:] [/F] [/R]
  812.  
  813.           Where:      d: - is the drive to analyze.
  814.  
  815.                       /F - makes CHKDSK attempt to correct any errors
  816.                       encountered in the file allocation table and/or the
  817.                       files on the analyzed drive.
  818.  
  819.                       /R - displays all repeated filenames on the drive you
  820.                       are analyzing.
  821.  
  822.           Remarks:    The CHKDSK command allows you to analyze the
  823.                       integrity of data structures on a drive. It checks to
  824.                       make sure that the amount of disk space allocated to
  825.                       each file matches the size recorded for it in its
  826.                       directory, and that there are no portions of files
  827.                       still allocated on the disk with no directory entries
  828.                       for them. If you do not specify the /F switch when
  829.                       executing CHKDSK, it displays any file and/or
  830.                       directory errors but it will not correct the errors.
  831.  
  832.                       If you do not specify a drive for CHKDSK it
  833.                       automatically checks the default drive. After
  834.                       checking and possibly correcting any file and/or
  835.                       directory errors, it displays a map of the disk usage
  836.                       of the drive.
  837.  
  838.                       You can check the entire drive for bad sector by
  839.                       pressing 'C' when the disk map is displayed. If you
  840.                       do not wish to check for the sectors, press any other
  841.                       key and CHKDSK will display statistics for the drive
  842.                       you are analyzing.
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.                                       6-14
  856.  
  857.  
  858.  
  859.  
  860.      The CLS Command
  861.  
  862.           Purpose:    This command clears the screen and returns the cursor
  863.                       to the upper left hand corner of your screen.
  864.  
  865.           Type:       Internal to COMMAND.COM
  866.  
  867.           Syntax:     CLS
  868.  
  869.           Remarks:    Some application programs might reset your screen
  870.                       color to a different color than the default. To reset
  871.                       the colors, type the CLS command.
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.                                       6-15
  917.  
  918.  
  919.  
  920.  
  921.      The COMMAND Command
  922.  
  923.           Purpose:    This command executes an additional copy of the
  924.                       COMMAND.COM command processor.
  925.  
  926.           Type:       Internal to COMMAND.COM
  927.  
  928.           Syntax:     COMMAND [/P] [/C string] [/E:xxxx]
  929.  
  930.           Where:      /P - keeps the new copy of the command processor in
  931.                       memory.
  932.  
  933.                       /C string - passes a command to the new copy of the
  934.                       command processor and returns to the old command
  935.                       processor.
  936.  
  937.                       /E:xxxx - sets the environment size for the new copy
  938.                       of the command processor in bytes. It must be a value
  939.                       between 160 and 9,999.
  940.  
  941.           Remarks:    You can use COMMAND /C to load a second batch file
  942.                       from a first batch file and then return to the
  943.                       original batch file when the second batch file exits.
  944.  
  945.                       You can also use COMMAND /C to pass parameters to
  946.                       another batch files. With X-DOS, you can CALL other
  947.                       batch files, essentially using them as subroutines.
  948.                       This simplifies the use of calling other batch files
  949.                       and does not necessitate the loading of an additional
  950.                       command processor.
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.                                       6-16
  978.  
  979.  
  980.  
  981.  
  982.      The COMP Command
  983.  
  984.           Purpose     This command compares the contents of two files or
  985.                       two sets of files. It will display any differences in
  986.                       both hexadecimal and ASCII formats.
  987.  
  988.           Type:       Internal to MAX.COM
  989.  
  990.           Syntax:     COMP [d:][path][filespec1] [d:][path][filespec2]
  991.  
  992.           Where:      d:path - is the drive and path to the files to
  993.                       compare. The drive and path can be different for the
  994.                       two files or set of files.
  995.  
  996.                       filespec1  - is the name of the first file to
  997.                       compare. Use the '?' and '*' wildcards to compare two
  998.                       sets of files.
  999.  
  1000.                       filespec2 - is the name of the second file or set of
  1001.                       files to compare. You can also specify wildcards for
  1002.                       filespec2.
  1003.  
  1004.           Remarks:    The COMP command compares the contents of two files
  1005.                       or two sets of files byte by byte. You can compare
  1006.                       files that reside in the same directory, or the two
  1007.                       files or file sets can reside in different
  1008.                       directories and drives.
  1009.  
  1010.                       If you do not specify a filespec for the first set of
  1011.                       files to compare, COMP automatically assumes that you
  1012.                       want to compare all the files in the specified
  1013.                       directory (*.*). If you furthermore leave out a path
  1014.                       for the first set of files, you must, as a minimum,
  1015.                       specify which drive the first file set resides on and
  1016.                       COMP will then assume that the first set of files to
  1017.                       compare are all the files present in the default
  1018.                       directory of your specified drive.
  1019.  
  1020.           Examples:   If you want to compare the file TEST1.EXE with the
  1021.                       file TEST2.EXE in the default directory, you only
  1022.                       need to type:
  1023.  
  1024.                       COMP TEST1.EXE TEST2.EXE
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.                                       6-17
  1039.  
  1040.  
  1041.  
  1042.  
  1043.      The COPY Command
  1044.  
  1045.           Purpose:    This command copies files, creates text files, sends
  1046.                       binary files to a printer, and combines several files
  1047.                       into one. Even though not as powerful and fast as the
  1048.                       XCOPY command, COPY has features which are not
  1049.                       available in XCOPY.
  1050.  
  1051.           Type:       Internal to COMMAND.COM
  1052.  
  1053.           Syntax:     COPY [d:][path][filespec1] [d:][path]filespec2
  1054.                       (Normal Copying)
  1055.  
  1056.                       or
  1057.  
  1058.                       COPY CON [d:][path]filename (Creating a Text File)
  1059.  
  1060.                       or
  1061.  
  1062.                       COPY printfile port [/B] (Printing Files)
  1063.  
  1064.                       or
  1065.  
  1066.                       COPY file1+file2+(...) [dest-file] [/B] (Combining
  1067.                       Files)
  1068.  
  1069.           Where:      d:path - is the drive and path of the filespec to
  1070.                       copy (source) or the filespec to copy to
  1071.                       (destination). The drive and path specification for
  1072.                       source and destination do not have to be the same.
  1073.  
  1074.                       filespec1 - is the file or range of files to copy.
  1075.                       The filespec can include the wildcards '?' and '*'.
  1076.  
  1077.                       filespec2 - is the destination name(s) of the copied
  1078.                       files. The destination filespec can also include
  1079.                       wildcards.
  1080.  
  1081.                       CON - takes the input from the keyboard. Used to
  1082.                       create text files.
  1083.  
  1084.                       filename - is the name of the text file to create
  1085.                       with COPY CON.
  1086.  
  1087.                       printfile - is the name of the file to send to the
  1088.                       printer.
  1089.  
  1090.                       port - is any legal output device such as PRN,
  1091.                       LPT1,LPT2, LPT3, COM1, COM2, COM3, COM4 or AUX.
  1092.  
  1093.                       /B - copies a binary file to the printer by ignoring
  1094.                       any ^Z (end-of-file) characters in the file. The /B
  1095.  
  1096.  
  1097.  
  1098.  
  1099.                                       6-18
  1100.  
  1101.  
  1102.  
  1103.  
  1104.                       switch also allows you to combine several binary
  1105.                       files into one binary file.
  1106.  
  1107.                       file1, file2 - are names of files to combine into one
  1108.                       file.
  1109.  
  1110.                       + - is the combine symbol used by COPY.
  1111.  
  1112.                       (...) - shows that you can combine several files at a
  1113.                       time.
  1114.  
  1115.                       dest-file - is the optional name of the file into
  1116.                       which the contents of the source files is written. If
  1117.                       you do not specify a destination file, the contents
  1118.                       is written to file1, overwriting the previous
  1119.                       contents.
  1120.  
  1121.           Remarks:    If you need to copy a lot of files, you should rather
  1122.                       use the XCOPY command.
  1123.  
  1124.           Examples:   If you want to copy the file MYFILE.TXT to another
  1125.                       filename, MYFILE2, in the default directory you
  1126.                       should type:
  1127.  
  1128.                       COPY MYFILE.TXT MYFILE2.TXT
  1129.  
  1130.                       If you want to copy all files in the default
  1131.                       directory with the extension *.EXE to the root
  1132.                       directory of the B: drive, you should type:
  1133.  
  1134.                       COPY *.EXE B:\
  1135.  
  1136.                       You may find it useful to combine the contents of two
  1137.                       or more files into one file. To combine multiple
  1138.                       files into one file you must separate all source
  1139.                       files with a plus (+) sign. If the files you wish to
  1140.                       combine are binary files, you will have to specify
  1141.                       the /B switch so that COPY does not end the combining
  1142.                       of files after it encounters the first  ^Z (end-of-
  1143.                       file) character.
  1144.  
  1145.                       To copy the contents of the three files FILE1.TXT,
  1146.                       FILE2.TXT, and FILE3.TXT to a file which you wish to
  1147.                       call NEWFILE.DOC, you should type:
  1148.  
  1149.                       COPY FILE1.TXT+FILE2.TXT+FILE3.TXT NEWFILE.DOC
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.                                       6-19
  1161.  
  1162.  
  1163.  
  1164.  
  1165.      The CTTY Command
  1166.  
  1167.           Purpose:    This command changes the way X-DOS handles the
  1168.                       standard input and output and can be used to select
  1169.                       other device drivers to input DOS commands.
  1170.  
  1171.           Type:       Internal to COMMAND.COM
  1172.  
  1173.           Syntax:     CTTY devicename
  1174.  
  1175.           Where:      devicename - is AUX, COM1, COM2, COM3 or COM4 to set
  1176.                       a new console; CON to restore control to the screen
  1177.                       and the keyboard; NULL to disable the keyboard and
  1178.                       screen.
  1179.  
  1180.           Remarks:    CTTY NULL is often used to turn the monitor and
  1181.                       keyboard off while certain processes are executing.
  1182.                       The NULL bucket is used to inhibit messages displayed
  1183.                       from certain commands.
  1184.  
  1185.      The CURSOR Command
  1186.  
  1187.           Purpose:    This command turns the cursor ON or OFF which can be
  1188.                       useful in batch files. Also, some programs may exit
  1189.                       and leave you with the wrong type of cursor or no
  1190.                       cursor at all. The CURSOR command can restore your
  1191.                       cursor back to normal again.
  1192.           Type:       Internal to COMMAND.COM
  1193.  
  1194.           Syntax:     CURSOR [ON | OFF]
  1195.  
  1196.           Where:      ON - Turns ON the cursor.
  1197.                       OFF - turns OFF the cursor.
  1198.  
  1199.           Remarks:    The CURSOR command is handy when used in batch files.
  1200.                       If you run a batch file menu system you may not wish
  1201.                       to display the cursor on the screen. If you insert a
  1202.                       CURSOR OFF command in your batch file, it will turn
  1203.                       off the cursor. Remember to insert the CURSOR ON
  1204.                       command before exiting the user to the command line
  1205.                       or the cursor will remain turned off.
  1206.  
  1207.           Examples:   To turn off the cursor, type :
  1208.  
  1209.                        CURSOR OFF
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.                                       6-20
  1222.  
  1223.  
  1224.  
  1225.  
  1226.      The DATE Command
  1227.  
  1228.           Purpose:    This command displays the current date according to
  1229.                       the system clock and allows you to reset the date.
  1230.  
  1231.           Type:       Internal to COMMAND.COM
  1232.  
  1233.           Syntax:     DATE [MM-DD-YY]
  1234.  
  1235.           Where:      MM - is the number of the month (leading zeros are
  1236.                       optional).
  1237.                       DD - is the day of the month (leading zeros are
  1238.                       optional).
  1239.                       YY - are the last two digits of the year. You can
  1240.                       specify all four digits for the year if you wish.
  1241.  
  1242.           Remarks:    If you execute the DATE command without any
  1243.                       parameters it displays the current date according to
  1244.                       the system clock. If you want to reset the date you
  1245.                       must specify the current month, day, and year as
  1246.                       parameters. When setting the date, you should be
  1247.                       aware that the format of the DATE command is
  1248.                       dependent on the setting of the COUNTRY statement in
  1249.                       the CONFIG.SYS file.
  1250.  
  1251.           Examples:   You can display the current date by typing:
  1252.  
  1253.                       DATE
  1254.  
  1255.                       The date is displayed similar to this:
  1256.  
  1257.  
  1258.  
  1259.                       Current date is Wed 4-11-1990
  1260.  
  1261.                       If a COUNTRY statement is not defined or if it is set
  1262.                       to 001 (US standard) in your CONFIG.SYS file, you can
  1263.                       set the date to the 1st of February 1991 with the
  1264.                       DATE command by typing: DATE 02-01-91
  1265.  
  1266.      The DEBUG Command
  1267.  
  1268.           Purpose:    This command provides you with a flexible environment
  1269.                       which is especially useful for testing, modifying,
  1270.                       viewing, and creating executable programs (.EXE and
  1271.                       .COM files) and binary files and manipulating or
  1272.                       modifying any disk data.
  1273.  
  1274.           Type:       External Command
  1275.  
  1276.           Syntax:     DEBUG [d:][path][filename [parameters]]
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.                                       6-21
  1283.  
  1284.  
  1285.  
  1286.  
  1287.           Where:      d:path - is the drive and path to a file you want to
  1288.                          load into DEBUG.
  1289.  
  1290.                       filename - is the name of the file to load into
  1291.                       DEBUG.
  1292.  
  1293.                       parameters - are any parameters needed by the file
  1294.                       you are loading into DEBUG.
  1295.  
  1296.           Remarks:    Please refer to Chapter 11. in this manual for full
  1297.                       details on using the DEBUG program.
  1298.  
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.                                       6-22
  1344.  
  1345.  
  1346.  
  1347.  
  1348.      The DECODE Command
  1349.  
  1350.           Purpose:    This command decrypts the contents of a file or range
  1351.                       of files that have previously been encrypted with the
  1352.                       ENCODE command. A file can only be decrypted
  1353.                       correctly if you use the same password that was used
  1354.                       to encrypt the file.
  1355.  
  1356.           Type:       Internal to MAX.COM
  1357.  
  1358.           Syntax:     DECODE [d1:][path1]filespec1 [d2:][path2][filespec2]
  1359.  
  1360.           Where:      d1:path1 - is the drive and path to the file(s) you
  1361.                       want to decrypt.
  1362.  
  1363.                       filespec1 - is the name of the file(s) you want to
  1364.                       decrypt. You can use the '?' and '*' wildcards in the
  1365.                       file specification.
  1366.  
  1367.                       d2:path2 - is the drive and path to the destination
  1368.                       of the decrypted file(s).
  1369.  
  1370.                       filespec2 - is the optional name(s) you want to give
  1371.                       the file(s) after they have been decrypted.
  1372.  
  1373.           Remarks     When executing DECODE, you will be prompted for a
  1374.                       password. The password must be equal to or less than
  1375.                       20 characters and will be used in the decryption
  1376.                       algorithm. If you do not specify a name for the
  1377.                       decrypted file, DECODE automatically creates a file
  1378.                       called FILE.PWD with the decrypted information. There
  1379.                       is no limit to the size of the file you want to
  1380.                       encrypt.
  1381.  
  1382.           Example     We assume that you have a database file, TOPSEC,
  1383.                       which has been encrypted with the ENCODE command. You
  1384.                       now want to decrypt the TOPSEC file and you know that
  1385.                       the password used to encrypt the file is SECRET. To
  1386.                       decrypt the file TOPSEC with the password SECRET and
  1387.                       give the decrypted file the name PUBLIC.DBF, type:
  1388.  
  1389.                       DECODE TOPSEC PUBLIC.DBF
  1390.  
  1391.                       When DECODE prompts you for the password, type
  1392.                       SECRET. The contents of the file is decrypted and
  1393.                       copied to a file called PUBLIC.DBF. The original
  1394.                       encrypted file, SECRET, will still be present.
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.                                       6-23
  1405.  
  1406.  
  1407.  
  1408.  
  1409.      The DEL Command
  1410.  
  1411.           Purpose:    This command deletes a file or range of files which
  1412.                       you no longer need. Any files deleted with the DEL
  1413.                       command can easily be recovered with the UNDEL
  1414.                       command. If you want to ensure that the file(s) you
  1415.                       are deleting cannot be recovered, use the WIPEFILE
  1416.                       command to delete them.
  1417.  
  1418.           Type:       Internal to COMMAND.COM
  1419.  
  1420.           Syntax:     DEL [d:][path]filespec
  1421.  
  1422.           Where:      d:path - is the drive and path from which to delete
  1423.                       files.
  1424.  
  1425.                       filespec - is the file or range of files to delete.
  1426.                       You can use the '?' and '*' wildcards in the
  1427.                       filespec.
  1428.  
  1429.           Remarks:    DEL supports the wildcard characters `?' and `*'.
  1430.                       This allows for the deletion of groups of files when
  1431.                       required. Be very careful when you use wildcards to
  1432.                       delete multiple files since it is easy to
  1433.                       accidentally delete important files this way.
  1434.  
  1435.                       The DEL command will not delete files with the Read-
  1436.                       Only, System, and/or Hidden attributes set.
  1437.  
  1438.           Examples:   You can delete all files in the default directory by
  1439.                       typing:
  1440.  
  1441.                       DEL *.*
  1442.  
  1443.                       If you want to delete all files with the extension
  1444.                       .BAK in the root directory of your A: drive and you
  1445.                       are currently on the C: drive, you can type:
  1446.  
  1447.                       DEL A:\*.BAK
  1448.  
  1449.                       If you are in the root directory on the C: drive and
  1450.                       you want to delete all files with the first six
  1451.                       letters 1990DT in the C:\LASTYEAR directory, you
  1452.                       should type:
  1453.  
  1454.                       DEL \LASTYEAR\1990DT*.*
  1455.  
  1456.                       If you want to delete the full contents of a
  1457.                       directory, X-DOS will prompt you for confirmation
  1458.                       before proceeding.
  1459.  
  1460.                       Unlike the WIPEFILE command, DEL does not delete the
  1461.  
  1462.  
  1463.  
  1464.  
  1465.                                       6-24
  1466.  
  1467.  
  1468.  
  1469.  
  1470.                       file entirely. Rather, the sectors used by the erased
  1471.                       files are simply made available for use by
  1472.                       subsequently written files. Until these sectors are
  1473.                       used, the files can be recovered using the X-DOS
  1474.                       UNDEL command. If you want to ensure that deleted
  1475.                       files cannot be recovered, use the WIPEFILE command.
  1476.  
  1477.  
  1478.  
  1479.  
  1480.  
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.                                       6-25
  1527.  
  1528.  
  1529.  
  1530.  
  1531.      The DIR Command
  1532.  
  1533.           Purpose:    This command displays a file or list of files in a
  1534.                       directory. Several available switches and different
  1535.                       colors for different file groups makes the DIR
  1536.                       command both very powerful and at the same time easy
  1537.                       to use. Preferred switch settings can be set as
  1538.                       default in the system environment with the SET
  1539.                       command.
  1540.  
  1541.           Type:       Internal to COMMAND.COM
  1542.  
  1543.           Syntax:     DIR [d:][path][filespec] [/switches]
  1544.  
  1545.           Where:      d:path - is the drive and path you want to display
  1546.                       files from.
  1547.  
  1548.                       filespec - is the range of files you want to display.
  1549.                       You can use the '?' and '*' wildcards in the
  1550.                       filespec.
  1551.  
  1552.           Available Switches:
  1553.                       /A - displays files including their file
  1554.                       attributes.
  1555.                       /B - sorts the files by filesize before displaying
  1556.                       them.
  1557.                       /D - sorts the files according to the date and time
  1558.                       stamp before displaying them.
  1559.                       /F - sorts the files in alphabetic filename order
  1560.                       before displaying them.
  1561.                       /N - displays the files in directory order (no sort
  1562.                       performed).
  1563.                       /S - includes hidden files in the directory output.
  1564.  
  1565.           Remarks:    The DIR command has many switches which allow you to
  1566.                       tailor the output that you need. If you run the DIR
  1567.                       command with no specifications or switches you will
  1568.                       get a two-column display of the default directory's
  1569.                       files, sorted by filename extension. The output for
  1570.                       each file consists of the filename, the extension,
  1571.                       the size, and the time and date the file was last
  1572.                       written to disk.
  1573.  
  1574.                       To enhance the directory list, DIR will display files
  1575.                       in different colors, according to the filename
  1576.                       extension. Since different users may have different
  1577.                       favorite DIR outputs, it is possible to set your
  1578.                       preferred DIR output in the environment with the SET
  1579.                       DIR=/switches command. Alternatively you can set your
  1580.                       favorite DIR switches using the X-DOS INSTALL program
  1581.                       as detailed in chapters 4 and 5.
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.                                       6-26
  1588.  
  1589.  
  1590.  
  1591.  
  1592.                       DIR will stop automatically at the end of each page.
  1593.                       So you do not need a /P switch (unlike the SDIR
  1594.                       command) to stop the display.
  1595.  
  1596.           Examples:   If you want to display all files with a .BAT file
  1597.                       extension in the BATCH directory on your C: drive,
  1598.                       you can type:
  1599.  
  1600.                       DIR C:\BATCH\*.BAT
  1601.  
  1602.                       If you wish the directory display to be the same as
  1603.                       the DOS standard, you can use the SDIR command or
  1604.                       type the EMULATE ON statement. Note that the X-DOS
  1605.                       DIR command also works with the  redirection
  1606.                       character.
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.                                       6-27
  1649.  
  1650.  
  1651.  
  1652.  
  1653.      The DISKCOMP Command
  1654.  
  1655.           Purpose:    This command compares the contents of two diskettes
  1656.                       of equal density and displays detailed information
  1657.                       about any differences.
  1658.  
  1659.           Type:       External Command
  1660.  
  1661.           Syntax:     DISKCOMP d1: [d2:] [/1] [/8]
  1662.           Where:      d1: - is the floppy drive which holds the first
  1663.                       diskette to compare.
  1664.  
  1665.                       d2: - is the floppy drive which holds the second
  1666.                       diskette to compare. If you leave out d2:, DISKCOMP
  1667.                       automatically assumes d1: for both diskettes and you
  1668.                       will have to swap diskettes one or more times.
  1669.  
  1670.                       /1 - forces DISKCOMP to compare only the first side
  1671.                       of each diskette. This way you can compare the
  1672.                       contents of a 180K and 360K diskette.
  1673.  
  1674.                       /8 - forces DISKCOMP to compare only 8 sectors per
  1675.                       track of each diskette. This way you can compare the
  1676.                       contents of a 320K diskette with a 360K diskette. If
  1677.                       you include both the /1 and the /8 switches, you can
  1678.                       also compare the contents of a 160K and 360K
  1679.                       diskette.
  1680.  
  1681.           Remarks:    DISKCOMP will attempt to read the content of the
  1682.                       source diskette in conventional, XMS memorys,
  1683.                       expanded memory or hard disk if there is not enough
  1684.                       memory. Therefore, even for large capacity diskettes,
  1685.                       there is no need to change diskette. Note that
  1686.                       DISKCOMP can only accept diskettes of the same
  1687.                       density.
  1688.  
  1689.           Examples:   To compare the content of two 360K diskettes in the
  1690.                       same physical drive, type the command :
  1691.  
  1692.                       DISKCOMP A: A:
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.                                       6-28
  1710.  
  1711.  
  1712.  
  1713.  
  1714.      The DISKCOPY Command
  1715.  
  1716.           Purpose:    This command makes an image copy of a diskette onto
  1717.                       another diskette of the same density. The destination
  1718.                       diskette does not need to be formatted.
  1719.  
  1720.           Type:       External Command
  1721.  
  1722.           Syntax:     DISKCOMP d1: [d2:] [/1] [/8]
  1723.  
  1724.           Where:      d1: - is the floppy drive which holds the source
  1725.                       diskette to make an image copy from.
  1726.  
  1727.                       d2: - is the floppy drive that contains the
  1728.                       destination diskette which will hold the image copy.
  1729.                       If you leave out d2:, DISKCOPY automatically assumes
  1730.                       d1: for both diskettes and you will have to swap
  1731.                       diskettes one or more times.
  1732.  
  1733.                       /1 - forces DISKCOPY to make an image copy of only
  1734.                       the first side of each diskette. This way you can
  1735.                       make and image copy from a 360K diskette onto a 180K
  1736.                       diskette.
  1737.  
  1738.                       /8 - forces DISKCOPY to make an image copy of a 360K
  1739.                       diskette and only use the first 8 sectors per track.
  1740.                       This provides you with a way to make an image copy of
  1741.                       a 360K diskette onto a 320K diskette. If you include
  1742.                       both the /1 and the /8 switches, you can also make an
  1743.                       image copy of a 360K diskette onto a 160K diskette.
  1744.  
  1745.           Remarks:    DISKCOPY will attempt to read the contents of the
  1746.                       source diskette in conventional, XMS memory, expanded
  1747.                       memory or hard disk if there is not enough memory.
  1748.                       Therefore, even for large capacity diskettes, there
  1749.                       is no need to change diskettes.
  1750.  
  1751.                       If the target diskette is not formatted, DISKCOPY
  1752.                       will prompt you to format it.
  1753.  
  1754.           Examples: To copy the contents of a 1.2 Mb diskette in the A:
  1755.                       drive to a blank 1.2 Mb diskette in the B: drive,
  1756.                       type the following command :
  1757.  
  1758.                       DISKCOPY A: B:
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.                                       6-29
  1771.  
  1772.  
  1773.  
  1774.  
  1775.      The ED Command
  1776.  
  1777.           Purpose:    Full-screen editor with advanced features to create,
  1778.                       display, and edit ASCII files. Use ED to create batch
  1779.                       files and other simple text files.
  1780.  
  1781.           Type:       External Command
  1782.  
  1783.           Syntax:     ED [d:][path][filename] [/W]
  1784.  
  1785.           Where:      d:path - is the drive and path to the file you want
  1786.                       to load into ED.
  1787.  
  1788.                       filename - is the name of the file you want to load
  1789.                       into ED.
  1790.  
  1791.                       /W - enables you to edit files in "Wordstar format".
  1792.  
  1793.           Remarks:    Please refer to Chapter 9. for a detailed explanation
  1794.                       of how to use ED.
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831.                                       6-30
  1832.  
  1833.  
  1834.  
  1835.  
  1836.      The EMULATE Command
  1837.  
  1838.           Purpose:    This command allows you to substitute the STYPE and
  1839.                       SDIR commands (detailed later in this manual) for the
  1840.                       TYPE and DIR commands. The STYPE and SDIR commands
  1841.                       emulate the look of the MS-DOS TYPE and DIR commands.
  1842.                       This may be useful if you require a high degree of
  1843.                       compatibility with other disk operating systems.
  1844.  
  1845.           Type:       Internal to COMMAND.COM
  1846.  
  1847.           Syntax:     EMULATE ON | OFF
  1848.  
  1849.           Where:      ON - makes X-DOS emulate the TYPE and DIR similar to
  1850.                       the one available in MS-DOS.
  1851.  
  1852.                       OFF - turns OFF emulation and comes back to X-DOS DIR
  1853.                       and TYPE commands.
  1854.  
  1855.  
  1856.  
  1857.  
  1858.  
  1859.  
  1860.  
  1861.  
  1862.  
  1863.  
  1864.  
  1865.  
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.                                       6-31
  1893.  
  1894.  
  1895.  
  1896.  
  1897.           Remarks:    The EMULATE command renames the STYPE and SDIR
  1898.                       commands to TYPE and DIR so that you can use these
  1899.                       commands the same way as their counterparts in MS-
  1900.                       DOS. With EMULATE ON when you do a DIR command, the
  1901.                       directory of files will appear on your screen exactly
  1902.                       as in MS-DOS. Some application programs may use these
  1903.                       commands through DOS gateways. Therefore, if you
  1904.                       experience problems running an application program,
  1905.                       you should try to run the EMULATE command before
  1906.                       running the application program, like this:
  1907.  
  1908.                       EMULATE ON
  1909.  
  1910.                       If the application command uses TYPE or DIR during
  1911.                       execution, it will use the STYPE and SDIR commands
  1912.                       instead of the more powerful TYPE and DIR commands,
  1913.                       which cannot  be accessed again before EMULATE is set
  1914.                       to OFF.
  1915.  
  1916.                       To re-install the normal TYPE and DIR commands, you
  1917.                       should type:
  1918.  
  1919.                       EMULATE OFF
  1920.  
  1921.                       Note that for compatibility reasons, in batch files
  1922.                       EMULATE is set as ON.
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.                                       6-32
  1954.  
  1955.  
  1956.  
  1957.  
  1958.      The ENCODE Command
  1959.  
  1960.           Purpose:    This command encrypts the contents of a file,
  1961.                       rendering it unreadable to anyone who does not know
  1962.                       the chosen password. Encrypted files must be
  1963.                       decrypted with the DECODE command, using the same
  1964.                       password.
  1965.  
  1966.           Type:       Internal to MAX.COM
  1967.  
  1968.           Syntax:     ENCODE [d1:][path1]filespec1 [d2:][path2][filespec2]
  1969.  
  1970.           Where:      d1:path1 - is the drive and path to the file(s) you
  1971.                       want to encrypt.
  1972.  
  1973.                       filespec1 - is the name of the file(s) you want to
  1974.                       encrypt. You can use the '?' and '*' wildcards in the
  1975.                       file specification.
  1976.  
  1977.                       d2:path2 - is the drive and path to the destination
  1978.                       of the encrypted file(s).
  1979.  
  1980.                       filespec2 - is the optional name(s) you want to give
  1981.                       the file(s) after they have been encrypted.
  1982.  
  1983.           Remarks:    When executing ENCODE, you will be prompted for a
  1984.                       password. The password must be equal to or less than
  1985.                       20 characters long and will be used in the encryption
  1986.                       algorithm. If you do not specify a name for the
  1987.                       encrypted file, ENCODE automatically creates a file
  1988.                       called FILE.PWD with the encrypted information. There
  1989.                       is no limitation to the size of the file you want to
  1990.                       encrypt.
  1991.  
  1992.           Examples:   To encrypt the file SECRET.TXT you will run the
  1993.                       command
  1994.  
  1995.                       ENCODE SECRET.TXT SECRET.PWD
  1996.  
  1997.                       When ENCODE prompts you for the password, enter your
  1998.                       personal password and type [ENTER]. ENCODE will
  1999.                       generate the file SECRET.PWD. Note that the original
  2000.                       file is still available and you should delete this
  2001.                       file to ensure that no-one can read its contents.
  2002.  
  2003.                       Oh, and one more thing. Don't forget the password!
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.                                       6-33
  2015.  
  2016.  
  2017.  
  2018.  
  2019.      The EXIT Command
  2020.  
  2021.           Purpose:    This command terminates the current command
  2022.                       processor's session. It is mostly used when a local
  2023.                       copy of COMMAND.COM has been invoked from an
  2024.                       application program.
  2025.  
  2026.           Type:       Internal to COMMAND.COM
  2027.  
  2028.           Syntax:     EXIT
  2029.  
  2030.           Remarks:    The EXIT command is most frequently used when a local
  2031.                       copy of COMMAND.COM has been invoked from an
  2032.                       application program, when you issue a GATEWAY to the
  2033.                       DOS for instance.
  2034.  
  2035.                       Typing the EXIT command will return you to the
  2036.                       previous application, and remove the local copy of
  2037.                       the Command Processor from the memory.
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074.  
  2075.                                       6-34
  2076.  
  2077.  
  2078.  
  2079.  
  2080.      The FDISK Command
  2081.  
  2082.           Purpose:    This command can help you low-level format and
  2083.                       partition hard disks.
  2084.  
  2085.                       It can also password protect hard disk partitions and
  2086.                       make them read-only.
  2087.  
  2088.           Type:       External Command
  2089.  
  2090.           Syntax:     FDISK
  2091.  
  2092.           Remarks:    FDISK is a menu-driven utility which allows you to
  2093.                       perform the following tasks:
  2094.  
  2095.                         * Low-level format MFM and RLL hard disks.
  2096.                         * Enter bad track information on your hard disk.
  2097.                         * Manage two hard disks.
  2098.                         * Set up eight partitions on two hard disks with
  2099.                            four partitions on each hard disk.
  2100.                         * Create partitions up to 512 megabytes in size.
  2101.                         * Make partitions Read-Only.
  2102.                         * Password protect partitions.
  2103.                         * Activate a partition.
  2104.                         * Delete any existing partitions.
  2105.                         * Display hard disk related data
  2106.  
  2107.           FDISK is used to initialize and write partition data onto a new
  2108.           hard disk, or a hard disk which you want to prepare again, before
  2109.           the FORMAT command is used. Prior to creating any partitions on a
  2110.           new hard disk you may have to low-level format it. Once the media
  2111.           is low-level formatted, you can create one or more partitions,
  2112.           and finally you can run the FORMAT command to prepare the
  2113.           partition(s) for data. You may not need to low-level format a
  2114.           hard disk more than once in the disk's lifetime unless you
  2115.           experience problems with the disk.
  2116.  
  2117.           FDISK can be used to manipulate existing partitions that you have
  2118.           created with X-DOS. You can change the size of a partition,
  2119.           create a new partition, or delete an old partition. Whenever you
  2120.           create a partition or change the size of an existing partition,
  2121.           you need to reformat the affected partition(s).
  2122.  
  2123.           Make sure that you do not use FDISK to modify a partition that
  2124.           contains valuable data, since the data will be lost. X-DOS allows
  2125.           you to create and access partitions up to 512 megabytes in size.
  2126.           X-DOS also lets you boot from partitions up to 512 megabytes.
  2127.           Please be aware that if you use X-DOS's FDISK to create one or
  2128.           more partitions larger than 32 megabytes, you may not be able to
  2129.           access the partitions larger than 32 megabytes with other disk
  2130.           operating systems.
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.                                       6-35
  2137.  
  2138.  
  2139.  
  2140.  
  2141.           One of the very powerful features of FDISK is its ability to make
  2142.           one or more partitions Read-Only to prevent accidental deletion
  2143.           or modification of data. Another feature is the ability to create
  2144.           high security partitions with password protection. Without the
  2145.           password(s) no-one will be able to access the partition(s) you
  2146.           set up with password protection.
  2147.  
  2148.           FDISK has on line help facility by pressing the F1 key.
  2149.  
  2150.      How to use FDISK
  2151.  
  2152.           When you run FDISK, it displays a screen with one menu and two
  2153.           information windows. Before the main display of FDISK, you may
  2154.           see a message saying that FDISK encountered an Error
  2155.           Reading/Writing to your hard disk. If your hard disk has not been
  2156.           previously formatted, you should disregard this message and press
  2157.           any key to go to the main menu. The upper left window on the
  2158.           screen is the FDISK main menu and all main options are available
  2159.           from this menu. On the right of that screen, FDISK will show the
  2160.           the current hard disk configuration of your system. In case you
  2161.           have two hard disks, FDISK will first show the hardware
  2162.           information of your primary hard disk.
  2163.           The main menu gives you six options to choose from, as detailed
  2164.           below.
  2165.           Hard Disk Operation
  2166.           In this menu, you can perform two tasks:
  2167.           * Switch to another hard disk for installation if you have more
  2168.              than one hard disk installed in your computer.
  2169.           * Enter bad tracks, set the interleave, and low level format a
  2170.              hard disk.
  2171.           The low level format necessitates explanation since its operation
  2172.           is risky and fairly technical. While you may want to change
  2173.           partition sizes and partition information more than once, you
  2174.           normally only need to low level format a hard disk once. If you
  2175.           choose this option, FDISK will ask you if you want to input bad
  2176.           tracks. Normally when you buy a new hard disk, it either has a
  2177.           sticker attached to the drive or comes with a separate pice of
  2178.           paper containing information about the bad tracks of the disk.
  2179.           Allmost all hard disks contain bad tracks when they leave the
  2180.           factory and to ensure that you do not write data to a bad track,
  2181.           you have the possibility to enter the bad tracks menually. Bad
  2182.           tracks are allways identified by a combination of Cylinder and
  2183.           Head. FDISK expects you to enter both values in the bad track
  2184.           window. When you are finished to enter all the bad tracks, type
  2185.           [ESC] to return to the previous menu.
  2186.  
  2187.           FDISK also expects you to enter the interleave factor of the
  2188.           drive. FDISK prompts you with 5 choices of interleave factors.
  2189.           The interleave factor defines how many rotation s of the disk it
  2190.           takes to read a complete disk track. And interleave of 1 to 1
  2191.           means that a complete track is read in one rotation while it
  2192.           takes 3 rotations to read a complete track if the interleave
  2193.  
  2194.  
  2195.  
  2196.  
  2197.                                       6-36
  2198.  
  2199.  
  2200.  
  2201.  
  2202.           factor is set to 3 to 1. You should consult the menual of your
  2203.           hard disk controller to find out which interleave to select. If
  2204.           you cannot find any information about the recommended interleave
  2205.           factor, you may choose factor 4 to 1 for older 8088 or 8086
  2206.           computers, and factor 3 to 1 or 2 to 1 for faster computers.
  2207.  
  2208.           Once you have specified the interleave factor, FDISK will prompt
  2209.           you with a menu to continue the low level format operation or
  2210.           aborting it. If you answer Yes, FDISK will warn you for the last
  2211.           time about the consequences of proceeding with the low level
  2212.           formatting. Read it carefully and if you are still sure that you
  2213.           want to proceed with the low level formatting, then press a key.
  2214.           If not, simply press [ESC] to return to the main menu.
  2215.  
  2216.           Create Partition
  2217.           Use this menu item to add partitions to the currently selected
  2218.           hard disk. You can have up to 4 partitions on each hard disk when
  2219.           installed with FDISK, altough X-DOS recognises up to 16
  2220.           partitions installed with other partition tools like DiskManager
  2221.           or Speedstor. If all the cylinders of the disk have already been
  2222.           allocated, FDISK will display an error message. If you want to
  2223.           change the size of a partition, you must first remove it by using
  2224.           the Remove Partition function. Note here that removing a
  2225.           partition will make it impossible to access again.
  2226.  
  2227.           Active Partition
  2228.           Use this menu to tell X-DOS which partition you should boot from.
  2229.           This gives you the ability to have multiple operating systems on
  2230.           your hard disk. You could for instance have X-DOS on one
  2231.           partition, MS-DOS and UNIX on others. In order to boot with X-
  2232.           DOS, unlike UNIX, you must specify here the boot partition. Also
  2233.           make sure you choose a bootable partition on which you have the
  2234.           X-DOS system or on which you plan to install X-DOS. As an advice,
  2235.           choose the first partition as your boot partition.
  2236.  
  2237.           Remove Partition
  2238.           With this menu, you can remove any partition declaration in your
  2239.           partition record. Please note that the X-DOS FDISK utility let
  2240.           you remove partitions even if they are not DOS partition. You are
  2241.           allowed to remove a UNIX partition if it exists. You must be very
  2242.           carefull when using this option, since removing partition makes
  2243.           it unrecoverable. If the partition you wish to remove has been
  2244.           password protected, you must remove the password first.
  2245.  
  2246.           Partition access
  2247.           This is an interesting security feature of X-DOS and you should
  2248.           read it carefully since it is not available on other DOS. With
  2249.           this menu, you can assign safety precautions to any of your
  2250.           partition wish are either X-DOS or normal DOS partitions. When
  2251.           choosing this menu, a sub menu will appear and present you with 4
  2252.           new options :
  2253.           The Read-Write option is the default option for X-DOS partitions.
  2254.  
  2255.  
  2256.  
  2257.  
  2258.                                       6-37
  2259.  
  2260.  
  2261.  
  2262.  
  2263.           Is simply means that you can both red and write data from and to
  2264.           the hard disk.
  2265.  
  2266.           The Read-Only option prevents data from being written to the
  2267.           disk. It is especially useful if you allow other people to access
  2268.           data which does not change on a regular basis. You will of course
  2269.           have to copy the information first to the partition, with the
  2270.           Read-Write attribute set, before you change it to Read-Only.
  2271.  
  2272.           The Add Password option let you specify a password up to eight
  2273.           characters long for the password you have selected. If you choose
  2274.           to put a password to any of your DOS partitions, you will be
  2275.           prompted for a password at boot time for each of the protected
  2276.           partitions. If you fail 3 times to input a correct password or
  2277.           wait more than 20 seconds without typing anything, the system
  2278.           will boot normally but you will not be able to access the drive
  2279.           for which a password has been set. Attempting to access the drive
  2280.           by changing drive at the DOS prompt will result in an the error
  2281.           message : Drive Invalid. If you decide to protect a disk
  2282.           partition, you should make sure not to forget the password.
  2283.  
  2284.           The Remove Password option enables you to remove a previously
  2285.           assigned password to a partition. For security reasons, you must
  2286.           first retype the correct password before you can remove it.
  2287.  
  2288.           Exit FDISK
  2289.           When you have finished preparing your hard disk or changing any
  2290.           partition information, choose the Exit option. FDISK will warn
  2291.           you in some cases that it needs to reboot the system since some
  2292.           modifications have been made to it.
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.                                       6-38
  2320.  
  2321.  
  2322.  
  2323.  
  2324.      The FIND Command
  2325.  
  2326.           Purpose:    This command searches for a specific text string in a
  2327.                       file or range of files and displays any occurrences
  2328.                       of the text pattern.
  2329.  
  2330.           Type:       Internal to MAX.COM
  2331.  
  2332.           Syntax:     FIND "string" [d:][path]filespec [/C] [/S]
  2333.  
  2334.           Where:      string - can be any combination of ASCII characters
  2335.                       up to 64 characters long.
  2336.  
  2337.                       d:path - is the drive and path of the filespec to
  2338.                       search through.
  2339.  
  2340.                       filespec - is the file or range of files which are
  2341.                       searched by FIND. You can include the '?' and '*'
  2342.                       wildcards in the file specification.
  2343.  
  2344.                       /C - makes FIND perform a non case sensitive search.
  2345.  
  2346.                       /S - makes FIND include sub-directories in the
  2347.                       search.
  2348.  
  2349.           Remarks:    FIND will search for any combination of ASCII
  2350.                       characters as defined in the string in all files that
  2351.                       match the filespec you enter. You must enclose the
  2352.                       ASCII string in quotation marks. The filespec can
  2353.                       contain the wildcards `*' and `?' to extend the
  2354.                       search to multiple files.
  2355.  
  2356.                       FIND will list the filename, the line number within
  2357.                       the file and the line of text which contains the
  2358.                       string for every matching string within the given
  2359.                       filespec. As a default the search is performed in the
  2360.                       default directory with case sensitivity. FIND has two
  2361.                       switches to extend its use, /C and /S.
  2362.  
  2363.                       The /C switch will force FIND to make the search non
  2364.                       case sensitive.
  2365.  
  2366.                       The /S switch will allow FIND to search for a
  2367.                       matching string in all files matching the filespec in
  2368.                       the default directory including all sub-directories
  2369.                       of that directory.
  2370.  
  2371.           Example:    If you want to find all occurrences of the word
  2372.                       "message" in a file named MAN.DOC you should type:
  2373.  
  2374.                       FIND "message" MAN.DOC
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.                                       6-39
  2381.  
  2382.  
  2383.  
  2384.  
  2385.  
  2386.  
  2387.  
  2388.  
  2389.  
  2390.  
  2391.  
  2392.  
  2393.  
  2394.  
  2395.  
  2396.  
  2397.  
  2398.  
  2399.  
  2400.  
  2401.  
  2402.  
  2403.  
  2404.  
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419.  
  2420.  
  2421.  
  2422.  
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428.  
  2429.  
  2430.  
  2431.  
  2432.  
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441.                                       6-40
  2442.  
  2443.  
  2444.  
  2445.  
  2446.      The FORMAT Command
  2447.  
  2448.           Purpose:    This command prepares a hard disk or diskette for use
  2449.                       by X-DOS. You have safe format and quick format modes
  2450.                       available besides the normal, destructive formatting.
  2451.  
  2452.           Type:       External Command
  2453.  
  2454.           Syntax:     FORMAT d: [/switches]
  2455.  
  2456.           Where:      d: - is the drive you want to prepare for use by X-
  2457.                       DOS.
  2458.  
  2459.           Available Switches:
  2460.  
  2461.                         /1 or /180      - will only format side one of a
  2462.                                           diskette.
  2463.                         /3 or /720      - will format a 720K diskette in a
  2464.                                           higher density floppy drive.
  2465.                         /4 or /360      - will format a 360K diskette in a
  2466.                                           higher density floppy drive.
  2467.                         /8 or /320      - will format a 360K diskette 8
  2468.                                           sectors per track, giving it a
  2469.                                           total capacity of 320K.
  2470.                         /1/8 or /160    - will format a 360K diskette to a
  2471.                                           capacity of 160K.
  2472.                         /K              - will perform a safe format of a
  2473.                                           hard disk by saving only the FAT
  2474.                                           table and directory table in a
  2475.                                           temporarily safe place.
  2476.                         /Q              - will perform a quick format which
  2477.                                           only erases the FAT table and
  2478.                                           directory table on the hard disk
  2479.                                           or diskette.
  2480.                         /R              - will attempt to recover all files
  2481.                                           on a hard disk which has
  2482.                                           previously been formatted with
  2483.                                           the /K (safe format) switch
  2484.                                           enabled.
  2485.  
  2486.           Remarks:    FORMAT is used to do the basic preparation of a
  2487.                       diskette or hard disk for use by the operating
  2488.                       system. It is the equivalent of drawing writing
  2489.                       guidelines on a blank sheet of paper, to make it
  2490.                       possible to write evenly across the paper.
  2491.  
  2492.                       Since disk operating systems rely so heavily on the
  2493.                       use of external media such as diskettes and hard
  2494.                       disks, it is required to have a FORMAT program that
  2495.                       addresses all of the configurations of diskettes and
  2496.                       hard disks utilized by computers that might run the
  2497.                       X-DOS operating system. X-DOS currently works with
  2498.  
  2499.  
  2500.  
  2501.  
  2502.                                       6-41
  2503.  
  2504.  
  2505.  
  2506.  
  2507.                       160K, 180K, 320K, 360K, 720K, 1.2M, and 1.44M
  2508.                       diskettes, in both 5 1/4" and 3 1/2" configurations,
  2509.                       and any hard disk partitions up to 512 megabytes.
  2510.  
  2511.                       The X-DOS format command has a safety feature which
  2512.                       will allow you to save the data on the disk if the
  2513.                       appropriate switch is turned on. You can activate the
  2514.                       FORMAT with the /K switch. Or you can set the
  2515.                       FORMAT=/K in the environment. When formatting a hard
  2516.                       disk, this will save the FAT table and the root
  2517.                       directory for later recovery if needed.
  2518.  
  2519.           Examples:
  2520.                       If you want to format a 360K diskette in a 1.2Mb
  2521.                       diskette drive, type the command :
  2522.  
  2523.                       FORMAT A: /4
  2524.  
  2525.  
  2526.  
  2527.  
  2528.  
  2529.  
  2530.  
  2531.  
  2532.  
  2533.  
  2534.  
  2535.  
  2536.  
  2537.  
  2538.  
  2539.  
  2540.  
  2541.  
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.  
  2561.  
  2562.  
  2563.                                       6-42
  2564.  
  2565.  
  2566.  
  2567.  
  2568.      The FORMFEED Command
  2569.  
  2570.           Purpose:    This command sends a formfeed command to a printer
  2571.                       connected to the PRN printer port.
  2572.  
  2573.           Type:       Internal to COMMAND.COM
  2574.  
  2575.           Syntax:     FORMFEED
  2576.  
  2577.           Remarks:    This command is very useful when used with some laser
  2578.                       printers, as they leave one page in the machine, if
  2579.                       the last page of a printout did not fill up with
  2580.                       text.
  2581.  
  2582.                       When you print on continuous paper on a dot matrix
  2583.                       printer and the last page of your printout does not
  2584.                       fill up with text, you can use FORMFEED to advance
  2585.                       the paper to the top of the next page.
  2586.  
  2587.           Examples:   If you want to eject the last page in your laser
  2588.                       printer, type the command :
  2589.  
  2590.                       FORMFEED
  2591.  
  2592.  
  2593.  
  2594.  
  2595.  
  2596.  
  2597.  
  2598.  
  2599.  
  2600.  
  2601.  
  2602.  
  2603.  
  2604.  
  2605.  
  2606.  
  2607.  
  2608.  
  2609.  
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619.  
  2620.  
  2621.  
  2622.  
  2623.  
  2624.                                       6-43
  2625.  
  2626.  
  2627.  
  2628.  
  2629.      The INSTALL Command
  2630.  
  2631.           Purpose:    This command copies X-DOS onto a hard disk or set of
  2632.                       diskettes and helps you to set up a range of
  2633.                       configuration parameters. If you are setting up X-DOS
  2634.                       on top of another operating system, INSTALL ensures
  2635.                       that the destination drive will boot with X-DOS
  2636.                       without you having to reformat the drive.
  2637.  
  2638.           Type:       External to COMMAND.COM
  2639.  
  2640.           Syntax:     INSTALL [d:]
  2641.  
  2642.           Where:      d: - is the optional drive on which you want to
  2643.                       install X-DOS.
  2644.  
  2645.                       Please refer to Chapter 4., Installing X-DOS, for
  2646.                       more details.
  2647.  
  2648.  
  2649.  
  2650.  
  2651.  
  2652.  
  2653.  
  2654.  
  2655.  
  2656.  
  2657.  
  2658.  
  2659.  
  2660.  
  2661.  
  2662.  
  2663.  
  2664.  
  2665.  
  2666.  
  2667.  
  2668.  
  2669.  
  2670.  
  2671.  
  2672.  
  2673.  
  2674.  
  2675.  
  2676.  
  2677.  
  2678.  
  2679.  
  2680.  
  2681.  
  2682.  
  2683.  
  2684.  
  2685.                                       6-44
  2686.  
  2687.  
  2688.  
  2689.  
  2690.      The JOIN Command
  2691.  
  2692.           Purpose:    This command assigns a drive to a specific path on
  2693.                       another drive.
  2694.  
  2695.           Type:       Internal Command
  2696.           Syntax:     JOIN d1: d2:\directory
  2697.  
  2698.                       or
  2699.  
  2700.                       JOIN d1: /D
  2701.  
  2702.           Where:      d1: - is the drive letter to be joined to another
  2703.                       drive.
  2704.  
  2705.                       d2: - is the drive letter of the drive on which drive
  2706.                       d1: is joined.
  2707.  
  2708.                       path - is the path to the directory on drive d2:
  2709.                       which drive d1: is joined to.
  2710.  
  2711.                       directory - is the directory on drive d2: which drive
  2712.                       d1: is joined to.
  2713.  
  2714.                       /D - is a switch that disables the joining of drive
  2715.                       d1: and returns it to normal state.
  2716.  
  2717.           Remarks     Once a drive is joined it cannot be accessed unless
  2718.                       the JOIN d:/D is activated or the PC is rebooted.
  2719.  
  2720.                       If no parameters are given on the command line, JOIN
  2721.                       will display the currently joined drive.
  2722.  
  2723.                       You can specify one directory from the root to join a
  2724.                       drive. If the name of the directory already exists,
  2725.                       it becomes unavailable until JOIN is active.
  2726.  
  2727.  
  2728.  
  2729.  
  2730.  
  2731.  
  2732.  
  2733.  
  2734.  
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743.  
  2744.  
  2745.  
  2746.                                       6-45
  2747.  
  2748.  
  2749.  
  2750.  
  2751.  
  2752.      The KEYB Command
  2753.  
  2754.  
  2755.  
  2756.           Purpose:    This command lets you install one of the 16 foreign
  2757.                       keyboard layouts.
  2758.  
  2759.           Type:       External Command
  2760.  
  2761.           Syntax:     KEYB xx
  2762.  
  2763.           Where:      xx =
  2764.                       BL     to install the Belgian keyboard layout.
  2765.                       CA     to install the Canadian/French keyboard
  2766.                              layout.
  2767.                       DK     to install the Danish keyboard layout.
  2768.                       DU     to install the Dutch keyboard layout.
  2769.                       FR     to install the French keyboard layout.
  2770.                       GR     to install the German keyboard layout.
  2771.                       IT     to install the Italian keyboard layout.
  2772.                       LA     to install the Latin American keyboard layout.
  2773.                       NW     to install the Norwegian keyboard layout.
  2774.                       PO     to install the Portuguese keyboard layout.
  2775.                       SP     to install the Spanish keyboard layout.
  2776.                       SW     to install the Swedish keyboard layout.
  2777.                       CH     to install the Swiss keyboard layout.
  2778.                       UK     to install the United Kingdom keyboard layout.
  2779.  
  2780.           Remarks:    KEYB re-assigns the layout of the keyboard for
  2781.                       various foreign keyboards.
  2782.                       KEYB should be included in your AUTOEXEC.BAT file if
  2783.                       you wish to use a keyboard layout other than the
  2784.                       United States default.
  2785.  
  2786.                       When KEYB has been activated from the command line,
  2787.                       you can always switch between the United States
  2788.                       keyboard layout with the [Ctrl][Alt][F1] hot key and
  2789.                       your chosen foreign keyboard layout with the
  2790.                       [Ctrl][Alt][F2] hot key.
  2791.  
  2792.                       As an added feature, you have instant access to a
  2793.                       symbols keyboard by pressing the [Ctrl][Alt][F3] hot
  2794.                       key. You can then use the keys on the keyboard to
  2795.                       type mathematical symbols and the numeric keypad for
  2796.                       line and box drawing. In the symbols mode you can
  2797.                       switch between two sets of symbolic characters
  2798.                       including single line and double line drawing
  2799.                       characters by holding the [Shift] key down.
  2800.  
  2801.                       [Ctrl][Alt][K] will call up a layout display of the
  2802.                       currently selected keyboard layout. Pressing the
  2803.  
  2804.  
  2805.  
  2806.  
  2807.                                       6-46
  2808.  
  2809.  
  2810.  
  2811.  
  2812.                       [Shift] key will show the Upper-case key definitions,
  2813.                       pressing the [Alt] key will show the available keys
  2814.                       when pressing the [Alt] key at the command line and
  2815.                       pressing the [Shift] keys will show the available
  2816.                       keys when pressing the [Alt][Shift] keys at the
  2817.                       command line. Not all keyboard layouts support
  2818.                       definitions with the [Alt] key and the [Alt][Shift]
  2819.                       keys.
  2820.  
  2821.           Examples:   If you want to install the French keyboard driver on
  2822.                       your computer, you should type:
  2823.  
  2824.                                     KEYB FR
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833.  
  2834.  
  2835.  
  2836.  
  2837.  
  2838.  
  2839.  
  2840.  
  2841.  
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847.  
  2848.  
  2849.  
  2850.  
  2851.  
  2852.  
  2853.  
  2854.  
  2855.  
  2856.  
  2857.  
  2858.  
  2859.  
  2860.  
  2861.  
  2862.  
  2863.  
  2864.  
  2865.  
  2866.  
  2867.  
  2868.                                       6-47
  2869.  
  2870.  
  2871.  
  2872.  
  2873.      The LABEL Command
  2874.  
  2875.           Purpose:    This command lets you assign a volume label to a
  2876.                       diskette or a partition on a hard disk to identify
  2877.                       the disk(ette).
  2878.  
  2879.           Type:       Internal to MAX.COM
  2880.  
  2881.           Syntax:     LABEL [d:][labelname]
  2882.  
  2883.           Where:      d: - is the drive you want to give a volume label.
  2884.                       labelname - is the volume label that will be assigned
  2885.                       to the drive.
  2886.           Remarks:    LABEL will overwrite any existing volume label that
  2887.                       has previously been assigned to the disk(ette).If no
  2888.                       drive is specified when running LABEL, the default
  2889.                       drive will automatically be assumed.
  2890.  
  2891.                       If labelname is not specified when running LABEL, you
  2892.                       will be prompted for a volume label.
  2893.  
  2894.                       A volume label can be no longer than 11 characters
  2895.                       long and can include spaces.
  2896.  
  2897.           Examples:   If you want to put the volume label "X-DOS 5-0" on
  2898.                       the default drive, type the command:
  2899.  
  2900.                                 LABEL X-DOS 5-0
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913.  
  2914.  
  2915.  
  2916.  
  2917.  
  2918.  
  2919.  
  2920.  
  2921.  
  2922.  
  2923.  
  2924.  
  2925.  
  2926.  
  2927.  
  2928.  
  2929.                                       6-48
  2930.  
  2931.  
  2932.  
  2933.  
  2934.      The LOADFIX Command
  2935.  
  2936.           Purpose:    This command ensures that a program is loaded above
  2937.                       the first 64K of conventional memory. It may be
  2938.                       necessary to use this command if the error message
  2939.                       "Packed file corrupted" appears if you are running X-
  2940.                       DOS in HMA.
  2941.  
  2942.           Type:       Internal to COMMAND.COM
  2943.  
  2944.           Syntax:     LOADFIX [d:][path]filename[program parameters]
  2945.  
  2946.           Where:      [d:][path]] - is the drive and path where the program
  2947.                       is located.
  2948.  
  2949.                       filename - is the name of the program it is wished to
  2950.                       run
  2951.  
  2952.                       [program paramters] - are any switches or parameters
  2953.                       used when running the program
  2954.  
  2955.           Example:    To ensure that a program named APPLICAT.EXE in the
  2956.                       MISC directory on the C: drive is loaded above 64K
  2957.                       you would type:
  2958.  
  2959.                           LOADFIX C:\MISC\APPLICAT.EXE
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.  
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.  
  2980.  
  2981.  
  2982.  
  2983.  
  2984.  
  2985.  
  2986.  
  2987.  
  2988.  
  2989.  
  2990.                                       6-49
  2991.  
  2992.  
  2993.  
  2994.  
  2995.      The LOCK Command
  2996.  
  2997.           Purpose:    This command prevents access to a partition on a hard
  2998.                       disk. This partition must have been programmed by the
  2999.                       FDISK utility to be password protected. You can
  3000.                       access a locked partition again with the UNLOCK
  3001.                       command.
  3002.  
  3003.           Type:       Internal to MAX.COM
  3004.  
  3005.           Syntax:     LOCK d:
  3006.  
  3007.           Where:      d: - is the drive letter for the hard disk partition
  3008.                       you wish to lock so that a password is required to
  3009.                       access it again.
  3010.  
  3011.           Remarks:    You cannot lock a partition on the default drive.
  3012.  
  3013.  
  3014.  
  3015.  
  3016.  
  3017.  
  3018.  
  3019.  
  3020.  
  3021.  
  3022.  
  3023.  
  3024.  
  3025.  
  3026.  
  3027.  
  3028.  
  3029.  
  3030.  
  3031.  
  3032.  
  3033.  
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.  
  3041.  
  3042.  
  3043.  
  3044.  
  3045.  
  3046.  
  3047.  
  3048.  
  3049.  
  3050.  
  3051.                                       6-50
  3052.  
  3053.  
  3054.  
  3055.  
  3056.      The MAPMEM (MEM) Command
  3057.  
  3058.           Purpose:    This command lets you display detailed information
  3059.                       about memory usage and available memory in your
  3060.                       computer. A list of memory resident programs is also
  3061.                       displayed.
  3062.           Type:       Internal to MAX.COM
  3063.           Syntax:     MAPMEM
  3064.           Remarks:    MAPMEM has many useful purposes but one of the most
  3065.                       valuable is its ability to tell you which programs
  3066.                       are currently resident in memory.
  3067.  
  3068.                       The MAPMEM display is split into two windows. The
  3069.                       upper window gives you information on the
  3070.                       conventional memory, DOS and data memory usage,
  3071.                       expanded memory, and extended memory in your computer
  3072.                       and tells you how much of each kind of memory is
  3073.                       still available for your use. The lower window
  3074.                       displays information on any programs currently
  3075.                       resident in memory as well as the interrupt vectors
  3076.                       hooked to these programs.
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082.  
  3083.  
  3084.  
  3085.  
  3086.  
  3087.  
  3088.  
  3089.  
  3090.  
  3091.  
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110.  
  3111.  
  3112.                                       6-51
  3113.  
  3114.  
  3115.  
  3116.  
  3117.      The MD (MKDIR) Command
  3118.  
  3119.           Purpose:    This command creates new sub-directories on your
  3120.                       diskettes and hard disk(s).
  3121.  
  3122.           Type:       Internal to COMMAND.COM
  3123.  
  3124.           Syntax:     MD [d:][path]directory
  3125.  
  3126.           Where:      d:path - is the drive and path where you want to
  3127.                       create a    new sub-directory.
  3128.  
  3129.                       directory - is the name of the sub-directory you want
  3130.                       to create.
  3131.  
  3132.           Remarks:    The MD command is used to create new sub-directories.
  3133.                       You have to specify a name for the new sub-directory
  3134.                       which is different from any existing file or sub-
  3135.                       directory in the directory where you want to create
  3136.                       the new sub-directory. You cannot create a sub-
  3137.                       directory to a non-existing directory.
  3138.  
  3139.                       For example, MD cannot create the sub-directory
  3140.                       \FINANCE\REPORTS if the \FINANCE directory does not
  3141.                       already exist.
  3142.  
  3143.                       The root directory is automatically created when a
  3144.                       disk(ette) is formatted and must always be present on
  3145.                       a hard disk or diskette. You can create directories
  3146.                       in the root directory and you can create directories
  3147.                       in a directory of the root directory. Directories
  3148.                       below the root directory are called sub-directories.
  3149.  
  3150.           Examples:   If you want to create a sub-directory called NEWDIR
  3151.                       in the root directory on your default drive you
  3152.                       should type:
  3153.  
  3154.                                   MD \NEWDIR
  3155.  
  3156.  
  3157.  
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.  
  3173.                                       6-52
  3174.  
  3175.  
  3176.  
  3177.  
  3178.      The MODE Command
  3179.  
  3180.           Purpose:    This command lets you control peripheral devices such
  3181.                       as parallel printers, serial printers, graphics
  3182.                       adapters, and keyboard speed from either the command
  3183.                       line or from a full-screen display. The full screen
  3184.                       display provides an easy menu driven environment for
  3185.                       executing the MODE functions. In the full screen mode
  3186.                       support for setting the cursor shape is also
  3187.                       provided. MODE also supports laptop displays from the
  3188.                       command line. The current settings of the MODE
  3189.                       command are stored in the file MODE.CFG for later
  3190.                       retrieval and editing.
  3191.  
  3192.           Type:       External Command
  3193.  
  3194.           Syntax:     MODE [parameters]
  3195.  
  3196.           Remarks:    When you type MODE with no parameters, you get a full
  3197.                       screen display command, from which all functions
  3198.                       available at the command line are available in a more
  3199.                       user friendly manner.
  3200.  
  3201.                       There are six different formats of the MODE command
  3202.                       from the command line.
  3203.  
  3204.           Parallel Printer Mode - MODE LPT#[:] [CPL] [LPI]
  3205.  
  3206.           LPT# Parallel printer port number #. # can have a value from 1 to
  3207.           3.
  3208.  
  3209.           CPL Characters Per Line. CPL can be set to either 80 or 132
  3210.           characters per line.
  3211.  
  3212.           LPI Lines Per Inch. LPI can be set to either 6 or 8 lines per
  3213.           inch.
  3214.  
  3215.           Redirect Parallel Printer - MODE LPT#=COM#
  3216.  
  3217.           LPT# The parallel printer port to redirect. # can have a value
  3218.           from 1 to 3.
  3219.  
  3220.           COM# The serial communications port to redirect the parallel
  3221.           printer output to. # can have a value from 1 to 4.
  3222.  
  3223.           Communication Mode - MODE COM#[:]=bps[,parity] [,databit]
  3224.           [.stopbits]
  3225.  
  3226.           COM# Serial communications port number #. # can have a value from
  3227.           1 to 4.
  3228.  
  3229.           =bps Sets the transmission speed. Valid transmission speeds are :
  3230.  
  3231.  
  3232.  
  3233.  
  3234.                                       6-53
  3235.  
  3236.  
  3237.  
  3238.  
  3239.           110, 150, 300, 600, 1200, 2400 (default), 4800 or 9600.
  3240.  
  3241.           ,parity Sets the parity check. Valid entries are : N for No
  3242.           parity (default), E for Even parity or O for Odd parity.
  3243.  
  3244.           ,databits Sets the number of bits per character.Valid entries are
  3245.           7 or 8 (default) bits per character.
  3246.  
  3247.           ,stopbits Set the number of bits ending a character. Valid
  3248.           entries are 1 or 2 (default) Stop bits.
  3249.  
  3250.           Video Mode
  3251.           Video Sets the video mode. Valid video modes from the command
  3252.           line are : 40, 80, BW40, BW80, CO40, CO80, MONO, EGA or VGA.
  3253.  
  3254.           Keyboard speed mode
  3255.           MODE KBx
  3256.  
  3257.           x is F for Fast keyboard response, M for medium, S for Slow.
  3258.  
  3259.           Laptop Mode - MODE LAPTOP
  3260.  
  3261.           LAPTOP translates color attributes into black and white which
  3262.           makes them more easily visible on laptop displays.
  3263.  
  3264.           From the command line, you can only specify one peripheral change
  3265.           at a time. So if you want to change the parameters for both the
  3266.           video display and one of the communication port, you will have to
  3267.           issue the MODE command twice.
  3268.  
  3269.           Examples: To set the parameters for the serial communications
  3270.                       port to COM1, 9600 bps, No parity, 7 databits, ans 1
  3271.                       stopbit; to redirect the output for the parallel
  3272.                       printer LPT1 to the serial port COM1; to set the
  3273.                       video adapter into the 43 line mode (EGA mode); to
  3274.                       set the keyboard response to Fast ┼ from the command
  3275.                       line, you should issue the following four commands :
  3276.  
  3277.                MODE COM1:9600,N,7,1MODE LPT1=COM1MODE EGAMODE KBF
  3278.  
  3279.           If you have configured your PC with the MODE command, you can
  3280.           automatically retrieve all the MODE parameters by typing MODE
  3281.           AUTO at the command line. The MODE settings you configure are
  3282.           saved in a file called MODE.CFG. You should not delete this file,
  3283.           and note that this file cannot be edited directly but only by
  3284.           using the MODE command.
  3285.  
  3286.  
  3287.  
  3288.  
  3289.  
  3290.  
  3291.  
  3292.  
  3293.  
  3294.  
  3295.                                       6-54
  3296.  
  3297.  
  3298.  
  3299.  
  3300.      The MORE Command
  3301.  
  3302.           Purpose:    The MORE command can be used to display one screen of
  3303.                       output at a time. The MORE command reads input from a
  3304.                       pipe or redirected file and displays one screen of
  3305.                       information at a time.
  3306.  
  3307.           Type:       Internal to COMMAND.COM
  3308.  
  3309.           Syntax 1:   MORE[d:][path]filename
  3310.  
  3311.           Syntax 2:   command-name | MORE
  3312.  
  3313.           Where:       - is the redirection character
  3314.                       [d:] - is the drive on which the file is situated
  3315.  
  3316.                       [path] - is the directory in which the file is
  3317.                       situated
  3318.  
  3319.                       filename - is the name of the file it is wished to
  3320.                       display
  3321.  
  3322.                       command-name - is the name of the command to be
  3323.                       issued
  3324.  
  3325.                       | - is the pipe character
  3326.  
  3327.           Remarks:    A filename must be specified as the source if you use
  3328.                       the redirection character (). If you use the pipe (|)
  3329.                       you can use commands such as DIR, TYPE, SORT etc.
  3330.  
  3331.                       Note that you should set the TEMP environment
  3332.                       variable in your AUTOEXEC.BAT file before using a
  3333.                       pipe for redirection.
  3334.  
  3335.           Examples:   If you have a very long file called LONGFILE.TXT
  3336.                       which you wish to view on your monitor one screen at
  3337.                       a time you may use either of the following commands
  3338.                       to redirect the file through the MORE command to
  3339.                       display the file one screen at a time:
  3340.  
  3341.                                MORE  LONGFILE.TXT
  3342.  
  3343.                                        or
  3344.  
  3345.                             TYPE LONGFILE.TXT | MORE
  3346.  
  3347.           The MORE command will display the first screen of text and prompt
  3348.           you with the following message:
  3349.                            Press any key to continue
  3350.  
  3351.           When you have finished viewing the contents of each screen, press
  3352.  
  3353.  
  3354.  
  3355.  
  3356.                                       6-55
  3357.  
  3358.  
  3359.  
  3360.  
  3361.           any key to view the next screen.
  3362.  
  3363.  
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369.  
  3370.  
  3371.  
  3372.  
  3373.  
  3374.  
  3375.  
  3376.  
  3377.  
  3378.  
  3379.  
  3380.  
  3381.  
  3382.  
  3383.  
  3384.  
  3385.  
  3386.  
  3387.  
  3388.  
  3389.  
  3390.  
  3391.  
  3392.  
  3393.  
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.  
  3401.  
  3402.  
  3403.  
  3404.  
  3405.  
  3406.  
  3407.  
  3408.  
  3409.  
  3410.  
  3411.  
  3412.  
  3413.  
  3414.  
  3415.  
  3416.  
  3417.                                       6-56
  3418.  
  3419.  
  3420.  
  3421.  
  3422.      The NEWVER Command
  3423.  
  3424.           Purpose:    This command changes the DOS version that X-DOS
  3425.                       should emulate. As default X-DOS emulates a DOS
  3426.                       version of 3.3. Changing version number is only
  3427.                       necessary if you should need to run a program which
  3428.                       cannot run under DOS 3.3.
  3429.  
  3430.           Type:       Internal to COMMAND.COM
  3431.  
  3432.           Syntax:     NEWVER y.x
  3433.  
  3434.           Where:      y - is the major version number.
  3435.  
  3436.                       x - is the minor version number.
  3437.  
  3438.           Remarks:    The current version number of X-DOS is 5.0 but X-DOS
  3439.                       emulates a version number of 3.3. This means that
  3440.                       programs running under X-DOS will believe that X-DOS
  3441.                       has a version number of 3.3 instead of 5.0. The
  3442.                       reason for this is the fact that certain programs
  3443.                       expect to find a specific version number and will not
  3444.                       run if they do not find the expected operating system
  3445.                       version number.
  3446.  
  3447.           Examples:   If you want to change the internal version number of
  3448.                       X-DOS to 3.2 type :
  3449.  
  3450.                                    NEWVER 3.2
  3451.  
  3452.           This will cause the X-DOS VER command to display:
  3453.  
  3454.          X-DOS Disk Operating System 5.0, emulating version number 3.20
  3455.  
  3456.  
  3457.  
  3458.  
  3459.  
  3460.  
  3461.  
  3462.  
  3463.  
  3464.  
  3465.  
  3466.  
  3467.  
  3468.  
  3469.  
  3470.  
  3471.  
  3472.  
  3473.  
  3474.  
  3475.  
  3476.  
  3477.  
  3478.                                       6-57
  3479.  
  3480.  
  3481.  
  3482.  
  3483.      The PATH Command
  3484.  
  3485.           Purpose:    This command lets you define a list of directories in
  3486.                       which X-DOS will look for executable files if it
  3487.                       cannot find the file you are trying to execute in the
  3488.                       default directory.
  3489.  
  3490.           Type:       Internal to COMMAND.COM
  3491.  
  3492.           Syntax:     PATH [d:][path][directory][;(...)]
  3493.  
  3494.           Where:      d:path - is the drive and path to the directory to
  3495.                       include in the search path.
  3496.  
  3497.                       directory - is the name of the directory to include
  3498.                       in the search path.
  3499.  
  3500.                       ;(...) - shows that you can define multiple search
  3501.                       paths by separating the different search paths with a
  3502.                       semicolon.
  3503.  
  3504.           Remarks:    The PATH command allows you to tell X-DOS to search
  3505.                       through a list of sub-directories when it you are
  3506.                       trying to run an executable file which is not located
  3507.                       in the default directory. The list of directories
  3508.                       that you specify should include both drive and path
  3509.                       so that you can reach the directories from any drive.
  3510.                       When you have defined a search path with the PATH
  3511.                       command and run an executable file or batch file, X-
  3512.                       DOS will first search for it in the default
  3513.                       directory. If it cannot be found there, X-DOS looks
  3514.                       for the executable file or batch file in each
  3515.                       directory listed in the path search.
  3516.  
  3517.                       If you run the PATH command without any parameters,
  3518.                       PATH displays the currently defined search path.To
  3519.                       ensure that you do not need to enter a search path
  3520.                       every time you boot your computer, you should include
  3521.                       the PATH statement in your AUTOEXEC.BAT file. You
  3522.                       should always put the search paths to the directories
  3523.                       of your most used programs and batch files in the
  3524.                       front of the PATH statement since this will reduce
  3525.                       the seek time on your drive(s) for executable files
  3526.                       and batch files. X-DOS looks through the PATH list
  3527.                       from beginning to end until it encounters a matching
  3528.                       filename with an extension of .EXE, .COM, or .BAT.
  3529.  
  3530.                       Also remember to leave at least a path to the \DOS
  3531.                       directory for X-DOS to find utilities.
  3532.  
  3533.           Examples:   If you want X-DOS to search for executable programs
  3534.                       and batch files in the \DOS and \DOS\UTIL sub-
  3535.  
  3536.  
  3537.  
  3538.  
  3539.                                       6-58
  3540.  
  3541.  
  3542.  
  3543.  
  3544.                       directories on your C: drive, you can set up the
  3545.                       proper search path by typing:
  3546.  
  3547.                             PATH C:\DOS;C:\DOS\UTIL
  3548.  
  3549.  
  3550.  
  3551.  
  3552.  
  3553.  
  3554.  
  3555.  
  3556.  
  3557.  
  3558.  
  3559.  
  3560.  
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.  
  3569.  
  3570.  
  3571.  
  3572.  
  3573.  
  3574.  
  3575.  
  3576.  
  3577.  
  3578.  
  3579.  
  3580.  
  3581.  
  3582.  
  3583.  
  3584.  
  3585.  
  3586.  
  3587.  
  3588.  
  3589.  
  3590.  
  3591.  
  3592.  
  3593.  
  3594.  
  3595.  
  3596.  
  3597.  
  3598.  
  3599.  
  3600.                                       6-59
  3601.  
  3602.  
  3603.  
  3604.  
  3605.      The POPD Command
  3606.  
  3607.           Purpose:    This command lets you quickly change to a directory
  3608.                       that you have previously been in. X-DOS continuously
  3609.                       keeps a list of the directories you change to with
  3610.                       the CD and CDD commands and the POPD command can
  3611.                       directly access any of them.
  3612.  
  3613.           Type:       Internal to COMMAND.COM
  3614.  
  3615.           Syntax:     POPD [nn] [*]
  3616.  
  3617.           Where:      nn - is the current number of the previous directory
  3618.                       you want to change to. If you run POPD without any
  3619.                       parameters it will change to the previous directory.
  3620.  
  3621.                       * - makes POPD display a list of the directories you
  3622.                       have previously been in. Each directory has an
  3623.                       assigned number which you can use to change to a
  3624.                       particular directory.
  3625.  
  3626.           Remarks:    X-DOS keeps a list of every directory, including
  3627.                       drive and path, you change to with the CD and CDD
  3628.                       commands. You can use this list of previous
  3629.                       directories to change directly to almost any previous
  3630.                       directory immediately with the POPD command. X-DOS
  3631.                       has allocated 196 bytes of memory to store previous
  3632.                       directories in and this amount of memory is enough to
  3633.                       hold 10 to 15 previous directories.
  3634.  
  3635.                       You can always display a list of the directories you
  3636.                       can change to with POPD by typing:
  3637.  
  3638.                                      POPD *
  3639.  
  3640.           If you execute the above command on your computer, your directory
  3641.           list is going to reflect the directories you was previously in.
  3642.           The first directory in your list, which has the number (01)
  3643.           allocated to it, is the directory you was in just before changing
  3644.           to the default directory. You can change to the previous
  3645.           directory you was in one of two ways. You can type:
  3646.  
  3647.                                      POPD 1
  3648.  
  3649.           Alternatively, you can just type:
  3650.  
  3651.                                       POPD
  3652.  
  3653.  
  3654.  
  3655.  
  3656.  
  3657.  
  3658.  
  3659.  
  3660.  
  3661.                                       6-60
  3662.  
  3663.  
  3664.  
  3665.  
  3666.      The PRINT Command
  3667.  
  3668.           Purpose:    This command prints ASCII text files to any standard
  3669.                       output device.The PRINT command is memory resident
  3670.                       and prints in the background while you can continue
  3671.                       working on something else.
  3672.  
  3673.           Type:       External Command
  3674.  
  3675.           Syntax:     PRINT [d:][path][filespec] [output] [switch]
  3676.  
  3677.           Where:      d:path - is the drive and path to the file or range
  3678.                       of files you want to print.
  3679.  
  3680.                       filespec - is the file or range of files to print.
  3681.                       You can use the '?' and '*' wildcards in the file
  3682.                       specification.
  3683.  
  3684.                       output - is the standard output device the file(s)
  3685.                       are sent to. It can be one of the following: PRN,
  3686.                       LPT1, LPT2, LPT3, COM1, COM2, COM3, COM4 or AUX.
  3687.  
  3688.           Switches:   /A - makes PRINT abort the current print job. If
  3689.                       there are other files in the print queue, the next
  3690.                       one will be processed. If you want to abort the
  3691.                       current print job and also clear all files in the
  3692.                       print queue, you have to clear the queue with the /E
  3693.                       switch before aborting the current print job.
  3694.  
  3695.                       /D - displays a list of the files in the print queue.
  3696.  
  3697.                       /E - removes any files from the print queue.
  3698.  
  3699.                       /I - toggles the extended character set ON or OFF.
  3700.                       Default setting is OFF which means that text graphics
  3701.                       characters are translated into printable ASCII
  3702.                       characters while all other the remaining extended
  3703.                       characters are discarded.
  3704.  
  3705.                       /T - puts a header followed by two blank lines on
  3706.                       every printed page. Furthermore, a formfeed is issued
  3707.                       at the end of every print job.
  3708.  
  3709.           Remarks:    PRINT is a memory resident program which facilitates
  3710.                       printing from the X-DOS environment. To print out a
  3711.                       range of files, use wildcard characters when
  3712.                       specifying the filespec for PRINT. A print queue is
  3713.                       automatically set up, containing all the files
  3714.                       currently being printed. As many as 25 files can
  3715.                       reside in the print queue at any time.
  3716.  
  3717.                       PRINT can send the output to any of the standard
  3718.  
  3719.  
  3720.  
  3721.  
  3722.                                       6-61
  3723.  
  3724.  
  3725.  
  3726.  
  3727.                       output devices PRN, LPT1, LPT2, LPT3, COM1, COM2,
  3728.                       COM3, COM4 and AUX by specifying the output device
  3729.                       after the filespec. If no output device is specified,
  3730.                       PRINT uses the default setting of PRN.
  3731.  
  3732.           Examples:   If you want to print all files in the BUSINESS
  3733.                       directory with the first four letters "MAIL" and you
  3734.                       want to put a header on the top of each page and make
  3735.                       each file print on the top of a new page, you should
  3736.                       type:
  3737.  
  3738.                            PRINT \BUSINESS\MAIL*.* /T
  3739.  
  3740.  
  3741.  
  3742.  
  3743.  
  3744.  
  3745.  
  3746.  
  3747.  
  3748.  
  3749.  
  3750.  
  3751.  
  3752.  
  3753.  
  3754.  
  3755.  
  3756.  
  3757.  
  3758.  
  3759.  
  3760.  
  3761.  
  3762.  
  3763.  
  3764.  
  3765.  
  3766.  
  3767.  
  3768.  
  3769.  
  3770.  
  3771.  
  3772.  
  3773.  
  3774.  
  3775.  
  3776.  
  3777.  
  3778.  
  3779.  
  3780.  
  3781.  
  3782.  
  3783.                                       6-62
  3784.  
  3785.  
  3786.  
  3787.  
  3788.      The PROMPT Command
  3789.  
  3790.           Purpose:    This command allows you to customize the X-DOS
  3791.                       prompt.
  3792.  
  3793.           Type:       Internal to COMMAND.COM
  3794.  
  3795.           Syntax:     PROMPT [string]
  3796.  
  3797.           Where:      string - can be any valid prompt string consisting of
  3798.                       normal characters or metacharacters. Metacharacters
  3799.                       are defined below.
  3800.  
  3801.           Metacharacters:
  3802.  
  3803.           $1 - specifies white as the prompt color.
  3804.           $2 - specifies black as the prompt color.
  3805.           $3 - specifies light blue as the prompt color.
  3806.           $4 - specifies cyan as the prompt color.
  3807.           $5 - specifies green as the prompt color.
  3808.           $6 - specifies light magenta as the prompt color.
  3809.           $7 - specifies light red as the prompt color.
  3810.           $8 - specifies light cyan as the prompt color.
  3811.           $9 - specifies light green as the prompt color.
  3812.           $$ - displays a dollar sign ($) as part of the prompt.
  3813.           $_ - makes a Carriage-return/Linefeed as part of the prompt.
  3814.           $B - displays a vertical bar (|) as part of the prompt.
  3815.           $D - displays the current system date as part of the prompt.
  3816.           $E - makes the Escape character (ASCII 27) part of the prompt.
  3817.           $G - displays a greater-than sign (>>) as part of the prompt.
  3818.           $H - makes a destructive backspace as part of the prompt.
  3819.           $L - displays a less-than sign (<<) as part of the prompt.
  3820.           $N - displays the default drive as part of the prompt.
  3821.           $P - displays the default path as part of the prompt.
  3822.           $Q - displays an equal sign (=) as part of the prompt.
  3823.           $T - displays the current system time as part of the prompt.
  3824.           $V - displays the version of X-DOS as part of the prompt.
  3825.  
  3826.           Remarks:    X-DOS allows you to change the command line prompt,
  3827.                       which is always displayed when X-DOS is ready to
  3828.                       accept a command from the command line.
  3829.  
  3830.                       By default, this prompt consists of the current drive
  3831.                       and path followed by a vertical bar and a line feed,
  3832.                       like this:
  3833.  
  3834.                                     C:\DOS|_
  3835.  
  3836.           If you execute the PROMPT command without any parameters, PROMPT
  3837.           creates a prompt which is similar to the default prompt of other
  3838.           disk operating systems for personal computers. This prompt only
  3839.           consists of a drive letter followed by a greater-than (>>) sign.
  3840.  
  3841.  
  3842.  
  3843.  
  3844.                                       6-63
  3845.  
  3846.  
  3847.  
  3848.  
  3849.  
  3850.           The PROMPT command lets you change the default prompt in a
  3851.           variety of ways. Above you have a list of available
  3852.           metacharacters which have a special function with the PROMPT
  3853.           command. A metacharacter must always be preceded by a dollar ($)
  3854.           sign or PROMPT will interpret it as a normal character.You can
  3855.           mix metacharacters and normal characters in any way, creating a
  3856.           wide variety of interesting prompts. PROMPT does not distinguish
  3857.           between upper and lower-case metacharacters.
  3858.  
  3859.           If you have a color monitor, you can use the metacharacters $1 to
  3860.           $9 to customize the colors of your prompt. You can include
  3861.           several colors in the prompt. The default X-DOS prompt is
  3862.           $7$P$B$_$8, and you can change this according to your taste.
  3863.  
  3864.           Examples:   If you want a more traditional PROMPT style, type the
  3865.                       command
  3866.  
  3867.                                   PROMPT $P$G
  3868.  
  3869.  
  3870.  
  3871.  
  3872.  
  3873.  
  3874.  
  3875.  
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  
  3881.  
  3882.  
  3883.  
  3884.  
  3885.  
  3886.  
  3887.  
  3888.  
  3889.  
  3890.  
  3891.  
  3892.  
  3893.  
  3894.  
  3895.  
  3896.  
  3897.  
  3898.  
  3899.  
  3900.  
  3901.  
  3902.  
  3903.  
  3904.  
  3905.                                       6-64
  3906.  
  3907.  
  3908.  
  3909.  
  3910.      The RD (RMDIR) Command
  3911.  
  3912.           Purpose:    This command allows you to remove directories from a
  3913.                       hard disk or diskette. You must ensure that a
  3914.                       directory you want to remove is empty before you can
  3915.                       remove it. You cannot remove the root directory.
  3916.           Type:
  3917.                       Internal to COMMAND.COM
  3918.  
  3919.           Syntax:     RD [d:][path]directory
  3920.  
  3921.           Where:      d:path - is the drive and path to the directory you
  3922.                       want to remove.
  3923.  
  3924.                       directory - is the name of the directory you want to
  3925.                       remove.
  3926.  
  3927.           Remarks:    The directory you want to remove must be empty before
  3928.                       it can be removed. The "." and ".." entries which you
  3929.                       will normally see in any directory with the DIR and
  3930.                       SDIR commands are not file or directory entries. You
  3931.                       cannot delete them and they do not prevent the RD
  3932.                       command from deleting a directory.
  3933.  
  3934.                       You cannot remove directories that have hidden files
  3935.                       or directories in them, so if you have trouble
  3936.                       removing a directory, you should execute the DIR
  3937.                       command with the /S switch in the directory you want
  3938.                       to remove to see if any hidden files or directories
  3939.                       exist. If you specify a path to the sub-directory you
  3940.                       want to remove, the sub-directory at the end of the
  3941.                       specified path will be the sub-directory that will be
  3942.                       removed.
  3943.  
  3944.           Examples:   If you are currently in the root directory of the C:
  3945.                       drive and you want to remove the C:\OLDDIR directory,
  3946.                       you should type:
  3947.  
  3948.                                    RD OLDDIR
  3949.  
  3950.  
  3951.  
  3952.      The REN (RENAME) Command
  3953.  
  3954.           Purpose:    This command lets you to change the name of a file or
  3955.                       range of files.
  3956.  
  3957.           Type:       Internal to COMMAND.COM
  3958.  
  3959.           Syntax:     REN [d:][path]filespec1 filespec2
  3960.  
  3961.           Where:      d:path - is the drive and path that holds the file(s)
  3962.  
  3963.  
  3964.  
  3965.  
  3966.                                       6-65
  3967.  
  3968.  
  3969.  
  3970.  
  3971.                       to be renamed.
  3972.  
  3973.                       filespec1 - is the file or range of files you want to
  3974.                       rename. You can use the '?' and '*' wildcards in the
  3975.                       file specification.
  3976.  
  3977.                       filespec2 - is the destination filespec of the
  3978.                       file(s) you are renaming.
  3979.  
  3980.           Remarks:    You cannot rename a file to a filename which already
  3981.                       exists as a file or directory in the directory where
  3982.                       you are renaming a file or group of files.
  3983.  
  3984.           Examples: If you have a range of files in the default directory
  3985.                       with the extension .TXT which you want to give the
  3986.                       extension .DOC, you should type:
  3987.  
  3988.                                 REN *.TXT *.DOC
  3989.  
  3990.  
  3991.  
  3992.  
  3993.  
  3994.  
  3995.  
  3996.  
  3997.  
  3998.  
  3999.  
  4000.  
  4001.  
  4002.  
  4003.  
  4004.  
  4005.  
  4006.  
  4007.  
  4008.  
  4009.  
  4010.  
  4011.  
  4012.  
  4013.  
  4014.  
  4015.  
  4016.  
  4017.  
  4018.  
  4019.  
  4020.  
  4021.  
  4022.  
  4023.  
  4024.  
  4025.  
  4026.  
  4027.                                       6-66
  4028.  
  4029.  
  4030.  
  4031.  
  4032.      The RENDIR Command
  4033.  
  4034.           Purpose:    This command lets you change the name of a directory.
  4035.  
  4036.           Type:       Internal to COMMAND.COM
  4037.  
  4038.           Syntax:     RENDIR [d:][path]oldname newname
  4039.  
  4040.           Where:      d:path - is the drive and path to the directory you
  4041.                       want to rename.
  4042.  
  4043.                       oldname - is the current name of the directory you
  4044.                       want to rename.
  4045.  
  4046.                       newname - is the name you want to give the directory.
  4047.  
  4048.           Remarks:    The directory you want to rename does not have to be
  4049.                       empty but you cannot rename the directory you are
  4050.                       currently in.You cannot give a directory a new name
  4051.                       which already exists as a filename or sub-directory
  4052.                       in the directory which contains the directory you
  4053.                       want to rename.
  4054.  
  4055.           Examples:   If you want to rename the BUDGET90 directory which is
  4056.                       a sub-directory of the C:\BUSINESS directory and give
  4057.                       it the name BUDGET91, you should type:
  4058.  
  4059.                       RENDIR C:\BUSINESS\BUDGET90 BUDGET91
  4060.  
  4061.  
  4062.  
  4063.  
  4064.  
  4065.  
  4066.  
  4067.  
  4068.  
  4069.  
  4070.  
  4071.  
  4072.  
  4073.  
  4074.  
  4075.  
  4076.  
  4077.  
  4078.  
  4079.  
  4080.  
  4081.  
  4082.  
  4083.  
  4084.  
  4085.  
  4086.  
  4087.  
  4088.                                       6-67
  4089.  
  4090.  
  4091.  
  4092.  
  4093.      The RESTORE Command
  4094.  
  4095.           Purpose:    Restores files which was previously backed up onto
  4096.                       diskettes from a hard disk with the BACKUP (XBACK)
  4097.                       command. RESTORE is an alias that runs the XBACK
  4098.                       command in automatic restoring mode.
  4099.  
  4100.           Remarks:    See Chapter 10. for full details on the BACKUP
  4101.                       (XBACK) command.
  4102.  
  4103.  
  4104.  
  4105.  
  4106.  
  4107.  
  4108.  
  4109.  
  4110.  
  4111.  
  4112.  
  4113.  
  4114.  
  4115.  
  4116.  
  4117.  
  4118.  
  4119.  
  4120.  
  4121.  
  4122.  
  4123.  
  4124.  
  4125.  
  4126.  
  4127.  
  4128.  
  4129.  
  4130.  
  4131.  
  4132.  
  4133.  
  4134.  
  4135.  
  4136.  
  4137.  
  4138.  
  4139.  
  4140.  
  4141.  
  4142.  
  4143.  
  4144.  
  4145.  
  4146.  
  4147.  
  4148.  
  4149.                                       6-68
  4150.  
  4151.  
  4152.  
  4153.  
  4154.      The RSETCAPS Command
  4155.  
  4156.           Purpose:    This command toggles the CapsLock light on your
  4157.                       keyboard and gets it back in synchronization with the
  4158.                       keyboard, should they for some reason get out of
  4159.                       synchronization.
  4160.  
  4161.           Type:       Internal to COMMAND.COM
  4162.  
  4163.           Syntax:     RSETCAPS
  4164.  
  4165.  
  4166.  
  4167.  
  4168.  
  4169.  
  4170.  
  4171.  
  4172.  
  4173.  
  4174.  
  4175.  
  4176.  
  4177.  
  4178.  
  4179.  
  4180.  
  4181.  
  4182.  
  4183.  
  4184.  
  4185.  
  4186.  
  4187.  
  4188.  
  4189.  
  4190.  
  4191.  
  4192.  
  4193.  
  4194.  
  4195.  
  4196.  
  4197.  
  4198.  
  4199.  
  4200.  
  4201.  
  4202.  
  4203.  
  4204.  
  4205.  
  4206.  
  4207.  
  4208.  
  4209.  
  4210.                                       6-69
  4211.  
  4212.  
  4213.  
  4214.  
  4215.      The RSETNUM Command
  4216.  
  4217.           Purpose:    This command toggles the NumLock light on your
  4218.                       keyboard and gets it back in synchronization with the
  4219.                       keyboard, should they for some reason get out of
  4220.                       synchronization.
  4221.  
  4222.           Type:       Internal to COMMAND.COM
  4223.  
  4224.           Syntax:     RSETNUM
  4225.  
  4226.  
  4227.  
  4228.  
  4229.  
  4230.  
  4231.  
  4232.  
  4233.  
  4234.  
  4235.  
  4236.  
  4237.  
  4238.  
  4239.  
  4240.  
  4241.  
  4242.  
  4243.  
  4244.  
  4245.  
  4246.  
  4247.  
  4248.  
  4249.  
  4250.  
  4251.  
  4252.  
  4253.  
  4254.  
  4255.  
  4256.  
  4257.  
  4258.  
  4259.  
  4260.  
  4261.  
  4262.  
  4263.  
  4264.  
  4265.  
  4266.  
  4267.  
  4268.  
  4269.  
  4270.  
  4271.                                       6-70
  4272.  
  4273.  
  4274.  
  4275.  
  4276.      The SDIR Command
  4277.  
  4278.           Purpose:    This command displays the contents of a directory.
  4279.                       The SDIR command is compatible with the DIR command
  4280.                       from other disk operating systems and has only been
  4281.                       implemented for compatibility reasons.
  4282.  
  4283.           Type:       Internal to COMMAND.COM
  4284.  
  4285.           Syntax:     SDIR [d:][path][filespec] [/P] [/W]
  4286.  
  4287.           Where:      d:path - is the drive and path to the file or range
  4288.                       of files you want to display.
  4289.  
  4290.                       filespec - is the file or range of files you want to
  4291.                       display. You can use the '?' and '*' wildcards in the
  4292.                       file specification.
  4293.  
  4294.                       /P - pauses the file display after each screen and
  4295.                       requires you to press a key to continue scrolling.
  4296.  
  4297.                       /W - displays the file list in a 4-column display
  4298.                       with only the filename shown.
  4299.  
  4300.           Remarks:    SDIR is the TTY counterpart to the much more powerful
  4301.                       X-DOS command DIR. SDIR is always resident in memory
  4302.                       just like the DIR command but SDIR does not perform
  4303.                       any kind of sorting of the files and directories and
  4304.                       it does not use colors.
  4305.  
  4306.                       To pause the output to the screen, you can press the
  4307.                       [Ctrl]-S keys or the [Pause] key if your keyboard has
  4308.                       one. Continue the scrolling by pressing any key.
  4309.                       Alternatively you can specify the /P switch to
  4310.                       automatically stop the scrolling after each screen of
  4311.                       filenames.
  4312.  
  4313.                       Since the features of SDIR are limited we suggest you
  4314.                       only use it in cases where you need absolute
  4315.                       compatibility with the DIR command from MS-DOS. The
  4316.                       SDIR command can be renamed as DIR either by an alias
  4317.                       or by having the emulate flag set to ON by typing
  4318.                       EMULATE ON at the command line.
  4319.  
  4320.           Examples:   If you want to display the contents of the default
  4321.                       directory, you should type:
  4322.  
  4323.                                      SDIR
  4324.  
  4325.  
  4326.  
  4327.  
  4328.  
  4329.  
  4330.  
  4331.  
  4332.                                       6-71
  4333.  
  4334.  
  4335.  
  4336.  
  4337.      The SET Command
  4338.  
  4339.           Purpose:    Displays or writes information to the X-DOS
  4340.                       environment. Any information in the environment is
  4341.                       made available to all programs. Some of the X-DOS
  4342.                       commands takes advantage of the environment by
  4343.                       reading the user's preferred switch settings.
  4344.  
  4345.           Type:       Internal to COMMAND.COM
  4346.  
  4347.           Syntax:     SET [name=[parameter]]
  4348.  
  4349.           Where:      name= - is the name of a variable you want to set up
  4350.                       or clear from the environment.
  4351.  
  4352.                       parameter - is a list of any parameters assigned to
  4353.                       the name= variable.
  4354.  
  4355.           Remarks:    If you execute the SET command without any
  4356.                       parameters, SET displays the current environment
  4357.                       settings. You will see a range of variables of the
  4358.                       form:
  4359.                                  Variable=value
  4360.  
  4361.                       and SET will also display the number of bytes used by
  4362.                       the environment and the amount of free environment
  4363.                       space.
  4364.  
  4365.                       Many software application packages use environment
  4366.                       instead of a disk file to hold configuration
  4367.                       information. Batch files may also use the environment
  4368.                       area to store temporary information.
  4369.  
  4370.                       SET also displays the number of bytes of your
  4371.                       environment and how much is left. Any aliases used
  4372.                       are also stored in the environment but can only be
  4373.                       displayed by typing the ALIAS command.
  4374.  
  4375.           Examples: If you want to insert a variable, "TEMP=Testing", in
  4376.                       the environment you can do so by typing:
  4377.  
  4378.                                 SET TEMP=Testing
  4379.  
  4380.                       If you later want to release the space used by this
  4381.                       declaration, type:
  4382.  
  4383.                                    SET TEMP=
  4384.  
  4385.                       and the variable TEMP will be removed from the
  4386.                       environment.
  4387.  
  4388.  
  4389.  
  4390.  
  4391.  
  4392.  
  4393.                                       6-72
  4394.  
  4395.  
  4396.  
  4397.  
  4398.      The SETUP Command
  4399.  
  4400.           Purpose:    This command can be used to set the CMOS
  4401.                       configuration on 80286, 80386, and 80486 based
  4402.                       computers. If your computer has its own setup
  4403.                       program, you should use it instead of the X-DOS SETUP
  4404.                       command.
  4405.  
  4406.           Type:       External Command
  4407.  
  4408.           Syntax:     SETUP
  4409.  
  4410.           Remarks:    SETUP is totally menu driven and is therefore very
  4411.                       easy to use. You should only use SETUP when
  4412.                       reconfiguring your hardware or when you want to
  4413.                       correct the internal clock (the internal clock keeps
  4414.                       track of the current time and date). Your computer
  4415.                       will always tell you if the contents of your
  4416.                       computer's CMOS RAM is different from the actual
  4417.                       computer configuration (except for time and date).
  4418.                       During start-up you might be prompted with the
  4419.                       following type of error message:
  4420.  
  4421.                 CMOS configuration error. Press "F1" to RESUME.
  4422.  
  4423.  
  4424.  
  4425.                       When you encounter an error message like this, press
  4426.                       the "F1" key to boot your computer. Since SETUP is an
  4427.                       external command you must make sure that X-DOS can
  4428.                       find it.
  4429.  
  4430.                       A SETUP program has been included in X-DOS in case X-
  4431.                       DOS is stored in ROM, in which case the BIOS SETUP
  4432.                       program is normally removed because of limitations on
  4433.                       memory space.
  4434.  
  4435.  
  4436.  
  4437.  
  4438.  
  4439.  
  4440.  
  4441.  
  4442.  
  4443.  
  4444.  
  4445.  
  4446.  
  4447.  
  4448.  
  4449.  
  4450.  
  4451.  
  4452.  
  4453.  
  4454.                                       6-73
  4455.  
  4456.  
  4457.  
  4458.  
  4459.      The SHARE Command
  4460.  
  4461.           Purpose:    Installs file sharing and locking in a network
  4462.                       environment.
  4463.  
  4464.           Type:       Internal to COMMAND.COM
  4465.  
  4466.           Syntax:     [d:][path] SHARE [/F:space][/L:locks]
  4467.  
  4468.           Where:      d:path - specifies the drive and path containing the
  4469.                       SHARE command file if it is not in the current
  4470.                       directory of the default drive.
  4471.  
  4472.                       /F : - space allocates the file space (in bytes) for
  4473.                       the area X-DOS uses to record file sharing
  4474.                       information. Each file opened requires enough space
  4475.                       for the full filename (including extension) plus 11
  4476.                       bytes. The total space required is the sum of the
  4477.                       space used by all open files. The default value is
  4478.                       2048 bytes.
  4479.  
  4480.                       /L: - locks allocates the number of locks you want to
  4481.                       allow. The default value is 20 locks.
  4482.  
  4483.           Remarks:    The SHARE command is only used when operating in a
  4484.                       network environment and has no application on stand
  4485.                       alone systems. In a network, the SHARE command
  4486.                       governs the sharing of files by several users. In X-
  4487.                       DOS, the sharing mechanism is embedded in the kernel
  4488.                       and the SHARE.EXE file simply allocates the necessary
  4489.                       memory for the SHARE file table and the locks buffer.
  4490.  
  4491.           Example:
  4492.                                         SHARE
  4493.  
  4494.                       Loads file sharing with the default values for the /F
  4495.                       and /L switches.
  4496.  
  4497.  
  4498.  
  4499.  
  4500.  
  4501.  
  4502.  
  4503.  
  4504.  
  4505.  
  4506.  
  4507.  
  4508.  
  4509.  
  4510.  
  4511.  
  4512.  
  4513.  
  4514.  
  4515.                                       6-74
  4516.  
  4517.  
  4518.  
  4519.  
  4520.      The SORT Command
  4521.  
  4522.           Purpose:    The SORT command reads data from a file, sorts the
  4523.                       records, and writes the data to another file.
  4524.  
  4525.           Type:       Internal to MAX.COM
  4526.  
  4527.           Syntax:     SORT : [d:][path]filename1[d:][path]filename2
  4528.                       [/nn][/C][/R]
  4529.  
  4530.           Where:      d:path - is the drive and path to the file you want
  4531.                       to sort the contents of Filename1 does not have to
  4532.                       reside in the same directory as the directory of the
  4533.                       sorted file.
  4534.  
  4535.                       filename1 - is the name of the file you want to sort
  4536.                       the contents of.
  4537.  
  4538.                       filename2 - is the name of the file which will
  4539.                       contain the sorted output of filename1.
  4540.  
  4541.                       /nn - specifies the column at which the sorting is
  4542.                       performed.
  4543.  
  4544.                       /C - is used to turn case-sensitive sort ON.
  4545.  
  4546.                       /R - forces SORT to sort the data of filename1 in
  4547.                       reverse order.
  4548.  
  4549.           Remarks:    The sort order is in ascending ASCII character
  4550.                       sequence. You may supply the /R parameter to reverse
  4551.                       the sort order.
  4552.  
  4553.                       The /C option may be added to cause SORT to treat the
  4554.                       sort field as case sensitive data. That is, lower-
  4555.                       case letters are treated as different from their
  4556.                       upper-case counterparts.
  4557.  
  4558.                       You can sort the contents of a file at any column by
  4559.                       specifying the /nn parameter for the column position.
  4560.                       If /nn is omitted, the column sort begins from the
  4561.                       first column and for a length of 12 characters.
  4562.  
  4563.  
  4564.  
  4565.  
  4566.  
  4567.  
  4568.  
  4569.  
  4570.  
  4571.  
  4572.  
  4573.  
  4574.  
  4575.  
  4576.                                       6-75
  4577.  
  4578.  
  4579.  
  4580.  
  4581.      The STYPE Command
  4582.  
  4583.           Purpose:    This command displays the contents of a text file as
  4584.                       TTY output to the screen. The STYPE command is
  4585.                       compatible with the TYPE command from other disk
  4586.                       operating systems and has only been implemented for
  4587.                       compatibility reasons.
  4588.  
  4589.           Type:       Internal to COMMAND.COM
  4590.  
  4591.           Syntax:     STYPE [d:][path]filename
  4592.  
  4593.           Where:      d:path - is the drive and path to the file you want
  4594.                       to display the contents of.
  4595.  
  4596.                       filename - is the name of the file you want to
  4597.                       display the contents of.
  4598.  
  4599.           Remarks:    The STYPE command is the TTY counterpart to the much
  4600.                       more powerful X-DOS TYPE command. STYPE displays the
  4601.                       contents of any text file on your screen as a
  4602.                       continuous, scrolling display. You can temporarily
  4603.                       pause the screen output by pressing the [Ctrl]-S hot
  4604.                       key or the [Pause] key, if your keyboard has one.
  4605.                       Continue scrolling the contents of the text file by
  4606.                       pressing any key on your keyboard.
  4607.  
  4608.                       If you attempt to display the contents of a program
  4609.                       file or any other binary file you will see several
  4610.                       unusual characters on your screen and you will most
  4611.                       likely hear beep sounds from your computer's speaker.
  4612.                       If you wish to display the contents of such a file
  4613.                       you should use the X-DOS TYPE command.If X-DOS
  4614.                       encounters a TYPE command in a batch file, it
  4615.                       automatically uses the STYPE command instead of the
  4616.                       TYPE command for compatibility with MS-DOS. If you
  4617.                       wish to extend the compatibility to other cases than
  4618.                       batch files you can use the EMULATE command to
  4619.                       temporarily rename the STYPE command to TYPE. Since
  4620.                       the features of STYPE are limited, we suggest you
  4621.                       only use in cases where you need absolute
  4622.                       compatibility with the TYPE command from MS-DOS.
  4623.  
  4624.           Examples:   You have a text file, LETTER.DAT, in the default
  4625.                       directory. To display the contents of this file as
  4626.                       TTY output to the screen you should type:
  4627.  
  4628.                                STYPE LETTER.DAT
  4629.  
  4630.                       If you want to display the contents of the NEWS.TXT
  4631.                       text file in the \DOCUMENT directory of the B: drive,
  4632.                       you should type:
  4633.  
  4634.  
  4635.  
  4636.  
  4637.                                       6-76
  4638.  
  4639.  
  4640.  
  4641.  
  4642.  
  4643.                            STYPE B:\DOCUMENT\NEWS.TXT
  4644.  
  4645.  
  4646.  
  4647.  
  4648.  
  4649.  
  4650.  
  4651.  
  4652.  
  4653.  
  4654.  
  4655.  
  4656.  
  4657.  
  4658.  
  4659.  
  4660.  
  4661.  
  4662.  
  4663.  
  4664.  
  4665.  
  4666.  
  4667.  
  4668.  
  4669.  
  4670.  
  4671.  
  4672.  
  4673.  
  4674.  
  4675.  
  4676.  
  4677.  
  4678.  
  4679.  
  4680.  
  4681.  
  4682.  
  4683.  
  4684.  
  4685.  
  4686.  
  4687.  
  4688.  
  4689.  
  4690.  
  4691.  
  4692.  
  4693.  
  4694.  
  4695.  
  4696.  
  4697.  
  4698.                                       6-77
  4699.  
  4700.  
  4701.  
  4702.  
  4703.      The SUBST Command
  4704.  
  4705.           Purpose:    Assigns a drive letter to another drive and/or
  4706.                       directory name for easy reference.
  4707.  
  4708.           Type:       Internal to COMMAND.COM
  4709.  
  4710.           Syntax:     SUBST [d1: d2:\path\directory]
  4711.                       or
  4712.                       SUBST d1: /D
  4713.  
  4714.           Where:      d1: - is the drive letter you want to substitute with
  4715.                       a path.
  4716.  
  4717.                       d2: - is the drive of the path you want substituted
  4718.                       with a drive letter.
  4719.  
  4720.                       path - is the path to the directory on drive d2:
  4721.                       which you want substituted with a drive letter.
  4722.  
  4723.                       directory - is the directory on drive d2: which you
  4724.                       want substituted with a drive letter.
  4725.  
  4726.                       /D - is a switch that disables the substituted drive.
  4727.  
  4728.           Remarks:    The SUBST command lets you set up drive letters to
  4729.                       reference sub-directories on other drives for easy
  4730.                       reference. If you execute the SUBST command without
  4731.                       any parameters, you will get a list of the
  4732.                       directories that are currently substituted and their
  4733.                       associated drive letters.
  4734.  
  4735.                       d2 must be a drive name that is not currently
  4736.                       allocated. However, space for it must have been
  4737.                       reserved by setting the last drive value in the
  4738.                       CONFIG.SYS file to a drive name higher or equal to
  4739.                       d2.
  4740.  
  4741.           Examples:   If you have a directory, C:\BUSINESS\LETTERS, which
  4742.                       you would like to be able to reference as drive D:,
  4743.                       type :
  4744.  
  4745.                           SUBST D: C:\BUSINESS\LETTERS
  4746.  
  4747.                       You can now use the D: drive letter instead of the
  4748.                       full directory name to access files in it.
  4749.  
  4750.  
  4751.  
  4752.  
  4753.  
  4754.  
  4755.  
  4756.  
  4757.  
  4758.  
  4759.                                       6-78
  4760.  
  4761.  
  4762.  
  4763.  
  4764.      The SYS Command
  4765.  
  4766.           Purpose:    This command transfers the X-DOS system files to any
  4767.                       formatted diskette or hard disk and makes it
  4768.                       bootable. The SYS command can transfer X-DOS onto any
  4769.                       formatted disk(ette) even if it already contains data
  4770.                       or another disk operating system.
  4771.  
  4772.           Type:       External Command
  4773.  
  4774.           Syntax:     SYS [d1:] d2:
  4775.  
  4776.           Where:      d1: - is the source drive from which SYS should read
  4777.                       the system files which are copied onto the
  4778.                       destination drive.
  4779.  
  4780.                       d2: - is the destination drive which will be made
  4781.                       bootable with the X-DOS system files.
  4782.  
  4783.           Remarks:    The SYS command copies the X-DOS system files onto a
  4784.                       hard disk or diskette so that X-DOS may be booted
  4785.                       from that disk(ette). SYS installs the boot record
  4786.                       and copies the X-DOS.SYS, COMMAND.COM, and MAX.COM
  4787.                       files onto the destination disk(ette).
  4788.  
  4789.                       Since the X-DOS system file X-DOS.SYS can reside
  4790.                       anywhere on a bootable disk(ette), X-DOS can be
  4791.                       installed on a hard disk or diskette that already
  4792.                       contains data and/or the system files from another
  4793.                       disk operating system.
  4794.  
  4795.                       The SYS command is so flexible that it prompts you if
  4796.                       you want to retain the old system files on a
  4797.                       disk(ette) if SYS finds the disk(ette) already
  4798.                       contains another disk operating system. If you choose
  4799.                       to keep the old system files, you can always re-
  4800.                       install the previous operating system again by the
  4801.                       using the SYS command from the operating system you
  4802.                       were using. In case you were using MS-DOS, you will
  4803.                       have to copy manually the COMMAND.COM file.Please be
  4804.                       aware that SYS will not install X-DOS on a computer,
  4805.                       it only makes a hard disk or diskette bootable. If
  4806.                       you want to install X-DOS onto a hard disk or
  4807.                       diskette, use the INSTALL program.
  4808.  
  4809.  
  4810.  
  4811.  
  4812.  
  4813.  
  4814.  
  4815.  
  4816.  
  4817.  
  4818.  
  4819.  
  4820.                                       6-79
  4821.  
  4822.  
  4823.  
  4824.  
  4825.      The TIME Command
  4826.  
  4827.           Purpose:    Displays or changes the system time of your computer.
  4828.                       If you change the system time, it is automatically
  4829.                       recorded in your computer's CMOS configuration, if
  4830.                       available.
  4831.  
  4832.           Type:       Internal to COMMAND.COM
  4833.  
  4834.           Syntax:     TIME [HH:MM:SS]
  4835.  
  4836.           Where:      HH - is the hour in 24 hour format (leading zeros
  4837.                       required).
  4838.  
  4839.                       MM - are the minutes (leading zeros required).
  4840.  
  4841.                       SS - are the seconds (leading zeros required).
  4842.  
  4843.           Remarks:    The TIME command has two uses. If you execute the
  4844.                       TIME command without any parameters it displays the
  4845.                       current time according to the system time. To reset
  4846.                       the time you must, as a minimum, specify the hour as
  4847.                       a parameter but you will normally specify the hour
  4848.                       and the minutes. Seconds may be entered as parameters
  4849.                       too. For computers based on the 80286, 80386, or i486
  4850.                       CPUs the TIME command can be used to reset the time
  4851.                       stored in the CMOS configuration area.
  4852.  
  4853.           Examples:   You can specify the current time by typing: TIME. The
  4854.                       time is displayed similar to this:
  4855.  
  4856.                           Current time is 10:31:26.50
  4857.  
  4858.                       If you want to reset the time to 8:34 a.m., just
  4859.                       type:
  4860.  
  4861.                                    TIME 8:34
  4862.  
  4863.  
  4864.  
  4865.  
  4866.  
  4867.  
  4868.  
  4869.  
  4870.  
  4871.  
  4872.  
  4873.  
  4874.  
  4875.  
  4876.  
  4877.  
  4878.  
  4879.  
  4880.  
  4881.                                       6-80
  4882.  
  4883.  
  4884.  
  4885.  
  4886.      The TREE Command
  4887.  
  4888.           Purpose:    Displays a tree-structured outline of the directories
  4889.                       on a diskette or hard disk partition.
  4890.  
  4891.           Type:       Internal to COMMAND.COM
  4892.  
  4893.           Syntax:     TREE [d:]
  4894.  
  4895.           Where:      d: - is the drive on which you want to display the
  4896.                       directory structure.
  4897.  
  4898.           Remarks:    The TREE command displays a good representation of
  4899.                       the relationship between the different directories on
  4900.                       your disk(ette). If the list of directories cannot be
  4901.                       displayed on one full screen, you can use the [Ctrl]-
  4902.                       S hot key or the [Pause] key, if your keyboard has
  4903.                       one, to temporarily stop the scrolling of
  4904.                       directories. To continue the scrolling press any key
  4905.                       such as the [Enter] key.
  4906.  
  4907.           Examples:   If you wish to display the directories on your C:
  4908.                       drive you should type.
  4909.  
  4910.                                     TREE C:
  4911.  
  4912.  
  4913.  
  4914.  
  4915.  
  4916.  
  4917.  
  4918.  
  4919.  
  4920.  
  4921.  
  4922.  
  4923.  
  4924.  
  4925.  
  4926.  
  4927.  
  4928.  
  4929.  
  4930.  
  4931.  
  4932.  
  4933.  
  4934.  
  4935.  
  4936.  
  4937.  
  4938.  
  4939.  
  4940.  
  4941.  
  4942.                                       6-81
  4943.  
  4944.  
  4945.  
  4946.  
  4947.      The TYPE Command
  4948.  
  4949.           Purpose:    This command can display the contents of any text
  4950.                       file or binary file and it lets you scroll in the
  4951.                       displayed file.
  4952.  
  4953.           Type:       Internal to COMMAND.COM
  4954.  
  4955.           Syntax:     TYPE [d:][path]filename [/W]
  4956.  
  4957.           Where:      d:path - is the drive and path to the file you want
  4958.                       to display the contents of.
  4959.  
  4960.                       filename - is the name of the file you want to
  4961.                       display the contents of.
  4962.  
  4963.                       /W - allows you to display files in "Wordstar
  4964.                       format".
  4965.  
  4966.           Remarks:    Unlike the STYPE command, TYPE allows you to move
  4967.                       around in the displayed file. The following keys are
  4968.                       used to move around in the displayed file:
  4969.  
  4970.           Key Assignments
  4971.           *  Up arrow moves the display up one line in the displayed file.
  4972.           *  Down arrow moves the display down one line in the displayed
  4973.              file.
  4974.           *  Right arrow moves the display seven characters to the right.
  4975.           *  Left arrow moves the display to the leftmost column of the
  4976.              displayed file. The [Left] arrow key only has a function when
  4977.              you have previously moved the display to the right with the
  4978.              [Right] arrow key.
  4979.           *  Home moves to the beginning of the displayed file and displays
  4980.              the first screen of file contents.
  4981.           *  End moves to the end of the displayed file and displays the
  4982.              last screen of file contents.
  4983.           *  PgUp displays the previous screen of file contents.
  4984.           *  PgDn displays the next screen of file contents.
  4985.           *  Esc exits the TYPE command
  4986.  
  4987.           Note that if TYPE is used with a redirector to a peripheral (such
  4988.           as PRN), the TYPE command will perform an STYPE command instead
  4989.           and will write the contents to the output file.
  4990.  
  4991.           Examples:   If you want to display the contents of the CONFIG.SYS
  4992.                       file on your C: drive, type the command :
  4993.  
  4994.                                TYPE C:\CONFIG.SYS
  4995.  
  4996.  
  4997.  
  4998.  
  4999.  
  5000.  
  5001.  
  5002.  
  5003.                                       6-82
  5004.  
  5005.  
  5006.  
  5007.  
  5008.      The UNDEL Command
  5009.  
  5010.           Purpose:    This command recovers files that have been
  5011.                       accidentally deleted. To ensure a safe file recovery,
  5012.                       you must undelete a file as soon as possible after it
  5013.                       has been deleted or we cannot guarantee recovery. You
  5014.                       cannot recover files that have been deleted with the
  5015.                       WIPEFILE command.
  5016.  
  5017.           Type:       Internal to MAX.COM
  5018.  
  5019.           Syntax:     UNDEL [filespec]
  5020.  
  5021.           Where:      filespec - is the file or range of files you want to
  5022.                       undelete. You can use the '?' and '*' wildcards in
  5023.                       the file specification.
  5024.  
  5025.           Remarks:    If you delete a file or range of files, you can use
  5026.                       the UNDEL command to undelete the files again. You
  5027.                       will have to be in the same directory as the deleted
  5028.                       files was previously in since UNDEL only looks in the
  5029.                       default directory for files to undelete. If you used
  5030.                       the WIPEFILE command to delete the file(s) with, you
  5031.                       will be able to undelete the files but the file
  5032.                       contents is totally destroyed.
  5033.  
  5034.                       It is important that you undelete the file(s) before
  5035.                       you write data to the disk. Otherwise your deleted
  5036.                       file(s) might be overwritten by the new data.
  5037.  
  5038.           The UNDEL command works in two ways:
  5039.           1. You can undelete a specific file or range of files by
  5040.              specifying a filespec as a parameter with the UNDEL command.
  5041.              In this case UNDEL looks in the default directory and tries to
  5042.              see if it can match any deleted files with the specified
  5043.              filespec.
  5044.           2. You can run UNDEL without any parameters in which case UNDEL
  5045.              will let you undelete all files in the default directory that
  5046.              can be undeleted. UNDEL will display each file that can be
  5047.              recovered one after another. You will have to confirm that you
  5048.              want to undelete each file and you must also type in the first
  5049.              character of the filename for each file that you want to
  5050.              undelete. The character that you specify does not have to be
  5051.              the same as the first letter of the filename before the file
  5052.              was deleted.
  5053.  
  5054.           Examples:   We assume that you just deleted a range of files and
  5055.                       suddenly realized that one of the deleted files,
  5056.                       IMPORTNT.DOC, contained important information which
  5057.                       you certainly did not intend to delete. You should
  5058.                       immediately use the UNDEL command to recover the file
  5059.                       before writing any data to the disk(ette). To
  5060.  
  5061.  
  5062.  
  5063.  
  5064.                                       6-83
  5065.  
  5066.  
  5067.  
  5068.  
  5069.                       undelete the IMPORTNT.DOC file change to the
  5070.                       directory in which it was located and type:
  5071.  
  5072.                                   UNDEL *.DOC
  5073.  
  5074.                       UNDEL will display the information relative to a file
  5075.                       ?MPORTNT.DOC You will need to specify the first
  5076.                       letter I to UNDEL then confirm the undelete of that
  5077.                       file before leaving the UNDEL command.
  5078.  
  5079.  
  5080.  
  5081.  
  5082.  
  5083.  
  5084.  
  5085.  
  5086.  
  5087.  
  5088.  
  5089.  
  5090.  
  5091.  
  5092.  
  5093.  
  5094.  
  5095.  
  5096.  
  5097.  
  5098.  
  5099.  
  5100.  
  5101.  
  5102.  
  5103.  
  5104.  
  5105.  
  5106.  
  5107.  
  5108.  
  5109.  
  5110.  
  5111.  
  5112.  
  5113.  
  5114.  
  5115.  
  5116.  
  5117.  
  5118.  
  5119.  
  5120.  
  5121.  
  5122.  
  5123.  
  5124.  
  5125.                                       6-84
  5126.  
  5127.  
  5128.  
  5129.  
  5130.      The UNLOCK Command
  5131.  
  5132.           Purpose:    This command lets you access a partition that has
  5133.                       been password protected. Password protection can be
  5134.                       programmed using the FDISK utility. You will need to
  5135.                       use UNLOCK if you booted your computer without
  5136.                       specifying the password for the partition you want to
  5137.                       access or if you locked the partition with the LOCK
  5138.                       command.
  5139.  
  5140.           Type:       Internal to MAX.COM
  5141.  
  5142.           Syntax:     UNLOCK d: [password]
  5143.  
  5144.           Where:      d: - is the drive letter for the hard disk partition
  5145.                       you want to unlock so you can access it again.
  5146.                       password - is the password required to gain access to
  5147.                       the locked partition. If you do not specify the
  5148.                       password, you will be prompted for it and the
  5149.                       password will not be echoed.
  5150.  
  5151.           Examples: If you wish to unlock the D: drive and wish the
  5152.                       password not be displayed, type:
  5153.  
  5154.                                    UNLOCK D:
  5155.  
  5156.  
  5157.  
  5158.  
  5159.  
  5160.  
  5161.  
  5162.  
  5163.  
  5164.  
  5165.  
  5166.  
  5167.  
  5168.  
  5169.  
  5170.  
  5171.  
  5172.  
  5173.  
  5174.  
  5175.  
  5176.  
  5177.  
  5178.  
  5179.  
  5180.  
  5181.  
  5182.  
  5183.  
  5184.  
  5185.  
  5186.                                       6-85
  5187.  
  5188.  
  5189.  
  5190.  
  5191.      The VER Command
  5192.  
  5193.           Purpose:    This command displays the X-DOS version number and
  5194.                       the version number that X-DOS currently emulates.
  5195.  
  5196.           Type:       Internal to COMMAND.COM
  5197.  
  5198.           Syntax:     VER
  5199.  
  5200.           Remarks:    X-DOS refers to the single digit to the left of the
  5201.                       period as the major version number and the pair of
  5202.                       digits to the right of the period as the minor
  5203.                       version number. Some programs check for the version
  5204.                       number before executing and will not execute with
  5205.                       certain version numbers. You can change the version
  5206.                       number that X-DOS thinks it is by using the NEWVER
  5207.                       command.
  5208.  
  5209.                       The current version number of X-DOS is version 5.0
  5210.                       and X-DOS emulates a version number 3.3 as default.
  5211.  
  5212.  
  5213.  
  5214.  
  5215.  
  5216.  
  5217.  
  5218.  
  5219.  
  5220.  
  5221.  
  5222.  
  5223.  
  5224.  
  5225.  
  5226.  
  5227.  
  5228.  
  5229.  
  5230.  
  5231.  
  5232.  
  5233.  
  5234.  
  5235.  
  5236.  
  5237.  
  5238.  
  5239.  
  5240.  
  5241.  
  5242.  
  5243.  
  5244.  
  5245.  
  5246.  
  5247.                                       6-86
  5248.  
  5249.  
  5250.  
  5251.  
  5252.      The VERIFY Command
  5253.  
  5254.           Purpose:    This command turns verification of disk writes ON or
  5255.                       OFF. When VERIFY is ON, X-DOS checks to see if data
  5256.                       written to the disk can be read again without errors.
  5257.  
  5258.           Type:       Internal to COMMAND.COM
  5259.  
  5260.           Syntax:     VERIFY [ON | OFF]
  5261.  
  5262.           Where:      ON - turns verification of disk writes ON.
  5263.                       OFF - turns verification of disk writes OFF.
  5264.  
  5265.           Remarks:    When VERIFY is set to on it ensures that data is
  5266.                       written to a disk(ette) without errors. If data is
  5267.                       not successfully written to the disk an error message
  5268.                       is displayed. As default VERIFY is turned off.
  5269.  
  5270.  
  5271.  
  5272.  
  5273.  
  5274.  
  5275.  
  5276.  
  5277.  
  5278.  
  5279.  
  5280.  
  5281.  
  5282.  
  5283.  
  5284.  
  5285.  
  5286.  
  5287.  
  5288.  
  5289.  
  5290.  
  5291.  
  5292.  
  5293.  
  5294.  
  5295.  
  5296.  
  5297.  
  5298.  
  5299.  
  5300.  
  5301.  
  5302.  
  5303.  
  5304.  
  5305.  
  5306.  
  5307.  
  5308.                                       6-87
  5309.  
  5310.  
  5311.  
  5312.  
  5313.      The VIRUSCHK Command
  5314.  
  5315.           Purpose:    This command allows you to protect your files against
  5316.                       a hostile virus program. A computer virus often
  5317.                       attaches itself to existing, executable files on your
  5318.                       hard disk and diskettes and may at some point destroy
  5319.                       the integrity of your data.
  5320.  
  5321.           Type:       External Command
  5322.  
  5323.           Syntax:     VIRUSCHK [d:][path][filename] [/switch]
  5324.  
  5325.           Where:      d:path - is the drive and path to the file you want
  5326.                       to include in, or delete from, the list of files that
  5327.                       are checked for a possible virus.
  5328.                       filename - is the name of the file to include in, or
  5329.                       delete from, the list of files that are checked for a
  5330.                       possible virus.
  5331.  
  5332.           Switches:   /A - adds a file to the virus checking list.
  5333.                       /D - deletes a file from the virus checking list.
  5334.                       /L - displays a list of the files that are currently
  5335.                       monitored by VIRUSCHK for a possible virus.
  5336.  
  5337.           Remarks:    A computer related virus is a program which is
  5338.                       written specifically for the purpose of destroying
  5339.                       the integrity of files on a disk. Viruses often
  5340.                       attach themselves to an existing file so that the
  5341.                       user is not likely to discover the infection of the
  5342.                       computer system until it is too late.
  5343.  
  5344.                       The VIRUSCHK command checks the time and date stamp,
  5345.                       the file size, and performs a CRC check on the files
  5346.                       that are monitored. You can include any files you
  5347.                       wish to protect against an infection in the monitored
  5348.                       file list. Keep in mind, however, that the virus
  5349.                       checker in X-DOS only warns you if it discovers
  5350.                       changes in the monitored files. It cannot eliminate a
  5351.                       virus from a disk, it only detects the presence of a
  5352.                       possible virus in the monitored files.
  5353.  
  5354.                       If VIRUSCHK encounters changes in any of the files
  5355.                       that it is monitoring when you run it, you will get a
  5356.                       warning message similar to this:
  5357.  
  5358.                   Possible virus on file:d:\path\filename.ext
  5359.  
  5360.                       followed by one of the following error
  5361.                       specifications:
  5362.  
  5363.                                  File not found
  5364.  
  5365.  
  5366.  
  5367.  
  5368.  
  5369.                                       6-88
  5370.  
  5371.  
  5372.  
  5373.  
  5374.                       VIRUSCHK cannot find the file on the disk in the
  5375.                       directory you specified when you added the file to
  5376.                       the checking list. If you have deleted or removed the
  5377.                       file on purpose, you should also delete it from the
  5378.                       virus checklist.
  5379.  
  5380.                       Otherwise you will get the same error message every
  5381.                       time you run VIRUSCHK.
  5382.  
  5383.                         Date & time of file has changed
  5384.  
  5385.                       The date and time stamp on the file, which indicates
  5386.                       the last date the file has been modified, has
  5387.                       changed.
  5388.  
  5389.                            Length of file has changed
  5390.  
  5391.                       VIRUSCHK has detected that the length of the file has
  5392.                       changed. Do not run programs which you know have
  5393.                       changed size.
  5394.  
  5395.                        CRC calculation on file different
  5396.  
  5397.                       VIRUSCHK performs a CRC checksum test on each
  5398.                       monitored file. If this checksum changes, you will
  5399.                       get this error message.
  5400.  
  5401.                       Note that you cannot have the VIRUSHCK command check
  5402.                       its own binary file.
  5403.  
  5404.                       You can add up to 256 files to be monitored by
  5405.                       VIRUSCHK which should be enough for most users. You
  5406.                       will probably only want to include the files that are
  5407.                       very common to personal computers like external X-DOS
  5408.                       commands.
  5409.  
  5410.           Examples:   If you want the FDISK.EXE file, which we assume is
  5411.                       located in the C:\DOS directory, to be monitored for
  5412.                       a possible virus by VIRUSCHK, you should type the
  5413.                       following command at the command line:
  5414.  
  5415.                           VIRUSCHK C:\DOS\FDISK.EXE /A
  5416.  
  5417.  
  5418.  
  5419.  
  5420.  
  5421.  
  5422.  
  5423.  
  5424.  
  5425.  
  5426.  
  5427.  
  5428.  
  5429.  
  5430.                                       6-89
  5431.  
  5432.  
  5433.  
  5434.  
  5435.      The VOL Command
  5436.  
  5437.           Purpose:    This command displays the volume label of a diskette
  5438.                       or hard disk partition.
  5439.  
  5440.           Type:       Internal to COMMAND.COM
  5441.  
  5442.           Syntax:     VOL [d:]
  5443.  
  5444.           Where:      d: - is the drive you want to display the volume
  5445.                       label of.
  5446.  
  5447.           Remarks:    The FORMAT /V or LABEL programs can be used to
  5448.                       install a volume label on a diskette or partition of
  5449.                       a hard disk. This volume label can then be used to
  5450.                       distinguish different hard disk partitions and
  5451.                       diskettes. You can always display the volume label of
  5452.                       a hard disk or diskette with the VOL command. The DIR
  5453.                       and XSHELL commands also displays the volume label.
  5454.  
  5455.           Examples:   We assume that your default drive is the C: drive and
  5456.                       you want to display the volume label of the diskette
  5457.                       in the A: drive. You can do this by typing:
  5458.  
  5459.                                      VOL A:
  5460.  
  5461.  
  5462.  
  5463.  
  5464.  
  5465.  
  5466.  
  5467.  
  5468.  
  5469.  
  5470.  
  5471.  
  5472.  
  5473.  
  5474.  
  5475.  
  5476.  
  5477.  
  5478.  
  5479.  
  5480.  
  5481.  
  5482.  
  5483.  
  5484.  
  5485.  
  5486.  
  5487.  
  5488.  
  5489.  
  5490.  
  5491.                                       6-90
  5492.  
  5493.  
  5494.  
  5495.  
  5496.      The WHEREIS Command
  5497.  
  5498.           Purpose:    This command searches through all directories on a
  5499.                       drive for a file or range of files.
  5500.  
  5501.           Type:       Internal to MAX.COM
  5502.  
  5503.           Syntax:     WHEREIS [d:][filespec]
  5504.  
  5505.           Where:      d: - is the drive on which you want to search for
  5506.                       files.
  5507.                       filespec - is the file or range of files you want to
  5508.                       search for. You can include the '?' and '*' wildcards
  5509.                       in the file specification.
  5510.  
  5511.           Remarks:    The WHEREIS command is very useful in situations
  5512.                       where you are looking for one or more specific files
  5513.                       and you cannot remember where they are located.
  5514.  
  5515.                       As long as you can remember the filename or part of
  5516.                       the filename for the file(s) you want to locate, the
  5517.                       WHEREIS command can find the file(s) for you in no
  5518.                       time at all. When you execute WHEREIS it will display
  5519.                       the drive and directory of each file it finds that
  5520.                       matches the filespec.
  5521.  
  5522.                       It displays the size and time and date stamps along
  5523.                       with each matching filename.
  5524.  
  5525.           Examples:   If you want to display all files which matches the
  5526.                       filespec *.DOC on your default drive you should type:
  5527.  
  5528.                                  WHEREIS *.DOC
  5529.  
  5530.  
  5531.  
  5532.  
  5533.  
  5534.  
  5535.  
  5536.  
  5537.  
  5538.  
  5539.  
  5540.  
  5541.  
  5542.  
  5543.  
  5544.  
  5545.  
  5546.  
  5547.  
  5548.  
  5549.  
  5550.  
  5551.  
  5552.                                       6-91
  5553.  
  5554.  
  5555.  
  5556.  
  5557.      The WIPEFILE Command
  5558.  
  5559.           Purpose:    This command deletes a file or range of files so they
  5560.                       cannot be recovered again. You should only use this
  5561.                       command to delete files that you are certain that you
  5562.                       will not have any further use of and which you want
  5563.                       to ensure cannot be recovered by anybody else.
  5564.  
  5565.           Type:       Internal to COMMAND.COM
  5566.  
  5567.           Syntax:     WIPEFILE [d:][path]filespec
  5568.  
  5569.           Where:      d:path - is the drive and path which holds the file
  5570.                       or range of files you want to delete and make
  5571.                       unrecoverable.
  5572.  
  5573.                       filespec - is the file or range of files you want to
  5574.                       delete. You can use the '?' and '*' wildcards in the
  5575.                       file specification.
  5576.  
  5577.           Remarks:    WIPEFILE overwrites the area on the disk which is
  5578.                       allocated to the file(s) you are deleting so that
  5579.                       these file(s) will not be recoverable again.
  5580.  
  5581.                       This provides you with a way of ensuring that nobody
  5582.                       will be able to recover your "sensitive" data when
  5583.                       you delete it.
  5584.  
  5585.                       Files deleted with the DEL command can easily be
  5586.                       recovered which provides you with a safety net in
  5587.                       case you accidentally delete files. Therefore, you
  5588.                       should only use the WIPEFILE command to delete files
  5589.                       which are NOT intended to be recovered again.
  5590.  
  5591.           Examples:   If you want to delete all files in the default
  5592.                       directory and make sure that nobody will be able to
  5593.                       undelete them again you can do so by typing:
  5594.  
  5595.                                   WIPEFILE *.*
  5596.  
  5597.  
  5598.  
  5599.  
  5600.  
  5601.  
  5602.  
  5603.  
  5604.  
  5605.  
  5606.  
  5607.  
  5608.  
  5609.  
  5610.  
  5611.  
  5612.  
  5613.                                       6-92
  5614.  
  5615.  
  5616.  
  5617.  
  5618.      The XCOPY Command
  5619.  
  5620.           Purpose:    This command will copy or move any files and
  5621.                       directories, including sub-directories, to another
  5622.                       drive and/or directory. Several switches give you a
  5623.                       variety of options concerning which files/directories
  5624.                       should be copied and the way they are copied.
  5625.  
  5626.           Type:       External Command
  5627.  
  5628.           Syntax:     XCOPY [d1:][path1]filespec1 [d2:][path2][filespec2]
  5629.                       [/switches]
  5630.                       or
  5631.                       XCOPY [d1:][path1]filespec1 device [/switches]
  5632.  
  5633.           Where:      d1:path1 - is the drive and path to the source files
  5634.                       your are copying.
  5635.  
  5636.                       filespec1 - is the file or range of files you are
  5637.                       copying. You can use the '?' and '*' wildcards in the
  5638.                       file specification.
  5639.  
  5640.                       d2:path2 - is the drive and path to the destination
  5641.                       of the copied files.
  5642.  
  5643.                       filespec2 - is the name you want to give the copied
  5644.                       files. You can use the '?' and '*' wildcards in the
  5645.                       file specification.
  5646.  
  5647.                       device - is the name of the standard output device to
  5648.                       copy files to. You can specify PRN, LPT1, LPT2, LPT3,
  5649.                       COM1, COM2, COM3, COM4 or AUX.
  5650.  
  5651.           Switches:   /A - copies only files with the Archive attribute
  5652.                       set.
  5653.  
  5654.                       /C - lets you pick files to copy from a list of
  5655.                       displayed files.
  5656.  
  5657.                       /D - date - copies files modified on or after the
  5658.                       specified date. The date must be entered in the same
  5659.                       format as when you change the date with the DATE
  5660.                       command.
  5661.  
  5662.                       /E - includes all sub-directories to the directory
  5663.                       which contains the source files that are being
  5664.                       copied. Empty sub-directories are also copied.
  5665.  
  5666.                       /I - includes any hidden files matching filespec1.
  5667.  
  5668.                       /M - copies files with the Archive attribute set and
  5669.                       resets it after the files are copied. Used for
  5670.  
  5671.  
  5672.  
  5673.  
  5674.                                       6-93
  5675.  
  5676.  
  5677.  
  5678.  
  5679.                       backing up files.
  5680.  
  5681.                       /N - copies only files that are new to the
  5682.                       destination directory.
  5683.  
  5684.                       /P - prompts for each file before copying it.
  5685.  
  5686.                       /Q - asks for confirmation before copying if a file
  5687.                       already exists in the destination directory.
  5688.  
  5689.                       /R - deletes the contents of the destination
  5690.                       directory before copying the files.
  5691.  
  5692.                       /S - includes all sub-directories to the directory
  5693.                       which contains the source files that are being
  5694.                       copied. Empty sub-directories are not copied.
  5695.  
  5696.                       /T - moves files from the source directory to the
  5697.                       destination directory. The files are deleted from the
  5698.                       source directory after they are copied.
  5699.  
  5700.                       /V - turns ON verification of disk writes when
  5701.                       copying files. This ensures that the copied files can
  5702.                       be read from the disk again.
  5703.  
  5704.                       /W - prompts you to press a key before starting to
  5705.                       copy.
  5706.  
  5707.                       /Z - copies files from several diskettes. XCOPY will
  5708.                       prompt you to insert a new diskette when all files
  5709.                       have been copied from the current diskette.
  5710.  
  5711.           Remarks:    The source filespec (including drive and path) is
  5712.                       listed before the destination filespec (including
  5713.                       drive and path). The filespec can consist of any
  5714.                       legal filename including the wildcards `?' and `*'.
  5715.                       XCOPY will assume you want to keep the original
  5716.                       filename(s) if no filespec is specified for the
  5717.                       destination of the copied files.
  5718.  
  5719.           Switches
  5720.           XCOPY gives you a range of possibilities concerning which files
  5721.           to copy and the way these files are copied. There are (15)
  5722.           fifteen different switches to choose from. Since the individual
  5723.           often has a standard way of copying files, XCOPY can use the SET
  5724.           command of X-DOS to recognize one or more switches which are to
  5725.           be used every time XCOPY is invoked. The format of SET is as
  5726.           follows:
  5727.  
  5728.                         SET XCOPY=/switch1/switch2/(...)
  5729.  
  5730.           Following is an in-depth description on all of the available
  5731.  
  5732.  
  5733.  
  5734.  
  5735.                                       6-94
  5736.  
  5737.  
  5738.  
  5739.  
  5740.           XCOPY switches:
  5741.  
  5742.           A - By specifying this switch you tell XCOPY to copy only the
  5743.           files, satisfying the source filespec, which have the Archive bit
  5744.           attribute set. If you are using the XCOPY command for backing up
  5745.           files, you can use this switch to ensure that you are only
  5746.           copying the files that have changed since the last time you made
  5747.           a backup. To use XCOPY properly for backup purposes you will have
  5748.           to use the /M switch.
  5749.  
  5750.           C - The /C switch makes XCOPY display a list of all files that
  5751.           match the source filespec and lets you select which files to
  5752.           copy. Use the [Up] and [Down] arrow keys to scroll back and forth
  5753.           in the list. Highlight a file and press [ENTER] to select that
  5754.           file. If the contents of the displayed directory can not fit in
  5755.           the window, you can use the [Down] arrow key to access the rest
  5756.           of the files. If you make a wrong file selection you can use the
  5757.           [ENTER] key to delete the file from the list. When you have
  5758.           selected all the files you want to copy, you can press the [F5]
  5759.           function key to begin copying the selected files to the
  5760.           destination directory.
  5761.  
  5762.           D - This switch tells XCOPY to delete any existing files in the
  5763.           destination directory before copying the files from the source
  5764.           directory to the destination directory. You will be prompted for
  5765.           a confirmation before XCOPY goes ahead and delete the files.
  5766.           XCOPY will not delete any files in the destination directory
  5767.           which have the Read-Only, System, and/or Hidden attributes set.
  5768.  
  5769.           H - If you run the XCOPY command with the /H switch, XCOPY
  5770.           displays a help screen, describing the command line syntax and
  5771.           explaining the available switches. This help screen will also be
  5772.           displayed if you use XCOPY with wrong parameters.
  5773.  
  5774.           I - Use the /I switch to include hidden files which match the
  5775.           source filespec in the selection of files being copied.
  5776.  
  5777.           M - With the /M switch you have an easy way of backing up files.
  5778.           This switch makes XCOPY copy only files with the Archive
  5779.           attribute set and after the files have been copied, the Archive
  5780.           attribute of the file is reset. This way, XCOPY can keep track of
  5781.           which file has been previously backed up so that it only copies
  5782.           files that have been modified.
  5783.  
  5784.           N - With this option enabled, XCOPY will only copy the files
  5785.           which are new to the destination directory. A file is new if it
  5786.           does not exist in the destination directory or if the time and
  5787.           date stamp on an existing, matching filename is prior to that of
  5788.           the source file.
  5789.  
  5790.           P - This switch makes XCOPY display a message on the screen for
  5791.           each file and you will have to acknowledge the copying of the
  5792.  
  5793.  
  5794.  
  5795.  
  5796.                                       6-95
  5797.  
  5798.  
  5799.  
  5800.  
  5801.           file.
  5802.  
  5803.           S - with the /S switch enabled, XCOPY will copy all the files and
  5804.           sub-directories from the source directory to the destination
  5805.           directory. If the source sub-directories do not exist in the
  5806.           destination directory, XCOPY will automatically create them.
  5807.  
  5808.           T - With the /T switch you have an easy way to move files from
  5809.           one directory to another directory. With this switch set, XCOPY
  5810.           first copies the files, matching the source filespec, to the
  5811.           destination directory. Then it deletes the source files, matching
  5812.           the source filespec, in the source directory. Hence, the files
  5813.           will seem to have been moved from one location to another
  5814.           location in one step even though XCOPY performs the moving in two
  5815.           steps.
  5816.  
  5817.           V - Use the /V switch to copy files from several diskettes to
  5818.           another destination, such as a directory on a hard disk. XCOPY
  5819.           will automatically prompt you to change diskettes when it has
  5820.           copied all of the files, matching the source filespec, from the
  5821.           current diskette to the destination. When you have copied files
  5822.           from the last diskette and XCOPY prompts you to insert a new
  5823.           diskette, you can press the [Esc] key to terminate the XCOPY
  5824.           command.
  5825.  
  5826.           Copying to a device
  5827.           You can copy to devices as well as to files, so XCOPY filespec
  5828.           COM1 [Enter] sends the contents of the specified file(s) to the
  5829.           COM1 port.
  5830.  
  5831.           XCOPY filespec PRN will print it on the parallel printer attached
  5832.           to the LPT1 printer port. XCOPY can copy to the following
  5833.           devices: PRN, LPT1, LPT2, LPT3, COM1, COM2, COM3, COM4 and AUX.
  5834.  
  5835.           Examples: You can copy all files matching the *.TXT filespec from
  5836.                       the default directory to the C:\BUSINESS\LETTERS
  5837.                       directory by typing:
  5838.  
  5839.                         XCOPY *.TXT C:\BUSINESS\LETTERS
  5840.  
  5841.  
  5842.  
  5843.  
  5844.  
  5845.  
  5846.  
  5847.  
  5848.  
  5849.  
  5850.  
  5851.  
  5852.  
  5853.  
  5854.  
  5855.  
  5856.  
  5857.                                       6-96