home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / open / 4dos20.lzh / 4DDOC.ARC / 4DOS.DOC
Text File  |  1989-02-28  |  225KB  |  7,235 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.            
  7.            
  8.            
  9.            
  10.            
  11.            
  12.            
  13.  
  14.  
  15.            
  16.            
  17.            
  18.            
  19.            
  20.            
  21.                                    4DOS Version 2.0                                   4DOS Version 2.0
  22.            
  23.                          A PC-DOS / MS-DOS Command Processor                         A PC-DOS / MS-DOS Command Processor
  24.            
  25.            
  26.            
  27.                                      Written by:
  28.                                      Rex C. Conn
  29.                                      Tom Rawson
  30.            
  31.            
  32.                                    Distributed by:
  33.            
  34.                                     J.P. Software
  35.                                     P.O. Box 1470
  36.                                E. Arlington, MA  02174
  37.  
  38.            
  39.  
  40.  
  41.            
  42.                _______
  43.           ____|__     |               (tm)
  44.        --|       |    |-------------------
  45.          |   ____|__  |  Association of
  46.          |  |       |_|  Shareware
  47.          |__|   o   |    Professionals
  48.        -----|   |   |---------------------
  49.             |___|___|    MEMBER
  50.            
  51.            
  52.            
  53.            Program and Documentation Copyright (c) 1988, 1989 Rex C. Conn and
  54.            J.P. Software.  All rights reserved.
  55.            
  56.            Portions Copyright (c) 1987, 1988 Microsoft Corporation.
  57.            
  58.            
  59.            Published by:
  60.            
  61.                 J.P. Software:
  62.                 P.O. Box 1470
  63.                 E. Arlington, MA  02174
  64.            
  65.                 (617) 646-3975
  66.            
  67.            Electronic mail to:
  68.            
  69.                 CompuServe 73577,243
  70.                 BIX "trawson"
  71.            
  72.            
  73.            PC-DOS, PC, PC XT, PC AT, and PS/2 are trademarks of IBM
  74.            Corporation.
  75.            MS-DOS is a trademark of Microsoft Corporation.
  76.            1-2-3 is a trademark of Lotus Development Corporation.
  77.            dBASE is a trademark of Ashton Tate.
  78.  
  79.        
  80.         
  81.         
  82.  
  83.  
  84.  
  85.  
  86.  
  87.         
  88.         
  89.                                 ACKNOWLEDGEMENTS                                ACKNOWLEDGEMENTS
  90.         
  91.         
  92.              Special thanks to Dave Lemire, Chris Rousseau and the beta
  93.              testers for their invaluable suggestions and debugging
  94.              help, and to Lorna Howard for the manual design, layout,
  95.              and editing.
  96.              
  97.              
  98.              4DOS is written in Microsoft C 5.1 and assembly language.
  99.              
  100.  
  101.  
  102.            TABLE OF CONTENTS           TABLE OF CONTENTS           _________________
  103.            
  104.            Introduction                    i           Introduction                     
  105.            
  106.                 Registration Information  ii
  107.                 4DOS License Agreement   iii
  108.                 Limited Warranty           v
  109.                 Order Form               vii
  110.                 Technical Support         ix
  111.                 ASP                        x
  112.  
  113.            4DOS Features                   1           4DOS Features                   
  114.  
  115.            Installation                    8           Installation                    
  116.  
  117.                 Automatic Installation    10
  118.                 Manual Installation       10
  119.                 Configuring 4DOS          12
  120.                 Using 4DOS with DESQView  13
  121.                 Compatibility Notes       14
  122.            
  123.            Using 4DOS                     15           Using 4DOS                      
  124.  
  125.                 Starting 4DOS             15
  126.                 Command Line Editing      16
  127.                 Command History & Recall  17
  128.                 Multiple Commands         18
  129.                 Conditional Commands      19
  130.                 Escape Characters         19
  131.                 Command Echoing           20
  132.                 Argument Quoting          20
  133.                 Aliases                   20
  134.                 Keystack                  22
  135.                 Environment Variables     23
  136.                 I/O Redirection           25
  137.  
  138.            Command Reference Guide        27           Command Reference Guide         
  139.  
  140.                 ?                         29
  141.                 ALIAS                     30
  142.                 ATTRIB                    32
  143.                 BEEP                      33
  144.                 BREAK                     34
  145.                 CALL                      35
  146.                 CANCEL                    36
  147.                 CD / CHDIR                37
  148.                 CDD                       38
  149.                 CHCP                      39
  150.                 CLS                       40
  151.                 COPY                      41
  152.                 DATE                      42
  153.                 DEL / ERASE               43
  154.                 DESCRIBE                  44
  155.                 DIR                       45
  156.                 DIRS                      47
  157.                 ECHO                      48
  158.                 ENDLOCAL                  49
  159.  
  160.  
  161.  
  162.                 ESET                      50
  163.                 EXCEPT                    51
  164.                 EXIT                      52
  165.                 FOR                       53
  166.                 FREE                      54
  167.                 GLOBAL                    55
  168.                 GOSUB                     56
  169.                 GOTO                      57
  170.                 HELP                      58
  171.                 HISTORY                   59
  172.                 IF                        60
  173.                 INKEY                     62
  174.                 INPUT                     63
  175.                 KEYSTACK                  64
  176.                 LIST                      65
  177.                 MD / MKDIR                66
  178.                 MEMORY                    67
  179.                 MOVE                      68
  180.                 PATH                      69
  181.                 PAUSE                     70
  182.                 POPD                      71
  183.                 PROMPT                    72
  184.                 PUSHD                     73
  185.                 QUIT                      74
  186.                 RD / RMDIR                75
  187.                 REM                       76
  188.                 REN / RENAME              77
  189.                 RETURN                    78
  190.                 SCREEN                    79
  191.                 SELECT                    80
  192.                 SET                       81
  193.                 SETDOS                    82
  194.                 SETLOCAL                  84
  195.                 SHIFT                     85
  196.                 TEE                       86
  197.                 TEXT                      87
  198.                 TIME                      88
  199.                 TIMER                     89
  200.                 TYPE                      90
  201.                 UNALIAS                   91
  202.                 VER                       92
  203.                 VERIFY                    93
  204.                 VOL                       94
  205.                 Y                         95
  206.  
  207.            Appendices           Appendices
  208.  
  209.                 A    Error messages       96                                        
  210.                 B    ANSI commands       102
  211.                 C    Extended key codes  105
  212.         
  213.            Index                         106           Index                           
  214.  
  215.  
  216.  
  217.  
  218.  
  219.            Introduction           Introduction
  220.            
  221.                 Welcome, and thanks for trying 4DOS!
  222.                 
  223.                 4DOS is designed to help you get the most out of your IBM
  224.                 PC or compatible system.  It replaces COMMAND.COM, the
  225.                 command interpreter that comes with all versions of MS-DOS
  226.                 and PC-DOS.
  227.                 
  228.                 You'll find 4DOS provides a wide variety of capabilities
  229.                 COMMAND.COM can't, ranging from a vastly enhanced DIR
  230.                 command, to point-and-shoot file selection for any command,
  231.                 to the ability to completely redefine your system's
  232.                 commands.  Yet 4DOS is fully compatible with COMMAND.COM.
  233.                 
  234.                 4DOS is a "DOS shell" (a program that gives you access to
  235.                 DOS functions and commands), but it's unlike most DOS
  236.                 shells on the market.  Virtually all of these shells are
  237.                 designed to isolate the novice user from the DOS command
  238.                 line.  4DOS, on the other hand, is intended to make DOS
  239.                 easier to use and to make you more productive while working
  240.                 at the command line.  It provides enhancements to most of
  241.                 the DOS commands, as well as over 30 new commands.  These
  242.                 improvements make 4DOS a much richer and more powerful
  243.                 environment to work in than COMMAND.COM, without
  244.                 sacrificing the compatibility, flexibility, and control you
  245.                 get from working at the command line.  If you're tired of
  246.                 the limitations of COMMAND.COM, you'll love 4DOS!
  247.                 
  248.                 4DOS is distributed as shareware, which means if you've                                       _________                       
  249.                 downloaded it from a bulletin board or obtained it from a
  250.                 friend, you can try it out before you decide whether you'd
  251.                 like to keep it.  Like all shareware, if you do decide to
  252.                 keep 4DOS, you must pay a registration fee.
  253.                 
  254.                 The following pages include registration information, the
  255.                 4DOS license agreement and registration form, and
  256.                 information on technical support for 4DOS, and on the
  257.                 Association of Shareware Professionals (ASP).
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.                    4DOS Reference Manual                  i
  274.  
  275.  
  276.  
  277.  
  278.  
  279.         Registration Information        Registration Information
  280.         
  281.              4DOS is a copyrighted program protected by both U.S. and
  282.              international copyright law.  You are authorized to use it
  283.              without charge for a limited period of time under the terms
  284.              of the 4DOS license agreement.  After this time is up, you
  285.              must register and pay for 4DOS to continue using it.
  286.              
  287.              This method of distribution is known as shareware.  It                                                     _________     
  288.              allows you to determine whether 4DOS meets your needs
  289.              before you pay for it.
  290.              
  291.              The registration fee for a single copy of 4DOS is $50.
  292.              Payment of this fee entitles you to:
  293.              
  294.                ∙  A disk with the latest version of 4DOS, registered
  295.                   to you.
  296.                
  297.                ∙  A version of 4DOS optimized for 80286/80386
  298.                   processors.
  299.  
  300.                ∙  One copy of the printed and bound 4DOS manual.
  301.                
  302.                ∙  An upgrade to the next version of 4DOS for free, and
  303.                   reduced rates on future upgrades.
  304.                
  305.                ∙  Technical support via electronic mail or telephone.
  306.              
  307.              If you prefer, you may register for $35 and receive only
  308.              the disk and notices of future upgrades.  Network, site,
  309.              and corporate licenses are also available; contact J.P.
  310.              Software for more information.
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.                    4DOS Reference Manual                  ii
  334.  
  335.  
  336.  
  337.  
  338.  
  339.            4DOS License Agreement           4DOS License Agreement
  340.            
  341.                 (1)  The 4DOS program and all other programs and
  342.                 documentation distributed or shipped with it are
  343.                 copyrighted works protected by U.S. and international
  344.                 copyright law.  In the rest of this document, this
  345.                 collection of programs is referred to simply as "4DOS".
  346.                 You are granted a license to use your copy of 4DOS only
  347.                 under the terms and conditions specified in this license
  348.                 agreement.
  349.                 
  350.                 (2)  4DOS is a commercial software package.  It is not                                                                   not
  351.                 free, and it is not in the public domain.  It is                                not                             
  352.                 distributed as shareware, which means that before you pay                               shareware                                                                _________                                 
  353.                 for the package, you may try it and see if you want to
  354.                 continue using it.  You may use 4DOS free for a trial
  355.                 period of up to 21 days.  If you wish to continue using
  356.                 4DOS after that period, you must pay a registration fee.
  357.                 If you choose not to pay the registration fee, you must
  358.                 stop using 4DOS and remove it from your computer, though
  359.                 you are still free to keep copies and pass them along to
  360.                 others.
  361.                 
  362.                 (3)  You may use your copy of 4DOS on a single computer.
  363.                 You may also install it on a computer attached to a
  364.                 network, or remove it from one computer and install it on a
  365.                 different one, provided there is no possibility that a
  366.                 single copy of 4DOS will be used on more than one computer
  367.                 at a time.  Network, site, and corporate licenses are
  368.                 available from J.P. Software.
  369.                 
  370.                 (4)  You may copy 4DOS for backup purposes, and you may
  371.                 give copies of the unregistered version to other                                   unregistered                 
  372.                 individuals, which they may also use and copy under the
  373.                 terms of this agreement.  If you copy the unregistered
  374.                 version of 4DOS for others, you must include all of the                                                             all       
  375.                 files distributed with it.
  376.                 
  377.                 (5)  You may NOT give, sell, or otherwise transfer copies
  378.                 of the registered version of 4DOS to any other person for                       registered                                        
  379.                 any reason.  However, you may transfer ownership of your
  380.                 registered copy to another person, provided that when you
  381.                 do so, you stop using 4DOS and remove it from your
  382.                 computer, and notify J.P. Software of the new owner.
  383.                 
  384.                 (6)  You may NOT distribute 4DOS other than through
  385.                 individual copies of the unregistered version passed to                                         unregistered                  
  386.                 friends and associates for their individual use.
  387.                 Specifically, you may not place 4DOS or any part of the
  388.                 4DOS package in any user group or commercial library
  389.                 without express written permission from J.P. Software, and
  390.  
  391.  
  392.  
  393.                      4DOS Reference Manual                 iii
  394.  
  395.  
  396.  
  397.  
  398.  
  399.              you may not distribute for a fee, or in any way sell copies
  400.              of 4DOS or any part of the 4DOS package.
  401.              
  402.              (7)  4DOS is a powerful program.  While we have attempted
  403.              to build in reasonable safeguards, if you do not use 4DOS
  404.              properly you may destroy files or cause other damage to
  405.              your computer software and data.  You assume full                                               You assume full
  406.              responsibility for the selection and use of 4DOS to achieve             responsibility for the selection and use of 4DOS to achieve
  407.              your intended results; in no event shall J.P. Software be             your intended results; in no event shall J.P. Software be
  408.              responsible for any damages whatsoever due to errors in             responsible for any damages whatsoever due to errors in
  409.              usage or your failure to read, understand, or follow             usage or your failure to read, understand, or follow
  410.              instructions in the documentation.  J.P. Software limits             instructions in the documentation.                      
  411.              its warranty to replacement of a defective program diskette
  412.              or manual.
  413.              
  414.              (8)  Like all useful computer software, 4DOS may contain
  415.              errors in programs or documentation.  If you find such an
  416.              error or are otherwise dissatisfied with a registered copy
  417.              of 4DOS, you may return the entire package at any time up
  418.              to one year after purchase for a full refund of your
  419.              original registration fee; such a refund shall be your sole
  420.              remedy for any program error(s).  J.P. Software shall not
  421.              be liable for any other costs incurred by you due to such
  422.              errors.
  423.              
  424.              (9)  If you do not agree with these terms and conditions,
  425.              you do not have permission from the copyright holder(s) to
  426.              use 4DOS, and you must stop using it and remove it from
  427.              your computer.
  428.              
  429.              (10)  Any use or distribution of 4DOS which violates this
  430.              license agreement will be considered a copyright violation,
  431.              and prosecuted to the full extent of the law.
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.                    4DOS Reference Manual                  iv
  454.  
  455.  
  456.  
  457.  
  458.  
  459.            Limited Warranty           Limited Warranty
  460.            
  461.                 J.P. Software warrants that the 4DOS diskette and manual
  462.                 distributed to registered users are fit for the purpose for
  463.                 which they are intended.  J.P. Software will replace or
  464.                 refund the purchase price of the diskette and/or manual
  465.                 and/or any other parts or components of 4DOS found to be
  466.                 defective or not able to be used for the purpose for which
  467.                 they are intended, if such defect is the fault of J.P.
  468.                 Software and not the result of misuse or abuse, and if the
  469.                 defective items are returned to J.P. Software within the
  470.                 warranty period of one year.
  471.                 
  472.                 J.P. Software makes no other warranties, express or
  473.                 implied, and J.P. Software's warranty is expressly limited
  474.                 to the cost of replacement of any defective diskette or
  475.                 other part.
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.                    4DOS Reference Manual                   v
  514.  
  515.  
  516.  
  517.  
  518.  
  519.            Registration Form        Return to:     J.P. Software
  520.                                                    P.O. Box 1470
  521.                                                    E. Arlington, MA  02174
  522.            
  523.            4DOS Version 2.0                        Quantity    Price
  524.            
  525.            Disk, manual, and next update ($50.00)  _______     _______
  526.           
  527.            Disk only ($35.00)                      _______     _______
  528.            
  529.                      Subtotal                      _______     _______
  530.                      Sales tax (MA only, 5%)                   _______
  531.                      Shipping outside US ($5)                  _______
  532.                      Total enclosed                            _______
  533.            
  534.                 Please specify 5.25 _____ or 3.5 _____ diskette.
  535.  
  536.            
  537.            Credit card orders (MasterCard / VISA ONLY):
  538.                 Card Number _____________________       Expires   _______
  539.                 Signature   _____________________
  540.            
  541.            Credit card customers may also order by phone by calling (617)
  542.            646-3975 between 9:00 AM and 5:00 PM Eastern time, or by EMAIL.
  543.            
  544.            Check here to have us contact you about multi-system licenses ___
  545.            
  546.            Terms:  All payments must be in U.S. funds.  All credit card
  547.            charges will be authorized; credit cards are not charged until
  548.            your order is shipped.  Personal checks may be subject to bank
  549.            clearance delay before shipment.
  550.  
  551.            
  552.            Name      _______________________________________________
  553.            Company   _______________________________________________
  554.            Address   _______________________________________________
  555.                      _______________________________________________
  556.                      _______________________________________________
  557.            Phone     _____________________
  558.  
  559.            
  560.            I have read and agree to abide by the 4DOS license agreement:
  561.                 (Signature) ________________________________________
  562.            
  563.            Where did you get 4DOS?__________________________________
  564.            
  565.            Please use the back of this page for any comments or
  566.            suggestions.
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.                      4DOS Reference Manual                  vi
  574.  
  575.  
  576.  
  577.  
  578.  
  579.            Technical Support           Technical Support
  580.            
  581.                 Technical support for 4DOS is available to registered users
  582.                 ONLY!  If you are not a registered user, we will provided
  583.                 limited assistance to help you get 4DOS installed if you
  584.                 contact us via electronic mail (see below).
  585.                 
  586.                 If you are a registered user, you can contact J.P. Software
  587.                 for support at the following electronic addresses:
  588.                 
  589.                   CompuServe:  Easyplex to 73577,243
  590.                   BIX:         Mail to "trawson"
  591.                 
  592.                 Or we can be reached via U.S. Mail at:
  593.                 
  594.                   J.P. Software
  595.                   P.O. Box 1470
  596.                   E. Arlington, MA  02174
  597.                 
  598.                 We strongly prefer support via electronic mail, as it
  599.                 allows correspondence at convenient times regardless of
  600.                 time zones and work schedules, and it provides a record of
  601.                 the communication.  However, telephone support is also
  602.                 provided to those users who do not have a modem or an
  603.                 account on one of the electronic mail systems listed above.
  604.                 
  605.                 You can call us at (617) 646-3975 between 9:00 AM and 5:00
  606.                 PM Eastern time.  We will respond to telephone messages as
  607.                 quickly as possible, but may require 48 hours or more
  608.                 depending on the workload and the timing of your call.
  609.                 
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.                      4DOS Reference Manual                  vii
  634.  
  635.  
  636.  
  637.  
  638.  
  639.         Association of Shareware Professionals        Association of Shareware Professionals
  640.         
  641.              The authors and publisher of 4DOS are members of the
  642.              Association of Shareware Professionals (ASP), an
  643.              organization formed in April 1987 to strengthen the future
  644.              of shareware as an alternative to commercial software.  Its
  645.              members, all of whom are programmers who subscribe to a
  646.              code of ethics, are committed to the concept of shareware
  647.              as a method of marketing.
  648.              
  649.              The ASP's Standards for its members and their shareware
  650.              products are:
  651.              
  652.                Programming Standards               Programming Standards
  653.         
  654.                   The program meets the ASP's definition of "shareware"
  655.                   (i.e., it is not a commercial demo with a major
  656.                   feature disabled, nor a time-limited program).
  657.                   
  658.                   The program has been thoroughly tested by the author
  659.                   and should not be harmful to other files or hardware
  660.                   if used properly.
  661.                   
  662.                Documentation Standards               Documentation Standards
  663.                   
  664.                   Sufficient documentation is provided to allow the
  665.                   average user to try all the major functions of the
  666.                   program.
  667.                   
  668.                   Any discussion of the shareware concept and of
  669.                   registration requirements is done in a professional
  670.                   and positive manner.
  671.                   
  672.                Support Standards               Support Standards
  673.         
  674.                   The member will respond to people who send
  675.                   registration payments, as promised in the program's
  676.                   documentation.  At a minimum, the member will
  677.                   acknowledge receipt of all payments.
  678.                   
  679.                   The member will establish a procedure for users to
  680.                   report, and have acknowledged, matters such as bug
  681.                   reports, and will describe such means in the
  682.                   documentation accompanying all versions of the
  683.                   programs.  The author will respond to written bug
  684.                   reports from registered users when the user provides a
  685.                   self-addressed, stamped envelope.
  686.                   
  687.                   Known incompatibilities with other software or
  688.                   hardware and major or unusual program limitations are
  689.                   noted in the documentation that comes with the
  690.                   shareware (evaluation) program.
  691.  
  692.  
  693.                    4DOS Reference Manual                   viii
  694.  
  695.  
  696.  
  697.  
  698.  
  699.                   ASP Ombudsman Information                  ASP Ombudsman Information
  700.                      
  701.                      This program is produced by members of the Association
  702.                      of Shareware Professionals (ASP).  ASP wants to make
  703.                      sure that the shareware principle works for you.  If
  704.                      you are unable to resolve a shareware-related problem
  705.                      with an ASP member by contacting the member directly,
  706.                      ASP may be able to help.  The ASP ombudsman can help
  707.                      you resolve a dispute or problem with an ASP member,
  708.                      but does not provide technical support for members'
  709.                      products.  Please write to the ASP Ombudsman at:
  710.                      
  711.                                ASP Ombudsman
  712.                                P.O. Box 5786
  713.                                Bellevue, WA  98006
  714.                      
  715.                      or send a Compuserve message via Easyplex electronic
  716.                      mail to the ASP Ombudsman, Compuserve ID number
  717.                      70475,1071.
  718.                      
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.                    4DOS Reference Manual                  ix
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.         4DOS Features        4DOS Features
  764.         
  765.              4DOS is a complete replacement for COMMAND.COM, the command
  766.              processor provided with MS-DOS or PC-DOS.  (References in this
  767.              manual to MS-DOS also apply to PC-DOS.)  4DOS is compatible
  768.              with MS-DOS and COMMAND.COM, and adds many enhancements and new
  769.              commands, including:
  770.              
  771.                Minimal Memory Usage               Minimal Memory Usage
  772.                   
  773.                   4DOS has a swapping option that requires less than 5K of
  774.                   your precious RAM for its resident portion, and can use
  775.                   either EMS memory or disk for swapping its transient
  776.                   portion.
  777.                   
  778.                On-line Help               On-line Help
  779.                   
  780.                   4DOS provides help for all of its internal commands, as
  781.                   well as the MS-DOS external commands.
  782.                   
  783.                Command Line Editing               Command Line Editing
  784.                   
  785.                   4DOS provides command line editing, including insert and
  786.                   delete, and full cursor key support.  4DOS also offers
  787.                   interactive expansion of wildcard filenames on the
  788.                   command line.
  789.                   
  790.                Command History               Command History
  791.                   
  792.                   4DOS lets you view, search, modify, and reexecute your
  793.                   previous commands.  The commands are saved in memory, and
  794.                   can be recalled with the cursor keys.  The command
  795.                   history list size is user-defined, from 512 to 8192
  796.                   characters.
  797.              
  798.                Flexible File Wildcards               Flexible File Wildcards
  799.                   
  800.                   4DOS offers more flexible wildcards than COMMAND.COM.
  801.                   For example, you can display all the files that have a
  802.                   "2" anywhere in their filename by entering:
  803.                   
  804.                     dir *2*.*                    dir *2*.*
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.                    4DOS Reference Manual                   1
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.                File Descriptions               File Descriptions
  821.                   
  822.                   4DOS allows you to give descriptions (up to 40
  823.                   characters) to each of your files.  The descriptions will
  824.                   be displayed with the filenames when you use the DIR or
  825.                   SELECT commands.
  826.                
  827.                Multiple Commands on a Single Line               Multiple Commands on a Single Line
  828.                   
  829.                   You can enter several commands on a line by separating
  830.                   them with a ^ (caret), or other user-defined character.                              ^                                          
  831.                   
  832.                Expanded and Editable Environment               Expanded and Editable Environment
  833.                   
  834.                   4DOS provides an environment size from 512 to 32000 bytes
  835.                   (user defined).  You can interactively edit environment
  836.                   entries with the ESET command.
  837.                   
  838.                Environment Variables               Environment Variables
  839.                   
  840.                   Environment variables allow you to associate a string of
  841.                   characters with a variable name, substituting that string
  842.                   when the name is used.  4DOS provides a number of
  843.                   predefined variables, including system date and time,
  844.                   current directory, and default disk.
  845.                   
  846.                Aliases               Aliases
  847.                   
  848.                   Aliases allow you to rename or reconfigure commands (for
  849.                   example, to pass default parameters to a command, or to
  850.                   give MS-DOS the look and feel of a different operating
  851.                   system); or to define a new command as a combination of
  852.                   several other commands.  Aliases support batch file-like
  853.                   arguments (%1, %2, etc.) and environment variables, so
  854.                   when combined with the multiple commands feature, they
  855.                   act as very fast batch files.
  856.                   
  857.                Expanded Command Line               Expanded Command Line
  858.                   
  859.                   4DOS expands the MS-DOS command input line from 127 to
  860.                   255 characters for internal commands.  Because MS-DOS
  861.                   truncates the command line for external commands to 127
  862.                   characters, 4DOS makes the full command line available
  863.                   through the CMDLINE environment variable.
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.                    4DOS Reference Manual                   2
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.                Conditional Commands               Conditional Commands
  881.                   
  882.                   4DOS includes two new command line operators: || (OR) and                                                                ||         
  883.                   && (AND).  They allow you to control the execution of                  &&                                                   
  884.                   subsequent commands based on the result of the previous
  885.                   command.
  886.                   
  887.                Additional Redirection Options               Additional Redirection Options
  888.                   
  889.                   In addition to redirection of standard input and standard
  890.                   output, 4DOS supports redirection of standard error, and
  891.                   the option to prevent overwriting existing files.  4DOS
  892.                   also provides UNIX-like TEE and Y pipes.
  893.                   
  894.                EGA/VGA Support               EGA/VGA Support
  895.                   
  896.                   4DOS supports Monochrome, CGA, EGA and VGA displays with
  897.                   any number of lines and columns per screen.
  898.                   
  899.                Networks               Networks
  900.                   
  901.                   4DOS supports MS-DOS compatible networks.
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.                    4DOS Reference Manual                   3
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.         New and Enhanced Commands        New and Enhanced Commands
  941.                   
  942.              4DOS provides many new internal commands, and new options for
  943.              existing commands.  Most 4DOS commands can take multiple
  944.              arguments.  For example, you can delete several files with a
  945.              single DEL command:
  946.                   
  947.                del *.bak test.wks oldfile.txt               del *.bak test.wks oldfile.txt
  948.              
  949.              You can also copy several files with a single COPY command
  950.              (the target directory here is a:\):                                           a:\  
  951.              
  952.                copy *.wks memo.doc *.c a:\               copy *.wks memo.doc *.c a:\
  953.              
  954.              The following list is intended to give you a sampling of the
  955.              new commands.  See the Command Reference Guide for full
  956.              details.
  957.                   
  958.                ALIAS / UNALIAS               ALIAS / UNALIAS
  959.                   Define aliases for commonly used commands, allowing you
  960.                   to execute a complex series of commands with a few
  961.                   keystrokes.
  962.                
  963.                ATTRIB               ATTRIB
  964.                   Display or change the file attributes (read-only, hidden,
  965.                   system, and archive) for the specified files and/or
  966.                   directories.
  967.                
  968.                CDD               CDD
  969.                   Change the default drive and directory.
  970.                
  971.                DESCRIBE               DESCRIBE
  972.                   Add 40-character descriptions to filenames.  The
  973.                   descriptions are displayed using DIR and SELECT.
  974.                
  975.                DIR               DIR
  976.                   Display the disk directory with a wide variety of
  977.                   options, including 1, 2, or 5 column display; sorted by
  978.                   name, extension, size, or date/time; display
  979.                   subdirectories; display file attributes; and display
  980.                   subtotals only.
  981.                
  982.                ESET               ESET
  983.                   Interactively edit environment variables and aliases.
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.                    4DOS Reference Manual                   4
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.                EXCEPT               EXCEPT
  1001.                   Execute a command except on the specified file(s).
  1002.                
  1003.                FREE               FREE
  1004.                   Display the total and free disk space.
  1005.                
  1006.                GLOBAL               GLOBAL
  1007.                   Execute a command in the current directory and all of its
  1008.                   subdirectories.
  1009.                
  1010.                HELP               HELP
  1011.                   Display a pop-up help window for 4DOS internal commands
  1012.                   and MS-DOS external commands.
  1013.                
  1014.                HISTORY               HISTORY
  1015.                   Display or clear the command history list.
  1016.                
  1017.                LIST               LIST
  1018.                   Display a file on the screen.  LIST provides forward and
  1019.                   backward paging, vertical and horizontal scrolling, and
  1020.                   text search.
  1021.                
  1022.                MEMORY               MEMORY
  1023.                   Display the amount of total and available RAM, expanded
  1024.                   and extended memory, and environment space.
  1025.                
  1026.                MOVE               MOVE
  1027.                   Move files between directories and/or drives.
  1028.                
  1029.                PUSHD / POPD / DIRS               PUSHD / POPD / DIRS
  1030.                   Use a "directory stack" to change directories, perform
  1031.                   some work, and then return to the original directory.
  1032.                
  1033.                RENAME               RENAME
  1034.                   In addition to renaming files, 4DOS also allows you to                                                                        
  1035.                   rename files to another directory, and to rename
  1036.                   directories.
  1037.                
  1038.                SELECT               SELECT
  1039.                   Perform a command on selected files (using point-and-
  1040.                   shoot selection).
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.                    4DOS Reference Manual                   5
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.                SETDOS               SETDOS
  1061.                   Configure the 4DOS internal parameters, including the
  1062.                   default line editing mode (insert or overstrike), the
  1063.                   default batch echo mode, the compound command character,
  1064.                   and the escape character.
  1065.                
  1066.                TEE               TEE
  1067.                   A "pipe fitting" that copies standard input to standard                                                                         
  1068.                   output, and saves a copy in the specified file(s).
  1069.                
  1070.                TIMER               TIMER
  1071.                   A system stopwatch for timing events.                                                       
  1072.                
  1073.                Y               Y
  1074.                   A "pipe fitting" that copies standard input to standard
  1075.                   output, and then copies the specified file(s) to standard
  1076.                   output.
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.                    4DOS Reference Manual                   6
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.         Enhanced Batch Processor        Enhanced Batch Processor
  1121.         
  1122.              The batch processor in 4DOS is compatible with batch files
  1123.              written for COMMAND.COM, and includes several new and enhanced
  1124.              commands to make batch file programming easier and more
  1125.              powerful, including:
  1126.                   
  1127.                CALL               CALL
  1128.                        Execute nested batch files without loading a                                                                   
  1129.                        secondary copy of the command processor.
  1130.                
  1131.                CANCEL               CANCEL
  1132.                        Terminate nested batch file processing.                                                              
  1133.                
  1134.                GOSUB / RETURN               GOSUB / RETURN
  1135.                        Call subroutines within a batch file.                                                            
  1136.                
  1137.                IF               IF
  1138.                        Several new comparison tests, and ignores case in
  1139.                        the string tests.
  1140.                
  1141.                INPUT / INKEY               INPUT / INKEY
  1142.                        Input variables from the keyboard while in a batch
  1143.                        file.
  1144.                
  1145.                KEYSTACK               KEYSTACK
  1146.                        Send keystrokes to a program, as if entered from the
  1147.                        keyboard.
  1148.                
  1149.                QUIT               QUIT
  1150.                        Exit the current batch file.
  1151.                
  1152.                SCREEN               SCREEN
  1153.                        Position the cursor and (optionally) display some                                                                        
  1154.                        text.
  1155.                
  1156.                SETLOCAL / ENDLOCAL               SETLOCAL / ENDLOCAL
  1157.                        Define a local environment within a batch file,
  1158.                        saving the original environment, disk, and directory,
  1159.                        and restoring them when finished.
  1160.                
  1161.                SHIFT               SHIFT
  1162.                        Optionally specify how many positions to shift,
  1163.                        including reverse SHIFTs.
  1164.                
  1165.                TEXT / ENDTEXT               TEXT / ENDTEXT
  1166.                        Display a block of text.                                               
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.                    4DOS Reference Manual                   7
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.         Installation        Installation
  1180.         
  1181.              4DOS is written for the IBM PC, PC/XT, PC/AT, PS/2 (all
  1182.              models), and compatibles.  It requires MS-DOS 2 or above (MS-
  1183.              DOS 3 or above is recommended), and uses a total of about 54K
  1184.              of memory (4K resident when using the swapping version of
  1185.              4DOS).
  1186.              
  1187.              The following files are included on your distribution disk:
  1188.         
  1189.              INSTALL.BAT*   The automatic installation batch file.               INSTALL.BAT
  1190.              
  1191.              4DOS.COM       The 4DOS shell loader for expanded memory (EMS)             4DOS.COM
  1192.                             or disk swapping.
  1193.              
  1194.              4DOS88.EXE     Replaces COMMAND.COM as your default MS-DOS             4DOS88.EXE                                                
  1195.                             command processor on any PC compatible
  1196.                             system.
  1197.              
  1198.              4DOS286.EXE*   A version of 4DOS for 80286 and 80386             4DOS286.EXE*                                        
  1199.                             processors.  4DOS286.EXE is smaller and
  1200.                             faster than 4DOS88.EXE.
  1201.              
  1202.              ANSI.SYS       Replaces the standard MS-DOS ANSI driver.             ANSI.SYS                                               
  1203.                             It includes more ANSI command sequences,
  1204.                             EGA/VGA support, and runs 20% to 50%
  1205.                             faster.
  1206.              
  1207.              KEYSTACK.SYS   This device driver provides the support for the             KEYSTACK.SYS                                                  
  1208.                             4DOS KEYSTACK command.
  1209.              
  1210.              HELP.EXE       This is the on-line help program for 4DOS.             HELP.EXE                                                
  1211.                             It provides help for all of the internal 4DOS
  1212.                             commands, and for the external MS-DOS
  1213.                             commands.
  1214.              
  1215.              DOS.HLP        The text file for HELP.EXE.             DOS.HLP                              
  1216.              
  1217.              FIXSTACK.EXE   A utility for fixing the "stack overflow"             FIXSTACK.EXE                                            
  1218.                             problems some programs experience when using
  1219.                             a large environment.
  1220.  
  1221.              FIXSTACK.DOC   Documentation file for FIXSTACK.EXE             FIXSTACK.DOC
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.                    4DOS Reference Manual                   8
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.              ALIASES.BAT    Sample predefined 4DOS aliases.             ALIASES.BAT                                   
  1241.              
  1242.              4D-PIF.DVP     DESQview 2.01 .PIF file for 4DOS.             4D-PIF.DVP                                      
  1243.              
  1244.              README.DOC     Last-minute revisions and bug reports.             README.DOC                                           
  1245.              
  1246.              
  1247.              * These files are included only with the registered version
  1248.              of 4DOS.
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.                    4DOS Reference Manual                   9
  1294.  
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.         Automatic Installation        Automatic Installation
  1301.              
  1302.              If you have a registered copy of 4DOS, insert the 4DOS System                                                               ___________
  1303.              Disk in drive A, and type:             ____                      
  1304.              
  1305.                a:install               a:install
  1306.              
  1307.              INSTALL will prompt you for your desired configuration, copy
  1308.              the necessary files to your boot disk, save your existing
  1309.              CONFIG.SYS file and create a modified version.  Reboot your
  1310.              system to start 4DOS.
  1311.              
  1312.              NOTE:  You may want to edit the new CONFIG.SYS if you have an
  1313.              unusual configuration, or if you want to modify the default
  1314.              values.
  1315.              
  1316.         Manual Installation        Manual Installation
  1317.              
  1318.              If you have an unregistered copy of 4DOS, or if you prefer to
  1319.              install 4DOS manually, you will need to copy 4DOS88.EXE (or
  1320.              4DOS286.EXE), 4DOS.COM, KEYSTACK.SYS, ANSI.SYS, DOS.HLP, and
  1321.              HELP.EXE to your boot disk.  If you prefer, you can use any
  1322.              compatible version of ANSI.SYS.
  1323.              
  1324.              The following commands should be included in your CONFIG.SYS
  1325.              file:
  1326.              
  1327.                device=ansi.sys               device=ansi.sys
  1328.                device=keystack.sys               device=keystack.sys
  1329.  
  1330.              There are two ways to load 4DOS.  The memory resident version
  1331.              requires about 55K, and is recommended for floppy disk systems
  1332.              without EMS memory, or those without serious memory
  1333.              constraints.  The swapping version can swap itself to and from
  1334.              EMS memory or disk when running an application, and requires
  1335.              less than 5K of DOS memory.
  1336.         
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349.  
  1350.  
  1351.  
  1352.  
  1353.                    4DOS Reference Manual                  10
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.         Manual Installation - Swapping        Manual Installation - Swapping
  1361.              
  1362.              To install the swapping version of 4DOS with MS-DOS Version 3
  1363.              or above, add the following line to your CONFIG.SYS file:
  1364.              
  1365.                shell=c:\4dos.com /S:E /p               shell=c:\4dos.com /S:E /p
  1366.              
  1367.              If you are using MS-DOS Version 2.x, add the following line to
  1368.              your CONFIG.SYS file:
  1369.              
  1370.                shell=c:\command.com /c c:\4dos /p               shell=c:\command.com /c c:\4dos /p
  1371.  
  1372.              If you are installing 4DOS onto a floppy disk, replace "C:"
  1373.              with "A:".
  1374.              
  1375.              4DOS.COM determines the processor type automatically, and
  1376.              loads 4DOS286 on 80286 or 80386 processors.  If 4DOS can't
  1377.              find 4DOS286, or if your processor is an 8086 or 8088, 4DOS
  1378.              loads 4DOS88.
  1379.              
  1380.              There are several startup options for 4DOS:
  1381.                     
  1382.                /I:nn     The interrupt number 4DOS uses to communicate with               /I:nn
  1383.                          4DOS88 (or 4DOS286); nn can be any number from 60                                              __                          
  1384.                          to 66 (hex).  The default is the first available
  1385.                          interrupt starting at 60.
  1386.                
  1387.                /L:d:path Tells 4DOS where to find 4DOS88 (or 4DOS286).  The               /L:d:path                                                   
  1388.                          default is the root directory on the boot drive.
  1389.                
  1390.                /S:E      Swap to EMS memory (default).               /S:E                                           
  1391.                
  1392.                /S:D      Swap to disk (creates a swap file called               /S:D                                                      
  1393.                          4DOSSWAP.@@@ in the root directory of the boot
  1394.                          drive).
  1395.              
  1396.              If 4DOS attempts a swap to EMS, and the EMS driver is not
  1397.              present or sufficient EMS memory cannot be allocated, 4DOS
  1398.              will use disk swapping.  If 4DOS can't create the swap file,
  1399.              it will load 4DOS88 (or 4DOS286) with swapping disabled.  4DOS
  1400.              will display the interrupt and type of swapping being used.
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.                    4DOS Reference Manual                  11
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.         Manual Installation - Memory Resident        Manual Installation - Memory Resident
  1420.              
  1421.              To install the memory resident version with MS-DOS Version 3
  1422.              or above, copy 4DOS88.EXE (or 4DOS286.EXE) to your boot disk,
  1423.              and add the following line to your CONFIG.SYS file for 8086 or
  1424.              8088 based machines:
  1425.              
  1426.                shell=c:\4dos88.exe /p               shell=c:\4dos88.exe /p
  1427.              
  1428.              or for 80286 or 80386 based machines:
  1429.  
  1430.                shell=c:\4dos286.exe /p               shell=c:\4dos286.exe /p
  1431.              
  1432.              If you are using MS-DOS Version 2.x, add the following line to
  1433.              your CONFIG.SYS file:
  1434.              
  1435.                shell=c:\command.com /c c:\4dos88 /p               shell=c:\command.com /c c:\4dos88 /p
  1436.  
  1437.              or for 80286 or 80386 based machines:
  1438.  
  1439.                shell=c:\command.com /c c:\4dos286 /p               shell=c:\command.com /c c:\4dos286 /p
  1440.  
  1441.  
  1442.         Configuring 4DOS        Configuring 4DOS
  1443.              
  1444.              There are four startup options for 4DOS (these options should
  1445.              follow 4DOS.EXE  on the "shell=" line in CONFIG.SYS):
  1446.              
  1447.                /H=n    Set the history size, where n is the size of the               /H=n                                                                                                       _                   
  1448.                          history list.  (The default value is 1024
  1449.                          characters, the range is 512-8192 characters.)
  1450.                
  1451.                /E=n    Set the environment size, where n is the size of the               /E=n                                                                                                               _                   
  1452.                          environment.  (The default value is 1024
  1453.                          characters, the range is 512-32000 characters.)
  1454.                
  1455.                /P      Load 4DOS permanently, and run AUTOEXEC.BAT.               /P                                             
  1456.                          4DOS will NOT run AUTOEXEC.BAT without a /P.
  1457.                
  1458.                /C cmd  Load a transient copy of 4DOS, and execute cmd.               /C cmd                                                                                                                   ___
  1459.                          4DOS will not attempt to process any startup
  1460.                          options after a /C.
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.                    4DOS Reference Manual                  12
  1474.  
  1475.  
  1476.  
  1477.  
  1478.  
  1479.  
  1480.         Using 4DOS with DESQview        Using 4DOS with DESQview
  1481.         
  1482.              We have included a .PIF file (4D-PIF.DVP) for using 4DOS with
  1483.              Quarterdeck's DESQview multitasking and windowing system.
  1484.              This file was created under DESQview Version 2.01.  You will
  1485.              have to use the Add a Program option to add 4DOS to your                             _____________                           
  1486.              DESQview Open Window menu.  To do this, select the Add a
  1487.              Program option, then press the "O" key (for Other Program) and                                                         _____________     
  1488.              fill in the drive and directory where 4DOS is located in the
  1489.              space for "Path."  Press ENTER, mark 4DOS using the space bar,
  1490.              and press ENTER again.  For more details, see pages 60 - 61 of
  1491.              the DESQview Version 2.01 manual.
  1492.              
  1493.              You must use DESQview's Change a Program option before opening                                     ________________                      
  1494.              a 4DOS window, to set the proper program name, parameters, and
  1495.              startup directory.  The field values in the .PIF file should
  1496.              be considered as examples only.  You may also need to adjust
  1497.              the memory size allocated to 4DOS, depending on what you want
  1498.              to do in the 4DOS window.  The 4D-PIF.DVP file invokes a
  1499.              startup batch file, DVSTART.  The commands in this file will
  1500.              be executed each time a 4DOS window is opened.
  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.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.                    4DOS Reference Manual                  13
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.         Compatibility Notes        Compatibility Notes
  1541.         
  1542.              We have tested 4DOS extensively in a variety of environments,
  1543.              including 8088, 8086, V20, V30, 80286, and 80386 processors;
  1544.              as a replacement for COMMAND.COM and as a shell run under
  1545.              COMMAND.COM; in the MS-DOS compatibility box of OS/2; and on
  1546.              networks.  If you find what appears to be a compatibility
  1547.              problem with 4DOS, please contact us.  We will do our best to
  1548.              fix it, or if necessary we will refund your registration fee.
  1549.              
  1550.              There is an incompatibility between 4DOS and versions 2.5 or
  1551.              earlier of the programs MARK, FMARK, and RELEASE, which are
  1552.              part of the shareware package TSRCOM.ARC from TurboPower
  1553.              Software.  The problem has been fixed in Version 2.6 of
  1554.              TSRCOM, included with your registered copy of 4DOS.
  1555.              
  1556.              4DOS stores both aliases and environment variables in the
  1557.              environment.  If you have a large environment (> 1K), this can
  1558.              cause stack problems with some programs.   Many compilers
  1559.              (such as Microsoft C) save the environment in the stack when
  1560.              the program starts.  The default program stack size is usually
  1561.              2K; when combined with a large user environment (see the /E
  1562.              startup option in INSTALLATION), this will generate a "Stack
  1563.              Overflow" error message.  We have included a program
  1564.              (FIXSTACK.EXE) to patch these programs.  We recommend
  1565.              increasing the default program stack size by at least the size
  1566.              of the environment.
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.                    4DOS Reference Manual                  14
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.         Using 4DOS        Using 4DOS
  1601.         
  1602.              This section briefly reviews 4DOS features, and provides some
  1603.              examples of how 4DOS can help improve your productivity, and
  1604.              make your computer easier to use.  It only covers a few of the
  1605.              many ways 4DOS can be used, but it should help you start
  1606.              thinking about the possibilities.
  1607.              
  1608.         Starting 4DOS        Starting 4DOS
  1609.              
  1610.              Whenever 4DOS is loaded, it searches the boot directory for
  1611.              the file 4START.BAT, and executes it if found.  If 4DOS is
  1612.              started with the /P option, it will then execute AUTOEXEC.BAT.
  1613.              
  1614.              Because 4START.BAT is always executed at startup, it provides
  1615.              a convenient place to put the 4DOS configuration commands (for
  1616.              example, SETDOS parameters) that would otherwise not be set
  1617.              when executing a secondary copy of 4DOS.  (For example, from a
  1618.              program shelling to MS-DOS.)  (See the Command Reference Guide
  1619.              for more information on SETDOS.)
  1620.              
  1621.              When setting up 4START.BAT and AUTOEXEC.BAT, we recommend you
  1622.              break up the work to be done into smaller batch files.  In
  1623.              particular, if you put the path, aliases, and environment
  1624.              variables into separate batch files and use CALL to invoke
  1625.              them, you can edit and reinvoke them later without having to
  1626.              reboot the system.
  1627.              
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.                    4DOS Reference Manual                  15
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.         Command Line Editing        Command Line Editing
  1661.         
  1662.              4DOS provides a 255 character command line, with full editing
  1663.              capability.  The following keys have special meanings (the
  1664.              caret ^ means press the Control key together with with the                   ^                                                   
  1665.              specified key):  
  1666.              
  1667.              Left Arrow     Move the cursor left one character.             Left Arrow                                        
  1668.              Right Arrow    Move the cursor right one character.             Right Arrow                                        
  1669.              Up Arrow       Recall the previous command from the history             Up Arrow                                                   
  1670.                              list, or match a partial command entry with a
  1671.                              history list entry (see Command History and
  1672.                              Recall).
  1673.              Down Arrow     Recall the next command from the history list,             Down Arrow                                                   
  1674.                              or match a partial command entry with a
  1675.                              history list entry (see Command History and
  1676.                              Recall).
  1677.              ^Left Arrow    Move the cursor left one word.             ^Left Arrow                                  
  1678.              ^Right Arrow   Move the cursor right one word.             ^Right Arrow                                  
  1679.              Home           Move the cursor to the beginning of the line.             Home                                                        
  1680.              ^Home          Delete from the beginning of the line to the             ^Home                                                      
  1681.                              character preceding the cursor.
  1682.              End            Move the cursor to the end of the line.             End                                                   
  1683.              ^End           Delete from the cursor to the end of the line.             ^End                                                         
  1684.              Ins            Toggle between insert and overstrike mode.             Ins                                                      
  1685.              Del            Delete the character at the cursor.             Del                                               
  1686.              Backspace      Delete the character to the left of the cursor.             Backspace                                                     
  1687.              CR or LF       Execute the command.             CR    LF                           
  1688.              Esc            Erase the entire line.             Esc                                  
  1689.              ^C             Abort the command.             ^C                               
  1690.              ^K             Save the command to the history list without             ^K                                                         
  1691.                              executing it, and erase the line.
  1692.              F1             Call the on-line help (HELP.EXE).             F1                                              
  1693.              F9 and F10     Scan the filename (which may include the MS-DOS             F9     F10                                                    
  1694.                              wildcard characters * and ?) at or immediately
  1695.                              to the left of the cursor position, and
  1696.                              replace it with the first matching filename.
  1697.                              Press F9 again to replace it with the next
  1698.                              matching filename.   Press F10 to append the
  1699.                              next matching filename at the current cursor
  1700.                              position.  If you don't enter a filename, F9
  1701.                              will default to *.*.  If you don't enter an                                             *.*                        
  1702.                              extension, F9 will append a .*.                                                         .* 
  1703.              
  1704.              Anything else  Enter that character at the cursor position.
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.                    4DOS Reference Manual                  16
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.         Command History and Recall        Command History and Recall
  1721.              
  1722.              4DOS saves each command into a command history list as it is
  1723.              entered, allowing you to display, recall, search, and modify
  1724.              previous commands.
  1725.              
  1726.              The history list size is determined by the /H parameter at
  1727.              startup time (see INSTALLATION).  The history is a circular
  1728.              list; when the history list is full, 4DOS discards the oldest
  1729.              command before adding the newest.
  1730.              
  1731.              The command history can be displayed or cleared with the
  1732.              HISTORY command.  The /H option in SETDOS allows you to enable
  1733.              or disable the history saves, and to specify a minimum length
  1734.              to save.  (See the Command Reference Guide for more
  1735.              information on HISTORY and SETDOS.)
  1736.              
  1737.              The simplest use of the command history is to repeat commands
  1738.              exactly.  For example, you might enter the command:
  1739.              
  1740.                dir /2p b:*.wks b:*.doc               dir /2p b:*.wks b:*.doc
  1741.              
  1742.              and then you move some files to or from the B drive.  When
  1743.              you're through, you want to repeat the DIR command.  Just use
  1744.              the up-arrow to scan back through the history list; when the
  1745.              DIR command appears, press ENTER to reexecute it.
  1746.              
  1747.              After you've found the command, you can also edit it before
  1748.              pressing ENTER.  This provides a simple means of executing a
  1749.              series of commands that differ only slightly from each other.
  1750.              
  1751.              Another powerful feature is command completion, which searches                                         __________________                
  1752.              the command history for the last command that begins with the
  1753.              characters you entered.  In the above example, you can quickly
  1754.              recall the DIR command by typing DI, and pressing the up
  1755.              arrow.  4DOS will display the most recent command in the
  1756.              history list that begins with DI.  Pressing the up arrow again
  1757.              will display the next most recent match.  Typing DI and
  1758.              pressing the down arrow key instead would search for the
  1759.              oldest matching command in the history list.  4DOS will beep
  1760.              if there are no matching commands.
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.                    4DOS Reference Manual                  17
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.              4DOS also provides filename completion.  For example, suppose                                ___________________                       
  1781.              you want to copy a file.  You remember that the name starts
  1782.              with AU, but you can't remember the rest.  Enter:                  __                                          
  1783.              
  1784.                copy au*               copy au*
  1785.              
  1786.              and press the F9 key.  The first filename that starts with AU                                                                        __
  1787.              will be inserted in the command line.  If it's the right file,
  1788.              simply complete your command.  If it's not, press F9 again to
  1789.              substitute the next matching filename.  The F10 key saves the
  1790.              current filename, and then appends the next matching filename
  1791.              to the command line.  4DOS will beep when there are no more
  1792.              matching filenames.
  1793.              
  1794.         Multiple Commands        Multiple Commands
  1795.         
  1796.              You may enter multiple commands on a single line.  The default
  1797.              command separator is a caret (^).  For example, the following
  1798.              command displays a directory and then copies files to the root
  1799.              directory on drive A:
  1800.              
  1801.                dir *.bat ^ copy *.bat a:\               dir *.bat ^ copy *.bat a:\
  1802.              
  1803.              The command separator character can be changed by setting the
  1804.              COMPOUND variable (see the SETDOS command in the Command
  1805.              Reference Guide).
  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.  
  1832.  
  1833.                    4DOS Reference Manual                  18
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.         Conditional Commands        Conditional Commands
  1841.         
  1842.              When an internal or external command finishes, it returns a
  1843.              result, called the exit code.  The conditional commands allow
  1844.              you to perform tasks based upon the previous command's exit
  1845.              code.  (See also the IF ERRORLEVEL command in the Command
  1846.              Reference Guide.)
  1847.                
  1848.              If two commands are separated by && (AND), the second command                                              &&                          
  1849.              will be executed only if the first returns an exit code of 0.
  1850.              
  1851.              If two commands are separated by || (OR), the second command                                              ||                         
  1852.              will be executed only if the first returns a non-zero exit
  1853.              code.
  1854.              
  1855.              NOTE:  All 4DOS internal commands set an exit code, but not
  1856.              all external programs do.  Conditional command behavior will
  1857.              be unpredictable for programs that don't explicitly return an
  1858.              exit code.
  1859.              
  1860.              For example, if the BACKUP operation fails, the files will not
  1861.              be erased:
  1862.              
  1863.                   backup c:\ a: /s && global erase *.bak *.lst                  backup c:\ a: /s && global erase *.bak *.lst
  1864.              
  1865.              If the BACKUP operation fails, then ECHO will display a
  1866.              message:
  1867.              
  1868.                   backup c:\ a: /s || echo Error in the backup!                  backup c:\ a: /s || echo Error in the backup!
  1869.              
  1870.         Escape Character        Escape Character
  1871.         
  1872.              4DOS has a user-definable escape character.  The default is
  1873.              ^X, but another character can be used by setting the ESCAPE             ^X                                                         
  1874.              variable (see the SETDOS command in the Command Reference
  1875.              Guide).   4DOS assumes special meanings when these characters
  1876.              follow the escape character on the command line:
  1877.              
  1878.                b  backspace               b           
  1879.                e  the ASCII ESC character (27 decimal)               e                                      
  1880.                f  formfeed               f          
  1881.                n  linefeed               n          
  1882.                r  carriage return               r                 
  1883.              
  1884.              Any other character preceded by the escape character is copied
  1885.              directly to the command line and the escape character is
  1886.              removed.  This allows you to suppress the normal
  1887.              interpretation of special characters (such as ?, *, /, \, |,
  1888.              `, >, <, and &).
  1889.              
  1890.         
  1891.  
  1892.  
  1893.                    4DOS Reference Manual                  19
  1894.  
  1895.  
  1896.  
  1897.  
  1898.  
  1899.  
  1900.         Command Echoing        Command Echoing
  1901.  
  1902.              Like COMMAND.COM, 4DOS defaults to ECHO ON in batch files.  To
  1903.              prevent a line from being echoed, preface it with the @
  1904.              symbol.  You can tell 4DOS to default to ECHO OFF by setting
  1905.              the variable VERBOSE to 0 (see the SETDOS command in the
  1906.              Command Reference Guide).
  1907.              
  1908.              4DOS also offers command echoing during keyboard input.  If
  1909.              ECHO is ON, the fully parsed and expanded command line
  1910.              (including alias and variable expansion) will be displayed
  1911.              before it is executed.
  1912.              
  1913.         Argument Quoting        Argument Quoting
  1914.         
  1915.              4DOS normally parses command line arguments by searching for
  1916.              white space (tabs, blanks, and commas).  Command line
  1917.              arguments enclosed in back quotes (`) or double quotes (") may                                                `                    "     
  1918.              contain white space.  No special processing (alias or variable
  1919.              expansion, and I/O redirection) will be performed on
  1920.              expressions enclosed in quotes, with the exception that
  1921.              variable expansion WILL be performed inside double quotes.
  1922.              
  1923.              4DOS will strip back quotes from the command line before
  1924.              executing the command.  Double quotes will be passed through
  1925.              to the command.
  1926.              
  1927.         Aliases        Aliases
  1928.         
  1929.              Much of the power of 4DOS comes together when using aliases.
  1930.              An alias is a new name for a command or combination of
  1931.              commands.  Aliases are defined with the ALIAS command, and
  1932.              removed with the UNALIAS command.  Aliases may be nested;
  1933.              i.e., an alias can refer to another alias, but they cannot
  1934.              refer back to themselves.  The alias name is limited to no
  1935.              more than 80 characters, and the alias argument to no more
  1936.              than 255 characters.  (See the Command Reference Guide for
  1937.              more information on ALIAS and UNALIAS.)
  1938.              
  1939.              Aliases are expanded before the command line is broken up for
  1940.              multiple commands, redirection, and conditional commands.
  1941.              
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.                    4DOS Reference Manual                  20
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.              The simplest type of alias is to give a new name to an
  1961.              existing command.  For example:
  1962.              
  1963.                alias up cd ..               alias up cd ..
  1964.              
  1965.              defines the alias UP to mean "change to the parent directory".                               __                                          
  1966.              Aliases can also create a customized version of a command.
  1967.              For example, the 4DOS DIR command allows a directory to be
  1968.              sorted in various ways.  The alias:
  1969.              
  1970.                alias de dir /oe /p               alias de dir /oe /p
  1971.              
  1972.              defines the alias DE to mean "sort the directory by extension,                               __                                          
  1973.              pausing after each page."
  1974.              
  1975.              Aliases can also be used to execute multiple commands; when
  1976.              used this way they act like very fast, in-memory batch files.
  1977.              For example, the alias:
  1978.              
  1979.                alias w `pushd c:\wp ^ wp %1^ popd`               alias w `pushd c:\wp ^ wp %1^ popd`
  1980.              
  1981.              defines the alias W to mean "save the current directory,                               _                                     
  1982.              change to the WP directory on C, run the WP program using the
  1983.              first argument on the command line as a filename, and when
  1984.              finished, restore the original directory."  The back quotes
  1985.              are required to tell 4DOS this is a single alias with three
  1986.              commands, rather than three commands on a single line (see
  1987.              Multiple Commands).
  1988.              
  1989.              Alias definitions can include replaceable parameters, like
  1990.              those in batch files.  Alias parameters are referenced as %1
  1991.              to %127, and expand to the matching command line argument.
  1992.              The parameter %& is a special case, and expands to the
  1993.              remainder of the command line following the alias name.  If an
  1994.              alias includes replaceable parameters, unreferenced command
  1995.              line arguments and parameters with no matching command line
  1996.              argument will be deleted during alias expansion.  If an alias
  1997.              has no replaceable parameters, the command line arguments will
  1998.              be appended to the alias.
  1999.              
  2000.              The distribution disk includes a sample batch file
  2001.              (ALIASES.BAT) which demonstrates a number of useful predefined
  2002.              aliases.
  2003.              
  2004.              See the ALIAS command in the Command Reference Guide for more
  2005.              information on aliases.
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.                    4DOS Reference Manual                  21
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.         Keystack        Keystack
  2021.         
  2022.              The KEYSTACK command can be used in aliases and batch files to
  2023.              feed keystrokes to application programs.  The most common use
  2024.              of KEYSTACK is to have a program take certain actions when it
  2025.              starts.  For example, when the alias (this should be entered
  2026.              on one line):
  2027.              
  2028.                alias 321 `keystack 0 13 0 13 0 13 0 13 0 13 "/fr" 0 "%1"               alias 321 `keystack 0 13 0 13 0 13 0 13 0 13 "/fr" 0 "%1"
  2029.                   13 ^ 123`                  13 ^ 123`
  2030.              
  2031.              is executed as:
  2032.              
  2033.                321 February               321 February
  2034.              
  2035.              it loads Lotus 1-2-3, skips the startup screens, and loads the
  2036.              spreadsheet FEBRUARY.WK1.                         ____________
  2037.              
  2038.              KEYSTACK can store up to 255 characters; enough keystrokes to
  2039.              cause a program to do an entire operation and exit.  For
  2040.              example, the following alias DRPT will run a dBASE report                                          ____
  2041.              called TIMEREP in the directory DATA (this should be entered                    _______                  ____
  2042.              on one line):
  2043.              
  2044.                alias drpt `pushd c:\data ^ keystack "use times index times"
  2045.                   13 "report form timerep to print" 13 "quit" 13 ^ dbase ^
  2046.                   popd`
  2047.              
  2048.              See the Command Reference Guide for more information on
  2049.              KEYSTACK.
  2050.              
  2051.              KEYSTACK.SYS is a small device driver invoked in your
  2052.              CONFIG.SYS file (see INSTALLATION) and used to support the
  2053.              KEYSTACK command.  You must have KEYSTACK.SYS installed to use
  2054.              the KEYSTACK command.
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.                    4DOS Reference Manual                  22
  2074.  
  2075.  
  2076.  
  2077.  
  2078.  
  2079.  
  2080.         Environment Variables        Environment Variables
  2081.         
  2082.              Environment variables are defined with the SET command.  (See
  2083.              the Command Reference Guide for more information on SET.)
  2084.              
  2085.              Environment variables are expanded before the command line is
  2086.              broken up for multiple commands, redirection, and conditional
  2087.              commands, but after alias expansion has been done.
  2088.              
  2089.              Variables are referenced in a command by prefacing the
  2090.              variable name with a percent sign (%).  Two percent signs in a
  2091.              row (%%) signify a percent sign character.  To pass a variable
  2092.              name (instead of the value) to a command (for example, FOR or
  2093.              INPUT), you must precede it with two percent signs.
  2094.              
  2095.              Environment variable names may be composed of any alphanumeric
  2096.              character, plus the underscore character (_).
  2097.              
  2098.              For example:
  2099.              
  2100.                c:\> set start=c:\wordproc\myfiles\memos                    set start=c:\wordproc\myfiles\memos
  2101.                c:\> dir /w %start                    dir /w %start
  2102.              
  2103.                Directory of c:\wordproc\myfiles\memos\*.*
  2104.              
  2105.                memo1105.txt boardmtg.txt
  2106.              
  2107.                       49,134 bytes in 2 files
  2108.                    3,653,632 bytes free
  2109.                
  2110.              
  2111.              There are some variable names that have special meanings in
  2112.              4DOS:
  2113.              
  2114.                PATH tells 4DOS where to search for executable files (.COM,               PATH                                                                                                                            ____ 
  2115.                     .EXE and .BAT) not in the current directory.  Some                    ____     ____                                     
  2116.                     applications also use the PATH variable to find their
  2117.                     files.
  2118.                
  2119.                CMDLINE is the fully expanded 255-character command line.               CMDLINE                                                  
  2120.                     You can access it from an external program by searching
  2121.                     the environment.
  2122.                
  2123.                DOSVER is the current MS-DOS version (for example, 3.1).               DOSVER                                                  
  2124.                
  2125.                DISK is the current disk (for example, C).               DISK                                      
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.                    4DOS Reference Manual                  23
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.                CWD is the current directory in the format d:\pathname               CWD                                                                                                             ___________
  2141.                
  2142.                CWDS has the same value as CWD, except it ensures the               CWDS                       CWD                       
  2143.                     pathname ends in a backslash (\).
  2144.                
  2145.                DATE contains the current system date, in the format mm-dd-               DATE                                                                                                                           ______
  2146.                     yy (for the U.S.), dd-mm-yy (Europe), or yy-mm-dd                    __                 ________              ________
  2147.                     (Japan).
  2148.                
  2149.                TIME contains the current system time in the format               TIME                                               
  2150.                     hh:mm:ss.                    ________ 
  2151.  
  2152.  
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.  
  2192.  
  2193.                    4DOS Reference Manual                  24
  2194.  
  2195.  
  2196.  
  2197.  
  2198.  
  2199.  
  2200.         I/O Redirection        I/O Redirection
  2201.         
  2202.              MS-DOS assumes input comes from the keyboard and output goes
  2203.              to the display.  The keyboard is referred to as the standard
  2204.              input, and the display is referred to as the standard output.
  2205.              You can change the default standard input and standard output
  2206.              by using the < and > symbols on the command line.  4DOS also                          <     >                                        
  2207.              allows you to redirect the standard error by appending the &                                                                        &
  2208.              character.
  2209.              
  2210.              Normally, when redirecting standard output, if the specified
  2211.              file doesn't exist, it is created; if it exists, it is
  2212.              overwritten, and the previous contents are lost.  If the
  2213.              variable NOCLOBBER is set (see the SETDOS command in the
  2214.              Command Reference Guide), an error message will be displayed
  2215.              if the file already exists.
  2216.              
  2217.               For example, to get standard input from a file instead of the
  2218.              keyboard, append:
  2219.                   
  2220.                < filename               < filename
  2221.              
  2222.              to the command line.  To redirect standard output to a file:
  2223.              
  2224.                > filename               > filename
  2225.                
  2226.              To redirect standard output to a file, overriding the
  2227.              NOCLOBBER setting:
  2228.              
  2229.                >! filename               >! filename
  2230.              
  2231.              To redirect standard output and standard error to a file:
  2232.              
  2233.                >& filename               >& filename
  2234.              
  2235.              To redirect standard output and standard error to a file,
  2236.              overriding the NOCLOBBER setting:
  2237.              
  2238.                >&! filename               >&! filename
  2239.              
  2240.              To append standard output to a file, use >> in place of >.  If                                                      >>             >     
  2241.              NOCLOBBER is set, the file must exist before it can be
  2242.              appended to (unless overridden by a !).  Otherwise, 4DOS will                                                 !                        
  2243.              create the file.
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253.                    4DOS Reference Manual                  25
  2254.  
  2255.  
  2256.  
  2257.  
  2258.  
  2259.  
  2260.              Pipes allow you to send the output of one command to the input
  2261.              of another command, by separating the commands with the
  2262.              vertical bar (|).  4DOS will perform the commands in order                           |                                           
  2263.              from left to right.
  2264.              
  2265.              For example, to use the standard output of command1 as the                                                        ________       
  2266.              standard input of command2:                               ________ 
  2267.              
  2268.                command1 | command2               command1 | command2
  2269.              
  2270.              To use the standard output and standard error of command1 as                                                              ________   
  2271.              the standard input of command2:                                   ________ 
  2272.              
  2273.                command1 |& command2               command1 |& command2
  2274.              
  2275.              4DOS also provides TEE and Y "pipe fittings" (see the Command
  2276.              Reference Guide for more information on TEE and Y).
  2277.  
  2278.  
  2279.  
  2280.  
  2281.  
  2282.  
  2283.  
  2284.  
  2285.  
  2286.  
  2287.  
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.                    4DOS Reference Manual                  26
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320.  
  2321.         Command Reference Guide        Command Reference Guide
  2322.         
  2323.              4DOS has more than 60 internal commands.  Some are the same
  2324.              as, or improvements of, those in COMMAND.COM.  The remainder
  2325.              are new commands.
  2326.              
  2327.              These commands are equivalent to those in COMMAND.COM:
  2328.         
  2329.                BREAK          CD             CHCP           CHDIR
  2330.                CLS            DATE           EXIT           FOR
  2331.                GOTO           TIME           VER            VERIFY
  2332.                
  2333.              These commands are enhanced:
  2334.              
  2335.                COPY           DEL            DIR            ERASE
  2336.                ECHO           ERASE          MD             MKDIR
  2337.                PATH           PAUSE          PROMPT         RD
  2338.                REM            REN            RENAME         RMDIR
  2339.                SET            SHIFT          TYPE           VOL
  2340.                
  2341.              These commands are new:
  2342.              
  2343.                ?              ALIAS          ATTRIB         BEEP
  2344.                CALL           CANCEL         CDD            DESCRIBE
  2345.                DIRS           ENDLOCAL       ESET           EXCEPT
  2346.                FREE           GLOBAL         GOSUB          HISTORY
  2347.                INKEY          INPUT          KEYSTACK       LIST
  2348.                MEMORY         MOVE           POPD           PUSHD
  2349.                QUIT           RETURN         SCREEN         SELECT
  2350.                SETDOS         SETLOCAL       TEE            TEXT
  2351.                TIMER          UNALIAS        Y
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.  
  2360.  
  2361.  
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373.                    4DOS Reference Manual                  27
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.         Command Syntax        Command Syntax
  2381.         
  2382.              Words in uppercase are keywords and must be entered.  Words in
  2383.              lowercase are variables.
  2384.              
  2385.              The expression d: represents a disk drive specification.                            d:                            __
  2386.              (This can be A:, B:, C:, etc.).
  2387.              
  2388.              Words or letters in brackets ([ ]) are optional and are not
  2389.              required to be entered.
  2390.              
  2391.              A vertical bar (|) separating words means enter one word or
  2392.              the other, but not both.
  2393.              
  2394.              A letter preceded by a / is a switch.  Switches are used to
  2395.              enable or disable the various command options.
  2396.              
  2397.              An ellipsis (...) means additional arguments are allowed, but
  2398.              not required.
  2399.              
  2400.              In the examples in the printed manual, characters in bold type                                                                  bold
  2401.              represent input from the user.  Characters in normal type
  2402.              represent 4DOS prompts or responses.
  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.                    4DOS Reference Manual                  28
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.         ?        ?
  2441.         
  2442.         Syntax:      ?                     ?
  2443.         
  2444.         Purpose:     Display the 4DOS commands.
  2445.         
  2446.         Comments:    ? will display the 4DOS internal commands.  For help
  2447.                      with the internal 4DOS and external DOS commands, use
  2448.                      the HELP command.
  2449.         
  2450.         Example:     Display the internal commands:
  2451.         
  2452.                      c:\> ?                          ?
  2453.                      ?           ALIAS        ATTRIB      BEEP
  2454.                      BREAK       CALL         CANCEL      CD
  2455.                      CDD         CHCP         CHDIR       CLS
  2456.                      COPY        DATE         DEL         DESCRIBE
  2457.                      DIR         DIRS         ECHO        ENDLOCAL
  2458.                      ERASE       ESET         EXCEPT      EXIT         
  2459.                      FOR         FREE         GLOBAL      GOSUB
  2460.                      GOTO        HISTORY      IF          INKEY
  2461.                      INPUT       KEYSTACK     LIST        MD
  2462.                      MEMORY      MKDIR        MOVE        PATH
  2463.                      PAUSE       POPD         PROMPT      PUSHD
  2464.                      QUIT        RD           REM         REN
  2465.                      RENAME      RETURN       RMDIR       SCREEN
  2466.                      SELECT      SET          SETDOS      SETLOCAL
  2467.                      SHIFT       TEE          TEXT        TIME
  2468.                      TIMER       TYPE         UNALIAS     VER
  2469.                      VERIFY      VOL          Y
  2470.  
  2471.  
  2472.  
  2473.  
  2474.  
  2475.  
  2476.  
  2477.  
  2478.  
  2479.  
  2480.  
  2481.  
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487.  
  2488.  
  2489.  
  2490.  
  2491.  
  2492.  
  2493.                    4DOS Reference Manual                  29
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.         ALIAS        ALIAS
  2501.         
  2502.         Syntax:      ALIAS [arg1 arg2]                     ALIAS [arg1 arg2]
  2503.         
  2504.         Purpose:     Display the alias list, or define arg1 as a                                                       ____
  2505.                      substitute for arg2.                                    ____
  2506.         
  2507.         Comments:    If you don't specify any arguments, ALIAS displays
  2508.                      the current alias list.  If you only specify arg1,                                                                  ____ 
  2509.                      ALIAS displays the current alias value for arg1.                                                                ____ 
  2510.                      Otherwise, ALIAS assigns the command(s) in arg2 to                                                                ____   
  2511.                      arg1.  Arg1 can now be used as if it were a built-in or                     ____   ____                                          
  2512.                      external command.  Aliases may be nested; i.e., an
  2513.                      alias can refer to another alias, but they cannot refer
  2514.                      back to themselves (a=b=a).
  2515.         
  2516.                      The alias name is limited to no more than 80
  2517.                      characters, and the alias argument to no more than 255
  2518.                      characters.
  2519.         
  2520.                      Arg2 may contain environment variables or additional                     ____                                            
  2521.                      aliases.
  2522.         
  2523.                      Alias definitions can include replaceable
  2524.                      parameters, like those in batch files.  Alias
  2525.                      parameters are referenced as %1 to %127, and expand to
  2526.                      the matching command line argument.  The parameter %&
  2527.                      expands to the remainder of the command line following
  2528.                      the alias name.  If an alias includes replaceable
  2529.                      parameters, unreferenced command line arguments and
  2530.                      parameters with no matching command line argument will
  2531.                      be deleted during alias expansion.  If an alias has no
  2532.                      replaceable parameters, the command line arguments will
  2533.                      be appended to the alias.
  2534.         
  2535.                      Aliases are useful as a means of executing a complex
  2536.                      series of commands with a few keystrokes.  Aliases can
  2537.                      also be used as in memory batch files, and will run
  2538.                      much faster than disk-based batch files.
  2539.         
  2540.                      To remove an alias, use the UNALIAS command.
  2541.         
  2542.         Example:     Define D as an alias for DIR /AP:                            _                 _______ 
  2543.         
  2544.                        c:\> alias d dir /ap                            alias d dir /ap
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.                    4DOS Reference Manual                  30
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.                      Display the current alias(es):
  2561.         
  2562.                        c:\> alias                            alias
  2563.                        d=dir /AP
  2564.         
  2565.                      The following example creates a new command WHEREIS                                                                 _______
  2566.                      that searches a disk for matching files and
  2567.                      subdirectories:
  2568.         
  2569.                        c:\> alias whereis dir /dp                            alias whereis dir /dp
  2570.         
  2571.                      The following example is an "in-memory batch file"
  2572.                      that erases the backup files, and then displays the
  2573.                      directory (the back-quotes are necessary to prevent
  2574.                      4DOS from processing the command separator ^):
  2575.         
  2576.                        c:\> alias zap `del *.bak ^ dir /w`                            alias zap `del *.bak ^ dir /w`
  2577.         
  2578.                      The following examples show the use of alias
  2579.                      arguments:
  2580.         
  2581.                        c:\> alias zap `erase %& ^ chkdsk ^ dir /w`                            alias zap `erase %& ^ chkdsk ^ dir /w`
  2582.                        c:\> zap *.bak *.lst                            zap *.bak *.lst
  2583.         
  2584.                        This expands to:                                       
  2585.         
  2586.                           erase *.bak *.lst ^ chkdsk ^ dir /w
  2587.         
  2588.                        c:\> alias reverse `echo %5 %4 %3 %2 %1`                            alias reverse `echo %5 %4 %3 %2 %1`
  2589.                        c:\> reverse one two three four five                            reverse one two three four five
  2590.         
  2591.                        This expands to:                                       
  2592.         
  2593.                           echo five four three two one
  2594.  
  2595.  
  2596.  
  2597.  
  2598.  
  2599.  
  2600.  
  2601.  
  2602.  
  2603.  
  2604.  
  2605.  
  2606.  
  2607.  
  2608.  
  2609.  
  2610.  
  2611.  
  2612.  
  2613.                    4DOS Reference Manual                  31
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619.  
  2620.         ATTRIB        ATTRIB
  2621.         
  2622.         Syntax:      ATTRIB [-|+[AHRS]] [d:][path]filename...                     ATTRIB [-|+[AHRS]] [d:][path]filename...
  2623.         
  2624.         Purpose:     Change the file attributes.
  2625.         
  2626.         Comments:    +A   Set the archive attribute
  2627.                      -A   Clear the archive attribute
  2628.                      +H   Set the hidden attribute
  2629.                      -H   Clear the hidden attribute
  2630.                      +R   Set the read-only attribute (write-protected)
  2631.                      -R   Clear the read-only attribute
  2632.                      +S   Set the system file attribute
  2633.                      -S   Clear the system file attribute
  2634.         
  2635.                      New attribute values are allowed between file names;
  2636.                      otherwise the file is set to the same attributes as
  2637.                      defined for the previous file(s).  You cannot modify
  2638.                      the directory or volume label attributes.
  2639.         
  2640.                      You can display the file attributes using the /A
  2641.                      option in DIR.
  2642.         
  2643.         Example:     Change the file MEMO to read-only and hidden:                                     ____                       
  2644.         
  2645.                        c:\> attrib +rh memo                            attrib +rh memo
  2646.         
  2647.                      Set the archive attribute (file has been modified)
  2648.                      for MEMO, and change TEST.COM to system and not                         ____             ________                  
  2649.                      modified:
  2650.         
  2651.                        c:\> attrib +a memo +s -a test.com                            attrib +a memo +s -a test.com
  2652.  
  2653.  
  2654.  
  2655.  
  2656.  
  2657.  
  2658.  
  2659.  
  2660.  
  2661.  
  2662.  
  2663.  
  2664.  
  2665.  
  2666.  
  2667.  
  2668.  
  2669.  
  2670.  
  2671.  
  2672.  
  2673.                    4DOS Reference Manual                  32
  2674.  
  2675.  
  2676.  
  2677.  
  2678.  
  2679.  
  2680.         BEEP        BEEP
  2681.         
  2682.         Syntax:      BEEP                     BEEP
  2683.         
  2684.         Purpose:     Beep the speaker.
  2685.         
  2686.         Comments:    BEEP is normally used in batch files to signal that
  2687.                      an operation has been completed, or that the computer
  2688.                      needs attention (for example, to change disks).
  2689.         
  2690.         Example:     The following batch file fragment runs the program
  2691.                      DEMO, beeps, and waits for you to press a key:                     ____                                        
  2692.         
  2693.                        demo
  2694.                        beep
  2695.                        pause Finished with the demo - hit a key...
  2696.  
  2697.  
  2698.  
  2699.  
  2700.  
  2701.  
  2702.  
  2703.  
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.  
  2711.  
  2712.  
  2713.  
  2714.  
  2715.  
  2716.  
  2717.  
  2718.  
  2719.  
  2720.  
  2721.  
  2722.  
  2723.  
  2724.  
  2725.  
  2726.  
  2727.  
  2728.  
  2729.  
  2730.  
  2731.  
  2732.  
  2733.                    4DOS Reference Manual                  33
  2734.  
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740.         BREAK        BREAK
  2741.         
  2742.         Syntax:      BREAK [on | off]                     BREAK [on | off]
  2743.         
  2744.         Purpose:     Display, enable, or disable ^C / ^BREAK checking.
  2745.         
  2746.         Comments:    BREAK turns the ^C / ^BREAK checking on or off.  If
  2747.                      no argument is given, it displays the current BREAK
  2748.                      status.
  2749.         
  2750.                      If BREAK is off, MS-DOS will only check for a ^C
  2751.                      during screen, keyboard, serial port, or printer I/O
  2752.                      operations.  Many programs don't use the MS-DOS
  2753.                      functions to access the screen and keyboard, and it can
  2754.                      be difficult to break out of them with BREAK off.  If
  2755.                      BREAK is on, MS-DOS will check for a ^C or ^BREAK
  2756.                      during any MS-DOS operation (including disk access).
  2757.         
  2758.                      BREAK defaults to OFF.  You can change the default
  2759.                      BREAK setting by adding the following line to your
  2760.                      CONFIG.SYS file:
  2761.         
  2762.                        BREAK=ON                       BREAK=ON
  2763.         
  2764.         Example:     Check the current BREAK status:
  2765.         
  2766.                        c:\> break                            break
  2767.                        BREAK is OFF
  2768.         
  2769.                      Enable ^C checking in all MS-DOS calls:
  2770.         
  2771.                        c:\> break on                            break on
  2772.  
  2773.  
  2774.  
  2775.  
  2776.  
  2777.  
  2778.  
  2779.  
  2780.  
  2781.  
  2782.  
  2783.  
  2784.  
  2785.  
  2786.  
  2787.  
  2788.  
  2789.  
  2790.  
  2791.  
  2792.  
  2793.                    4DOS Reference Manual                  34
  2794.  
  2795.  
  2796.  
  2797.  
  2798.  
  2799.  
  2800.         CALL        CALL
  2801.         
  2802.         Syntax:      CALL [d:][path]filename                     CALL [d:][path]filename
  2803.         
  2804.         Purpose:     Call a secondary batch file.
  2805.         
  2806.         Comments:    CALL allows batch files to call other batch files
  2807.                      (batch file nesting) without invoking a secondary copy
  2808.                      of the command processor.  4DOS supports batch file
  2809.                      nesting up to 5 levels deep.  The calling batch file is
  2810.                      suspended while the called batch file runs.  When the
  2811.                      called batch file finishes, the calling batch file
  2812.                      resumes execution at the next command.
  2813.         
  2814.                      See also CANCEL and QUIT.
  2815.         
  2816.         Example:     The following batch file fragment compares an input
  2817.                      line to "wp" and calls a secondary batch file if it
  2818.                      matches:
  2819.         
  2820.                        input  Enter your choice:  %%option
  2821.                        if  "%option" == "wp"  call  wp.bat
  2822.  
  2823.  
  2824.  
  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.                    4DOS Reference Manual                  35
  2854.  
  2855.  
  2856.  
  2857.  
  2858.  
  2859.  
  2860.         CANCEL        CANCEL
  2861.         
  2862.         Syntax:      CANCEL                     CANCEL
  2863.         
  2864.         Purpose:     Terminate batch file processing.
  2865.         
  2866.         Comments:    The CANCEL command will end all batch file
  2867.                      processing, regardless of the batch nesting level.
  2868.                      (Use QUIT to end a nested batch file and return to the
  2869.                      previous batch file.)
  2870.                        
  2871.                      You can CANCEL at any point in a batch file.
  2872.         
  2873.                      See also CALL and QUIT.
  2874.         
  2875.         Example:     The following batch file fragment compares an input
  2876.                      line to "end" and terminates all batch file processing
  2877.                      if it matches:
  2878.         
  2879.                        input  Enter your choice:  %%option
  2880.                        if  "%option" == "end"  cancel
  2881.  
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.  
  2888.  
  2889.  
  2890.  
  2891.  
  2892.  
  2893.  
  2894.  
  2895.  
  2896.  
  2897.  
  2898.  
  2899.  
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913.                    4DOS Reference Manual                  36
  2914.  
  2915.  
  2916.  
  2917.  
  2918.  
  2919.  
  2920.         CD / CHDIR        CD / CHDIR
  2921.         
  2922.         Syntax:      CD [d:][pathname]                     CD [d:][pathname]
  2923.                        or
  2924.                      CHDIR [d:][pathname]                     CHDIR [d:][pathname]
  2925.         
  2926.         Purpose:     Display or change the current directory.
  2927.         
  2928.         Comments:    Entering CD with no argument or only a disk drive
  2929.                      name will display the current directory.  Entering CD
  2930.                      and a pathname will change the current directory.
  2931.         
  2932.                      Every disk drive on the system has its own current
  2933.                      directory.  Specifying both a drive and a directory in
  2934.                      the CD command will change the current directory on the
  2935.                      specified drive, but will not change the default drive.
  2936.                      Use CDD to change both the drive and directory.
  2937.         
  2938.                      To start at the root directory, start the pathname
  2939.                      with a backslash (\).  To start at the parent
  2940.                      directory, start the pathname with two periods (..).
  2941.                      All other pathnames start at the current directory.
  2942.         
  2943.                      MS-DOS will not accept directory names longer than
  2944.                      64 characters.
  2945.         
  2946.                      See also CDD.
  2947.         
  2948.         Example:     Change to the subdirectory C:\FINANCE\MYFILES:                                                __________________ 
  2949.         
  2950.                        c:\> cd \finance\myfiles                            cd \finance\myfiles
  2951.                        c:\finance\myfiles>
  2952.         
  2953.                      Change the default directory on drive A:
  2954.         
  2955.                        c:\> cd a:\utility                            cd a:\utility
  2956.  
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.                    4DOS Reference Manual                  37
  2974.  
  2975.  
  2976.  
  2977.  
  2978.  
  2979.  
  2980.         CDD        CDD
  2981.         
  2982.         Syntax:      CDD [d:]pathname                     CDD [d:]pathname
  2983.         
  2984.         Purpose:     Change the current disk drive and directory.
  2985.         
  2986.         Comments:    CDD is similar to CD, except it can also change the
  2987.                      default disk drive.
  2988.         
  2989.                      See also CD.
  2990.         
  2991.         Example:     Change from the root directory on drive A to the
  2992.                      subdirectory C:\WP:                                  _____ 
  2993.         
  2994.                        a:\> cdd c:\wp                            cdd c:\wp
  2995.                        c:\wp>
  2996.  
  2997.  
  2998.  
  2999.  
  3000.  
  3001.  
  3002.  
  3003.  
  3004.  
  3005.  
  3006.  
  3007.  
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013.  
  3014.  
  3015.  
  3016.  
  3017.  
  3018.  
  3019.  
  3020.  
  3021.  
  3022.  
  3023.  
  3024.  
  3025.  
  3026.  
  3027.  
  3028.  
  3029.  
  3030.  
  3031.  
  3032.  
  3033.                    4DOS Reference Manual                  38
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.         CHCP        CHCP
  3041.         
  3042.         Syntax:      CHCP [n]                     CHCP [n]
  3043.         
  3044.         Purpose:     Display or change the current system code page.
  3045.         
  3046.         Comments:    Code page switching allows you to select different
  3047.                      character sets for language support.  To use code page
  3048.                      switching, you must have an EGA or VGA board, and MS-
  3049.                      DOS 3.3 or above.
  3050.         
  3051.                      Before using CHCP, you must load the device drivers
  3052.                      (in CONFIG.SYS); make sure the information file
  3053.                      (COUNTRY.SYS) is available; load national language
  3054.                      support (using the NLSFUNC command); and prepare the
  3055.                      specified code page for the devices (using the MODE
  3056.                      command with the CODEPAGE PREPARE option).
  3057.         
  3058.                      CHCP accepts one of the two prepared system code
  3059.                      pages.  An error message is displayed if a code page is
  3060.                      selected that has not been prepared for the system.
  3061.         
  3062.                      Entering CHCP with no arguments displays the active
  3063.                      code page.
  3064.         
  3065.                      See your MS-DOS manual for more information on CHCP.
  3066.         
  3067.         Example:     Display the current code page:
  3068.         
  3069.                        c:\> chcp                            chcp
  3070.                        Active code page: 437
  3071.         
  3072.                      Set the code page to multilingual:
  3073.         
  3074.                        c:\> chcp 850                            chcp 850
  3075.  
  3076.  
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082.  
  3083.  
  3084.  
  3085.  
  3086.  
  3087.  
  3088.  
  3089.  
  3090.  
  3091.  
  3092.  
  3093.                    4DOS Reference Manual                  39
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099.  
  3100.         CLS        CLS
  3101.         
  3102.         Syntax:      CLS                     CLS
  3103.         
  3104.         Purpose:     Clear the video display.
  3105.         
  3106.         Comments:    CLS clears the display and moves the cursor to the
  3107.                      upper left corner.
  3108.         
  3109.                      CLS is normally used in batch files to clear the
  3110.                      screen before displaying text (see ECHO, SCREEN, and
  3111.                      TEXT).
  3112.         
  3113.                      CLS uses the Clear Screen command in ANSI.  You must
  3114.                      have an ANSI driver defined in your CONFIG.SYS file for
  3115.                      CLS to work (see INSTALLATION).
  3116.         
  3117.         Example:     Clear the display:
  3118.         
  3119.                        c:\> cls                            cls
  3120.  
  3121.  
  3122.  
  3123.  
  3124.  
  3125.  
  3126.  
  3127.  
  3128.  
  3129.  
  3130.  
  3131.  
  3132.  
  3133.  
  3134.  
  3135.  
  3136.  
  3137.  
  3138.  
  3139.  
  3140.  
  3141.  
  3142.  
  3143.  
  3144.  
  3145.  
  3146.  
  3147.  
  3148.  
  3149.  
  3150.  
  3151.  
  3152.  
  3153.                    4DOS Reference Manual                  40
  3154.  
  3155.  
  3156.  
  3157.  
  3158.  
  3159.  
  3160.         COPY        COPY
  3161.         
  3162.         Syntax:      COPY [/PV] [d:][path]filename[+]... [[d:][path]filename]                     COPY [/PV] [d:][path]filename[+]... [[d:][path]filename]
  3163.         
  3164.         Purpose:     Copy or append one or more files.
  3165.         
  3166.         Comments:    Unlike COMMAND.COM, 4DOS allows you to copy several
  3167.                      unrelated files to a target directory with a single
  3168.                      COPY command.  If there are two or more arguments on
  3169.                      the command line, COPY assumes the last argument is the
  3170.                      target.  If there is only one argument, the target is
  3171.                      assumed to be the current directory.
  3172.         
  3173.                      The /P(rompt) option prompts you to confirm each
  3174.                      file copy (Y or N).  An N response will skip that
  3175.                      particular file.
  3176.         
  3177.                      The /V(erify) option verifies each disk write.  This
  3178.                      is the same as executing the VERIFY ON command, but is
  3179.                      only active during the COPY command.
  3180.         
  3181.                      The plus (+) tells 4DOS to append two or more files                               +                                      
  3182.                      to a single target file.  If you don't specify a
  3183.                      target, COPY will append each subsequent file to the
  3184.                      first file.
  3185.         
  3186.                      If you specify more than one source file, and the
  3187.                      target is NOT a directory, COPY will automatically
  3188.                      append the files to the target.
  3189.         
  3190.                      You cannot copy a file to itself.
  3191.         
  3192.                      COPY in 4DOS does not support the /A and /B options
  3193.                      of COPY in COMMAND.COM.
  3194.         
  3195.         Example:     Copy the files MEMO1, PROJECT8.WKS, and UPDATE.BAT                                    _____  ____________      __________
  3196.                      to the root directory on drive A:
  3197.         
  3198.                        c:\> copy memo1 project8.wks update.bat a:\                            copy memo1 project8.wks update.bat a:\
  3199.         
  3200.                      Append the files MEMO1, MEMO2, and MEMO3, and store                                      _____  _____      _____           
  3201.                      the result in BIGMEMO:                                   _______ 
  3202.         
  3203.                        c:\> copy memo1+memo2+memo3 bigmemo                            copy memo1+memo2+memo3 bigmemo
  3204.  
  3205.  
  3206.  
  3207.  
  3208.  
  3209.  
  3210.  
  3211.  
  3212.  
  3213.                    4DOS Reference Manual                  41
  3214.  
  3215.  
  3216.  
  3217.  
  3218.  
  3219.  
  3220.         DATE        DATE
  3221.         
  3222.         Syntax:      DATE [mm-dd-yy]                     DATE [mm-dd-yy]
  3223.         
  3224.         Purpose:     Display and (optionally) change the system date.
  3225.         
  3226.         Comments:    If you don't enter any parameters, DATE will display
  3227.                      the current system date and time, and prompt for the
  3228.                      new date.  Press ENTER if you don't wish to change the
  3229.                      date, otherwise enter the new date.
  3230.         
  3231.                      The parameters for the DATE command are:
  3232.         
  3233.                        mm (month) = 1 - 12                       __                 
  3234.                        dd (day)  = 1 - 31                       __                
  3235.                        yy (year)  = 80 - 199 (1980 - 2099)                       __                               
  3236.         
  3237.                      You can use hyphens, slashes, or periods to separate
  3238.                      the month, day, and year entries.
  3239.         
  3240.                      The format for the date entry depends on the country
  3241.                      code defined in the CONFIG.SYS file or by the CHCP
  3242.                      command.  The default format is U.S. (mm-dd-yy).  The
  3243.                      European format is dd-mm-yy; the Japanese is yy-mm-dd.
  3244.         
  3245.                      See also TIME.
  3246.         
  3247.         Example:     Enter the date from the command line:
  3248.         
  3249.                        c:\> date 12/25/89                            date 12/25/89
  3250.         
  3251.                      To be prompted for the date:
  3252.         
  3253.                        c:\> date                            date
  3254.                        Mon  Dec 25, 1989  9:30:06
  3255.                        Enter new date (mm-dd-yy):
  3256.  
  3257.  
  3258.  
  3259.  
  3260.  
  3261.  
  3262.  
  3263.  
  3264.  
  3265.  
  3266.  
  3267.  
  3268.  
  3269.  
  3270.  
  3271.  
  3272.  
  3273.                    4DOS Reference Manual                  42
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279.  
  3280.         DEL / ERASE        DEL / ERASE
  3281.         
  3282.         Syntax:      DEL [/P] [d:][path]filename...                     DEL [/P] [d:][path]filename...
  3283.                        or
  3284.                      ERASE [/P] [d:][path]filename...                     ERASE [/P] [d:][path]filename...
  3285.         
  3286.         Purpose:     Erase the specified file(s) from the disk.
  3287.         
  3288.         Comments:    If the /P(rompt) option is specified, 4DOS will
  3289.                      prompt you to enter a Y or N to confirm each file
  3290.                      deletion.
  3291.         
  3292.                      If you enter a subdirectory name, or a filename
  3293.                      composed only of wildcards (* and ?), DEL asks for
  3294.                      confirmation (Y or N).  If you respond with a Y, DEL
  3295.                      will delete all the files in that subdirectory (except
  3296.                      hidden and read-only files).
  3297.         
  3298.         Example:     Erase all the files in the current directory with a
  3299.                      .BAK or .PRN extension:                     ____    ____
  3300.         
  3301.                        c:\> del *.bak *.prn                            del *.bak *.prn
  3302.         
  3303.                      Confirm the deletion of all the files in the current
  3304.                      directory with a .WKS extension:                                      ____           
  3305.         
  3306.                        c:\> del /P *.wks                            del /P *.wks
  3307.                        Delete JAN88.WKS (Y/N)? n
  3308.                        Delete FEB87.WKS (Y/N)? y
  3309.                        Delete DEC87.WKS (Y/N)? y
  3310.  
  3311.  
  3312.  
  3313.  
  3314.  
  3315.  
  3316.  
  3317.  
  3318.  
  3319.  
  3320.  
  3321.  
  3322.  
  3323.  
  3324.  
  3325.  
  3326.  
  3327.  
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.                    4DOS Reference Manual                  43
  3334.  
  3335.  
  3336.  
  3337.  
  3338.  
  3339.  
  3340.         DESCRIBE        DESCRIBE
  3341.         
  3342.         Syntax:      DESCRIBE [d:][path]filename...                     DESCRIBE [d:][path]filename...
  3343.         
  3344.         Purpose:     Create, modify, or delete file descriptions.
  3345.         
  3346.         Comments:    DESCRIBE adds descriptions (up to 40 characters) to
  3347.                      MS-DOS filenames.  The descriptions will be displayed
  3348.                      when using DIR with the default single column option,
  3349.                      or when using SELECT.
  3350.         
  3351.                      File descriptions allow you to identify your files
  3352.                      in much more meaningful ways than MS-DOS allows in an
  3353.                      eight character filename.
  3354.         
  3355.                      Descriptions are stored in each directory in a
  3356.                      hidden file called DESCRIPT.ION.  Use the ATTRIB
  3357.                      command to "unhide" this file if you need to copy or
  3358.                      delete it.
  3359.         
  3360.                      Descriptions are not copied when you do a COPY,
  3361.                      MOVE, or RENAME.
  3362.         
  3363.         Example:     Create a description for the file MEMO.TXT:                                                       ________ 
  3364.         
  3365.                        c:\> describe memo.txt                            describe memo.txt
  3366.                        Describe "memo.txt" : Memo to Bob about party                                             Memo to Bob about party
  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.                    4DOS Reference Manual                  44
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400.         DIR        DIR
  3401.         
  3402.         Syntax:      DIR [/[12ADFHJPQSWX] [Oetzur]] [[d:][path]filename...]                     DIR [/[12ADFHJPQSWX] [Oetzur]] [[d:][path]filename...]
  3403.         
  3404.         Purpose:     Display information about files and subdirectories.
  3405.         
  3406.         Comments:    DIR displays information about the files and
  3407.                      subdirectories in the specified directory.  Depending
  3408.                      upon the options specified, DIR can show the filename,
  3409.                      file attributes, size, date and time of the most recent
  3410.                      change to the file, and the file description.
  3411.         
  3412.                      DIR allows wildcard characters (* and ?) in the
  3413.                      filename.  If you don't specify a filename, DIR
  3414.                      defaults to *.* (display all files and subdirectories
  3415.                      in the current directory).
  3416.         
  3417.                      If a country code was defined in the CONFIG.SYS file
  3418.                      or by the CHCP command, DIR will display the date in
  3419.                      the format for that country.  The default date format
  3420.                      is U.S. (mm-dd-yy).
  3421.         
  3422.                      The DIR options are:
  3423.         
  3424.                        1  Single column display - display the filename,                       1                                           
  3425.                             size, date, time, and description.  This is the
  3426.                             default.
  3427.                        2  Two column display - display the filename, size,                       2                                              
  3428.                             date, and time.
  3429.                        A  Display the filenames and attributes only (see                       A                                            
  3430.                             ATTRIB), in the format RHSA, where:
  3431.                                 R   read-only                                R            
  3432.                                 H   hidden                                H         
  3433.                                 S   system                                S         
  3434.                                 A   archive                                A          
  3435.                        D  Display the contents of the current directory and                       D                                               
  3436.                             all of its subdirectories.
  3437.                        F  Display files only (no subdirectories).                       F                                       
  3438.                        H  Display all files, including hidden and system                       H                                            
  3439.                             files.
  3440.                        J  Justify the output (same output as COMMAND.COM)                       J                                             
  3441.  
  3442.  
  3443.  
  3444.  
  3445.  
  3446.  
  3447.  
  3448.  
  3449.  
  3450.  
  3451.  
  3452.  
  3453.                    4DOS Reference Manual                  45
  3454.  
  3455.  
  3456.  
  3457.  
  3458.  
  3459.  
  3460.                        O? Sort sequence, where ? can be any combination of                       O?
  3461.                             the following options:
  3462.                                 e   sort by extension                                e                    
  3463.                                 t   sort by time, oldest first                                t                           
  3464.                                 z   sort by size                                z               
  3465.                                 u   unsorted (same as COMMAND.COM)                                u                               
  3466.                                 r   reverse the normal sort order                                r                              
  3467.                             The default sort is by filename.
  3468.                        P  Pause after each screen page and wait for a key                       P                                             
  3469.                             to be pressed (useful for displaying long
  3470.                             directory listings).
  3471.                        Q  Suppress the header line and summaries, and                       Q                                           
  3472.                             display file or subdirectory names only, in a
  3473.                             single column (useful when redirecting output
  3474.                             to another program).
  3475.                        S  Display summary only (number of files & bytes                       S                                           
  3476.                             used).
  3477.                        W  Wide display - display the filenames only,                       W                                          
  3478.                             horizontally across the screen.
  3479.                        X  Display directories only.                       X                         
  3480.                      
  3481.                      See also DESCRIBE.
  3482.         
  3483.         Example:     Display the .WKS files, and then the .PRN files in                                 ____                     ____         
  3484.                      the current directory:
  3485.         
  3486.                        c:\> dir *.wks *.prn                            dir *.wks *.prn
  3487.         
  3488.                      Display the files in the current directory, sorted
  3489.                      by time (most recent first):
  3490.         
  3491.                        c:\> dir /otr *.*                            dir /otr *.*
  3492.         
  3493.                      Display all the files on drive C, including hidden                                                                   
  3494.                      and system files, pausing after each page:
  3495.         
  3496.                        c:\> dir /dhp c:\*.*                            dir /dhp c:\*.*
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502.  
  3503.  
  3504.  
  3505.  
  3506.  
  3507.  
  3508.  
  3509.  
  3510.  
  3511.  
  3512.  
  3513.                    4DOS Reference Manual                  46
  3514.  
  3515.  
  3516.  
  3517.  
  3518.  
  3519.  
  3520.         DIRS        DIRS
  3521.         
  3522.         Syntax:      DIRS                     DIRS
  3523.         
  3524.         Purpose:     Display the current directory stack.
  3525.         
  3526.         Comments:    DIRS displays the directory stack used by PUSHD and
  3527.                      POPD (most recent entries first).  The directory stack
  3528.                      holds up to 255 characters (about 10 to 20 entries).
  3529.         
  3530.                      See also PUSHD and POPD.
  3531.         
  3532.         Example:     Change directories and then display the directory
  3533.                      stack:
  3534.         
  3535.                        c:\> pushd c:\database                            pushd c:\database
  3536.                        c:\database> pushd d:\wordp\memos                                    pushd d:\wordp\memos
  3537.                        d:\wordp\memos> dirs                                       dirs
  3538.                        c:\database
  3539.                        c:\
  3540.  
  3541.  
  3542.  
  3543.  
  3544.  
  3545.  
  3546.  
  3547.  
  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.                    4DOS Reference Manual                  47
  3574.  
  3575.  
  3576.  
  3577.  
  3578.  
  3579.  
  3580.         ECHO        ECHO
  3581.         
  3582.         Syntax:      ECHO [on | off | message]                     ECHO [on | off | message]
  3583.         
  3584.         Purpose:     Display the echo status, enable or disable batch
  3585.                      file or command line echoing, or display a message.
  3586.         
  3587.         Comments:    4DOS defaults to ECHO ON in batch files.  To prevent
  3588.                      a line from being echoed, preface it with the @ symbol.
  3589.                      You can tell 4DOS to default to ECHO OFF by setting the
  3590.                      variable VERBOSE to 0 (see SETDOS).
  3591.         
  3592.                      4DOS defaults to ECHO OFF during keyboard input.  If
  3593.                      you set ECHO ON from the command line, 4DOS will
  3594.                      display the fully parsed and expanded commands
  3595.                      (including aliases and variables) before they are
  3596.                      executed.
  3597.         
  3598.                      If no arguments are entered, ECHO displays the
  3599.                      current echo status (ON or OFF).
  3600.         
  3601.                      ECHO commands in a batch file will send messages to
  3602.                      the screen while the batch file executes, even if ECHO
  3603.                      is set OFF.   You cannot use the command separator
  3604.                      character or the 4DOS redirection symbols (|, >, or <)
  3605.                      in an ECHO message, unless you enclose them in quotes
  3606.                      or precede them with the escape character.
  3607.         
  3608.                      See also SCREEN, SETDOS, and TEXT.
  3609.         
  3610.         Example:     Enable command line echoing:
  3611.         
  3612.                        c:\> echo on                            echo on
  3613.         
  3614.                      Display a message in a batch file:
  3615.         
  3616.                        echo Processing your print files...
  3617.         
  3618.                      Turn off batch file echoing, without displaying the
  3619.                      ECHO command itself:
  3620.         
  3621.                        @echo off
  3622.  
  3623.  
  3624.  
  3625.  
  3626.  
  3627.  
  3628.  
  3629.  
  3630.  
  3631.  
  3632.  
  3633.                    4DOS Reference Manual                  48
  3634.  
  3635.  
  3636.  
  3637.  
  3638.  
  3639.  
  3640.         ENDLOCAL        ENDLOCAL
  3641.         
  3642.         Syntax:      ENDLOCAL                     ENDLOCAL
  3643.         
  3644.         Purpose:     Restore the saved disk drive, directory, and
  3645.                      environment.
  3646.         
  3647.         Comment:     ENDLOCAL restores the disk drive, directory, and
  3648.                      environment saved by the previous SETLOCAL command.
  3649.                      SETLOCAL and ENDLOCAL can only be used in batch files.
  3650.         
  3651.                      See also SETLOCAL.
  3652.         
  3653.         Example:     This batch file fragment saves the environment,
  3654.                      drive, and current working directory, changes the drive
  3655.                      and directory, modifies some environment variables,
  3656.                      runs a program, and then restores the original values:
  3657.         
  3658.                        setlocal
  3659.                        cdd d:\test
  3660.                        set path=c:\;c:\dos;c:\util
  3661.                        set lib=d:\lib
  3662.                        rem run some program here
  3663.                        endlocal
  3664.  
  3665.  
  3666.  
  3667.  
  3668.  
  3669.  
  3670.  
  3671.  
  3672.  
  3673.  
  3674.  
  3675.  
  3676.  
  3677.  
  3678.  
  3679.  
  3680.  
  3681.  
  3682.  
  3683.  
  3684.  
  3685.  
  3686.  
  3687.  
  3688.  
  3689.  
  3690.  
  3691.  
  3692.  
  3693.                    4DOS Reference Manual                  49
  3694.  
  3695.  
  3696.  
  3697.  
  3698.  
  3699.  
  3700.         ESET        ESET
  3701.         
  3702.         Syntax:      ESET varname...                     ESET varname...
  3703.         
  3704.         Purpose:     Edit environment variables and/or aliases.
  3705.         
  3706.         Comments:    ESET allows you to edit your environment variables
  3707.                      and aliases using the 4DOS line editing commands (see
  3708.                      the Command Line Editing section in USING 4DOS).  The
  3709.                      cursor will be positioned at the first character of the
  3710.                      variable or alias.
  3711.         
  3712.                      ESET will search for environment variables first,
  3713.                      and then aliases.
  3714.         
  3715.                      4DOS limits environment variable and alias names to
  3716.                      80 characters, and their arguments to 255 characters.
  3717.         
  3718.                      See also ALIAS and SET.
  3719.         
  3720.         Example:     Edit the default MS-DOS executable file search path:
  3721.         
  3722.                        c:\> eset path                            eset path
  3723.                        path=c:\;c:\dos;c:\util                            _                 
  3724.         
  3725.                      Create and then edit an alias:
  3726.         
  3727.                        c:\> alias d dir /djp                            alias d dir /djp
  3728.                        c:\> eset d                            eset d
  3729.                        d=dir /djp                         _       
  3730.  
  3731.  
  3732.  
  3733.  
  3734.  
  3735.  
  3736.  
  3737.  
  3738.  
  3739.  
  3740.  
  3741.  
  3742.  
  3743.  
  3744.  
  3745.  
  3746.  
  3747.  
  3748.  
  3749.  
  3750.  
  3751.  
  3752.  
  3753.                    4DOS Reference Manual                  50
  3754.  
  3755.  
  3756.  
  3757.  
  3758.  
  3759.  
  3760.         EXCEPT        EXCEPT
  3761.         
  3762.         Syntax:      EXCEPT ([d:][path]filename...) command [args...]                     EXCEPT ([d:][path]filename...) command [args...]
  3763.         
  3764.         Purpose:     Perform a command, except on the file(s) specified.
  3765.         
  3766.         Comments:    EXCEPT provides a means of executing a command on a
  3767.                      group of files and/or subdirectories, except those
  3768.                      enclosed within the parentheses.
  3769.         
  3770.                      You may use the MS-DOS wildcard characters (? and *)
  3771.                      in a filename.
  3772.         
  3773.                      EXCEPT prevents operations on the specified file(s)
  3774.                      by setting the hidden attribute, performing the
  3775.                      command, and then clearing the hidden attribute.  If
  3776.                      EXCEPT is aborted in an unusual way, you may need to
  3777.                      use the ATTRIB command to "unhide" (-H) the file(s).
  3778.         
  3779.                      EXCEPT will not work with programs or commands that
  3780.                      ignore the hidden attribute.
  3781.         
  3782.                      See also ATTRIB.
  3783.         
  3784.         Example:     Erase all but the files beginning with MEMO and                                                            ____    
  3785.                      those ending in .WKS:                                     ____ 
  3786.         
  3787.                        c:\> except (memo*.* *.wks) erase *.*                            except (memo*.* *.wks) erase *.*
  3788.         
  3789.                      Copy all the files and subdirectories except those
  3790.                      in C:\MSC and C:\DOS on drive C to drive D:                        ______     ______                     
  3791.         
  3792.                        c:\> except (c:\msc c:\dos) xcopy c:\*.* d:\ /s                            except (c:\msc c:\dos) xcopy c:\*.* d:\ /s
  3793.  
  3794.  
  3795.  
  3796.  
  3797.  
  3798.  
  3799.  
  3800.  
  3801.  
  3802.  
  3803.  
  3804.  
  3805.  
  3806.  
  3807.  
  3808.  
  3809.  
  3810.  
  3811.  
  3812.  
  3813.                    4DOS Reference Manual                  51
  3814.  
  3815.  
  3816.  
  3817.  
  3818.  
  3819.  
  3820.         EXIT        EXIT
  3821.         
  3822.         Syntax:      EXIT                     EXIT
  3823.         
  3824.         Purpose:     Return from a secondary command processor.
  3825.         
  3826.         Comments:    Some application programs will start a secondary
  3827.                      copy of the command processor to allow you to execute
  3828.                      MS-DOS commands.  To return to the application again,
  3829.                      type EXIT.
  3830.         
  3831.                      You cannot EXIT from the primary command processor.
  3832.  
  3833.  
  3834.  
  3835.  
  3836.  
  3837.  
  3838.  
  3839.  
  3840.  
  3841.  
  3842.  
  3843.  
  3844.  
  3845.  
  3846.  
  3847.  
  3848.  
  3849.  
  3850.  
  3851.  
  3852.  
  3853.  
  3854.  
  3855.  
  3856.  
  3857.  
  3858.  
  3859.  
  3860.  
  3861.  
  3862.  
  3863.  
  3864.  
  3865.  
  3866.  
  3867.  
  3868.  
  3869.  
  3870.  
  3871.  
  3872.  
  3873.                    4DOS Reference Manual                  52
  3874.  
  3875.  
  3876.  
  3877.  
  3878.  
  3879.  
  3880.         FOR        FOR
  3881.         
  3882.         Syntax:      FOR %%var IN (set) DO command ...        Syntax:      FOR %%var IN (set) DO command ...
  3883.         
  3884.         Purpose:     Repeat a command for several variables.
  3885.         
  3886.         Comments:    4DOS sets var sequentially to each member of (set),                              ___                                 _____ 
  3887.                      and then evaluates and executes command for every                                                     _______
  3888.                      argument in (set).  If one of the arguments in (set)                                 _____                              _____
  3889.                      contains MS-DOS wildcard characters (* and ?), var will                                                                    ___     
  3890.                      be set sequentially to each matching filename on the
  3891.                      disk.
  3892.         
  3893.                      You must use two percent signs (%%) before the
  3894.                      variable name to prevent 4DOS from expanding the
  3895.                      variable on the command line before it is passed to
  3896.                      FOR.
  3897.         
  3898.         Example:     The following example compiles the C programs in the
  3899.                      current directory that have a "2" or a "3" somewhere in
  3900.                      their name:
  3901.         
  3902.                        c:\msc> for %%a in (*2*.c *3*.c) do cl %%a                               for %%a in (*2*.c *3*.c) do cl %%a
  3903.  
  3904.  
  3905.  
  3906.  
  3907.  
  3908.  
  3909.  
  3910.  
  3911.  
  3912.  
  3913.  
  3914.  
  3915.  
  3916.  
  3917.  
  3918.  
  3919.  
  3920.  
  3921.  
  3922.  
  3923.  
  3924.  
  3925.  
  3926.  
  3927.  
  3928.  
  3929.  
  3930.  
  3931.  
  3932.  
  3933.                    4DOS Reference Manual                  53
  3934.  
  3935.  
  3936.  
  3937.  
  3938.  
  3939.  
  3940.         FREE        FREE
  3941.         
  3942.         Syntax:      FREE [d:]...                     FREE [d:]...
  3943.         
  3944.         Purpose:     Display the total and free disk space on the
  3945.                      specified (or default) drive(s).
  3946.         
  3947.         Comments:    FREE provides the same disk information as CHKDSK,
  3948.                      but without the wait.
  3949.         
  3950.                      See also MEMORY.
  3951.         
  3952.         Example:     Display the status of the current drive:
  3953.         
  3954.                        c:\> free
  3955.                        Volume in drive C: is DEVELOPMENT
  3956.                          30,203,904 bytes total disk space
  3957.                          14,331,904 bytes free
  3958.         
  3959.                      Display the status of drives A, B, and C:
  3960.         
  3961.                        c:\> free a: b: c:
  3962.                        Volume in drive A: is unlabeled
  3963.                          1,213,952 bytes total disk space
  3964.                            487,424 bytes free
  3965.                        Volume in drive B: is WORKSHEETS
  3966.                            362,496 bytes total disk space
  3967.                            237,568 bytes free
  3968.                        Volume in drive C: is DEVELOPMENT
  3969.                         30,203,904 bytes total disk space
  3970.                         14,331,904 bytes free
  3971.         
  3972.  
  3973.  
  3974.  
  3975.  
  3976.  
  3977.  
  3978.  
  3979.  
  3980.  
  3981.  
  3982.  
  3983.  
  3984.  
  3985.  
  3986.  
  3987.  
  3988.  
  3989.  
  3990.  
  3991.  
  3992.  
  3993.                    4DOS Reference Manual                  54
  3994.  
  3995.  
  3996.  
  3997.  
  3998.  
  3999.  
  4000.         GLOBAL        GLOBAL
  4001.         
  4002.         Syntax:      GLOBAL command [args]                     GLOBAL command [args]
  4003.         
  4004.         Purpose:     Execute a command in the current directory and its
  4005.                      subdirectories.
  4006.         
  4007.         Comments:    GLOBAL performs the command first in the current
  4008.                      directory,  and then in each of its subdirectories.
  4009.                      The command cannot be an alias.
  4010.         
  4011.                      GLOBAL will terminate if the command returns a non-
  4012.                      zero exit code.
  4013.         
  4014.         Example:     Erase all the files with a .BAK extension in every                                                ____                   
  4015.                      directory on C:
  4016.         
  4017.                        c:\> global erase c:\*.bak                            global erase c:\*.bak
  4018.         
  4019.                      Copy the files in every directory on drive A to the
  4020.                      directory C:\TEMP :                               _______
  4021.         
  4022.                        a:\> global copy *.* c:\temp                            global copy *.* c:\temp
  4023.  
  4024.  
  4025.  
  4026.  
  4027.  
  4028.  
  4029.  
  4030.  
  4031.  
  4032.  
  4033.  
  4034.  
  4035.  
  4036.  
  4037.  
  4038.  
  4039.  
  4040.  
  4041.  
  4042.  
  4043.  
  4044.  
  4045.  
  4046.  
  4047.  
  4048.  
  4049.  
  4050.  
  4051.  
  4052.  
  4053.                    4DOS Reference Manual                  55
  4054.  
  4055.  
  4056.  
  4057.  
  4058.  
  4059.  
  4060.         GOSUB        GOSUB
  4061.         
  4062.         Syntax:      GOSUB label                     GOSUB label
  4063.         
  4064.         Purpose:     Call a subroutine in a batch file.
  4065.         
  4066.         Comments:    GOSUB calls the specified label as a subroutine.
  4067.                      The subroutine must end with a RETURN statement.  After
  4068.                      the RETURN, 4DOS will continue processing on the line
  4069.                      following the GOSUB.
  4070.         
  4071.                      If you don't enter a label, or the label doesn't
  4072.                      exist, the batch file is terminated with the error
  4073.                      message "Label not found."
  4074.         
  4075.                      The line with the label must begin with a colon (:).
  4076.                      4DOS ignores case differences when matching labels.
  4077.         
  4078.                      GOSUBS may be nested up to 5 levels deep.
  4079.         
  4080.                      See also GOTO and RETURN.
  4081.         
  4082.         Example:     The following batch file fragment calls a subroutine
  4083.                      which displays the directory and returns:
  4084.         
  4085.                        echo Calling a subroutine
  4086.                        gosub subr1
  4087.                        echo Returned from the subroutine
  4088.                        quit
  4089.                        :subr1
  4090.                        dir /hw
  4091.                        return
  4092.  
  4093.  
  4094.  
  4095.  
  4096.  
  4097.  
  4098.  
  4099.  
  4100.  
  4101.  
  4102.  
  4103.  
  4104.  
  4105.  
  4106.  
  4107.  
  4108.  
  4109.  
  4110.  
  4111.  
  4112.  
  4113.                    4DOS Reference Manual                  56
  4114.  
  4115.  
  4116.  
  4117.  
  4118.  
  4119.  
  4120.         GOTO        GOTO
  4121.         
  4122.         Syntax:      GOTO label                     GOTO label
  4123.         
  4124.         Purpose:     Continue batch file processing at the line following
  4125.                      the label.
  4126.         
  4127.         Comments:    GOTO jumps to the line immediately following the
  4128.                      label.  If you don't enter a label, or the label
  4129.                      doesn't exist, the batch file is terminated with the
  4130.                      error message "Label not found."
  4131.         
  4132.                      The line with the label must begin with a colon (:).
  4133.                      4DOS ignores case differences when matching labels.
  4134.         
  4135.                      See also GOSUB.
  4136.         
  4137.         Example:     The following batch file fragment checks for the
  4138.                      existence of the file CONFIG.SYS.  If the file exists,
  4139.                      4DOS jumps to C_EXISTS and copies all the files from
  4140.                      the current directory to the root directory on A.  If
  4141.                      CONFIG.SYS doesn't exist, 4DOS prints an error message
  4142.                      and exits.
  4143.         
  4144.                        if exist config.sys goto C_EXISTS
  4145.                        echo CONFIG.SYS doesn't exist - exiting.
  4146.                        quit
  4147.                        :C_EXISTS
  4148.                        copy *.* a:\
  4149.  
  4150.  
  4151.  
  4152.  
  4153.  
  4154.  
  4155.  
  4156.  
  4157.  
  4158.  
  4159.  
  4160.  
  4161.  
  4162.  
  4163.  
  4164.  
  4165.  
  4166.  
  4167.  
  4168.  
  4169.  
  4170.  
  4171.  
  4172.  
  4173.                    4DOS Reference Manual                  57
  4174.  
  4175.  
  4176.  
  4177.  
  4178.  
  4179.  
  4180.         HELP        HELP
  4181.         
  4182.         Syntax:      HELP [topic]                     HELP [topic]
  4183.         
  4184.         Purpose:     Provide help for 4DOS and MS-DOS commands.
  4185.         
  4186.         Comments:    The HELP command displays the proper syntax and a
  4187.                      brief description of 4DOS and MS-DOS commands.  You can
  4188.                      also call HELP by pressing F1 at the command line.
  4189.         
  4190.                      If you enter HELP with no topic, HELP will display
  4191.                      all the commands it can help you with.  Select a topic
  4192.                      using the cursor keys and press ENTER.
  4193.         
  4194.                      For help on a specific command, enter HELP followed
  4195.                      by the command name.
  4196.         
  4197.                      DOS.HLP must be in the current directory or one of
  4198.                      the directories specified in the PATH environment
  4199.                      variable.
  4200.         
  4201.                      HELP is an external command.
  4202.         
  4203.         Example:     Display and select from all the available help
  4204.                      topics:
  4205.         
  4206.                        c:\> help                            help
  4207.         
  4208.                      For help on COPY:
  4209.         
  4210.                        c:\> help copy                            help copy
  4211.  
  4212.  
  4213.  
  4214.  
  4215.  
  4216.  
  4217.  
  4218.  
  4219.  
  4220.  
  4221.  
  4222.  
  4223.  
  4224.  
  4225.  
  4226.  
  4227.  
  4228.  
  4229.  
  4230.  
  4231.  
  4232.  
  4233.                    4DOS Reference Manual                  58
  4234.  
  4235.  
  4236.  
  4237.  
  4238.  
  4239.  
  4240.         HISTORY        HISTORY
  4241.         
  4242.         Syntax:      HISTORY [/F]                     HISTORY [/F]
  4243.         
  4244.         Purpose:     Display or clear the history list.
  4245.         
  4246.         Comments:    If no parameters are entered, HISTORY will display
  4247.                      the current history list.
  4248.         
  4249.                      The /F(ree) option clears the command history list.
  4250.         
  4251.                      The number of commands saved in the history list
  4252.                      depends on the length of each command line.  The
  4253.                      history list size can be specified at startup from 512
  4254.                      to 8192 characters (see INSTALLATION).  The default
  4255.                      size is 1024 characters.
  4256.         
  4257.                      You can disable saving commands to the history list,
  4258.                      or specify a minimum command line length to save, with
  4259.                      the SETDOS /H command.
  4260.         
  4261.                      See also SETDOS.
  4262.         
  4263.         Example:     Display the history list:
  4264.         
  4265.                        c:\> history                            history
  4266.         
  4267.                      Clear the history entries:
  4268.         
  4269.                        c:\> history /f                            history /f
  4270.  
  4271.  
  4272.  
  4273.  
  4274.  
  4275.  
  4276.  
  4277.  
  4278.  
  4279.  
  4280.  
  4281.  
  4282.  
  4283.  
  4284.  
  4285.  
  4286.  
  4287.  
  4288.  
  4289.  
  4290.  
  4291.  
  4292.  
  4293.                    4DOS Reference Manual                  59
  4294.  
  4295.  
  4296.  
  4297.  
  4298.  
  4299.  
  4300.         IF        IF
  4301.         
  4302.         Syntax:      IF [NOT] condition command                     IF [NOT] condition command
  4303.         
  4304.         Purpose:     Allow conditional execution of commands.
  4305.         
  4306.         Comments:    4DOS first tests the given condition.  If the
  4307.                      condition is true, 4DOS executes the specified command,
  4308.                      otherwise the command will be ignored.  If you use the
  4309.                      NOT option, the command is executed only when the
  4310.                      condition is false.
  4311.         
  4312.                      For the string tests, case differences are ignored.
  4313.         
  4314.                      The condition can be any of the following:
  4315.         
  4316.                      string1 == string2                             ==        
  4317.                      string1 EQ string2                             EQ        
  4318.                           If string1 is equal to string2, the condition                             _______             _______               
  4319.                           is true.
  4320.                      
  4321.                      string1 NE string2                             NE        
  4322.                           If string1 is not equal to string2, the                             _______                 _______     
  4323.                           condition is true.
  4324.                      
  4325.                      string1 LT string2                             LT        
  4326.                           If string1 is < string2, the condition is true.                             _______      _______                      
  4327.                      
  4328.                      string1 LE string2                             LE        
  4329.                           If string1 is <= string2, the condition is                             _______       _______                  
  4330.                           true.
  4331.                      
  4332.                      string1 GE string2                             GE        
  4333.                           If string1 is >= string2, the condition is                             _______       _______                  
  4334.                           true.
  4335.                      
  4336.                      string1 GT string2                             GT        
  4337.                           If string1 is > string2, the condition is true.                             _______      _______                      
  4338.                      
  4339.                      ERRORLEVEL n                     ERRORLEVEL  
  4340.                           If the preceding program returns an exit code
  4341.                           greater than or equal to n, the condition is true.                                                   _                      
  4342.                           NOTE: Not all programs return an explicit exit
  4343.                           code.  In those cases, the behavior of ERRORLEVEL
  4344.                           is undefined.
  4345.  
  4346.  
  4347.  
  4348.  
  4349.  
  4350.  
  4351.  
  4352.  
  4353.                    4DOS Reference Manual                  60
  4354.  
  4355.  
  4356.  
  4357.  
  4358.  
  4359.  
  4360.                      EXIST [d:][path]filename                     EXIST                   
  4361.                           If the file exists, the condition is true.  You
  4362.                           can use wildcard characters (* and ?) in the
  4363.                           filename.
  4364.                      
  4365.                      ISDIR [d:]path                     ISDIR         
  4366.                           If the subdirectory exists, the condition is
  4367.                           true.
  4368.                      
  4369.         Example:     Test for the presence of A:\JAN.DOC, and copy it to                                              __________                
  4370.                      the root directory on drive C if it exists:
  4371.         
  4372.                        c:\> if exist a:\jan.doc copy a:\jan.doc c:\                            if exist a:\jan.doc copy a:\jan.doc c:\
  4373.         
  4374.                      This batch file fragment tests for a string value:
  4375.         
  4376.                        input  "Enter your selection : "  %%cmd
  4377.                        if  "%cmd" == "WP"  goto  wordproc
  4378.                        if  "%cmd" NE "GRAPHICS"  goto  badentry
  4379.  
  4380.  
  4381.  
  4382.  
  4383.  
  4384.  
  4385.  
  4386.  
  4387.  
  4388.  
  4389.  
  4390.  
  4391.  
  4392.  
  4393.  
  4394.  
  4395.  
  4396.  
  4397.  
  4398.  
  4399.  
  4400.  
  4401.  
  4402.  
  4403.  
  4404.  
  4405.  
  4406.  
  4407.  
  4408.  
  4409.  
  4410.  
  4411.  
  4412.  
  4413.                    4DOS Reference Manual                  61
  4414.  
  4415.  
  4416.  
  4417.  
  4418.  
  4419.  
  4420.         INKEY        INKEY
  4421.         
  4422.         Syntax:      INKEY [text] %%varname                     INKEY [text] %%varname
  4423.         
  4424.         Purpose:     Enter a single keystroke environment variable from
  4425.                      the standard input.
  4426.         
  4427.         Comments:    You can optionally display some prompt text before
  4428.                      the variable name.
  4429.                      
  4430.                      ASCII values from 1 to 255 are stored as a character.
  4431.                      Extended characters (for example, function keys and
  4432.                      cursor keys) are stored as a string in decimal format,
  4433.                      with a leading @ (for example, the F1 key is stored as
  4434.                      @59).  This is the same format used by the KEYSTACK
  4435.                      command.
  4436.         
  4437.                      INKEY and INPUT are normally used as batch file
  4438.                      commands, allowing you great flexibility in entering or
  4439.                      changing batch variables.
  4440.         
  4441.                      See Appendix C for a list of the extended key codes.
  4442.         
  4443.                      See also INPUT.
  4444.         
  4445.         Example:     The following batch file fragment prompts for a
  4446.                      character and stores it in the variable NUM:                                                             ___ 
  4447.         
  4448.                        inkey  Enter a number from 1 to 9:  %%num
  4449.  
  4450.  
  4451.  
  4452.  
  4453.  
  4454.  
  4455.  
  4456.  
  4457.  
  4458.  
  4459.  
  4460.  
  4461.  
  4462.  
  4463.  
  4464.  
  4465.  
  4466.  
  4467.  
  4468.  
  4469.  
  4470.  
  4471.  
  4472.  
  4473.                    4DOS Reference Manual                  62
  4474.  
  4475.  
  4476.  
  4477.  
  4478.  
  4479.  
  4480.         INPUT        INPUT
  4481.         
  4482.         Syntax:      INPUT  [text]  %%varname                     INPUT  [text]  %%varname
  4483.         
  4484.         Purpose:     Enter an environment variable from the standard
  4485.                      input.
  4486.         
  4487.         Comments:    You can optionally display some prompt text before
  4488.                      the variable name.
  4489.         
  4490.                      All characters entered up to, but not including, the
  4491.                      carriage return are stored in the variable.
  4492.         
  4493.                      INPUT and INKEY are normally used as batch file
  4494.                      commands, allowing you great flexibility in entering
  4495.                      or changing batch variables.
  4496.         
  4497.                      See also INKEY.
  4498.         
  4499.         Example:     The following batch file fragment prompts for a
  4500.                      string and stores it in the variable FNAME:                                                          _____ 
  4501.         
  4502.                        input  Enter the file name:  %%fname     
  4503.  
  4504.  
  4505.  
  4506.  
  4507.  
  4508.  
  4509.  
  4510.  
  4511.  
  4512.  
  4513.  
  4514.  
  4515.  
  4516.  
  4517.  
  4518.  
  4519.  
  4520.  
  4521.  
  4522.  
  4523.  
  4524.  
  4525.  
  4526.  
  4527.  
  4528.  
  4529.  
  4530.  
  4531.  
  4532.  
  4533.                    4DOS Reference Manual                  63
  4534.  
  4535.  
  4536.  
  4537.  
  4538.  
  4539.  
  4540.         KEYSTACK        KEYSTACK
  4541.         
  4542.         Syntax:      KEYSTACK ["abc"] [nn] [@nn]                     KEYSTACK ["abc"] [nn] [@nn]
  4543.         
  4544.         Purpose:     Feed keystrokes to a program from a batch file or
  4545.                      alias.
  4546.         
  4547.         Comments:    Characters entered within double quotes ("abc") will
  4548.                      be stored "as is" in the keyboard buffer.  Numbers (nn)                                                                         __ 
  4549.                      not enclosed in quotes are ASCII decimal codes (e.g.,
  4550.                      13 (ENTER), or 27 (ESCAPE)).  The number 0 is a special
  4551.                      case; it is used with programs that flush the keyboard
  4552.                      buffer (it tells the program the buffer is clear, so
  4553.                      subsequent keystrokes will be accepted normally).
  4554.                      Numbers preceded by @ are extended keyboard codes
  4555.                      generated by the Alt key, cursor pad keys, and the
  4556.                      Function keys (e.g., @59 is the F1 function key).  See
  4557.                      Appendix C for a list of the extended key codes.
  4558.         
  4559.                      You can store a maximum of 255 characters.
  4560.         
  4561.                      Each time KEYSTACK is executed, it will clear any
  4562.                      remaining keystrokes stored by a previous KEYSTACK.
  4563.         
  4564.                      You may need to experiment a bit with your programs
  4565.                      to find the proper sequence of keystrokes.  Programs
  4566.                      that bypass MS-DOS and the BIOS for keyboard input will
  4567.                      not work with KEYSTACK.
  4568.         
  4569.                      KEYSTACK requires the device driver KEYSTACK.SYS be
  4570.                      loaded in the CONFIG.SYS file (see INSTALLATION).
  4571.         
  4572.         Example:     The following batch file starts Lotus 1-2-3 and
  4573.                      loads the file specified on the command line:
  4574.         
  4575.                        pushd c:\123
  4576.                        keystack 0 13 0 13 0 13 0 13 0 13 "/FR" 0 "%1" 13
  4577.                        123
  4578.                        popd
  4579.         
  4580.                      The same command defined as an alias (enter this on
  4581.                      one line):
  4582.         
  4583.                        alias 321 `pushd c:\123 ^ keystack 0 13 0 13 0 13
  4584.                           0 13 0 13 "/FR" 0 "%1" 13 ^ 123 ^ popd`
  4585.  
  4586.  
  4587.  
  4588.  
  4589.  
  4590.  
  4591.  
  4592.  
  4593.                    4DOS Reference Manual                  64
  4594.  
  4595.  
  4596.  
  4597.  
  4598.  
  4599.  
  4600.         LIST        LIST
  4601.         
  4602.         Syntax:      LIST [d:][path]filename...                     LIST [d:][path]filename...
  4603.         
  4604.         Purpose:     Display a file with forward and backward paging and
  4605.                      scrolling.
  4606.         
  4607.         Comments:    LIST provides a much faster and more flexible way to
  4608.                      view a file than TYPE, without the overhead of using a
  4609.                      text editor.  LIST can handle any size file.
  4610.         
  4611.                      The PgUp key moves you back one page; the PgDn key
  4612.                      moves you forward one page.  The Home key displays the
  4613.                      first page of the file, the End key the last page.  The
  4614.                      up arrow scrolls back one line, the down arrow forward
  4615.                      one line.  The left arrow key moves the display left 8
  4616.                      characters at a time, and the right arrow key moves the
  4617.                      display right 8 characters at a time.
  4618.         
  4619.                      The F1 key will search for a text string; the F2 key
  4620.                      will find the next matching text string (case
  4621.                      differences are ignored).
  4622.         
  4623.                      The Esc key will exit the current file; the ^C or
  4624.                      ^BREAK keys will exit LIST.
  4625.         
  4626.                      LIST is normally only useful for displaying ASCII
  4627.                      text files; executable files (.COM and .EXE) and many
  4628.                      data files will be unreadable due to the presence of
  4629.                      non-alphanumeric characters.
  4630.         
  4631.                      See also TYPE.
  4632.         
  4633.         Example:     Display the file MEMO.DOC:                                      ________ 
  4634.         
  4635.                        c:\> list memo.doc                            list memo.doc
  4636.  
  4637.  
  4638.  
  4639.  
  4640.  
  4641.  
  4642.  
  4643.  
  4644.  
  4645.  
  4646.  
  4647.  
  4648.  
  4649.  
  4650.  
  4651.  
  4652.  
  4653.                    4DOS Reference Manual                  65
  4654.  
  4655.  
  4656.  
  4657.  
  4658.  
  4659.  
  4660.         MD / MKDIR        MD / MKDIR
  4661.         
  4662.         Syntax:      MD [d:]pathname...                     MD [d:]pathname...
  4663.                        or
  4664.                      MKDIR [d:]pathname...                     MKDIR [d:]pathname...
  4665.         
  4666.         Purpose:     Create subdirectories.
  4667.         
  4668.         Comments:    To start at the root directory, start the pathname
  4669.                      with a backslash (\).  To start at the parent
  4670.                      directory, start the pathname with two periods (..).
  4671.                      All other pathnames start at the current directory.
  4672.         
  4673.                      The longest allowable path in MS-DOS from the root
  4674.                      directory to any subdirectory is 64 characters
  4675.                      (including backslashes).
  4676.         
  4677.                      See also RD.
  4678.         
  4679.         Example:     Create a subdirectory called MYDIR in the root                                                  _____            
  4680.                      directory:
  4681.         
  4682.                        c:\> md \mydir                            md \mydir
  4683.         
  4684.                      Create a subdirectory called DIRTWO in the current                                                  ______               
  4685.                      directory:
  4686.         
  4687.                        c:\mydir> md dirtwo                                 md dirtwo
  4688.  
  4689.  
  4690.  
  4691.  
  4692.  
  4693.  
  4694.  
  4695.  
  4696.  
  4697.  
  4698.  
  4699.  
  4700.  
  4701.  
  4702.  
  4703.  
  4704.  
  4705.  
  4706.  
  4707.  
  4708.  
  4709.  
  4710.  
  4711.  
  4712.  
  4713.                    4DOS Reference Manual                  66
  4714.  
  4715.  
  4716.  
  4717.  
  4718.  
  4719.  
  4720.         MEMORY        MEMORY
  4721.         
  4722.         Syntax:      MEMORY                     MEMORY
  4723.         
  4724.         Purpose:     Display the system RAM status.
  4725.         
  4726.         Comments:    MEMORY displays the total RAM, the free RAM
  4727.                      (available to applications programs after loading MS-
  4728.                      DOS, device drivers, 4DOS itself, and RAM resident
  4729.                      programs); the total and free expanded memory, extended
  4730.                      memory (for 80286 and 80386 machines); and the total
  4731.                      and free environment space.
  4732.         
  4733.         Example:     Display your RAM totals:
  4734.         
  4735.                        c:\> memory
  4736.                           655,360 bytes total RAM
  4737.                           534,464 bytes free
  4738.         
  4739.                           524,288 bytes total EXPANDED memory
  4740.                           524,288 bytes free
  4741.         
  4742.                         2,097,152 bytes total EXTENDED memory
  4743.         
  4744.                             1,024 bytes total ENVIRONMENT
  4745.                               763 bytes free
  4746.  
  4747.  
  4748.  
  4749.  
  4750.  
  4751.  
  4752.  
  4753.  
  4754.  
  4755.  
  4756.  
  4757.  
  4758.  
  4759.  
  4760.  
  4761.  
  4762.  
  4763.  
  4764.  
  4765.  
  4766.  
  4767.  
  4768.  
  4769.  
  4770.  
  4771.  
  4772.  
  4773.                    4DOS Reference Manual                  67
  4774.  
  4775.  
  4776.  
  4777.  
  4778.  
  4779.  
  4780.         MOVE        MOVE
  4781.         
  4782.         Syntax:      MOVE [/P] [d:][path]filename... [d:][path]filename                     MOVE [/P] [d:][path]filename... [d:][path]filename
  4783.         
  4784.         Purpose:     Move files to other directories and drives.
  4785.         
  4786.         Comments:    The MOVE command moves the specified file(s) to the
  4787.                      last filename specified, which is designated as the
  4788.                      target.  If the target already exists, it is deleted
  4789.                      when the file is moved.  You cannot move a file to
  4790.                      itself.
  4791.         
  4792.                      If there is more than one source file specification,
  4793.                      the target must be a directory, and the files are moved
  4794.                      to the directory with their original filenames.  If the
  4795.                      target is not a directory, MOVE will display an error
  4796.                      message and exit.
  4797.         
  4798.                      The /P(rompt) option will prompt you for a Y or N
  4799.                      response to confirm each move.
  4800.         
  4801.                      MOVE first attempts to rename the file(s).  If that
  4802.                      fails (the target is on a different drive, or the
  4803.                      target already exists), MOVE will copy the file(s) and
  4804.                      then delete the originals.
  4805.         
  4806.                      See also COPY and RENAME.
  4807.         
  4808.         Example:     Move some files to a different directory:
  4809.         
  4810.                        c:\> move *.wks *.txt c:\finance\myfiles                            move *.wks *.txt c:\finance\myfiles
  4811.  
  4812.  
  4813.  
  4814.  
  4815.  
  4816.  
  4817.  
  4818.  
  4819.  
  4820.  
  4821.  
  4822.  
  4823.  
  4824.  
  4825.  
  4826.  
  4827.  
  4828.  
  4829.  
  4830.  
  4831.  
  4832.  
  4833.                    4DOS Reference Manual                  68
  4834.  
  4835.  
  4836.  
  4837.  
  4838.  
  4839.  
  4840.         PATH        PATH
  4841.         
  4842.         Syntax:      PATH [[d:]path;[d:]path...]]                     PATH [[d:]path;[d:]path...]]
  4843.         
  4844.         Purpose:     Tells 4DOS where to search for executable and batch
  4845.                      files not in the current directory.
  4846.         
  4847.         Comments:    When searching for an external command (.COM, .EXE,
  4848.                      and .BAT), 4DOS searches the current directory first,
  4849.                      then the directories you specify in the order you list
  4850.                      them.  The directory names are separated by semicolons
  4851.                      (;).
  4852.         
  4853.                      If you enter PATH with no parameters, 4DOS displays
  4854.                      the current search path.  If you enter PATH and a
  4855.                      semicolon, 4DOS clears the search path and will search
  4856.                      only the current directory (this is the default at
  4857.                      system startup).
  4858.         
  4859.                      If you specify an invalid directory, 4DOS will skip
  4860.                      that directory and continue searching with the next
  4861.                      directory in the path.
  4862.         
  4863.                      Some applications use the PATH variable to search
  4864.                      for their files.
  4865.         
  4866.                      You can edit the path with the ESET command.
  4867.         
  4868.         Example:     The following PATH command directs 4DOS to search
  4869.                      for an executable file in the following order: the
  4870.                      current directory, the root directory on C, the DOS
  4871.                      subdirectory on C, and the UTIL subdirectory on C:
  4872.         
  4873.                        c:\> path c:\;c:\dos;c:\util                            path c:\;c:\dos;c:\util
  4874.         
  4875.                      Display the current search path:                                                   
  4876.         
  4877.                        c:\> path                            path
  4878.                        c:\;c:\dos;c:\util
  4879.  
  4880.  
  4881.  
  4882.  
  4883.  
  4884.  
  4885.  
  4886.  
  4887.  
  4888.  
  4889.  
  4890.  
  4891.  
  4892.  
  4893.                    4DOS Reference Manual                  69
  4894.  
  4895.  
  4896.  
  4897.  
  4898.  
  4899.  
  4900.         PAUSE        PAUSE
  4901.         
  4902.         Syntax:      PAUSE [message]                     PAUSE [message]
  4903.         
  4904.         Purpose:     Suspend alias or batch file execution.
  4905.         
  4906.         Comments:    A PAUSE command in a batch file will suspend
  4907.                      execution, giving you the opportunity to perform
  4908.                      activities such as changing disks, turning on the
  4909.                      printer, etc.
  4910.         
  4911.                      PAUSE waits for any key (except ^C or ^BREAK) to be
  4912.                      pressed and then continues executing the batch file.
  4913.                      If a prompt message is specified, 4DOS will display the
  4914.                      message and wait for a keystroke.  Otherwise, 4DOS will
  4915.                      prompt:
  4916.         
  4917.                        Strike a key when ready...                       Strike a key when ready...
  4918.         
  4919.                      If you press ^C or ^BREAK while executing a batch
  4920.                      file, 4DOS will prompt:
  4921.         
  4922.                        Cancel batch job (Y/N)?                       Cancel batch job (Y/N)?
  4923.         
  4924.                      This gives you a way to quit a batch file at an
  4925.                      intermediate point.  If you are nesting batch files
  4926.                      (see CALL), a Y response will return you to the calling
  4927.                      batch file.
  4928.         
  4929.         Example:     The following batch file fragment prompts the user
  4930.                      before erasing files:
  4931.         
  4932.                        pause ^C aborts, any other key erases the .LST files
  4933.                        erase *.lst
  4934.  
  4935.  
  4936.  
  4937.  
  4938.  
  4939.  
  4940.  
  4941.  
  4942.  
  4943.  
  4944.  
  4945.  
  4946.  
  4947.  
  4948.  
  4949.  
  4950.  
  4951.  
  4952.  
  4953.                    4DOS Reference Manual                  70
  4954.  
  4955.  
  4956.  
  4957.  
  4958.  
  4959.  
  4960.         POPD        POPD
  4961.         
  4962.         Syntax:      POPD [*]                     POPD [*]
  4963.         
  4964.         Purpose:     Change to the disk drive and directory at the top of
  4965.                      the directory stack.
  4966.                        
  4967.         Comments:    POPD restores the disk drive and directory saved
  4968.                      using PUSHD (most recent first).
  4969.         
  4970.                      The * option clears the directory stack, without
  4971.                      changing the current drive and directory.
  4972.         
  4973.                      Use the DIRS command to display the directory stack.
  4974.         
  4975.                      See also DIRS and PUSHD.
  4976.         
  4977.         Example:     Save and change your disk drive and directory with
  4978.                      PUSHD, and then restore it:
  4979.         
  4980.                        c:\> pushd d:\database\test                            pushd d:\database\test
  4981.                        d:\database\test> pushd c:\wordp\memos                                         pushd c:\wordp\memos
  4982.                        c:\wordp\memos> pushd a:\123                                       pushd a:\123
  4983.                        a:\123> popd                               popd
  4984.                        c:\wordp\memos> popd                                       popd
  4985.                        d:\database\test> popd                                         popd
  4986.                        c:\>
  4987.         
  4988.                      Clear the directory stack:
  4989.         
  4990.                        c:\> popd *                            popd *
  4991.  
  4992.  
  4993.  
  4994.  
  4995.  
  4996.  
  4997.  
  4998.  
  4999.  
  5000.  
  5001.  
  5002.  
  5003.  
  5004.  
  5005.  
  5006.  
  5007.  
  5008.  
  5009.  
  5010.  
  5011.  
  5012.  
  5013.                    4DOS Reference Manual                  71
  5014.  
  5015.  
  5016.  
  5017.  
  5018.  
  5019.  
  5020.         PROMPT        PROMPT
  5021.         
  5022.         Syntax:      PROMPT [text]                     PROMPT [text]
  5023.         
  5024.         Purpose:     Change the 4DOS command line prompt.
  5025.         
  5026.         Comments:    If you enter PROMPT with no arguments, 4DOS sets the
  5027.                      prompt to $p$g (display current disk and directory).
  5028.         
  5029.                      The prompt text can contain special strings of the
  5030.                      form $?, where ? is one of the following:
  5031.         
  5032.                        a  The & character
  5033.                        b  The | character
  5034.                        c  The open parenthesis (
  5035.                        d  Current date, in the format Sun Jan 1, 1989
  5036.                        e  The ASCII ESC character (decimal 27)
  5037.                        f  The close parenthesis )
  5038.                        g  The > character
  5039.                        h  BACKSPACE over the previous character
  5040.                        l  The < character
  5041.                        n  Default drive letter
  5042.                        p  Current disk and directory
  5043.                        q  The = character
  5044.                        s  The space character
  5045.                        t  Current time, in the format hh:mm:ss
  5046.                        v  MS-DOS version number, in the format 3.10
  5047.                        _  CR/LF (go to beginning of new line)
  5048.                        $  The $ character
  5049.         
  5050.         Example:     Set the prompt to the current date and time:
  5051.         
  5052.                        c:\> prompt $d $t $g                            prompt $d $t $g
  5053.                        Mon  Dec 25, 1989 18:29:19 >
  5054.         
  5055.                      Set the prompt using ANSI escape sequences (see
  5056.                      Appendix B) to display the date, time, and path on the
  5057.                      top line (this should be entered on one line):
  5058.         
  5059.                        c:\> prompt $e[s$e[1;1f$e[37;1;41m$e[K $d $sTime:                            prompt $e[s$e[1;1f$e[37;1;41m$e[K $d $sTime:
  5060.                             $t$h$h$h $sPath: $p$e[u$e[0;32m$n$g                            $t$h$h$h $sPath: $p$e[u$e[0;32m$n$g
  5061.  
  5062.  
  5063.  
  5064.  
  5065.  
  5066.  
  5067.  
  5068.  
  5069.  
  5070.  
  5071.  
  5072.  
  5073.                    4DOS Reference Manual                  72
  5074.  
  5075.  
  5076.  
  5077.  
  5078.  
  5079.  
  5080.         PUSHD        PUSHD
  5081.         
  5082.         Syntax:      PUSHD [d:]pathname                     PUSHD [d:]pathname
  5083.         
  5084.         Purpose:     Save the current disk drive and directory.
  5085.         
  5086.         Comments:    PUSHD saves the current directory on the directory
  5087.                      stack, and changes the disk drive and directory.  The
  5088.                      directory stack can hold up to 255 characters (about 10
  5089.                      to 20 entries).
  5090.         
  5091.                      The saved directory is restored on a "last in, first
  5092.                      out" basis by the POPD command.  The directory stack
  5093.                      can be displayed with the DIRS command.
  5094.         
  5095.                      See also DIRS and POPD.
  5096.         
  5097.         Example:     Save the current directory and change to
  5098.                      C:\WORDP\MEMOS:                     ______________
  5099.         
  5100.                        c:\> pushd \wordp\memos                            pushd \wordp\memos
  5101.                        c:\wordp\memos>
  5102.  
  5103.  
  5104.  
  5105.  
  5106.  
  5107.  
  5108.  
  5109.  
  5110.  
  5111.  
  5112.  
  5113.  
  5114.  
  5115.  
  5116.  
  5117.  
  5118.  
  5119.  
  5120.  
  5121.  
  5122.  
  5123.  
  5124.  
  5125.  
  5126.  
  5127.  
  5128.  
  5129.  
  5130.  
  5131.  
  5132.  
  5133.                    4DOS Reference Manual                  73
  5134.  
  5135.  
  5136.  
  5137.  
  5138.  
  5139.  
  5140.         QUIT        QUIT
  5141.         
  5142.         Syntax:      QUIT                     QUIT
  5143.         
  5144.         Purpose:     Terminate the current batch file.
  5145.         
  5146.         Comments:    You can QUIT at any point in a batch file, not just
  5147.                      at the end.
  5148.         
  5149.                      If you QUIT a batch file called from another batch
  5150.                      file, you will be returned to the previous file at the
  5151.                      line following the original call.  To end all batch
  5152.                      file processing, use CANCEL.
  5153.         
  5154.                      See also CANCEL.
  5155.         
  5156.         Example:     This batch file fragment checks to see if the user
  5157.                      entered "quit" and exits if true.  Otherwise, it calls
  5158.                      two subroutines and then exits.
  5159.         
  5160.                        input  Enter your choice :  %%option
  5161.                        if  "%option" == "quit"  quit
  5162.                        rem Perform the option processing
  5163.                        gosub firstroutine
  5164.                        gosub secondroutine
  5165.                        quit
  5166.  
  5167.  
  5168.  
  5169.  
  5170.  
  5171.  
  5172.  
  5173.  
  5174.  
  5175.  
  5176.  
  5177.  
  5178.  
  5179.  
  5180.  
  5181.  
  5182.  
  5183.  
  5184.  
  5185.  
  5186.  
  5187.  
  5188.  
  5189.  
  5190.  
  5191.  
  5192.  
  5193.                    4DOS Reference Manual                  74
  5194.  
  5195.  
  5196.  
  5197.  
  5198.  
  5199.  
  5200.         RD / RMDIR        RD / RMDIR
  5201.         
  5202.         Syntax:      RD [d:]path...                     RD [d:]path...
  5203.                         or
  5204.                      RMDIR [d:]path...                     RMDIR [d:]path...
  5205.         
  5206.         Purpose:     Remove one or more subdirectories.
  5207.         
  5208.         Comments:    Before removing a subdirectory, you must delete all
  5209.                      the files and subdirectories (and their files) in that
  5210.                      directory (including any hidden or read-only files).
  5211.         
  5212.                      You can use the MS-DOS wildcard characters (* and ?)
  5213.                      in the directory names.
  5214.         
  5215.                      You cannot remove the root directory (\), the
  5216.                      current directory (.), or the parent directory (..).
  5217.         
  5218.                      See also MD.
  5219.         
  5220.         Example:     Remove the subdirectory MEMOS from the subdirectory                                             _____
  5221.                      WP:                     __ 
  5222.         
  5223.                        c:\> rmdir \wp\memos                            rmdir \wp\memos
  5224.  
  5225.  
  5226.  
  5227.  
  5228.  
  5229.  
  5230.  
  5231.  
  5232.  
  5233.  
  5234.  
  5235.  
  5236.  
  5237.  
  5238.  
  5239.  
  5240.  
  5241.  
  5242.  
  5243.  
  5244.  
  5245.  
  5246.  
  5247.  
  5248.  
  5249.  
  5250.  
  5251.  
  5252.  
  5253.                    4DOS Reference Manual                  75
  5254.  
  5255.  
  5256.  
  5257.  
  5258.  
  5259.  
  5260.         REM        REM
  5261.         
  5262.         Syntax:      REM [comment]                     REM [comment]
  5263.         
  5264.         Purpose:     Put a comment in a batch file.
  5265.         
  5266.         Comments:    If ECHO is ON, or the variable VERBOSE (see the
  5267.                      SETDOS command) is set, 4DOS will echo the comment.
  5268.                      Otherwise, 4DOS will ignore it.  If you don't want to
  5269.                      echo the line, preface REM with the @ character.
  5270.         
  5271.                      Enter your comment following the REM, separated by a
  5272.                      space or tab.  Comments can be up to 255 characters.
  5273.                      4DOS will ignore everything following a REM, including
  5274.                      the redirection symbols (>, <, and |) and the command
  5275.                      separator character.
  5276.  
  5277.                      Batch file comments are useful for documenting the
  5278.                      purpose for a batch file and the procedures used.
  5279.         
  5280.         Example:     Enter comments in a batch file:
  5281.         
  5282.                        rem This batch file provides a
  5283.                        rem menu-based system for accessing
  5284.                        rem the word processing utilities.
  5285.                        rem Clear the screen and get selection
  5286.                        cls
  5287.  
  5288.  
  5289.  
  5290.  
  5291.  
  5292.  
  5293.  
  5294.  
  5295.  
  5296.  
  5297.  
  5298.  
  5299.  
  5300.  
  5301.  
  5302.  
  5303.  
  5304.  
  5305.  
  5306.  
  5307.  
  5308.  
  5309.  
  5310.  
  5311.  
  5312.  
  5313.                    4DOS Reference Manual                  76
  5314.  
  5315.  
  5316.  
  5317.  
  5318.  
  5319.  
  5320.         REN / RENAME        REN / RENAME
  5321.         
  5322.         Syntax:      REN [/P] [d:][path]filename... [d:][path]filename                     REN [/P] [d:][path]filename... [d:][path]filename
  5323.                         or
  5324.                      RENAME [/P] [d:][path]filename... [d:][path]filename                     RENAME [/P] [d:][path]filename... [d:][path]filename
  5325.         
  5326.         Purpose:     Rename files or directories.
  5327.         
  5328.         Comments:    The last filename is the new name; the preceding
  5329.                      names are the files or directories to be renamed.  You
  5330.                      can use the wildcard characters (? and *) in the
  5331.                      filenames.  The new filename must not already exist.
  5332.         
  5333.                      If the /P(rompt) option is specified, 4DOS will
  5334.                      prompt you to enter Y or N to confirm each rename.
  5335.         
  5336.                      4DOS allows you to rename files to a new directory
  5337.                      on the same disk drive.  If you want to rename to a
  5338.                      different drive, use the MOVE command.
  5339.         
  5340.                      NOTE:  You cannot rename a subdirectory to a new
  5341.                      path!
  5342.         
  5343.                      See also MOVE.
  5344.         
  5345.         Example:     Rename the file MEMO.TXT to OFFICE.TXT:                                     ________    __________ 
  5346.         
  5347.                        c:\> rename memo.txt office.txt                            rename memo.txt office.txt
  5348.         
  5349.                      Rename the file MEMO.TXT to another directory:                                     ________                      
  5350.         
  5351.                        c:\> rename memo.txt c:\wp\memos\memo.txt                            rename memo.txt c:\wp\memos\memo.txt
  5352.         
  5353.                      Rename the directory \WORDPROC to \WP:                                          _________    ___ 
  5354.         
  5355.                        c:\> rename \wordproc \wp                            rename \wordproc \wp
  5356.         
  5357.                      Rename two files to another directory:
  5358.         
  5359.                        c:\> rename f12.wks f37.wks c:\wks\ffiles                            rename f12.wks f37.wks c:\wks\ffiles
  5360.  
  5361.  
  5362.  
  5363.  
  5364.  
  5365.  
  5366.  
  5367.  
  5368.  
  5369.  
  5370.  
  5371.  
  5372.  
  5373.                    4DOS Reference Manual                  77
  5374.  
  5375.  
  5376.  
  5377.  
  5378.  
  5379.  
  5380.         RETURN        RETURN
  5381.         
  5382.         Syntax:      RETURN                     RETURN
  5383.         
  5384.         Purpose:     Return from a GOSUB (subroutine) call in a batch
  5385.                      file.
  5386.         
  5387.         Comments:    The RETURN command returns from a GOSUB call to the
  5388.                      line following the original GOSUB.
  5389.         
  5390.                      See also GOSUB.
  5391.         
  5392.         Example:     The following batch file fragment calls a subroutine
  5393.                      which displays the current directory:
  5394.         
  5395.                        echo Calling a subroutine
  5396.                        gosub subr1
  5397.                        echo Returned from the subroutine
  5398.                        quit
  5399.                        :subr1
  5400.                        dir /hw
  5401.                        return
  5402.  
  5403.  
  5404.  
  5405.  
  5406.  
  5407.  
  5408.  
  5409.  
  5410.  
  5411.  
  5412.  
  5413.  
  5414.  
  5415.  
  5416.  
  5417.  
  5418.  
  5419.  
  5420.  
  5421.  
  5422.  
  5423.  
  5424.  
  5425.  
  5426.  
  5427.  
  5428.  
  5429.  
  5430.  
  5431.  
  5432.  
  5433.                    4DOS Reference Manual                  78
  5434.  
  5435.  
  5436.  
  5437.  
  5438.  
  5439.  
  5440.         SCREEN        SCREEN
  5441.         
  5442.         Syntax:      SCREEN row column [message]                     SCREEN row column [message]
  5443.         
  5444.         Purpose:     Position the cursor on the screen, and optionally
  5445.                      display a message.
  5446.         
  5447.         Comments:    SCREEN allows you to create attractive batch file
  5448.                      screen displays.
  5449.         
  5450.                      See also ECHO and TEXT.
  5451.         
  5452.         Example:     The following batch file fragment displays a menu:
  5453.         
  5454.                        @echo off
  5455.                        cls
  5456.                        screen 3 10  Select a number from 1 to 4:
  5457.                        screen 6 20  1 - Word Processing
  5458.                        screen 7 20  2 - Spreadsheet
  5459.                        screen 8 20  3 - Telecommunications
  5460.                        screen 9 20  4 - Quit
  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.  
  5492.  
  5493.                    4DOS Reference Manual                  79
  5494.  
  5495.  
  5496.  
  5497.  
  5498.  
  5499.  
  5500.         SELECT        SELECT
  5501.         
  5502.         Syntax:      SELECT [/Oertuz] command ([d:][path]filename...)...                     SELECT [/Oertuz] command ([d:][path]filename...)...
  5503.         
  5504.         Purpose:     Execute a command on the specified files.
  5505.         
  5506.         Comments:    SELECT allows you to select command line file
  5507.                      arguments by marking the directory entries using a
  5508.                      full-screen "point-and-shoot" display.   SELECT
  5509.                      substitutes the selected files for the argument
  5510.                      enclosed in parentheses, and executes the command for
  5511.                      each marked file.  If you specify multiple arguments in
  5512.                      the parentheses, SELECT will display the matching files
  5513.                      for the first argument, prompt you to mark the files,
  5514.                      execute the command for each marked file, and then
  5515.                      continue the same procedure with the next argument.
  5516.         
  5517.                      SELECT uses the up arrow, down arrow, PgUp, and PgDn
  5518.                      keys to scroll through the files matching the
  5519.                      argument(s).  Use the + key to select a file, and the -
  5520.                      key to unselect a file.  The * key will select all of
  5521.                      the files (excluding subdirectories).  After marking
  5522.                      the files, press ENTER to execute the command.
  5523.                      
  5524.                      You can select a single file by moving the scroll
  5525.                      bar to the filename and pressing ENTER.
  5526.         
  5527.                      To cancel the SELECT command, type an Escape, ^C, or
  5528.                      ^BREAK.
  5529.         
  5530.                      The /O option determines the sort order for the
  5531.                      directory display (the default sort is by filename):
  5532.         
  5533.                        e  sort by extension                       e                   
  5534.                        t  sort by time (oldest first)                       t                           
  5535.                        z  sort by size                       z              
  5536.                        u  unsorted                       u          
  5537.                        r  reverse the sort order                       r                      
  5538.         
  5539.         Example:     Select from the files in the current directory with
  5540.                      the extension .COM, and then from the files with the                                   ____                                
  5541.                      extension .EXE to copy to the root directory on drive                               ____                                     
  5542.                      A:
  5543.         
  5544.                        c:\> select copy (*.com *.exe) a:\                            select copy (*.com *.exe) a:\
  5545.  
  5546.  
  5547.  
  5548.  
  5549.  
  5550.  
  5551.  
  5552.  
  5553.                    4DOS Reference Manual                  80
  5554.  
  5555.  
  5556.  
  5557.  
  5558.  
  5559.  
  5560.         SET        SET
  5561.         
  5562.         Syntax:      SET [variable[=][value]]                     SET [variable[=][value]]
  5563.         
  5564.         Purpose:     Display, create, modify, or delete environment
  5565.                      variables.
  5566.         
  5567.         Comments:    Entering SET with no variable or value displays the                                          ________    _____             
  5568.                      environment.  If you don't enter a value, SET will                                                        _____          
  5569.                      remove the variable from the environment.  Otherwise,                                ________
  5570.                      the variable and the value are placed in the                         ________         _____                  
  5571.                      environment.  If the variable already exists, its old                                          ________                      
  5572.                      contents are replaced by the new value.  4DOS limits                                                      _____              
  5573.                      the variable name to a maximum of 80 characters, and                         ________                                      
  5574.                      the value to a maximum of 255 characters.                         _____                              
  5575.         
  5576.                      SET only affects the environment of the current
  5577.                      command processor.  If you EXIT to a parent command
  5578.                      processor, the original environment will be unchanged.
  5579.                      The size of the environment is specified by the /E
  5580.                      parameter at startup.  The default size is 1024
  5581.                      characters.
  5582.         
  5583.                      You can edit environment variables with the ESET
  5584.                      command.
  5585.         
  5586.                      See also ESET.
  5587.         
  5588.         Example:     Display the current environment:
  5589.         
  5590.                        c:\> set                            set
  5591.                        COMSPEC=C:\4DOS.COM
  5592.                        PATH=c:\;c:\dos;c:\util
  5593.                        
  5594.                      Add a variable to the environment:
  5595.         
  5596.                        c:\> set mine=c:\finance\myfiles                            set mine=c:\finance\myfiles
  5597.                        c:\> set                            set
  5598.                        COMSPEC=C:\4DOS.COM
  5599.                        PATH=c:\;c:\dos;c:\util
  5600.                        MINE=c:\finance\myfiles
  5601.         
  5602.                      Remove a variable from the environment:
  5603.         
  5604.                        c:\> set mine                            set mine
  5605.  
  5606.  
  5607.  
  5608.  
  5609.  
  5610.  
  5611.  
  5612.  
  5613.                    4DOS Reference Manual                  81
  5614.  
  5615.  
  5616.  
  5617.  
  5618.  
  5619.  
  5620.         SETDOS        SETDOS
  5621.         
  5622.         Syntax:      SETDOS [/C? /E? /H? /M? /N? /V?]                     SETDOS [/C? /E? /H? /M? /N? /V?]
  5623.         
  5624.         Purpose:     Display or set 4DOS configuration variables.
  5625.         
  5626.         Comments:    SETDOS allows you to customize 4DOS to your personal
  5627.                      tastes.  You would normally define the SETDOS variables
  5628.                      in your AUTOEXEC.BAT or 4START.BAT file.  The SETDOS
  5629.                      options are:
  5630.         
  5631.                        C  The COMPOUND argument is the character used for                       C                                             
  5632.                             separating multiple commands on the same line.
  5633.                             The default character is the caret (^).  You
  5634.                             cannot use any of the redirection characters
  5635.                             (<, >, and |) as the command separator.
  5636.                      
  5637.                        E  The ESCAPE argument is the character used to                       E                                          
  5638.                             suppress the normal meaning of the following
  5639.                             character.  Any character preceded by the
  5640.                             escape character will be passed unmodified to
  5641.                             the command line.  The default escape character
  5642.                             is ^X.  You cannot use any of the redirection
  5643.                             characters (<, >, and |) as the escape
  5644.                             character.
  5645.  
  5646.                        H  The HISTORY variable determines the minimum                       H                                           
  5647.                             command size to save.  Any command line whose
  5648.                             length is less than this value will not be
  5649.                             saved to the history list.  Setting /H to 256
  5650.                             will disable all history saves; setting it to 0
  5651.                             will save everything.  The default value is 0.
  5652.  
  5653.                        M  The MODE variable controls the line editing mode.                       M                                               
  5654.                             4DOS defaults to overstrike mode (0).  If MODE
  5655.                             is set to 1, the default is insert mode.
  5656.  
  5657.                        N  The NOCLOBBER variable controls output                       N                                      
  5658.                             redirection.  If NOCLOBBER is set to 1, then
  5659.                             existing files may not be destroyed by output
  5660.                             redirection, and when appending with >>, the
  5661.                             output file must exist.  NOCLOBBER can be
  5662.                             overridden with the ! character (see the
  5663.                             section on redirection in USING 4DOS).  The
  5664.                             default value is 0.
  5665.  
  5666.  
  5667.  
  5668.  
  5669.  
  5670.  
  5671.  
  5672.  
  5673.                    4DOS Reference Manual                  82
  5674.  
  5675.  
  5676.  
  5677.  
  5678.  
  5679.  
  5680.                        V  The VERBOSE variable controls command echoing in                       V                                              
  5681.                             batch files.  If VERBOSE is set to 0, batch
  5682.                             files will NOT echo their input unless they set
  5683.                             ECHO ON.  VERBOSE defaults to 1 (that is, batch
  5684.                             files WILL echo input).
  5685.         
  5686.         Example:     Change the COMPOUND character to a ~ (tilde):
  5687.         
  5688.                        c:\> setdos /c~                            setdos /c~
  5689.         
  5690.                      Change MODE to insert, VERBOSE to off, and set
  5691.                      NOCLOBBER on:
  5692.         
  5693.                        c:\> setdos /m1 /v0 /n1                            setdos /m1 /v0 /n1
  5694.  
  5695.  
  5696.  
  5697.  
  5698.  
  5699.  
  5700.  
  5701.  
  5702.  
  5703.  
  5704.  
  5705.  
  5706.  
  5707.  
  5708.  
  5709.  
  5710.  
  5711.  
  5712.  
  5713.  
  5714.  
  5715.  
  5716.  
  5717.  
  5718.  
  5719.  
  5720.  
  5721.  
  5722.  
  5723.  
  5724.  
  5725.  
  5726.  
  5727.  
  5728.  
  5729.  
  5730.  
  5731.  
  5732.  
  5733.                    4DOS Reference Manual                  83
  5734.  
  5735.  
  5736.  
  5737.  
  5738.  
  5739.  
  5740.         SETLOCAL        SETLOCAL
  5741.         
  5742.         Syntax:      SETLOCAL                     SETLOCAL
  5743.         
  5744.         Purpose:     Save a copy of the current disk drive, directory,
  5745.                      and environment.
  5746.         
  5747.         Comments:    SETLOCAL is used in batch files to save the disk
  5748.                      drive, directory, environment variables, and aliases to
  5749.                      a reserved block of memory.  You can then change their
  5750.                      values, and later restore the original values with
  5751.                      ENDLOCAL.
  5752.         
  5753.                      SETLOCAL and ENDLOCAL are not nestable within the
  5754.                      same batch file.  However, you can have multiple
  5755.                      SETLOCAL / ENDLOCAL pairs within a batch file, and
  5756.                      nested batch files can each have their own SETLOCAL /
  5757.                      ENDLOCAL.
  5758.         
  5759.                      You cannot use SETLOCAL / ENDLOCAL in an alias.
  5760.         
  5761.                      See also ENDLOCAL.
  5762.         
  5763.         Example:     This batch file fragment saves the disk drive,
  5764.                      directory, and environment, changes the disk and
  5765.                      directory, modifies some variables, deletes all the
  5766.                      aliases, runs a program, and then restores the original
  5767.                      values:
  5768.         
  5769.                        setlocal
  5770.                        cdd d:\test
  5771.                        set path=c:\;c:\dos;c:\util
  5772.                        set lib=d:\lib
  5773.                        unalias *
  5774.                        rem run some program here
  5775.                        endlocal
  5776.  
  5777.  
  5778.  
  5779.  
  5780.  
  5781.  
  5782.  
  5783.  
  5784.  
  5785.  
  5786.  
  5787.  
  5788.  
  5789.  
  5790.  
  5791.  
  5792.  
  5793.                    4DOS Reference Manual                  84
  5794.  
  5795.  
  5796.  
  5797.  
  5798.  
  5799.  
  5800.         SHIFT        SHIFT
  5801.         
  5802.         Syntax:      SHIFT [n]                     SHIFT [n]
  5803.         
  5804.         Purpose:     Allow the use of more than 10 variables in a batch
  5805.                      file.
  5806.         
  5807.         Comment:     SHIFT is provided for compatibility with COMMAND.COM.
  5808.                      COMMAND.COM supports only 10 parameters (%0 through
  5809.                      %9); 4DOS supports 128 parameters (%0 to %127), so
  5810.                      you may not need to use SHIFT for batch files running
  5811.                      exclusively under 4DOS.
  5812.         
  5813.                      SHIFT moves each of the batch file parameters n                                                                   _
  5814.                      positions (i.e., %1 becomes %0, %2 becomes %1, etc.).
  5815.                      The default value for n is 1.  You can also reverse a                                           _
  5816.                      SHIFT, by giving a negative value for n (i.e., if n is                                                           _           _
  5817.                      -1, the former value for %0 is restored, %0 becomes %1,
  5818.                      %1 becomes %2, etc.).
  5819.         
  5820.         Example:     Create a batch file called TEST.BAT:                                                ________ 
  5821.         
  5822.                        echo %1 %2 %3 %4
  5823.                        shift
  5824.                        echo %1 %2 %3 %4
  5825.                        shift 2
  5826.                        echo %1 %2 %3 %4
  5827.                        shift -1
  5828.                        echo %1 %2 %3 %4
  5829.         
  5830.                      Executing TEST.BAT produces the following results:                               ________                              
  5831.                        
  5832.                        c:\> test zero one two three four five six                            test zero one two three four five six
  5833.                        zero one two three
  5834.                        one two three four
  5835.                        three four five six
  5836.                        two three four five
  5837.  
  5838.  
  5839.  
  5840.  
  5841.  
  5842.  
  5843.  
  5844.  
  5845.  
  5846.  
  5847.  
  5848.  
  5849.  
  5850.  
  5851.  
  5852.  
  5853.                    4DOS Reference Manual                  85
  5854.  
  5855.  
  5856.  
  5857.  
  5858.  
  5859.  
  5860.         TEE        TEE
  5861.         
  5862.         Syntax:      TEE [/A] [d:][path]filename...                     TEE [/A] [d:][path]filename...
  5863.         
  5864.         Purpose:     Copy standard input to standard output, and save a
  5865.                      copy in the specified file(s).
  5866.         
  5867.         Comments:    The /A option causes the output to be appended to
  5868.                      the file(s) rather than overwriting it.
  5869.         
  5870.                      If you are typing at the keyboard, you need to enter
  5871.                      a ^Z to terminate the input.
  5872.         
  5873.                      TEE is often used to save the intermediate output of
  5874.                      a pipe.
  5875.         
  5876.                      See also Y.
  5877.         
  5878.         Example:     Search the file DOC for any lines containing the                                     ___                           
  5879.                      string "4DOS", make a copy of the matching lines in
  5880.                      4.DAT, sort the lines, and write them to the output                     _____                                          
  5881.                      file 4DOS.DAT:                          ________ 
  5882.         
  5883.                        c:\> find "4DOS" doc | tee 4.dat | sort > 4dos.dat                            find "4DOS" doc | tee 4.dat | sort > 4dos.dat
  5884.  
  5885.  
  5886.  
  5887.  
  5888.  
  5889.  
  5890.  
  5891.  
  5892.  
  5893.  
  5894.  
  5895.  
  5896.  
  5897.  
  5898.  
  5899.  
  5900.  
  5901.  
  5902.  
  5903.  
  5904.  
  5905.  
  5906.  
  5907.  
  5908.  
  5909.  
  5910.  
  5911.  
  5912.  
  5913.                    4DOS Reference Manual                  86
  5914.  
  5915.  
  5916.  
  5917.  
  5918.  
  5919.  
  5920.         TEXT        TEXT
  5921.         
  5922.         Syntax:      TEXT                     TEXT
  5923.                        .                       .
  5924.                        .                       .
  5925.                        .                       .
  5926.                      ENDTEXT                     ENDTEXT
  5927.         
  5928.         Purpose:     Display a block of text in a batch file.
  5929.         
  5930.         Comments:    The TEXT command is useful for displaying menus or
  5931.                      multiple line messages.  TEXT will display subsequent
  5932.                      lines in the batch file until terminated by ENDTEXT.
  5933.         
  5934.                      You can change screen colors by inserting an ANSI
  5935.                      escape sequence (see Appendix B).
  5936.         
  5937.                      See also ECHO and SCREEN.
  5938.         
  5939.         Example:     The following batch file fragment displays a simple
  5940.                      menu:
  5941.         
  5942.                        @echo off
  5943.                        cls
  5944.                        screen 2 0
  5945.                        test
  5946.                        Enter one of the following:
  5947.         
  5948.                           1 - Spreadsheet
  5949.                           2 - Word Processing
  5950.                           3 - DOS Utilities
  5951.         
  5952.                        Enter your selection :
  5953.                        endtext
  5954.  
  5955.  
  5956.  
  5957.  
  5958.  
  5959.  
  5960.  
  5961.  
  5962.  
  5963.  
  5964.  
  5965.  
  5966.  
  5967.  
  5968.  
  5969.  
  5970.  
  5971.  
  5972.  
  5973.                    4DOS Reference Manual                  87
  5974.  
  5975.  
  5976.  
  5977.  
  5978.  
  5979.  
  5980.         TIME        TIME
  5981.         
  5982.         Syntax:      TIME [hh[:mm[:ss]]]                     TIME [hh[:mm[:ss]]]
  5983.         
  5984.         Purpose:     Display or set the current system time.
  5985.         
  5986.         Comments:    If you don't enter any parameters, TIME will display
  5987.                      the current system time and prompt you for a new time.
  5988.                      Press ENTER if you don't wish to change the time,
  5989.                      otherwise enter the new time.
  5990.         
  5991.                      The parameters for the TIME command are:
  5992.         
  5993.                        hh (hour) = 0 - 23                       __     
  5994.                        mm (minute) = 0 - 59                       __                  
  5995.                        ss (second) = 0 - 59                       __                  
  5996.         
  5997.                      Whenever you create or modify a file, the system
  5998.                      time is recorded in  the directory entry.
  5999.         
  6000.         Example:     Enter the time (9:30 am):
  6001.         
  6002.                        c:\> time 9:30                            time 9:30
  6003.         
  6004.                      To be prompted for the time:
  6005.         
  6006.                        c:\> time                            time
  6007.                        Mon  Dec 25, 1989  9:30:10
  6008.                        New time (hh:mm:ss):
  6009.  
  6010.  
  6011.  
  6012.  
  6013.  
  6014.  
  6015.  
  6016.  
  6017.  
  6018.  
  6019.  
  6020.  
  6021.  
  6022.  
  6023.  
  6024.  
  6025.  
  6026.  
  6027.  
  6028.  
  6029.  
  6030.  
  6031.  
  6032.  
  6033.                    4DOS Reference Manual                  88
  6034.  
  6035.  
  6036.  
  6037.  
  6038.  
  6039.  
  6040.         TIMER        TIMER
  6041.         
  6042.         Syntax:      TIMER                     TIMER
  6043.         
  6044.         Purpose:     System stopwatch.
  6045.         
  6046.         Comments:    The TIMER command turns the system stopwatch on and
  6047.                      off.  The first time you run TIMER, the stopwatch
  6048.                      starts.  When you run TIMER again, the stopwatch stops
  6049.                      and the elapsed time is displayed.
  6050.         
  6051.                      TIMER is particularly useful for timing events in
  6052.                      batch files.
  6053.                      
  6054.                      The smallest interval TIMER can measure is .06
  6055.                      seconds; the largest interval is 23:59:59.99.
  6056.         
  6057.         Example:     Start the timer:    
  6058.                        
  6059.                        c:\> timer                            timer
  6060.                        Timer on
  6061.         
  6062.                      Stop the timer:
  6063.         
  6064.                        c:\> timer                            timer
  6065.                        Elapsed time: 0:00:08.06
  6066.  
  6067.  
  6068.  
  6069.  
  6070.  
  6071.  
  6072.  
  6073.  
  6074.  
  6075.  
  6076.  
  6077.  
  6078.  
  6079.  
  6080.  
  6081.  
  6082.  
  6083.  
  6084.  
  6085.  
  6086.  
  6087.  
  6088.  
  6089.  
  6090.  
  6091.  
  6092.  
  6093.                    4DOS Reference Manual                  89
  6094.  
  6095.  
  6096.  
  6097.  
  6098.  
  6099.  
  6100.         TYPE        TYPE
  6101.         
  6102.         Syntax:      TYPE [/LP] [d:][pathname]filename...                     TYPE [/LP] [d:][pathname]filename...
  6103.         
  6104.         Purpose:     Display the contents of the specified file(s).
  6105.         
  6106.         Comments:    The TYPE command displays a file.  Press ^S to
  6107.                      suspend the display, and any character key to continue
  6108.                      the display.
  6109.         
  6110.                      The /L option prints line numbers preceding each
  6111.                      line of text.
  6112.         
  6113.                      The /P option will pause after each page.  Press ^C
  6114.                      to quit, or any other key to display the next page.
  6115.         
  6116.                      TYPE is normally only useful for displaying ASCII
  6117.                      text files; executable files (.COM & .EXE) and many
  6118.                      data files will be unreadable due to the presence of
  6119.                      non-alphanumeric characters.
  6120.         
  6121.                      You will probably find LIST to be more useful for
  6122.                      displaying files.
  6123.         
  6124.                      See also LIST.
  6125.         
  6126.         Example:     Display the files MEMO1 and MEMO2, pausing at the                                       _____     _____                
  6127.                      end of each page:
  6128.         
  6129.                        c:\> type /p memo1 memo2                            type /p memo1 memo2
  6130.  
  6131.  
  6132.  
  6133.  
  6134.  
  6135.  
  6136.  
  6137.  
  6138.  
  6139.  
  6140.  
  6141.  
  6142.  
  6143.  
  6144.  
  6145.  
  6146.  
  6147.  
  6148.  
  6149.  
  6150.  
  6151.  
  6152.  
  6153.                    4DOS Reference Manual                  90
  6154.  
  6155.  
  6156.  
  6157.  
  6158.  
  6159.  
  6160.         UNALIAS        UNALIAS
  6161.         
  6162.         Syntax:      UNALIAS alias...                     UNALIAS alias...
  6163.                        or
  6164.                      UNALIAS *                     UNALIAS *
  6165.         
  6166.         Purpose:     Remove aliases from the alias list.
  6167.         
  6168.         Comments:    UNALIAS also accepts the wildcard character * to
  6169.                      delete all aliases.
  6170.         
  6171.                      See also ALIAS and ESET.
  6172.         
  6173.         Example:     Remove the alias DDIR:                                      ____ 
  6174.         
  6175.                        c:\> unalias ddir                            unalias ddir
  6176.         
  6177.                      Remove the aliases DDIR and ZAP:                                        ____     ___ 
  6178.         
  6179.                        c:\> unalias ddir zap                            unalias ddir zap
  6180.         
  6181.                      Remove all the aliases:                                          
  6182.         
  6183.                        c:\> unalias *                            unalias *
  6184.  
  6185.  
  6186.  
  6187.  
  6188.  
  6189.  
  6190.  
  6191.  
  6192.  
  6193.  
  6194.  
  6195.  
  6196.  
  6197.  
  6198.  
  6199.  
  6200.  
  6201.  
  6202.  
  6203.  
  6204.  
  6205.  
  6206.  
  6207.  
  6208.  
  6209.  
  6210.  
  6211.  
  6212.  
  6213.                    4DOS Reference Manual                  91
  6214.  
  6215.  
  6216.  
  6217.  
  6218.  
  6219.  
  6220.         VER        VER
  6221.         
  6222.         Syntax:      VER                     VER
  6223.         
  6224.         Purpose:     Display the current 4DOS and MS-DOS versions.
  6225.         
  6226.         Comments:    The 4DOS and MS-DOS versions consist of a one digit
  6227.                      major version number, a period, and a two digit minor
  6228.                      version number.
  6229.         
  6230.         Example:     Get the current version of 4DOS and MS-DOS:
  6231.         
  6232.                        c:\> ver                            ver
  6233.         
  6234.                        4DOS 2.0     DOS 3.31
  6235.  
  6236.  
  6237.  
  6238.  
  6239.  
  6240.  
  6241.  
  6242.  
  6243.  
  6244.  
  6245.  
  6246.  
  6247.  
  6248.  
  6249.  
  6250.  
  6251.  
  6252.  
  6253.  
  6254.  
  6255.  
  6256.  
  6257.  
  6258.  
  6259.  
  6260.  
  6261.  
  6262.  
  6263.  
  6264.  
  6265.  
  6266.  
  6267.  
  6268.  
  6269.  
  6270.  
  6271.  
  6272.  
  6273.                    4DOS Reference Manual                  92
  6274.  
  6275.  
  6276.  
  6277.  
  6278.  
  6279.  
  6280.         VERIFY        VERIFY
  6281.         
  6282.         Syntax:      VERIFY [on | off]                     VERIFY [on | off]
  6283.         
  6284.         Purpose:     Display, enable, or disable disk write verification.
  6285.         
  6286.         Comments:    When VERIFY is ON, MS-DOS will verify each disk
  6287.                      write to ensure the data has been written correctly.
  6288.                      VERIFY will remain ON until you set it OFF.
  6289.         
  6290.                      Entering VERIFY with no parameters will display the
  6291.                      current VERIFY state.
  6292.         
  6293.                      Verification will slow your disk write operations
  6294.                      slightly.
  6295.         
  6296.                      At system startup, VERIFY is OFF.
  6297.         
  6298.         Example:     Check the current verify status:
  6299.         
  6300.                        c:\> verify                            verify
  6301.                        VERIFY is OFF
  6302.         
  6303.                      Enable disk write verification:
  6304.         
  6305.                        c:\> verify on                            verify on
  6306.  
  6307.  
  6308.  
  6309.  
  6310.  
  6311.  
  6312.  
  6313.  
  6314.  
  6315.  
  6316.  
  6317.  
  6318.  
  6319.  
  6320.  
  6321.  
  6322.  
  6323.  
  6324.  
  6325.  
  6326.  
  6327.  
  6328.  
  6329.  
  6330.  
  6331.  
  6332.  
  6333.                    4DOS Reference Manual                  93
  6334.  
  6335.  
  6336.  
  6337.  
  6338.  
  6339.  
  6340.         VOL        VOL
  6341.         
  6342.         Syntax:      VOL [d:]...                     VOL [d:]...
  6343.         
  6344.         Purpose:     Display the disk volume label(s).
  6345.         
  6346.         Comments:    If you don't enter a drive name, VOL will assume the
  6347.                      current disk drive.
  6348.         
  6349.                      If the disk doesn't have a volume name, VOL will
  6350.                      report it as "unlabeled."
  6351.         
  6352.                      Volume labels can be created, changed or deleted
  6353.                      with the MS-DOS LABEL command.
  6354.         
  6355.         Example:     Display the label for the default disk:
  6356.         
  6357.                        c:\> vol                            vol
  6358.                        Volume in drive C: is MYHARDDISK
  6359.         
  6360.                      Display the disk labels for drives A and B:
  6361.         
  6362.                        c:\> vol a: b:                            vol a: b:
  6363.                        Volume in drive A: is unlabeled
  6364.                        Volume in drive B: is BACKUP_2
  6365.  
  6366.  
  6367.  
  6368.  
  6369.  
  6370.  
  6371.  
  6372.  
  6373.  
  6374.  
  6375.  
  6376.  
  6377.  
  6378.  
  6379.  
  6380.  
  6381.  
  6382.  
  6383.  
  6384.  
  6385.  
  6386.  
  6387.  
  6388.  
  6389.  
  6390.  
  6391.  
  6392.  
  6393.                    4DOS Reference Manual                  94
  6394.  
  6395.  
  6396.  
  6397.  
  6398.  
  6399.  
  6400.         Y        Y
  6401.         
  6402.         Syntax:      Y [d:][path]filename...                     Y [d:][path]filename...
  6403.         
  6404.         Purpose:     Copy standard input to standard output, and then
  6405.                      copy the specified file(s) to standard output.
  6406.         
  6407.         Comments:    Standard input from the console is terminated by a
  6408.                      ^Z.
  6409.         
  6410.                      See also TEE.
  6411.  
  6412.         Example:     Get text from standard input, append the files MEMO1                                                                    _____
  6413.                      and MEMO2 to it, and send the output to MEMOS:                         _____                               _____
  6414.  
  6415.                        c:\> y memo1 memo2 > memos                            y memo1 memo2 > memos
  6416.         
  6417.  
  6418.  
  6419.  
  6420.  
  6421.  
  6422.  
  6423.  
  6424.  
  6425.  
  6426.  
  6427.  
  6428.  
  6429.  
  6430.  
  6431.  
  6432.  
  6433.  
  6434.  
  6435.  
  6436.  
  6437.  
  6438.  
  6439.  
  6440.  
  6441.  
  6442.  
  6443.  
  6444.  
  6445.  
  6446.  
  6447.  
  6448.  
  6449.  
  6450.  
  6451.  
  6452.  
  6453.                    4DOS Reference Manual                  95
  6454.  
  6455.  
  6456.  
  6457.  
  6458.  
  6459.  
  6460.         APPENDIX A - 4DOS and MS-DOS Error Messages        APPENDIX A - 4DOS and MS-DOS Error Messages
  6461.         
  6462.         
  6463.         Access denied        Access denied
  6464.         
  6465.              You tried to erase or write to a read-only protected file, to
  6466.              rename a file or directory to an existing name, or to remove a
  6467.              directory with files still in it.
  6468.         
  6469.         Alias loop        Alias loop
  6470.         
  6471.              An alias refers back to itself.  (i.e., a = b = a), or aliases
  6472.              are nested more than 16 deep.  Correct your alias list.
  6473.              
  6474.         Bad disk unit        Bad disk unit
  6475.         
  6476.              Generally caused by a disk drive failure.  Try the diagnostic
  6477.              tests.
  6478.         
  6479.         Bad environment        Bad environment
  6480.         
  6481.              The MS-DOS environment has a bad structure.  Reboot the
  6482.              system.
  6483.         
  6484.         Can't copy file to itself        Can't copy file to itself
  6485.         
  6486.              4DOS will not permit you to COPY or MOVE a file to itself.
  6487.              Unlike COMMAND.COM, 4DOS does full path and filename expansion
  6488.              before copying to ensure that files aren't inadvertently
  6489.              destroyed.
  6490.         
  6491.         Can't create        Can't create
  6492.         
  6493.              4DOS can't create the specified file.  The disk may be full or
  6494.              write protected, the file already exists and is read-only, or
  6495.              the root directory is full.
  6496.         
  6497.         Can't delete        Can't delete
  6498.         
  6499.              4DOS can't delete the specified file or directory.  The disk
  6500.              is probably write protected.
  6501.         
  6502.         Can't get directory        Can't get directory
  6503.         
  6504.              4DOS can't read the specified directory.  The disk drive is
  6505.              probably not ready.
  6506.  
  6507.  
  6508.  
  6509.  
  6510.  
  6511.  
  6512.  
  6513.                    4DOS Reference Manual                  96
  6514.  
  6515.  
  6516.  
  6517.  
  6518.  
  6519.  
  6520.         Can't make directory entry        Can't make directory entry
  6521.         
  6522.              4DOS can't create the filename in the directory.  This is
  6523.              usually caused by a full root directory.  Create a
  6524.              subdirectory and move some of the files to it.
  6525.         
  6526.         Can't open        Can't open
  6527.         
  6528.              4DOS can't open the specified file.  Check your disk
  6529.              directory.
  6530.         
  6531.         Can't remove current directory        Can't remove current directory
  6532.         
  6533.              4DOS can't delete your current directory.  Change to the
  6534.              parent directory and try again.
  6535.         
  6536.         Command line too long        Command line too long
  6537.         
  6538.              The command line exceeded 255 characters in length while 4DOS
  6539.              was doing alias and variable expansion.
  6540.         
  6541.         Data error        Data error
  6542.         
  6543.              MS-DOS can't read or write properly to the device.
  6544.         
  6545.         Directory stack empty        Directory stack empty
  6546.         
  6547.              POPD or DIRS can't find any entries in the directory stack.
  6548.         
  6549.         Directory stack full        Directory stack full
  6550.         
  6551.              The current directory stack size plus the size of the new
  6552.              entry exceeds 255 characters.  Use POPD to remove entries.
  6553.         
  6554.         Disk is write protected        Disk is write protected
  6555.         
  6556.              The disk cannot be written to.  Check the disk and remove the
  6557.              write-protect tab if necessary.
  6558.         
  6559.         Drive not ready--close door        Drive not ready--close door
  6560.         
  6561.              The floppy disk drive door is open.  Close the door and try
  6562.              again.
  6563.         
  6564.  
  6565.  
  6566.  
  6567.  
  6568.  
  6569.  
  6570.  
  6571.  
  6572.  
  6573.                    4DOS Reference Manual                  97
  6574.  
  6575.  
  6576.  
  6577.  
  6578.  
  6579.  
  6580.         Error reading        Error reading
  6581.         
  6582.              MS-DOS experienced an I/O error when reading from a device.
  6583.              This is usually caused by a bad disk, a device not ready, or a
  6584.              hardware error.
  6585.         
  6586.         Error writing        Error writing
  6587.         
  6588.              MS-DOS experienced an I/O error when writing to a device.
  6589.              This is usually caused by a full disk, a bad disk, a device
  6590.              not ready, or a hardware error.
  6591.         
  6592.         Exceeded nesting limit        Exceeded nesting limit
  6593.         
  6594.              You have attempted to nest batch files more than 5 levels
  6595.              deep, or you have attempted more than 5 nested GOSUBS in a
  6596.              single batch file.
  6597.         
  6598.         File Allocation Table bad        File Allocation Table bad
  6599.         
  6600.              MS-DOS can't access the FAT on the specified disk.  This can
  6601.              be caused by a bad disk or a hardware error.
  6602.         
  6603.         File exists        File exists
  6604.         
  6605.              The requested output file already exists, and 4DOS won't
  6606.              overwrite it.       
  6607.         
  6608.         File not found        File not found
  6609.         
  6610.              4DOS couldn't find the specified file.  Check your disk
  6611.              directory.
  6612.         
  6613.         General failure        General failure
  6614.         
  6615.              This is usually a hardware problem, particularly a disk drive
  6616.              failure.  Try to correct the problem or reboot and try again.
  6617.         
  6618.         Internal DOS error        Internal DOS error
  6619.         
  6620.              MS-DOS encountered an internal bug and failed.  Reboot the
  6621.              system.
  6622.         
  6623.         Invalid date        Invalid date
  6624.         
  6625.              An invalid date was entered.  Check the syntax and reenter.
  6626.  
  6627.  
  6628.  
  6629.  
  6630.  
  6631.  
  6632.  
  6633.                    4DOS Reference Manual                  98
  6634.  
  6635.  
  6636.  
  6637.  
  6638.  
  6639.  
  6640.         Invalid drive        Invalid drive
  6641.         
  6642.              A bad or non-existent disk drive was specified.
  6643.         
  6644.         Invalid option        Invalid option
  6645.         
  6646.              4DOS didn't recognize the specified option.  Check the syntax
  6647.              and reenter.
  6648.         
  6649.         Invalid path        Invalid path
  6650.         
  6651.              The specified path does not exist.  Check the disk
  6652.              specification and/or spelling.
  6653.         
  6654.         Invalid time        Invalid time
  6655.         
  6656.              An invalid time was entered.  Check the syntax and reenter.
  6657.         
  6658.         Label not found        Label not found
  6659.         
  6660.              A GOTO or GOSUB command referred to a non-existent label.
  6661.              Check your batch file.
  6662.         
  6663.         Memory destroyed        Memory destroyed
  6664.         
  6665.              The MS-DOS memory control blocks have been corrupted.  Reboot
  6666.              the system.
  6667.         
  6668.         Missing ENDTEXT        Missing ENDTEXT
  6669.         
  6670.              A TEXT command is missing the matching ENDTEXT command.  Check
  6671.              your batch file.
  6672.         
  6673.         Missing GOSUB        Missing GOSUB
  6674.         
  6675.              4DOS cannot perform the RETURN command in a batch file.
  6676.              Either you tried to do a RETURN without a GOSUB, or your batch
  6677.              file has been corrupted.
  6678.         
  6679.         No aliases defined        No aliases defined
  6680.         
  6681.              No aliases were found in the environment.
  6682.  
  6683.  
  6684.  
  6685.  
  6686.  
  6687.  
  6688.  
  6689.  
  6690.  
  6691.  
  6692.  
  6693.                    4DOS Reference Manual                  99
  6694.  
  6695.  
  6696.  
  6697.  
  6698.  
  6699.  
  6700.         No closing quote or parenthesis        No closing quote or parenthesis
  6701.         
  6702.              4DOS couldn't find a second matching quote (either ` or "), or
  6703.              the closing parenthesis on the command line.
  6704.         
  6705.         No environment space        No environment space
  6706.         
  6707.              4DOS has run out of environment space.  The environment is
  6708.              used for storing both environment variables and the alias
  6709.              list.  Edit the SHELL command in the CONFIG.SYS file to
  6710.              increase the environment size.  Change the /E parameter to
  6711.              read:
  6712.         
  6713.                   /E:n                  /E:n
  6714.          
  6715.              where n is a number from 512 to 32000), and reboot the machine                   _                                                   
  6716.              (See INSTALLATION).
  6717.         
  6718.         Non-DOS disk        Non-DOS disk
  6719.         
  6720.              MS-DOS can't read the disk.  Either the disk is bad, or it has
  6721.              been formatted by a different operating system.  Reformat it
  6722.              as an MS-DOS disk.
  6723.         
  6724.         Not an alias        Not an alias
  6725.         
  6726.              The specified argument is not in the 4DOS alias list.
  6727.         
  6728.         Not in environment        Not in environment
  6729.         
  6730.              The specified argument is not in the environment.
  6731.         
  6732.         Not ready        Not ready
  6733.         
  6734.              The specified device can't be accessed.
  6735.         
  6736.         Not same device        Not same device
  6737.         
  6738.              This error usually appears in RENAME.  You cannot rename a
  6739.              file to a different disk drive.
  6740.         
  6741.  
  6742.  
  6743.  
  6744.  
  6745.  
  6746.  
  6747.  
  6748.  
  6749.  
  6750.  
  6751.  
  6752.  
  6753.                    4DOS Reference Manual                 100
  6754.  
  6755.  
  6756.  
  6757.  
  6758.  
  6759.  
  6760.         Out of memory        Out of memory
  6761.         
  6762.              MS-DOS or 4DOS had insufficient free memory to execute the
  6763.              last command.
  6764.         
  6765.         Out of paper        Out of paper
  6766.         
  6767.              MS-DOS detected an out-of-paper condition on one of the
  6768.              parallel printers (LPT1, LPT2, or LPT3).  Check your printer
  6769.              and add paper if necessary.
  6770.         
  6771.         Read error        Read error
  6772.         
  6773.              MS-DOS disk read error; usually caused by a bad disk or a non-
  6774.              DOS disk.
  6775.         
  6776.         Sector not found        Sector not found
  6777.         
  6778.              BIOS disk error; usually caused by a bad disk or a non-DOS
  6779.              disk.
  6780.         
  6781.         Seek error        Seek error
  6782.         
  6783.              MS-DOS can't seek to the proper location on the disk.  This is
  6784.              generally caused by a bad disk or drive.
  6785.         
  6786.         Syntax error        Syntax error
  6787.         
  6788.              A command was entered with the improper format.
  6789.         
  6790.         Too many open files        Too many open files
  6791.         
  6792.              MS-DOS has run out of file handles.  Try setting FILES=20 or
  6793.              more in the CONFIG.SYS file.
  6794.         
  6795.         Unknown command        Unknown command
  6796.         
  6797.              A command was entered that 4DOS didn't recognize and couldn't
  6798.              find in the current search path.  Check the spelling or PATH
  6799.              specification.
  6800.         
  6801.         Write error        Write error
  6802.         
  6803.              MS-DOS disk error; usually caused by a bad disk or a non-DOS
  6804.              disk.
  6805.  
  6806.  
  6807.  
  6808.  
  6809.  
  6810.  
  6811.  
  6812.  
  6813.                    4DOS Reference Manual                 101
  6814.  
  6815.  
  6816.  
  6817.  
  6818.  
  6819.  
  6820.         APPENDIX B - ANSI.SYS COMMANDS        APPENDIX B - ANSI.SYS COMMANDS
  6821.         
  6822.         The ANSI.SYS provided with 4DOS is a replacement for the standard
  6823.         ANSI driver provided on your MS-DOS disk.  It includes more ANSI
  6824.         command sequences, EGA and VGA support, and runs 20% to 50% faster.
  6825.         
  6826.         ANSI.SYS provides functions to position the cursor, change the
  6827.         screen display, erase part or all of the screen, and assign key
  6828.         functions.
  6829.         
  6830.         
  6831.         ESC[#;#f        ESC[#;#f
  6832.            or           or
  6833.         ESC[#;#H         CURSOR POSITION        ESC[#;#H                      
  6834.                          Moves the cursor to the specified position.  The
  6835.                          first parameter is the row and the second parameter
  6836.                          is the column.  The default values are 1.
  6837.         
  6838.         ESC[#A           CURSOR UP        ESC[#A                    
  6839.                          Moves the cursor up the number of rows specified,
  6840.                          or until it reaches the top of the screen.  The
  6841.                          default value for # is 1.
  6842.         
  6843.         ESC[#B           CURSOR DOWN        ESC[#B                      
  6844.                          Moves the cursor down the number of rows
  6845.                          specified, or until it reaches the bottom of the
  6846.                          screen.  The default value for # is 1.
  6847.         
  6848.         ESC[#C           CURSOR FORWARD        ESC[#C                       
  6849.                          Moves the cursor right the number of columns
  6850.                          specified, or until it reaches the right margin. The
  6851.                          default value for # is 1.
  6852.         
  6853.         ESC[#D           CURSOR BACKWARD        ESC[#D                        
  6854.                          Moves the cursor left the number of columns
  6855.                          specified, or until it reaches the left margin.
  6856.                          the default value for # is 1.
  6857.         
  6858.         ESC[#J           CLEAR SCREEN        ESC[#J                     
  6859.                          This sequence clears part or all of the display.
  6860.                          If # is 1, it clears from home (upper left corner)
  6861.                          to the cursor position.  If # is 2, it clears the
  6862.                          entire screen and moves the cursor to the upper left
  6863.                          corner.  The default value for # is 2.
  6864.  
  6865.  
  6866.  
  6867.  
  6868.  
  6869.  
  6870.  
  6871.  
  6872.  
  6873.                    4DOS Reference Manual                 102
  6874.  
  6875.  
  6876.  
  6877.  
  6878.  
  6879.  
  6880.         ESC[#K           CLEAR IN LINE        ESC[#K                      
  6881.                          This sequence clears part or all of the current
  6882.                          line.  If # is 0, it clears from the cursor to the
  6883.                          end of the line.  If # is 1, it clears from the
  6884.                          start of the line to the cursor.  If # is 2, it
  6885.                          clears the entire line.  The default value for #
  6886.                          is 0.
  6887.         
  6888.         ESC[6n           DEVICE STATUS REPORT        ESC[6n                             
  6889.                          This sequence sends a cursor position report.
  6890.         
  6891.         ESC[s            SAVE CURSOR POSITION        ESC[s                              
  6892.                          Saves the current cursor position internally.  You
  6893.                          can restore the saved position with the RESTORE
  6894.                          CURSOR POSITION (ESC[u) command.
  6895.         
  6896.         ESC[u            RESTORE CURSOR POSITION        ESC[u                                 
  6897.                          Restores the cursor to the position saved with the
  6898.                          SAVE CURSOR POSITION command.
  6899.         
  6900.         ESC[=#h          SET MODE        ESC[=#h                  
  6901.                          Sets the video mode, where # is:
  6902.                             0  40 x 25 B&W
  6903.                             1  40 x 25 Color
  6904.                             2  80 x 25 B&W
  6905.                             3  80 x 25 Color
  6906.                             4  320 x 200 Color (graphics)
  6907.                             5  320 x 200 B&W (graphics)
  6908.                             6  640 x 200 B&W (graphics)
  6909.                             7  Enable wrap at end of line.
  6910.         
  6911.         ESC[=#i          RESET MODE        ESC[=#i                    
  6912.                          The parameters are the same as SET MODE, except if
  6913.                          # is 7, wrap is disabled (characters past the end of
  6914.                          line are discarded).
  6915.  
  6916.  
  6917.  
  6918.  
  6919.  
  6920.  
  6921.  
  6922.  
  6923.  
  6924.  
  6925.  
  6926.  
  6927.  
  6928.  
  6929.  
  6930.  
  6931.  
  6932.  
  6933.                    4DOS Reference Manual                 103
  6934.  
  6935.  
  6936.  
  6937.  
  6938.  
  6939.  
  6940.         ESC[#;...#m      SET GRAPHICS RENDITION        ESC[#;...#m                          
  6941.                          Sets the character display attribute.  All
  6942.                          subsequent characters will be displayed with the
  6943.                          specified attribute until the attribute is
  6944.                          redefined.
  6945.         
  6946.                              0 All attributes off (white on black)
  6947.                              1 Bold
  6948.                              4 Underline (monochrome display)
  6949.                              5 Blink
  6950.                              7 Inverse video
  6951.                              8 Invisible
  6952.                             30 Black foreground
  6953.                             31 Red foreground
  6954.                             32 Green foreground
  6955.                             33 Yellow foreground
  6956.                             34 Blue foreground
  6957.                             35 Magenta foreground
  6958.                             36 Cyan foreground
  6959.                             37 White foreground
  6960.                             40 Black background
  6961.                             41 Red background
  6962.                             42 Green background
  6963.                             43 Yellow background
  6964.                             44 Blue background
  6965.                             45 Magenta background
  6966.                             46 Cyan background
  6967.                             47 White background
  6968.         
  6969.         
  6970.         ESC[#;"string";...#p        ESC[#;"string";...#p
  6971.              or             or
  6972.         ESC[#;#;...#p    KEYBOARD REASSIGNMENT        ESC[#;#;...#p                       
  6973.                          The first # is the ASCII code being reassigned.
  6974.                          The remaining numbers or strings define the
  6975.                          keystrokes to be generated when the key is
  6976.                          intercepted.  If the first # is a 0, the second #
  6977.                          defines an extended ASCII code.
  6978.  
  6979.  
  6980.  
  6981.  
  6982.  
  6983.  
  6984.  
  6985.  
  6986.  
  6987.  
  6988.  
  6989.  
  6990.  
  6991.  
  6992.  
  6993.                    4DOS Reference Manual                 104
  6994.  
  6995.  
  6996.  
  6997.  
  6998.  
  6999.  
  7000.         Appendix C - Key Codes        Appendix C - Key Codes
  7001.         
  7002.         Here are some of the extended key codes for the INKEY and
  7003.         KEYSTACK  commands (see the Command Reference Guide):
  7004.         
  7005.         
  7006.              F1 - @59  Alt-F1 - @104  Ctl-F1 - @94   Shift-F1 - @84
  7007.              F2 - @60  Alt-F2 - @105  Ctl-F2 - @95   Shift-F2 - @85
  7008.              F3 - @61  Alt-F3 - @106  Ctl-F3 - @96   Shift-F3 - @86
  7009.              F4 - @62  Alt-F4 - @107  Ctl-F4 - @97   Shift-F4 - @87
  7010.              F5 - @63  Alt-F5 - @108  Ctl-F5 - @98   Shift-F5 - @88
  7011.              F6 - @64  Alt-F6 - @109  Ctl-F6 - @99   Shift-F6 - @89
  7012.              F7 - @65  Alt-F7 - @110  Ctl-F7 - @100  Shift-F7 - @90
  7013.              F8 - @66  Alt-F8 - @111  Ctl-F8 - @101  Shift-F8 - @91
  7014.              F9 - @67  Alt-F9 - @112  Ctl-F9 - @102  Shift-F9 - @92
  7015.              F10 - @68 Alt-F10 - @113 Ctl-F10- @103  Shift-F10 - @93
  7016.         
  7017.              Home      @71
  7018.              Up        @72
  7019.              PgUp      @73
  7020.              Left      @75
  7021.              Right     @77
  7022.              End       @79
  7023.              Down      @80
  7024.              PgDn      @81
  7025.              Insert    @82
  7026.              Del       @83
  7027.              Ctl-Left  @115
  7028.              Ctl-Right @116
  7029.              Ctl-End   @117
  7030.              Ctl-PgDn  @118
  7031.              Ctl-PgUp  @132
  7032.              Ctl-Home  @119
  7033.  
  7034.  
  7035.  
  7036.  
  7037.  
  7038.  
  7039.  
  7040.  
  7041.  
  7042.  
  7043.  
  7044.  
  7045.  
  7046.  
  7047.  
  7048.  
  7049.  
  7050.  
  7051.  
  7052.  
  7053.                    4DOS Reference Manual                 105
  7054.  
  7055.  
  7056.  
  7057.  
  7058.  
  7059.  
  7060.         Index        Index
  7061.  
  7062.  
  7063.  
  7064.  
  7065.         4D-PIF.DVP   9                      Command
  7066.         4DOS.EXE   8                          completion   17
  7067.         4DOS88.EXE   8                        echoing   20
  7068.         4DOS286.EXE   8                       history and recall   17
  7069.         4DOSSWAP.@@@   11                     line   2
  7070.         4START.BAT   15, 82                   line arguments   20
  7071.                                               line editing   16
  7072.         ?   29                                processor   51
  7073.                                               separator   18, 82
  7074.         ALIAS   20, 30                        syntax   28
  7075.         Alias parameters   21, 30           Comment   76
  7076.         Aliases   2, 20, 50, 84, 91         COMPOUND   18, 82
  7077.         ALIASES.BAT   9, 21                 Conditional commands   3, 19
  7078.         AND   19                            Conditional execution   60
  7079.         ANSI.SYS   8, 10, 102               CONFIG.SYS   10
  7080.         Append   41                         Configuration variables   82
  7081.         Argument Quoting   20               COPY   41
  7082.         ATTRIB   32                         Country code   42
  7083.         Attributes   32, 45                 Current directory   37
  7084.         AUTOEXEC.BAT   12, 15               Cursor   79
  7085.                                             CWD   24
  7086.         Batch file   7                      CWDS   24
  7087.              echoing   48
  7088.              nesting   35                   DATE   24, 42
  7089.              parameters   85                DEL   43
  7090.         BEEP   33                           DESCRIBE   44
  7091.         BREAK   34                          DESCRIPT.ION   44
  7092.                                             Descriptions   2
  7093.         CALL   35                           DESQView   13
  7094.         CANCEL   36, 73                     DIR   45
  7095.         CD   37                             Directory stack   47, 73
  7096.         CDD   38                            DIRS   47
  7097.         CHCP   39                           DISK   23
  7098.         CHDIR   37                          Disk space   54
  7099.         CLS   40                            Disk write verification   93
  7100.         CMDLINE   23                        DOS.HLP   8
  7101.         Code page   39                      DOSVER   23
  7102.         Colon   56, 57
  7103.                                             ECHO   20, 48, 83
  7104.  
  7105.  
  7106.  
  7107.  
  7108.  
  7109.  
  7110.  
  7111.  
  7112.  
  7113.                    4DOS Reference Manual                 106
  7114.  
  7115.  
  7116.  
  7117.  
  7118.  
  7119.  
  7120.         Editing   16                      History size   12
  7121.         EMS   11
  7122.         ENDLOCAL   49, 84                 I/O Redirection   25
  7123.         ENDTEXT   87                      IF   60
  7124.         Environment                       INKEY   62, 105
  7125.             size   2, 12                  INPUT   63
  7126.             space   67                    INSTALL   10
  7127.             variables   2, 23, 50,        INSTALL.BAT   8
  7128.                 62, 63, 81, 84            Installation   8
  7129.         EQ   60                           Interrupt   11
  7130.         ERASE   43                        ISDIR   61
  7131.         Error Messages 96
  7132.         ERRORLEVEL   19, 60               Key Codes   105
  7133.         ESCAPE   19, 82                   KEYSTACK   8, 22, 64, 105
  7134.         Escape character   19, 82         KEYSTACK.SYS   8, 10, 22, 64
  7135.         ESET   50
  7136.         EXCEPT   51                       Label   56, 57, 94
  7137.         EXIST   61                        Language support   39
  7138.         EXIT   52                         LE   60
  7139.         Exit code   19                    Line editing mode   82
  7140.         Expanded memory   67              LIST   65
  7141.         Extended key codes   62, 105      LT   60
  7142.         Extended memory   67
  7143.                                           MARK   14
  7144.         F9 and F10   16, 18               MD   66
  7145.         File                              MEMORY   67
  7146.             attributes   32, 45           MKDIR   66
  7147.             descriptions   2, 44, 45      MODE   82
  7148.         Filename completion   18          MOVE   68
  7149.         FOR   53                          Multiple arguments   4
  7150.         FREE   54                         Multiple Commands   2, 18
  7151.  
  7152.         GE   60                           NE   60
  7153.         GLOBAL   55                       NOCLOBBER   25, 82
  7154.         GOSUB   56, 78
  7155.         GOTO   57                         OR   19
  7156.         GT   60
  7157.                                           PATH   23, 66, 69
  7158.         HELP   58                         PAUSE   70
  7159.         HELP.EXE   8                      Pipes   26, 86
  7160.         HISTORY   59, 82                  POPD   71
  7161.         History list   17, 59             PROMPT   72
  7162.  
  7163.  
  7164.  
  7165.  
  7166.  
  7167.  
  7168.  
  7169.  
  7170.  
  7171.  
  7172.  
  7173.                    4DOS Reference Manual                 107
  7174.  
  7175.  
  7176.  
  7177.  
  7178.  
  7179.  
  7180.         PUSHD   72                        UNALIAS   20, 30, 91
  7181.                                           Using 4DOS   15
  7182.         QUIT   73
  7183.         Quotes   20                       VER   92
  7184.                                           VERBOSE   20, 48, 76, 83
  7185.         RAM   67                          VERIFY   41, 93
  7186.         RD   75                           Version number   92
  7187.         README.DOC   9                    VOL   94
  7188.         Redirection   3, 82               Volume label   94
  7189.         RELEASE   14
  7190.         REM   76                          Wildcards   1
  7191.         REN   77
  7192.         RENAME   77                       Y   95
  7193.         RETURN   56, 78
  7194.         RMDIR   75
  7195.         Root directory   66
  7196.  
  7197.         SCREEN   79
  7198.         SELECT   80
  7199.         SET   23, 81
  7200.         SETDOS   17, 18, 19, 20, 25,
  7201.             48, 76, 82
  7202.         SETLOCAL   49, 84
  7203.         SHIFT   85
  7204.         Stack Overflow   14
  7205.         Standard
  7206.             error   24
  7207.             input   25, 86, 95
  7208.             output   25, 86, 95
  7209.         Starting 4DOS   15
  7210.         Startup options   12
  7211.         Stopwatch   89
  7212.         Subroutine   56, 78
  7213.  
  7214.         TEE   86
  7215.         TEXT   87
  7216.         TIME   24, 88
  7217.         TIMER   89
  7218.         TSRCOM   14
  7219.         TYPE
  7220.  
  7221.  
  7222.  
  7223.  
  7224.  
  7225.  
  7226.  
  7227.  
  7228.  
  7229.  
  7230.  
  7231.  
  7232.  
  7233.                    4DOS Reference Manual                 108
  7234.  
  7235.