home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09962.iso / command / 4dos552.zip / 4DOS.DOC < prev    next >
Text File  |  1996-04-17  |  238KB  |  4,662 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                           44
  9.                          44
  10.                         44      DDDDDDD        OOOOO        SSSSSS
  11.                        44       DDDDDDDD      OOOOOOO      SSSSSSSS
  12.                       44  44    DD     DD    OO     OO    SS
  13.                      44   44    DD     DD    OO     OO    SS
  14.                     44    44    DD     DD    OO     OO     SSSSSS
  15.                    444444444    DD     DD    OO     OO      SSSSSS
  16.                     44444444    DD     DD    OO     OO           SS
  17.                           44    DD     DD    OO     OO           SS
  18.                           44    DDDDDDDD      OOOOOOO     SSSSSSSS
  19.                           44    DDDDDDD        OOOOO       SSSSSS
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.                                      Version 5.52
  27.  
  28.  
  29.  
  30.  
  31.                           Introduction and Installation Guide
  32.  
  33.  
  34.  
  35.  
  36.                                       Developed By
  37.                                 Rex Conn and Tom Rawson
  38.  
  39.                                     Documentation By
  40.                        Hardin Brothers, Tom Rawson, and Rex Conn
  41.  
  42.  
  43.  
  44.                                       Published By
  45.  
  46.                                     JP Software Inc.
  47.                                      P.O. Box 1470
  48.                                 East Arlington, MA 02174
  49.                                          U.S.A.
  50.  
  51.                                      (617) 646-3975
  52.                                    fax (617) 646-0904
  53.  
  54.  
  55.  
  56.  
  57.  
  58.                                   ACKNOWLEDGMENTS
  59.  
  60.  
  61.              We couldn't produce a product like 4DOS without the dedication
  62.              and quality work of many people.  Our thanks to:
  63.  
  64.                   JP Software Staff:  Christine Alves, Mike Bessy, Michael
  65.                   Hart, Ellen Stone, Misty White.
  66.  
  67.                   Online Support:  Brian Miller and Tess Heder of Channel 1
  68.                   BBS; Don Watkins of CompuServe's IBMNET.
  69.  
  70.                   Beta Test Support:  The sysops of CompuServe's CONSULT
  71.                   forum.
  72.  
  73.                   Beta Testers:  We can't list all of our beta testers
  74.                   here!  A special thanks to all of you who helped make
  75.                   4DOS elegant, reliable, and friendly.
  76.  
  77.              The following tools are used in creating and maintaining 4DOS:
  78.  
  79.                   Compilers:       Microsoft C, Microsoft Macro Assembler,
  80.                                    Borland Turbo Pascal
  81.                   Libraries:       Spontaneous Assembly (Base Two
  82.                                    Development), Turbo Professional (Turbo
  83.                                    Power Software)
  84.                   Editors:         Edix (Emerging Technology), Brief
  85.                                    (Solution Systems)
  86.                   Debuggers:       Periscope (The Periscope Company), Soft-
  87.                                    ICE (Nu-Mega Technologies)
  88.                   Version Control: PVCS (Sage Software)
  89.                   Documentation:   Microsoft Word for Windows with Adobe
  90.                                    Type Manager
  91.  
  92.              Cover Design:  Gordon Design, Medford, MA.
  93.              Printing:  Goodway Graphics, Burlington, MA.
  94.  
  95.  
  96.              Copyright 1993 - 1995, JP Software Inc., All Rights Reserved.
  97.              4DOS is a registered trademark and 4OS2, JP Software, and the
  98.              JP Software logo and product logos are trademarks of JP
  99.              Software Inc.  Other product and company names are trademarks
  100.              of their respective owners.
  101.  
  102.                                                                        8-95
  103.                                                                    CONTENTS
  104.         -------------------------------------------------------------------
  105.  
  106.  
  107.  
  108.         CONTENTS
  109.  
  110.  
  111.         Introduction...............................................1
  112.             How to Use This Manual.................................2
  113.             Customer Service and Technical Support.................3
  114.  
  115.         Chapter 1 / Installation...................................4
  116.             Preparing for Installation Under DOS...................4
  117.             Preparing for Installation Under OS/2..................5
  118.             Automated Installation.................................6
  119.             Manual Installation....................................7
  120.             Uninstalling 4DOS......................................8
  121.  
  122.         Chapter 2 / Configuration.................................10
  123.             Configuration Files...................................10
  124.             Setting Up CONFIG.SYS.................................11
  125.                 4DOS and Multiple-Configuration Utilities.........14
  126.                 4DOS and DOS 2....................................14
  127.             Startup Options for Secondary Shells..................15
  128.             Using AUTOEXEC.BAT, 4START, and 4EXIT.................16
  129.             COMSPEC and the COMSPEC Path..........................17
  130.             4DOS Swapping Methods.................................17
  131.             4DOS Help.............................................19
  132.                 Configuring the Help System.......................21
  133.  
  134.         Chapter 3 / 4DOS and Your Hardware and Software...........23
  135.             The CPU...............................................23
  136.             Memory................................................24
  137.                 Upper Memory Blocks (UMBs)........................27
  138.             Video.................................................28
  139.             Hard Drives and Floppy Disks..........................30
  140.             4DOS and DOS..........................................32
  141.                 Menus and SET Commands in CONFIG.SYS..............32
  142.                 Novell DOS / DR DOS...............................32
  143.             Using 4DOS with Task Switchers and Multitaskers.......34
  144.                 Creating a 4DOS Window............................35
  145.                 Parameters for 4DOS Windows.......................35
  146.                 Multitasking and KEYSTACK.........................36
  147.                 Multitasking and Disk Swapping....................37
  148.             4DOS and Microsoft Windows 3.x........................37
  149.             4DOS and Microsoft Windows 95.........................39
  150.                 Windows 95 Boot Sequence..........................39
  151.                 Installing 4DOS as the Primary Shell Under Win95..40
  152.                 Starting 4DOS From The Windows 95 GUI.............41
  153.                 Using Long File Names with 4DOS...................42
  154.                 Installing the KSTACK Program.....................43
  155.             Using 4DOS on a Network...............................44
  156.                 4DOS and Novell Netware...........................45
  157.  
  158.  
  159.         -------------------------------------------------------------------
  160.         Copr. 1995 JP Software Inc.    4DOS Intro. & Installation Guide / i
  161.                                                                    CONTENTS
  162.         -------------------------------------------------------------------
  163.  
  164.  
  165.         Chapter 4 / Using 4DOS Under OS/2.........................47
  166.             OS/2 Version 1.x......................................48
  167.             OS/2 Version 2.x and OS/2 Warp........................48
  168.                 Settings for DOS Sessions.........................49
  169.                 Configuring DOS Sessions for 4DOS.................50
  170.                 4DOS.INI..........................................52
  171.                 AUTOEXEC.BAT, 4START, and 4EXIT...................53
  172.             Configuring 4DOS for Dual Boot and Boot Manager.......54
  173.                 CONFIG.SYS........................................55
  174.                 AUTOEXEC.BAT......................................55
  175.                 4DOS.INI, 4START, and 4EXIT.......................56
  176.  
  177.         Appendix A / Solving Software Compatibility Problems......58
  178.             Path Length...........................................59
  179.             Environment Size......................................59
  180.             Testing for Interactions..............................60
  181.             Memory Allocation Conflicts...........................62
  182.                 Memory Allocation and Microsoft Windows...........63
  183.             Advanced Configuration Options........................64
  184.  
  185.         Appendix B / Technical Information........................65
  186.             Detecting 4DOS........................................65
  187.             Placing Keystrokes Into the Keystack..................66
  188.             Writing Installable Commands..........................67
  189.             Using DESCRIPT.ION....................................68
  190.             Interrupt 2E..........................................69
  191.  
  192.         Index.....................................................72
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.         -------------------------------------------------------------------
  218.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / ii
  219.                                                                INTRODUCTION
  220.         -------------------------------------------------------------------
  221.  
  222.  
  223.  
  224.         INTRODUCTION
  225.  
  226.  
  227.         Welcome, and thanks for purchasing 4DOS!
  228.  
  229.         We started developing 4DOS when we realized that our computers
  230.         could be a lot more powerful and a lot more helpful than they were.
  231.         Whether you are a computer novice or an experienced power user, we
  232.         think that 4DOS will help you get the most out of your IBM PC or
  233.         compatible computer.
  234.  
  235.         Technically, 4DOS is a command interpreter or "DOS Shell."  That
  236.         means that it reacts to the commands you type at the C:\> prompt.
  237.         We've designed 4DOS so that you don't have to change your computing
  238.         habits or unlearn anything to use it.  If you know how to display a
  239.         directory, copy a file, or start an application program, you
  240.         already know how to use 4DOS.  4DOS understands all of the commands
  241.         you know and adds to them.  Its purpose is to make DOS friendlier,
  242.         easier to use, and much more powerful and versatile, without
  243.         requiring you to use or learn a new program, a new set of commands,
  244.         or a new style of work.
  245.  
  246.         You can use 4DOS with all versions of MS-DOS and PC-DOS from 2.0
  247.         through 6.2 and above.  You can also use it with all versions of
  248.         Novell DOS and DR DOS (an older name for the same product) from 3.4
  249.         through 7.0 and above, and in DOS sessions started under OS/2 1.x,
  250.         2.x, OS/2 Warp, and Windows 3.0 or 3.1.
  251.  
  252.         Once you have 4DOS installed, you can learn its new features at
  253.         your own pace.  It has more than 50 new commands and hundreds of
  254.         enhanced features, but you don't have to learn them all at once.
  255.         Relax, enjoy 4DOS's power, and browse through the manual
  256.         occasionally.  Press the F1 key whenever you need help.  4DOS will
  257.         soon become an essential part of your computer, and you'll wonder
  258.         how you ever got along without it.
  259.  
  260.         If you want to take 4DOS for a spin without performing a complete
  261.         installation, see the separate Guided Tour documentation.
  262.  
  263.         We are constantly working to improve 4DOS.  If you have suggestions
  264.         for features or commands that you think we should include in the
  265.         next version, or any other way we could improve our product, please
  266.         let us know.  Many of the improvements in this version of 4DOS were
  267.         suggested by our users, and while we can't promise to include every
  268.         suggested feature, we really do appreciate and consider your
  269.         comments.
  270.  
  271.         If you use OS/2 or Windows NT, JP Software offers 4OS2, a
  272.         replacement for the OS/2 command processor, and 4DOS for Windows
  273.         NT, which is a replacement for the Windows NT command processor.
  274.  
  275.         -------------------------------------------------------------------
  276.         Copr. 1995 JP Software Inc.    4DOS Intro. & Installation Guide / 1
  277.                                                                INTRODUCTION
  278.         -------------------------------------------------------------------
  279.  
  280.  
  281.         These products provide most of the same commands and features
  282.         available in 4DOS, plus several additional commands and new
  283.         features for OS/2 and Windows NT.  You can use these products to
  284.         maintain a common working environment and run the same batch files
  285.         under DOS, OS/2, and Windows NT.  4OS2 and 4DOS for Windows NT are
  286.         available at a discounted price for 4DOS users.  Contact JP
  287.         Software or your dealer for more information.
  288.  
  289.  
  290.         How to Use This Manual
  291.  
  292.              This manual is only one part of the documentation that you
  293.              will need for 4DOS.  It introduces the product and will help
  294.              you install 4DOS correctly on your computer.  It will also
  295.              help you understand some of the terms and concepts that you
  296.              will need to know to get the most from 4DOS, and give you
  297.              specific information on using 4DOS in your particular
  298.              environment (for example under DOS, Windows, or OS/2).
  299.  
  300.              The second part of our documentation is the separate Reference
  301.              Manual.  It contains complete information about the commands
  302.              and features of 4DOS, plus its sister programs, 4OS2 and 4DOS
  303.              for Windows NT.
  304.  
  305.              You should start with this introductory manual whether you are
  306.              new to 4DOS or you are upgrading from a previous version.
  307.              Once you have successfully installed 4DOS, you can move back
  308.              and forth between this manual and the Reference Manual.
  309.  
  310.              For the sake of clarity, we have chosen not to indicate each
  311.              of the hundreds of places in this manual where you can refer
  312.              to the Reference Manual for additional information.  If you
  313.              see a reference here to a 4DOS command, the initialization
  314.              file 4DOS.INI, or any 4DOS feature, you can be sure that
  315.              detailed information on that topic is available in the
  316.              Reference Manual.  In particular, this manual often refers to
  317.              directives in 4DOS.INI, which are covered in detail in Chapter
  318.              5 of the Reference Manual.
  319.  
  320.              4DOS also includes complete online help for all 4DOS and
  321.              standard DOS commands.  The online help provides much of the
  322.              same information that is available in the Reference Manual,
  323.              but in an electronic form which you can access quickly.  See
  324.              page 19 for more details on using the online help.
  325.  
  326.              Files distributed with 4DOS cover important additional
  327.              information beyond what's included in the manuals.  README.DOC
  328.              contains general notes, highlights of the latest release, and
  329.              brief installation instructions for those upgrading from a
  330.              downloaded copy.  MANMOD.DOC covers changes or corrections in
  331.              the manuals, if any, and UPDATxxx.DOC contains detailed
  332.  
  333.         -------------------------------------------------------------------
  334.         Copr. 1995 JP Software Inc.    4DOS Intro. & Installation Guide / 2
  335.                                                                INTRODUCTION
  336.         -------------------------------------------------------------------
  337.  
  338.  
  339.              information for users with older versions on what has changed
  340.              in the latest release ("xxx" is the version number).
  341.              APPNOTES.DOC contains application notes for a variety of other
  342.              software packages to help you use those packages with 4DOS.
  343.  
  344.              You will likely find some parts of the documentation too
  345.              simple or too technical for your tastes.  If so, feel free to
  346.              skip to the next part of the manual that is more to your
  347.              liking.  You can use almost every feature of 4DOS without
  348.              having to worry about other features or commands.
  349.  
  350.              As you read the documentation, you will occasionally see an
  351.              exclamation point [!] next to a paragraph.  The exclamation
  352.              point means that that paragraph contains a caution or warning
  353.              you should observe when using the feature it discusses.
  354.  
  355.              You will also see the symbol ## next to certain paragraphs.
  356.              This indicates an in-depth discussion or a more advanced topic
  357.              which you can skip if you wish to stick with the basics.  Come
  358.              back to this topic later for more details, or if you're having
  359.              trouble with the particular issue it discusses.  If you see
  360.              the ## next to a section heading, it means the entire section
  361.              contains such information.
  362.  
  363.              You may find the information in such marked sections useful
  364.              even if you're relatively new to computers or to our products.
  365.              However, you can also skip the marked section and still
  366.              understand and use the basic topic of the larger section
  367.              you're reading.
  368.  
  369.  
  370.         Customer Service and Technical Support
  371.  
  372.              Technical support for 4DOS is available via public electronic
  373.              support conferences, private electronic mail, telephone, fax,
  374.              and mail.  For complete details, including a listing of
  375.              electronic support conferences, see your Reference Manual.
  376.  
  377.              Customer service is always available through the telephone and
  378.              fax numbers listed on the title page of this manual.  See your
  379.              Reference manual for electronic mail addresses for our Sales
  380.              and Customer Service departments.
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.         -------------------------------------------------------------------
  392.         Copr. 1995 JP Software Inc.    4DOS Intro. & Installation Guide / 3
  393.                                                    CHAPTER 1 / INSTALLATION
  394.         -------------------------------------------------------------------
  395.  
  396.  
  397.  
  398.         CHAPTER 1 / INSTALLATION
  399.  
  400.  
  401.         You can install your copy of 4DOS automatically or manually.
  402.  
  403.         If you prefer an automated installation, our installation software
  404.         will set up 4DOS for you quickly and with very little intervention
  405.         on your part, other than answering the questions on your screen.
  406.  
  407.         If you prefer to install 4DOS yourself, you'll need to use the
  408.         installation software to copy the 4DOS files to your disk.  You can
  409.         then modify your system manually as explained below.
  410.  
  411.         If you're installing a downloaded update to 4DOS, see the
  412.         instructions under Manual Installation on page 7 .
  413.  
  414.         (If you're using DOS 2.x, you must use manual installation.  The
  415.         automated installation software cannot modify CONFIG.SYS for you
  416.         under DOS 2.  See page 14 for additional details.)
  417.  
  418.         No matter which method you choose, you'll find that 4DOS's
  419.         installation software is very well-behaved.  It won't modify or
  420.         erase any existing files, including CONFIG.SYS and AUTOEXEC.BAT,
  421.         without asking you, and it takes a very straightforward, step by
  422.         step approach.
  423.  
  424.         The installation software always prompts you for the directory to
  425.         use for your 4DOS files, and will create a new directory if
  426.         necessary.  If you are upgrading from a previous version of 4DOS,
  427.         use a new directory for the new version, rather than overwriting
  428.         your existing files.  Transfer any necessary configuration files
  429.         from the old directory (e.g. 4DOS.INI, 4START, etc.), then remove
  430.         the old directory once the new version is up and running.
  431.  
  432.  
  433.         Preparing for Installation Under DOS
  434.  
  435.              If you're running DOS (or DOS plus Windows), you should make a
  436.              bootable system diskette before you install 4DOS (or any other
  437.              software, for that matter).  This allows you to recover in
  438.              case of a power failure or other interruption during the
  439.              installation process.
  440.  
  441.              To make the bootable floppy disk, put a fresh diskette in
  442.              drive A and then type:
  443.  
  444.                   format a: /s
  445.  
  446.  
  447.  
  448.  
  449.         -------------------------------------------------------------------
  450.         Copr. 1995 JP Software Inc.    4DOS Intro. & Installation Guide / 4
  451.                                                    CHAPTER 1 / INSTALLATION
  452.         -------------------------------------------------------------------
  453.  
  454.  
  455.              The FORMAT command will take a few minutes to prepare the
  456.              floppy diskette, and will then copy your system files to drive
  457.              A.
  458.  
  459.              Once the process is complete, you should test your bootable
  460.              floppy by leaving it in drive A and simultaneously pressing
  461.              the Ctrl, Alt, and Del keys to make sure your system will boot
  462.              up properly.  Once you can boot from a floppy disk and access
  463.              the configuration files on your hard disk, put the floppy away
  464.              in a safe place and reboot your computer normally.
  465.  
  466.              If you use compression software on your hard disk, you may not
  467.              be able to access the hard disk from a bootable floppy unless
  468.              you copy the appropriate device drivers and other software,
  469.              plus a version of your CONFIG.SYS and AUTOEXEC.BAT files, to
  470.              the floppy disk.  See your compression software documentation
  471.              for details about creating a bootable floppy disk.
  472.  
  473.  
  474.         Preparing for Installation Under OS/2
  475.  
  476.              If you are running OS/2, a bootable floppy disk is not
  477.              required.  To begin the installation simply start a DOS
  478.              command line session and follow the automated or manual
  479.              installation instructions below.
  480.  
  481.              If you also have our OS/2 command processor, 4OS2, do not
  482.              install 4DOS in the same directory as 4OS2.  Some file names
  483.              (for example README.DOC) are the same in both products, and
  484.              the files should be kept separate to avoid confusion later.
  485.  
  486.              If you use OS/2's Dual Boot or Boot Manager facilities to
  487.              switch between DOS and OS/2, your system has two sets of
  488.              CONFIG.SYS and AUTOEXEC.BAT files:  one for DOS and one for
  489.              OS/2.  In most cases, you'll want to modify both sets, so that
  490.              4DOS is available in both environments.  If you use automated
  491.              installation, the installation software modifies only one set:
  492.              the one for the operating system you are running at the time
  493.              of installation.
  494.  
  495.              After installation, you can modify either set of configuration
  496.              files manually using the instructions under Manual
  497.              Installation on page 7.  If you use Boot Manager, you can
  498.              instead restart the installation software and select the
  499.              "Modify Startup Files" option on the main menu to modify the
  500.              second set of startup files.  If you use this approach, be
  501.              sure to tell the installation software the proper boot drive
  502.              for the set of configuration files you wish to modify.
  503.  
  504.              See Chapter 4 on page 47 for more details on using 4DOS with
  505.              OS/2.
  506.  
  507.         -------------------------------------------------------------------
  508.         Copr. 1995 JP Software Inc.    4DOS Intro. & Installation Guide / 5
  509.                                                    CHAPTER 1 / INSTALLATION
  510.         -------------------------------------------------------------------
  511.  
  512.  
  513.         Automated Installation
  514.  
  515.              To begin the automated installation process, put the
  516.              distribution diskette into drive A.  You can use drive B if
  517.              you prefer, in which case you should substitute "b" for "a" in
  518.              the instructions below.
  519.  
  520.              One of the files on the distribution diskette, README.1ST,
  521.              contains information that you should read before you install
  522.              4DOS on your computer.  Type:
  523.  
  524.                   type a:readme.1st | more
  525.  
  526.              to view the file.  If you want to print a copy of the file,
  527.              type:
  528.  
  529.                   copy a:readme.1st prn
  530.  
  531.              After checking README.1ST, you can start the installation
  532.              process.  Type:
  533.  
  534.                   a:install
  535.  
  536.              and press the Enter key.
  537.  
  538.              Once the installation program has started, just follow the
  539.              instructions on the screen and 4DOS will install itself on
  540.              your system.
  541.  
  542.              The installation program will ask whether you want to perform
  543.              a complete installation, perform a partial installation in
  544.              order to run the Guided Tour, or retrieve individual files
  545.              from the 4DOS library.  Choose a full installation to install
  546.              4DOS on your system, and modify CONFIG.SYS and AUTOEXEC.BAT
  547.              (you will be prompted for permission before these files are
  548.              modified).  Choose the Tour option if you want to see what
  549.              4DOS can do before you install it permanently.
  550.  
  551.              If you elect to perform a full installation, reboot your
  552.              computer when the installation program is done.  You will then
  553.              have all the power of 4DOS available to you.
  554.  
  555.          ##  If you use a utility which allows multiple configurations in
  556.              your DOS CONFIG.SYS file, the automatic installation software
  557.              may not be able to modify CONFIG.SYS for you, even if you give
  558.              it permission to do so.  In this case you will see a message
  559.              explaining the problem during installation, and you will need
  560.              to follow the Manual Installation instructions below to modify
  561.              CONFIG.SYS yourself.  See page 14 for additional notes about
  562.              using 4DOS with these utilities.
  563.  
  564.  
  565.         -------------------------------------------------------------------
  566.         Copr. 1995 JP Software Inc.    4DOS Intro. & Installation Guide / 6
  567.                                                    CHAPTER 1 / INSTALLATION
  568.         -------------------------------------------------------------------
  569.  
  570.  
  571.              You can halt the installation process at any time by pressing
  572.              Ctrl-X (hold down the Ctrl key and then press "X").
  573.  
  574.  
  575.         ##  Manual Installation
  576.  
  577.              The 4DOS files are contained in a special library file on the
  578.              distribution diskette.  You cannot simply copy files from the
  579.              diskette onto your system.  You must use the installation
  580.              program to extract the 4DOS files if you want to perform a
  581.              manual installation, or if you need to replace a damaged 4DOS
  582.              file on your hard disk.
  583.  
  584.              If you want to install 4DOS manually, first start the
  585.              automatic installation program using the instructions above.
  586.              Select the Extract all files option and extract the 4DOS files
  587.              onto your hard disk (be sure to place the files in their own
  588.              directory).
  589.  
  590.              If you are installing 4DOS on floppy disks, you may not be
  591.              able to use the Extract all files option because the files may
  592.              not fit on a single diskette.  Select Copy individual files
  593.              instead, and repeat the process two or more times to copy the
  594.              files to separate diskettes.  If possible, you should copy
  595.              4DOS.COM, KSTACK.COM, 4HELP.EXE, and 4DOS.HLP to a single
  596.              diskette, because these are the files required to operate 4DOS
  597.              with all of its features.  If these files do not fit on one
  598.              diskette, copy 4DOS.COM and KSTACK.COM to one disk and
  599.              4HELP.EXE and 4DOS.HLP to another.
  600.  
  601.              If you're installing a downloaded update to 4DOS, you will not
  602.              have an INSTALL program.  Instead, use the appropriate
  603.              decompression program (for example, PKUNZIP) to extract the
  604.              files from your download into a new directory.  Then follow
  605.              the instructions below to complete your installation.  Be sure
  606.              to check the README.DOC file for any additional update
  607.              instructions.
  608.  
  609.              Once you've extracted the files, you can go through the Guided
  610.              Tour if you want to try 4DOS before completing the
  611.              installation (see the separate Guided Tour documentation).
  612.  
  613.              When you're ready to finish the installation process, all you
  614.              need to do is add one line to your DOS or OS/2 CONFIG.SYS file
  615.              (before modifying the DOS CONFIG.SYS file, be sure you have a
  616.              bootable floppy disk as discussed on page 4):
  617.  
  618.                   SHELL=d:\path\4DOS.COM d:\path /P
  619.  
  620.              "d:\path" means the drive and directory where your 4DOS files
  621.              are stored.  The second "d:\path" on the SHELL= line sets the
  622.  
  623.         -------------------------------------------------------------------
  624.         Copr. 1995 JP Software Inc.    4DOS Intro. & Installation Guide / 7
  625.                                                    CHAPTER 1 / INSTALLATION
  626.         -------------------------------------------------------------------
  627.  
  628.  
  629.              COMSPEC path (see page 17) and can be left out if 4DOS.COM is
  630.              in the root directory of your boot drive.  Be sure to delete
  631.              or REMark out any old SHELL= line for COMMAND.COM after you
  632.              add the new SHELL= line for 4DOS.  Once you have 4DOS up and
  633.              running, see page 11 for additional options you can use on the
  634.              SHELL= line.
  635.  
  636.              If you are running 4DOS under OS/2, change CONFIG.SYS as
  637.              described above.  Once you reboot, 4DOS will be used
  638.              automatically for all newly-created DOS objects on your
  639.              desktop, and for all DOS objects which use the default
  640.              DOS_SHELL settings.  See page 47 for more details on
  641.              configuring OS/2 DOS sessions to use 4DOS.
  642.  
  643.              Next, add the following line to your AUTOEXEC.BAT file:
  644.  
  645.                   d:\path\KSTACK.COM
  646.  
  647.              where "d:\path" is the drive and directory where your 4DOS
  648.              files are stored.  The same line can be used for DOS and for
  649.              OS/2 DOS sessions.
  650.  
  651.              When you've finished modifying CONFIG.SYS and AUTOEXEC.BAT,
  652.              reboot your system to start 4DOS.  For additional details on
  653.              setting up the SHELL= line and AUTOEXEC.BAT, see Chapter 2 /
  654.              Configuration (page 10).  See your Reference Manual for
  655.              information on the 4DOS.INI file, which controls 4DOS
  656.              configuration.
  657.  
  658.          ##  If you use a utility which allows multiple configurations in
  659.              your DOS CONFIG.SYS file, see page 14 for additional notes on
  660.              configuring 4DOS properly on your system.
  661.  
  662.  
  663.         ##  Uninstalling 4DOS            
  664.  
  665.              We don't expect you to have any trouble using 4DOS, but we
  666.              know some people feel more comfortable knowing how to
  667.              uninstall a product as well as install it.  Or, you may need
  668.              to remove 4DOS from one system if you are moving it to another
  669.              system.
  670.  
  671.              To temporarily remove 4DOS from your system, first find the
  672.              location of COMMAND.COM on your disk (for example, in the root
  673.              directory, or the DOS directory).  Use your editor to edit
  674.              CONFIG.SYS (before modifying the DOS CONFIG.SYS file be sure
  675.              you have a bootable floppy disk as discussed on page 4).
  676.  
  677.              Look for the line which begins with SHELL=, and insert the
  678.              characters "REM " at the beginning of the line.  This converts
  679.              the line into a "remark" or comment.  (If you are using DOS 3
  680.  
  681.         -------------------------------------------------------------------
  682.         Copr. 1995 JP Software Inc.    4DOS Intro. & Installation Guide / 8
  683.                                                    CHAPTER 1 / INSTALLATION
  684.         -------------------------------------------------------------------
  685.  
  686.  
  687.              or below, REMarks are not recognized in CONFIG.SYS, so the
  688.              changed lines will produce a harmless "Unrecognized command"
  689.              error when the system boots.)  Next, add a new line like this:
  690.  
  691.                   SHELL=d:\path\COMMAND.COM /P
  692.  
  693.              where "d:\path" is the drive and directory for COMMAND.COM.
  694.              If you were previously running COMMAND.COM with a /E:nnnn
  695.              switch to set the size of your environment, you should add it
  696.              to this line as well.
  697.  
  698.              After CONFIG.SYS has been modified, edit your AUTOEXEC.BAT
  699.              file to remove any changes made to accommodate 4DOS.  Look for
  700.              a command beginning SET COMSPEC= and another which loads the
  701.              4DOS file KSTACK.COM.  The SET COMSPEC command will not be
  702.              present on most systems.  If it's there, change it to read:
  703.  
  704.                   SET COMSPEC=d:\path\COMMAND.COM
  705.  
  706.              where "d:\path" is replaced by the correct drive and directory
  707.              for COMMAND.COM.  Then add "REM " in front of  the KSTACK.COM
  708.              command to convert it to a comment.
  709.  
  710.              If you wish, you can also look for the PATH command, and
  711.              remove the 4DOS directory from the directories listed there.
  712.              However, there's probably no reason to do so unless you're
  713.              permanently removing 4DOS from your system.
  714.  
  715.              Now reboot your system, and you should be back up and running
  716.              under COMMAND.COM.  To switch back to 4DOS, edit your
  717.              CONFIG.SYS file again to remove the REMs on your 4DOS lines
  718.              and put one on your COMMAND.COM line instead, remove any SET
  719.              COMSPEC command in AUTOEXEC.BAT, and you can boot with 4DOS
  720.              again.
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739.         -------------------------------------------------------------------
  740.         Copr. 1995 JP Software Inc.    4DOS Intro. & Installation Guide / 9
  741.                                                   CHAPTER 2 / CONFIGURATION
  742.         -------------------------------------------------------------------
  743.  
  744.  
  745.  
  746.         CHAPTER 2 / CONFIGURATION
  747.  
  748.  
  749.         This chapter explains how you can tune 4DOS to make it as efficient
  750.         and as useful as possible in your computing environment.  Nearly
  751.         everything in this chapter is for advanced users and those with
  752.         unusual needs.  If 4DOS works the way you want it to after the
  753.         automatic installation, you can skip this chapter.  You may,
  754.         however, want to skim this material to see what options are
  755.         available.
  756.  
  757.  
  758.         Configuration Files
  759.  
  760.              4DOS uses or is affected by five configuration files.  Two are
  761.              for general DOS configuration; the other three are unique to
  762.              4DOS.  The general DOS files are CONFIG.SYS and AUTOEXEC.BAT.
  763.              The specialized 4DOS files are called 4START, 4EXIT, and
  764.              4DOS.INI.
  765.  
  766.              CONFIG.SYS is discussed below.  AUTOEXEC.BAT, 4START and 4EXIT
  767.              are discussed briefly below, and in Chapter 4 / Aliases and
  768.              Batch Files in the Reference Manual.  4DOS.INI is discussed in
  769.              Chapter 5 / Configuration in the Reference Manual.
  770.  
  771.          !   Anytime you change a configuration file, a typographical
  772.              mistake or other error could make your system lock up or run
  773.              erratically.  Before you make any changes to any of these
  774.              files, we strongly urge you to take some precautions.  (These
  775.              precautions are for DOS users.  Under OS/2 they can be
  776.              helpful, but are not required, because problems with the
  777.              startup files are not as likely to keep the system from
  778.              booting and prevent you from editing the incorrect file.)
  779.  
  780.              First, create a bootable floppy disk (see page 4).  Second,
  781.              make a backup copy of all five configuration files, giving the
  782.              backup copies a different extension than the originals (for
  783.              example .SAV).  Copy these backup files to your boot-up floppy
  784.              for safekeeping.
  785.  
  786.              With these precautions, if something goes wrong, you will be
  787.              able to boot with your floppy disk and copy the files back to
  788.              their original names.  You'll only have to spend a few minutes
  789.              recovering your system.  You should follow the same
  790.              precautions each time you install a new application program
  791.              that changes your DOS or 4DOS configuration files.
  792.  
  793.  
  794.  
  795.  
  796.  
  797.         -------------------------------------------------------------------
  798.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 10
  799.                                                   CHAPTER 2 / CONFIGURATION
  800.         -------------------------------------------------------------------
  801.  
  802.  
  803.         Setting Up CONFIG.SYS
  804.  
  805.              The DOS CONFIG.SYS file contains instructions for DOS to
  806.              execute before it loads a command processor.  The OS/2
  807.              CONFIG.SYS file contains similar startup instructions for
  808.              OS/2.  Only one line in the CONFIG.SYS file affects 4DOS.  It
  809.              tells the operating system to use 4DOS as the DOS command
  810.              processor instead of COMMAND.COM.  The format of this line is:
  811.  
  812.                   SHELL=d:\path\4DOS.COM [d:\path] [@d:\path\inifile]
  813.                        [//iniline]... [/D] [/E:nnnn] [/F] [/L] [/LA] [/LH]
  814.                   [/LD]
  815.                        [/Y] [/P[:filename]] [[/K]command]
  816.  
  817.              SHELL= identifies this line as defining the command processor
  818.              that DOS will load after it finishes executing CONFIG.SYS, or
  819.              that OS/2 will load when a DOS session is started.
  820.  
  821.              Replace the first "d:\path\" (immediately after SHELL=) with
  822.              the 4DOS drive and directory.  If you're using DOS, the drive
  823.              and path must be correct or your system won't boot (and you'll
  824.              be very happy that you made the boot-up floppy we suggested).
  825.  
  826.              The remainder of the items on this line are optional.  If they
  827.              are used, you should not include the square brackets.  In the
  828.              descriptions below, "d:" means a drive letter and "\path"
  829.              means a subdirectory name.
  830.  
  831.                   d:\path:  This is the second d:\path above (not the one
  832.                   immediately after SHELL=).  It sets the drive and
  833.                   directory where 4DOS is stored, called the COMSPEC path.
  834.                   4DOS uses this path to find its files and to set the
  835.                   COMSPEC environment variable (see page 17).
  836.  
  837.                   If you use MS-DOS or PC-DOS 3.0 or above, 4DOS will
  838.                   normally find its directory automatically and this option
  839.                   will not be needed.  If you run 4DOS under OS/2, or use
  840.                   Novell DOS or DR DOS, this option is required unless
  841.                   4DOS.COM is in the root directory of the boot drive.
  842.  
  843.                   @d:\path\inifile:  This option sets the path and name of
  844.                   the 4DOS.INI file.  You don't need this option if you
  845.                   aren't using an .INI file at all, or if the file is
  846.                   called 4DOS.INI and it is in the same directory as
  847.                   4DOS.COM, or in the root directory of the boot drive.
  848.  
  849.                   //iniline:  This option tells 4DOS to treat the text
  850.                   appearing between the // and the next space or tab as a
  851.                   4DOS.INI directive.  The directive should be in the same
  852.                   format as a line in 4DOS.INI, but may not contain spaces,
  853.                   tabs, or comments.  Directives on the SHELL= line
  854.  
  855.         -------------------------------------------------------------------
  856.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 11
  857.                                                   CHAPTER 2 / CONFIGURATION
  858.         -------------------------------------------------------------------
  859.  
  860.  
  861.                   override any corresponding directive in 4DOS.INI.  This
  862.                   is a convenient way to place one or two simple directives
  863.                   on the SHELL= line without having to modify or create a
  864.                   4DOS.INI file.
  865.  
  866.                   /D:  This option disables execution of AUTOEXEC.BAT (or
  867.                   the file named in the AutoExecPath directive in 4DOS.INI
  868.                   or on the SHELL= line).  It is intended for internal use
  869.                   by MS-DOS / PC-DOS 6.x.  When you press the F8 key during
  870.                   the boot process, MS-DOS prompts for whether to run
  871.                   AUTOEXEC.BAT.  If you answer "No", the /D switch is used
  872.                   to relay your choice to 4DOS.
  873.  
  874.                   /E:nnnn:  This option sets the size of the environment,
  875.                   in bytes.  If you don't use this option, 4DOS will
  876.                   allocate 512 bytes for the environment.  You can use any
  877.                   value from 256 to 32000 as the environment size.  For
  878.                   example, to set an environment of 1,000 bytes, you would
  879.                   enter the option as /E:1000.
  880.  
  881.                   You can also set the environment size with the
  882.                   Environment directive in the 4DOS.INI file (see your
  883.                   Reference Manual).
  884.  
  885.                   /F:  This option tells 4DOS to automatically provide a
  886.                   Fail response to all critical errors, without prompting
  887.                   or waiting for a user response.  It is rarely used except
  888.                   on systems that must run unattended, like bulletin
  889.                   boards.  We do not recommend use of this option on a
  890.                   normal system, because you will not have a chance to
  891.                   react to a critical error and correct the problem that
  892.                   caused it.  For more information on critical errors see
  893.                   Chapter 3 of your Reference Manual.  /F only affects
  894.                   critical errors detected by 4DOS, and will not affect
  895.                   critical error handling for many application programs
  896.                   which perform this function themselves.  It is equivalent
  897.                   to the directive CritFail=Yes in 4DOS.INI.
  898.  
  899.                   /L, /LA, /LD, and /LH:  These options force 4DOS to use a
  900.                   local alias, directory history, and / or command history
  901.                   list.  They can be used to override any LocalAlias=No,
  902.                   LocalHistory=No, or LocalDirHistory=No settings in
  903.                   4DOS.INI.  This allows you to use global lists as the
  904.                   default, but start a specific shell or OS/2 DOS session
  905.                   with local aliases or history.  See your Reference Manual
  906.                   for details on local and global aliases and history.  /LA
  907.                   forces local aliases, /LD forces local directory history,
  908.                   /LH forces local command history, and /L forces all 3:
  909.                   local aliases, command history, and directory history.
  910.  
  911.  
  912.  
  913.         -------------------------------------------------------------------
  914.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 12
  915.                                                   CHAPTER 2 / CONFIGURATION
  916.         -------------------------------------------------------------------
  917.  
  918.  
  919.                   /Y:  This option forces 4DOS to "single-step" through
  920.                   4START and AUTOEXEC.BAT (or the file named in the
  921.                   AutoExecPath directive).  It is intended for internal use
  922.                   by MS-DOS 6.x.  When you press the F8 key to enable
  923.                   single-stepping during the boot process, the /Y switch is
  924.                   used to relay your choice to 4DOS.
  925.  
  926.                   /P[:filename]:  This option tells 4DOS to load
  927.                   permanently and to run AUTOEXEC.BAT.  If you specify a
  928.                   filename after the /P, that file will be run instead of
  929.                   AUTOEXEC.BAT.  You should specify the full name of the
  930.                   file, including drive and directory.  A filename after /P
  931.                   will override the AutoExecPath option in 4DOS.INI.
  932.  
  933.                   When 4DOS is loaded from the SHELL= command in
  934.                   CONFIG.SYS, or as the shell for an OS/2 DOS session, it
  935.                   will normally detect that it is the primary shell and set
  936.                   the /P option automatically.  Under very rare
  937.                   circumstances, you may want to load 4DOS permanently and
  938.                   have it run AUTOEXEC even though you are not loading it
  939.                   from CONFIG.SYS; in such cases you must set /P yourself.
  940.                   4DOS will not run AUTOEXEC.BAT without either an
  941.                   automatic or an explicit /P.  Do not use this option in
  942.                   secondary shells, or you will be unable to return to the
  943.                   primary shell.
  944.  
  945.                   [/K] command:  This option tells 4DOS to run the command
  946.                   after 4START and AUTOEXEC.BAT but before displaying the
  947.                   prompt.  The command can be any valid alias, internal or
  948.                   external command, or batch file.  All other startup
  949.                   options (such as //iniline or /P) must be placed before
  950.                   the command, because 4DOS will treat characters after the
  951.                   command as part of the command and not as additional
  952.                   startup options.
  953.  
  954.                   If you use MS-DOS / PC-DOS 6.x and use /K, the command
  955.                   will be executed instead of AUTOEXEC.BAT (for
  956.                   compatibility with MS-DOS / PC-DOS 6.x COMMAND.COM).  In
  957.                   all other cases, the command will be executed in addition
  958.                   to AUTOEXEC.BAT.
  959.  
  960.          ##  If you specify a path and name for the 4DOS.INI file on the
  961.              SHELL= line, or if you use options that will override
  962.              directives in your .INI file, you must place the command line
  963.              options on the SHELL= line in the order in which they are
  964.              listed above.  If you do not, you may find that the command
  965.              line options do not properly override directives in the .INI
  966.              file.
  967.  
  968.  
  969.  
  970.  
  971.         -------------------------------------------------------------------
  972.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 13
  973.                                                   CHAPTER 2 / CONFIGURATION
  974.         -------------------------------------------------------------------
  975.  
  976.  
  977.              Caution
  978.  
  979.          !   There is a bug in all versions of MS-DOS and PC-DOS from 2.0
  980.              through 4.01:  the SHELL= line in the CONFIG.SYS file may not
  981.              contain more than 31 characters following the name of the
  982.              shell program (i.e., beginning with the space after
  983.              "4DOS.COM").  If the line is too long, the options will not be
  984.              passed properly to 4DOS and a variety of errors can occur.
  985.              You can set all necessary 4DOS options without exceeding this
  986.              limit, especially if you put 4DOS.COM and 4DOS.INI in the root
  987.              directory of your boot drive.  This limit is not present in
  988.              MS-DOS / PC-DOS 5.0 and above, in Novell DOS, or in OS/2.
  989.  
  990.  
  991.           ## 4DOS and Multiple-Configuration Utilities
  992.  
  993.              4DOS is fully compatible with most products which allow
  994.              multiple configurations in your DOS CONFIG.SYS file, including
  995.              BOOT.SYS (a powerful multiple-configuration utility sold by JP
  996.              Software), and the MS-DOS / PC-DOS 6.0 and above "multi-
  997.              config" feature.
  998.  
  999.              If you plan to use the same 4DOS setup for all configurations,
  1000.              create one SHELL= line and place it in the common area of
  1001.              CONFIG.SYS that is used for all configurations.
  1002.  
  1003.              If you want to use a separate 4DOS setup for each
  1004.              configuration, create individual SHELL= lines in the area of
  1005.              CONFIG.SYS specific to each configuration.  Start out using
  1006.              the same line for each configuration, then make any necessary
  1007.              changes to your standard setup.  For example, you could use
  1008.              options on the SHELL= line to select a different .INI file or
  1009.              AUTOEXEC file for certain configurations (see above for more
  1010.              details on these options).
  1011.  
  1012.              Be sure to check APPNOTES.DOC for notes on the specific
  1013.              configuration utility you use.
  1014.  
  1015.  
  1016.              4DOS and DOS 2
  1017.  
  1018.              We recommend using DOS 3.1 or above, but 4DOS can be used with
  1019.              DOS 2.  The only special consideration is that 4DOS must be
  1020.              loaded differently under DOS 2.x, because certain DOS 2
  1021.              functions require that COMMAND.COM be loaded as the primary
  1022.              command processor.  Therefore, you must load COMMAND.COM first
  1023.              and then 4DOS.  Assuming that all files are in the root
  1024.              directory of your boot drive, the SHELL= line in DOS 2.x
  1025.              should look like this:
  1026.  
  1027.                   shell=command.com /c 4DOS /p [options]
  1028.  
  1029.         -------------------------------------------------------------------
  1030.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 14
  1031.                                                   CHAPTER 2 / CONFIGURATION
  1032.         -------------------------------------------------------------------
  1033.  
  1034.  
  1035.              Note that due to the "/c 4DOS" on the SHELL line, fewer
  1036.              options can be used before running into the 31-character limit
  1037.              discussed above.  You must, however, use the /P option, or
  1038.              AUTOEXEC.BAT will not run.  4DOS will not automatically detect
  1039.              that it is the primary shell and set /P for you when run under
  1040.              DOS 2.
  1041.  
  1042.  
  1043.         Startup Options for Secondary Shells
  1044.  
  1045.              You may want to set explicit options for a 4DOS secondary
  1046.              shell when you define a 4DOS window in a task switching or
  1047.              multitasking system such as Windows, DESQview, Back & Forth,
  1048.              or the MS-DOS shell (DOSSHELL); when you "shell out" of a
  1049.              program which allows you to specify command-line options for
  1050.              the shell; or in rare cases when you run a secondary copy of
  1051.              4DOS directly from the command line.  In most other cases,
  1052.              secondary shells do not use or require any startup options.
  1053.  
  1054.              If you do need to set options for secondary shells, you can
  1055.              use any of the following (for more details on items which are
  1056.              the same as those used in CONFIG.SYS, see the section
  1057.              beginning on page 11):
  1058.  
  1059.                   @d:\path\inifile:  Set the .INI file name, as in
  1060.                   CONFIG.SYS.  This option is not necessary if you want
  1061.                   4DOS to use the same .INI file that you used for the
  1062.                   primary shell, because values from that file - including
  1063.                   those in its [Secondary] section - will be passed
  1064.                   automatically to secondary shells.
  1065.  
  1066.                   //iniline:  This option tells 4DOS to treat the text
  1067.                   appearing between the // and the next space or tab as a
  1068.                   4DOS.INI directive.  The directive should be in the same
  1069.                   format as a line in 4DOS.INI, but may not contain spaces,
  1070.                   tabs, or comments.  Directives on the secondary shell
  1071.                   command line override any corresponding directive in
  1072.                   4DOS.INI.  This allows you to use 4DOS.INI directives
  1073.                   directly on the command line when starting 4DOS in a
  1074.                   window of a multitasking system, rather than having to
  1075.                   create separate copies of 4DOS.INI to accommodate small
  1076.                   configuration changes in different windows.
  1077.  
  1078.                   /E:nnnn:  Set the environment size, as in CONFIG.SYS.
  1079.  
  1080.                   /F:  Force an automatic "Fail" on critical error, as in
  1081.                   CONFIG.SYS.
  1082.  
  1083.                   /L, /LA, /LD, and /LH:  Force 4DOS to use a local alias,
  1084.                   directory history and / or command history list, as in
  1085.                   CONFIG.SYS.
  1086.  
  1087.         -------------------------------------------------------------------
  1088.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 15
  1089.                                                   CHAPTER 2 / CONFIGURATION
  1090.         -------------------------------------------------------------------
  1091.  
  1092.  
  1093.                   [/C | /K] command:  This option tells 4DOS to run the
  1094.                   command after 4START but before any command prompt is
  1095.                   displayed.  The command can be any valid alias, internal
  1096.                   or external command, or batch file, and can include
  1097.                   multiple commands.  Use this option if you want 4DOS to
  1098.                   run a batch file or execute a command when it starts, for
  1099.                   example to run a specific batch file when 4DOS is started
  1100.                   in a window of a multitasking system.
  1101.  
  1102.                   When the command is preceded by a /C, 4DOS will execute
  1103.                   it and then exit and return to the parent program.  /C is
  1104.                   used by some applications to start the command processor,
  1105.                   run one command, and then return to the application.
  1106.  
  1107.                   The /K switch is included only for compatibility with
  1108.                   COMMAND.COM.  It has no effect on 4DOS; using it is the
  1109.                   same as placing the command (without a /C or /K) at the
  1110.                   end of the startup command line.
  1111.  
  1112.  
  1113.         Using AUTOEXEC.BAT, 4START, and 4EXIT
  1114.  
  1115.              You generally won't need to make any changes to AUTOEXEC.BAT
  1116.              to make it run properly under 4DOS, although once you get used
  1117.              to 4DOS's batch file enhancements, you may want to use them to
  1118.              streamline AUTOEXEC.
  1119.  
  1120.              If you want to use the 4DOS KEYSTACK command, you will
  1121.              normally load the program KSTACK.COM from your AUTOEXEC.BAT
  1122.              file.  To do so, include the following line in your file (be
  1123.              sure to place it before any KEYSTACK commands):
  1124.  
  1125.                   d:\path\kstack.com
  1126.  
  1127.              Replace d:\path with the path to the KSTACK.COM program, which
  1128.              will normally be stored in your 4DOS directory.
  1129.  
  1130.              You may want to use AUTOEXEC.BAT to configure 4DOS by setting
  1131.              the environment variables that 4DOS uses:  CDPATH, COLORDIR,
  1132.              COMSPEC, PATH, PROMPT, TEMP, and TEMP4DOS.  You may also want
  1133.              to include a SETDOS command to set configuration variables.
  1134.              All of these settings are optional.
  1135.  
  1136.              4DOS runs two special batch files automatically, 4START and
  1137.              4EXIT.  4START is executed whenever 4DOS is started.  In the
  1138.              primary shell, it is executed before AUTOEXEC.BAT.  If 4DOS is
  1139.              started as a secondary shell with the [/C] command option,
  1140.              4START is executed before the command.
  1141.  
  1142.  
  1143.  
  1144.  
  1145.         -------------------------------------------------------------------
  1146.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 16
  1147.                                                   CHAPTER 2 / CONFIGURATION
  1148.         -------------------------------------------------------------------
  1149.  
  1150.  
  1151.              See your Reference Manual for more information on environment
  1152.              variables, the SETDOS command, and AUTOEXEC.BAT, 4START, and
  1153.              4EXIT.
  1154.  
  1155.  
  1156.         COMSPEC and the COMSPEC Path
  1157.  
  1158.              The COMSPEC environment variable contains the full path and
  1159.              name of the command processor.  For example, if 4DOS is stored
  1160.              in the directory C:\4DOS, the COMSPEC variable should be set
  1161.              to C:\4DOS\4DOS.COM.  COMSPEC is used by applications which
  1162.              need to find the command processor to implement a "shell to
  1163.              DOS" feature.
  1164.  
  1165.              You can set the COMSPEC variable by specifying the COMSPEC
  1166.              path when your system starts, or by using a SET command as you
  1167.              would for any environment variable.
  1168.  
  1169.              If you include a COMSPEC path on the SHELL= line in CONFIG.SYS
  1170.              (see page 11), or in the DOS_SHELL setting for an OS/2 2.x or
  1171.              above DOS session (see page 52), 4DOS will set the COMSPEC
  1172.              variable automatically to the path you specify, and append the
  1173.              filename 4DOS.COM.  This method also allows 4DOS to use the
  1174.              COMSPEC path to find other files during the startup process,
  1175.              such as 4DOS.INI and 4START.
  1176.  
  1177.              If you don't include the COMSPEC path on the primary shell's
  1178.              startup command line, 4DOS will set the COMSPEC variable to
  1179.              the root directory of the boot drive (x:\4DOS.COM where "x" is
  1180.              the boot drive), and will also look in the root directory of
  1181.              the boot drive for 4DOS.INI and 4START.
  1182.  
  1183.              You can also set the COMSPEC variable manually with a SET
  1184.              command in AUTOEXEC.BAT.  This method will override any
  1185.              setting made with a COMSPEC path on the primary shell's
  1186.              startup command line as described above.  We do not recommend
  1187.              this approach, because it will allow applications to shell to
  1188.              DOS, but will not provide the information the primary 4DOS
  1189.              shell needs to find its files during the startup process.
  1190.  
  1191.              When 4DOS is running as the primary command processor, you can
  1192.              determine whether COMSPEC has been set correctly by typing the
  1193.              following line at the 4DOS prompt:
  1194.  
  1195.                   echo %comspec
  1196.  
  1197.  
  1198.         4DOS Swapping Methods
  1199.  
  1200.              4DOS runs in two parts, a resident portion that is always in
  1201.              memory and a transient portion that can be stored in EMS
  1202.  
  1203.         -------------------------------------------------------------------
  1204.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 17
  1205.                                                   CHAPTER 2 / CONFIGURATION
  1206.         -------------------------------------------------------------------
  1207.  
  1208.  
  1209.              memory, in XMS memory, on a RAM disk, or on your hard disk
  1210.              while application programs are running.  The resident portion
  1211.              uses about 3K bytes of memory in the primary shell and about
  1212.              1.5K bytes in secondary shells.  The transient portion uses
  1213.              about 128K bytes of memory.  4DOS will perform most quickly if
  1214.              the transient portion is swapped to the fastest memory or
  1215.              device available.
  1216.  
  1217.              See page 24 for explanations of XMS and EMS memory.
  1218.  
  1219.              Swapping for the primary shell normally requires about 128K
  1220.              bytes of EMS memory, XMS memory, or disk space.  Secondary
  1221.              shells normally require 32K bytes of EMS, or 28K bytes of XMS
  1222.              or disk space.  If you have a large environment, alias list,
  1223.              or history list, more memory will be required in both primary
  1224.              and secondary shells.  The EMS requirements are larger because
  1225.              EMS memory is allocated in 16K increments;  4DOS does not
  1226.              actually use more memory when swapping to EMS.
  1227.  
  1228.              You can control 4DOS swapping with the Swapping directive in
  1229.              4DOS.INI.  The Swapping directive lists a series of swap
  1230.              types, which may be:
  1231.  
  1232.                   EMS:  4DOS will swap to EMS expanded memory if it is
  1233.                   available.  You must have expanded memory and an EMS
  1234.                   memory manager (version 3.2 or later) for this option.
  1235.  
  1236.                   XMS:  4DOS will swap to XMS extended memory if it is
  1237.                   available.  You must have an an XMS memory manager and a
  1238.                   80286, 386, 486, or Pentium computer for this option.
  1239.  
  1240.                   d:\path:  4DOS will create a swap file in the drive and
  1241.                   directory specified.  The file will be called
  1242.                   4DOSSWAP.NNN where "NNN" is the shell number (unless you
  1243.                   use the UniqueSwapName directive in 4DOS.INI to generate
  1244.                   a unique swap file name).  This swap file is created as a
  1245.                   hidden system file to avoid accidental deletion and will
  1246.                   not be visible with a normal DIR command.  Swapping to a
  1247.                   RAM disk will generally be faster than swapping to a hard
  1248.                   disk.  Do not use a floppy disk for swapping because its
  1249.                   performance is likely to be unacceptably slow.
  1250.  
  1251.                   None:  No swapping.  The transient portion of 4DOS will
  1252.                   remain in memory at all times.  This option will reduce
  1253.                   memory available for application programs by about 128K
  1254.                   compared to the other swap types, and should be used only
  1255.                   when no other swapping options are available.
  1256.  
  1257.              You can specify multiple swap types and 4DOS will try them in
  1258.              the order listed.  Swap type "None" is always appended to your
  1259.              list of possible swap types as a "last resort," even if you
  1260.  
  1261.         -------------------------------------------------------------------
  1262.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 18
  1263.                                                   CHAPTER 2 / CONFIGURATION
  1264.         -------------------------------------------------------------------
  1265.  
  1266.  
  1267.              don't include it explicitly.  This allows 4DOS to start even
  1268.              if the other swap types you specify don't work.
  1269.  
  1270.              For example, if your system has EMS memory and a RAM disk set
  1271.              up as drive D, the directive:
  1272.  
  1273.                   Swapping = EMS, D:\, C:\SWAP
  1274.  
  1275.              in 4DOS.INI will tell 4DOS to try EMS memory first, then the
  1276.              RAM disk, and finally the \SWAP directory on drive C.  If all
  1277.              of these options fail (because there isn't enough free space
  1278.              available), the transient portion of 4DOS will remain in
  1279.              memory (swap type "None").
  1280.  
  1281.              The default Swapping specification is:
  1282.  
  1283.                   Swapping = EMS, XMS, x:\, None
  1284.  
  1285.              where "x" is the boot drive (for the primary shell) or the
  1286.              COMSPEC drive (for secondary shells).  (Disk swapping will not
  1287.              be included as part of the default if the boot drive is A: or
  1288.              B:, because floppy disk swapping is too slow to be useful on
  1289.              most systems.)
  1290.  
  1291.              After 4DOS starts, you can use the SWAPPING command to view
  1292.              the type of swapping in use.
  1293.  
  1294.  
  1295.         4DOS Help
  1296.  
  1297.              4DOS includes a complete help program called 4HELP.EXE.  The
  1298.              help system includes complete help for all 4DOS internal
  1299.              commands, all standard DOS external commands, and most 4DOS
  1300.              features.  The information in the help system is fully cross-
  1301.              referenced, so you can move easily among related commands.
  1302.  
  1303.              You can start the help system by typing HELP (or HELP plus a
  1304.              command name) at the prompt, or by pressing the F1 key at any
  1305.              time at the command line.
  1306.  
  1307.              If you type part or all of a command on the line and then
  1308.              press F1, the help system will provide "context-sensitive"
  1309.              help by using the first word on the line as a help topic.  If
  1310.              it's a valid topic, you will see help for that topic
  1311.              automatically; if not, you will see the list of all help
  1312.              topics and you can pick the one you want.  For example, if you
  1313.              press F1 after entering each of the command lines shown below
  1314.              you will get the display indicated:
  1315.  
  1316.                   c:\>                Topic list
  1317.                   c:\> copy *.* a:    Help on COPY
  1318.  
  1319.         -------------------------------------------------------------------
  1320.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 19
  1321.                                                   CHAPTER 2 / CONFIGURATION
  1322.         -------------------------------------------------------------------
  1323.  
  1324.  
  1325.                   c:\> c:\util\map    Topic list
  1326.  
  1327.              If you type the name of any internal command at the prompt,
  1328.              followed by a slash and a question mark [/?] like this:
  1329.  
  1330.                   copy /?
  1331.  
  1332.              then you will see help for the command in a "quick-reference"
  1333.              style.  Output from a /? display may be redirected with > or
  1334.              >>.
  1335.  
  1336.          ##  The /? option may not work correctly if you have used an alias
  1337.              to redefine how an internal command operates.  To view the /?
  1338.              help for such a command you must add an asterisk to the
  1339.              beginning of the command to disable alias processing.  For
  1340.              example, if you have defined this alias:
  1341.  
  1342.                   alias copy *copy /r
  1343.  
  1344.              then the command COPY /? will be translated to COPY /R /?,
  1345.              which will not work properly.  However, if you use *COPY /?,
  1346.              the alias will be ignored and the /? will work as you
  1347.              intended.
  1348.  
  1349.              Once you've started the 4DOS help system with HELP or F1, you
  1350.              can use a standard set of keystrokes to navigate.  The table
  1351.              below gives a summary of keys you can use in the help topic
  1352.              list, and in a help text screen.  For more details on using
  1353.              the help system, see the Help topic (at the beginning of the
  1354.              topic list) in the help system itself.  For details on mouse
  1355.              usage, see the Mouse topic in the help system.
  1356.  
  1357.              Help topic list keys:
  1358.  
  1359.                   Arrow Keys          Move the highlight to a different
  1360.                                       topic.
  1361.                   Enter               Display help on the highlighted
  1362.                                       topic.
  1363.                   Esc                 Return to 4DOS.
  1364.                   Any other key       Attempt to match the characters typed
  1365.                                       with one of the names in the topic
  1366.                                       list.
  1367.  
  1368.              Help text screen keys:
  1369.  
  1370.                   Up Arrow            Scroll up one line in the display.
  1371.                   Down Arrow          Scroll down one line in the display.
  1372.                   PgUp                Scroll up one page in the display.
  1373.                   PgDn                Scroll down one page in the display.
  1374.                   Left Arrow          Move the cross-reference highlight to
  1375.                                       the previous item.
  1376.  
  1377.         -------------------------------------------------------------------
  1378.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 20
  1379.                                                   CHAPTER 2 / CONFIGURATION
  1380.         -------------------------------------------------------------------
  1381.  
  1382.  
  1383.                   Right Arrow         Move the cross-reference highlight to
  1384.                                       the next item.
  1385.                   Enter               Switch to the topic shown by the
  1386.                                       highlighted cross-reference item.
  1387.                   Esc                 Return to the topic list, or back to
  1388.                                       4DOS if this topic was displayed
  1389.                                       directly without using the topic
  1390.                                       list.
  1391.                   F1                  Go to the topic list in order to
  1392.                                       select a new topic.
  1393.                   Alt-N or Ctrl-Right View the next topic in the topic
  1394.                                       list.
  1395.                   Alt-P or Ctrl-Left  View the previous topic in the topic
  1396.                                       list.
  1397.                   Alt-F1              View the previously displayed topic.
  1398.                   Alt-X               Return directly to 4DOS without
  1399.                                       restoring the original screen
  1400.                                       contents.
  1401.                   F                   Find a string within the current
  1402.                                       topic.
  1403.                   G                   Find a string in any topic (a
  1404.                                       "global" search).
  1405.                   N                   Find the next occurrence of the
  1406.                                       search string.
  1407.                   P                   Print the text for the current topic
  1408.                                       on LPT1.
  1409.  
  1410.              The help system normally restores the screen when exiting.
  1411.              Use Alt-X to leave a page of help text on the screen so you
  1412.              can refer to it.  You can use F, G, and N to search for a
  1413.              string in the help text, and P to print the topic you are
  1414.              viewing.  Your printer must be turned on and ready before
  1415.              pressing P.
  1416.  
  1417.  
  1418.              Configuring the Help System
  1419.  
  1420.              The 4DOS help system can be configured in several different
  1421.              ways.
  1422.  
  1423.              First, the HELPCFG.EXE program included with 4DOS allows you
  1424.              to customize the HELP colors.  To use it, just change to your
  1425.              4DOS directory, enter the command HELPCFG, and follow the
  1426.              instructions it displays.  To force HELPCFG to adjust the
  1427.              monochrome HELP colors, even if you are using a color system,
  1428.              use the command HELPCFG /M to start the program.
  1429.  
  1430.              You can use the HelpPath directive in your 4DOS.INI file to
  1431.              inform 4DOS of the location of the HELP files (4HELP.EXE and
  1432.              4DOS.HLP).  If you don't use the HelpPath directive, the HELP
  1433.              program must be in the current directory or in one of the
  1434.  
  1435.         -------------------------------------------------------------------
  1436.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 21
  1437.                                                   CHAPTER 2 / CONFIGURATION
  1438.         -------------------------------------------------------------------
  1439.  
  1440.  
  1441.              directories specified in your PATH setting.  If you use the
  1442.              HelpPath directive, the HELP command will generally respond
  1443.              more quickly because 4DOS won't have to search the directories
  1444.              in your PATH setting to find the help files.
  1445.  
  1446.              The HELP command has three options which you can set with the
  1447.              HelpOptions directive in 4DOS.INI.  The options are:
  1448.  
  1449.                   /M(onochrome):  Forces HELP to use monochrome display
  1450.                   mode.  This is useful on a system which has a color video
  1451.                   board and a monochrome display (for example, portable
  1452.                   computers with LCD screens).
  1453.  
  1454.                   /Sn (Speed):  Sets the HELP mouse movement speed.  /S0
  1455.                   sets the speed to one half the default mouse speed.  /S2
  1456.                   sets it to twice the default, and /S4 sets it to four
  1457.                   times the default.  The higher values may be useful if
  1458.                   you use a screen larger than the standard size of 80 x
  1459.                   25.
  1460.  
  1461.                   /X:  Disable the mouse while HELP is running.  If you
  1462.                   have a Microsoft serial or PS/2 mouse and are
  1463.                   experiencing long delays when HELP starts, you can use
  1464.                   this option to disable the mouse.  (The delay is caused
  1465.                   by the extended time required by some versions of the
  1466.                   Microsoft mouse driver to initialize these mice.)
  1467.  
  1468.              For example, if you want HELP to use a monochrome display and
  1469.              disable the mouse by default, you could include the following
  1470.              line in your 4DOS.INI file:
  1471.  
  1472.                   HelpOptions = /M /X
  1473.  
  1474.              You can include the same options on the HELP command line if
  1475.              you wish.  Options used on the HELP command line will override
  1476.              any that are set in the 4DOS.INI file.  For example, to obtain
  1477.              help on the COPY command, and disable the mouse, you could use
  1478.              this command:
  1479.  
  1480.                   c:\> help /x copy
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493.         -------------------------------------------------------------------
  1494.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 22
  1495.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1496.         -------------------------------------------------------------------
  1497.  
  1498.  
  1499.  
  1500.         CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1501.  
  1502.  
  1503.         This chapter explains how to get the most from 4DOS with the
  1504.         particular hardware and software in use on your system.
  1505.  
  1506.         You should find that 4DOS is compatible with all your PC hardware
  1507.         and software.  We have designed it carefully so that it uses
  1508.         standard, documented methods to do its job.  It works properly with
  1509.         all kinds of CPUs, keyboards, video displays, and disks; with
  1510.         application software, utilities, networks, multitaskers and task
  1511.         switchers, and memory-resident (TSR) programs; and with system
  1512.         software like disk caches, memory managers, and device drivers.  We
  1513.         test 4DOS regularly with dozens of hardware setups and hundreds of
  1514.         popular software products in order to catch and correct any
  1515.         possible compatibility problems before you encounter them.
  1516.  
  1517.         The following sections discuss using 4DOS:
  1518.  
  1519.              * With the physical hardware that makes up
  1520.                system (the CPU, Memory, Video, and Disks).
  1521.  
  1522.              * With DOS, including a specific discussion of Novell DOS.
  1523.  
  1524.              * With multitasking and task switching programs, including a
  1525.                specific discussion of Microsoft Windows.
  1526.  
  1527.              * With networks, including Novell Netware.
  1528.  
  1529.         For specific information about any individual software package or
  1530.         hardware product, including the latest information about products
  1531.         mentioned in this chapter, see the APPNOTES.DOC file distributed
  1532.         with 4DOS.  It contains the latest information available when your
  1533.         copy of 4DOS was shipped.
  1534.  
  1535.         If you need to diagnose a problem that isn't covered below or in
  1536.         APPNOTES.DOC, see Appendix A on page 58.
  1537.  
  1538.         If you have questions about some of the terms and concepts here,
  1539.         see Chapter 1 or the Glossary in your Reference Manual, or the
  1540.         Index on page 72 of this manual.
  1541.  
  1542.  
  1543.         The CPU
  1544.  
  1545.              The CPU or "Central Processing Unit" is the chip which
  1546.              performs or directs all of the work done by your computer.
  1547.              All PC CPU chips are part of or compatible with Intel's
  1548.              "80x86" family.  These include the 8088, 8086, 80188, 80186,
  1549.              80286, 386, 486, Pentium, NEC V20, and NEC V30, plus "SX"
  1550.  
  1551.         -------------------------------------------------------------------
  1552.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 23
  1553.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1554.         -------------------------------------------------------------------
  1555.  
  1556.  
  1557.              versions and other variations of some of those chips.  4DOS is
  1558.              compatible with all of these chips.
  1559.  
  1560.              Some systems have a numeric coprocessor as a companion to the
  1561.              CPU.  The numeric coprocessor performs many arithmetic
  1562.              calculations faster than the CPU.  4DOS does not use the
  1563.              numeric coprocessor.
  1564.  
  1565.              You can determine which CPU chip your system has by using
  1566.              4DOS's _CPU internal variable:
  1567.  
  1568.                   c:\> echo %_cpu
  1569.  
  1570.              Similarly, you can find out if you have a numeric coprocessor
  1571.              with _NDP:
  1572.  
  1573.                   c:\> echo %_ndp
  1574.  
  1575.              See your Reference Manual for details about _CPU and _NDP.
  1576.  
  1577.  
  1578.         Memory
  1579.  
  1580.              The memory in your computer is organized in bytes.  Normally,
  1581.              the amount of memory in a computer is discussed in terms of
  1582.              kilobytes (KBytes or 1,024 bytes) and megabytes (MBytes or
  1583.              1,048,576 bytes or 1,024 KBytes).  The amount of memory
  1584.              available in your computer is determined by the number of
  1585.              memory chips or memory modules you have installed.
  1586.  
  1587.              In an ideal world, there would be little more to say about
  1588.              memory.  But because of the history of PCs, the needs of large
  1589.              application programs, and the capabilities of advanced CPUs,
  1590.              there are many different kinds of memory.  The original 8088
  1591.              CPUs of the PC and PC/XT can address 1 MByte of memory.  Of
  1592.              that, a maximum of 640KBytes is allocated as base,
  1593.              conventional, DOS, or low DOS memory (all these terms mean the
  1594.              same thing).  The other 384 KBytes, known as upper memory, are
  1595.              set aside for the computer's built-in ROM BIOS, video adapter
  1596.              cards, hard disk controllers, and other expansion hardware.
  1597.  
  1598.              When base memory became too limiting, expanded memory (or EMS
  1599.              memory) was developed to give programs more data space.
  1600.              Expanded memory adds a maximum of 16 MBytes which programs can
  1601.              access, 64KBytes at a time, through a window in upper memory.
  1602.              In 8088 / 8086 (PC and XT), and 80286 (AT) based computers,
  1603.              expanded memory typically requires an add-on board and support
  1604.              software.  In 386, 486, and Pentium computers, expanded memory
  1605.              is typically provided without additional hardware, using the
  1606.              capabilities of the 386 / 486 / Pentium chips.
  1607.  
  1608.  
  1609.         -------------------------------------------------------------------
  1610.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 24
  1611.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1612.         -------------------------------------------------------------------
  1613.  
  1614.  
  1615.              The 80286 CPU used in the AT, and modern 386, 486, and Pentium
  1616.              CPUs, can use much more than the 8088's original 1 MByte of
  1617.              memory.  An 80286 can use a total of 16 MBytes, and the 386,
  1618.              486, and Pentium can use up to 4,096 MBytes (4 gigabytes) of
  1619.              physical memory.  This extended memory is not normally
  1620.              available to DOS-based programs, however, without special
  1621.              programming techniques and the help of DOS extenders or memory
  1622.              managers.
  1623.  
  1624.              The memory terms used in your 4DOS manuals include:
  1625.  
  1626.                   Base memory:  The 640 Kbytes or less that has
  1627.                   traditionally been available for DOS and DOS-based
  1628.                   applications.
  1629.  
  1630.                   EMS or LIM EMS Memory:  Memory which conforms to the
  1631.                   Expanded Memory Specification, developed by Lotus, Intel,
  1632.                   and Microsoft, that lets programs and utilities share
  1633.                   expanded memory.
  1634.  
  1635.                   Extended Memory:  Memory beyond 1 MB in 80286, 386, 486
  1636.                   and Pentium computers.  This memory may be accessed
  1637.                   directly, in which case it is referred to as Extended
  1638.                   Memory, or through XMS software, in which case it is
  1639.                   referred to as XMS Memory.
  1640.  
  1641.                   XMS Memory:  Extended memory managed by software which
  1642.                   conforms to the Extended Memory Specification (XMS).  XMS
  1643.                   lets programs share extended memory without conflict.
  1644.                   This specification divides extended memory into extended
  1645.                   memory blocks (EMBs).  XMS software also usually manages
  1646.                   the HMA and the UMBs.
  1647.  
  1648.                   HMA:  The first 64K bytes of extended memory, located
  1649.                   just above 1 MB.  Certain specialized programs such as
  1650.                   DESQview, some network drivers, and portions of MS-DOS
  1651.                   (version 5.0 or later) and Novell DOS (version 5.0 or
  1652.                   later) can be loaded into the HMA instead of taking up
  1653.                   valuable space in base memory.
  1654.  
  1655.                   UMBs:  386, 486, and Pentium computers can electronically
  1656.                   "move" pieces of extended memory into unused space in the
  1657.                   upper memory area between 640KB and 1 MB.  Each block of
  1658.                   this memory is called an Upper Memory Block (UMB).  With
  1659.                   MS-DOS / PC-DOS 5.0 or later, Novell DOS 5.0 or later, or
  1660.                   third-party memory managers like 386MAX and QEMM, memory-
  1661.                   resident programs can be loaded into these UMBs instead
  1662.                   of taking up valuable space in base memory.  Some 8086,
  1663.                   8088, and 80286 systems can also use UMBs with
  1664.                   appropriate additional hardware and software.
  1665.  
  1666.  
  1667.         -------------------------------------------------------------------
  1668.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 25
  1669.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1670.         -------------------------------------------------------------------
  1671.  
  1672.  
  1673.              4DOS does its best to detect and properly access all types of
  1674.              memory that your computer can have.  4DOS always uses
  1675.              standard, documented methods to use the memory that you have
  1676.              installed.
  1677.  
  1678.              4DOS uses memory in three ways (see page 17 for more
  1679.              information about swapping and the resident and transient
  1680.              portions of 4DOS):
  1681.  
  1682.                   * By default, 4DOS uses base memory for its resident
  1683.                     portion, the master environment, and the alias and
  1684.                     history lists.  Base memory is also used to hold the
  1685.                     transient portion of 4DOS while your system is at the
  1686.                     command prompt or executing a 4DOS command or batch
  1687.                     file, and to create any necessary temporary data areas
  1688.                     (for example, to hold the filenames to be listed in a
  1689.                     directory display, or data being copied from one file
  1690.                     to another).
  1691.  
  1692.                   * 4DOS can use EMS memory or an XMS Extended Memory
  1693.                     Block (EMB) to swap its transient portion, according
  1694.                     to the Swapping directive in your 4DOS.INI file.
  1695.  
  1696.                   * 4DOS can use Upper Memory Blocks (UMBs) for its
  1697.                     resident portion, master environment, and global alias
  1698.                     and history lists.
  1699.  
  1700.              4DOS never accesses extended memory directly.  It always uses
  1701.              an XMS driver like HIMEM.SYS, 386MAX, QEXT, or QEMM.  4DOS can
  1702.              also access any RAM disk you create in extended memory by
  1703.              using a program like VDISK.SYS or RAMDRIVE.SYS.  4DOS does not
  1704.              use the HMA at all.
  1705.  
  1706.              If you want to know whether 4DOS sees your system's memory
  1707.              accurately, check the output of the MEMORY command.  It should
  1708.              correspond to your computer's memory configuration.
  1709.  
  1710.              The MEMORY command's output depends to some extent on your
  1711.              memory manager.  Some memory managers turn your extended
  1712.              memory into either XMS or EMS memory as required, so that the
  1713.              same memory is shown both ways in the MEMORY report.  If 1 MB
  1714.              of extended memory managed by such a memory manager is
  1715.              available, MEMORY will report 1 MB of free XMS memory and 1 MB
  1716.              of free EMS memory, even though it is all the same memory.
  1717.  
  1718.              Memory-related problems with 4DOS are usually due to programs
  1719.              which overwrite the extended memory block (EMB) that 4DOS uses
  1720.              for swapping its transient portion.  When you exit from such a
  1721.              program, your system will hang, because 4DOS tried to swap
  1722.              itself back into base memory but its code and data in XMS have
  1723.              been destroyed by the program.  The same problem can occur
  1724.  
  1725.         -------------------------------------------------------------------
  1726.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 26
  1727.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1728.         -------------------------------------------------------------------
  1729.  
  1730.  
  1731.              with EMS swapping but is less common because EMS memory is
  1732.              generally better defended against wayward programs.  You can
  1733.              diagnose this kind of problem easily by changing to disk
  1734.              swapping with the 4DOS.INI Swapping directive (see page 17)
  1735.              and rebooting.  If the problem goes away with disk swapping,
  1736.              then the program in question is probably destroying 4DOS's
  1737.              swap area in XMS or EMS memory.
  1738.  
  1739.              4DOS EMS swapping sometimes has difficulty with EMS drivers
  1740.              which do not fully meet the EMS 3.2 specification (4DOS
  1741.              supports, but does not require, EMS 4.0 drivers).  If you have
  1742.              trouble accessing EMS for swapping, check APPNOTES.DOC to see
  1743.              if there are any known problems with your EMS board or the
  1744.              associated driver software.
  1745.  
  1746.  
  1747.              Upper Memory Blocks (UMBs)
  1748.  
  1749.              4DOS uses UMBs for several purposes:
  1750.  
  1751.                   * to move the 4DOS resident portion out of base memory,
  1752.                     if you specify UMBLoad = Yes in your 4DOS.INI file.
  1753.  
  1754.                   * to move the master environment out of base memory, if
  1755.                     you specify UMBEnvironment = Yes in your 4DOS.INI
  1756.                     file.
  1757.  
  1758.                   * to move the global alias and history lists out of base
  1759.                     memory, if you specify UMBAlias = Yes or UMBHistory =
  1760.                     Yes in your 4DOS.INI file.
  1761.  
  1762.                   * to load memory-resident programs (TSRs) "high" using
  1763.                     the LOADHIGH or LH command under MS-DOS / PC-DOS 5.0
  1764.                     or above or Novell DOS 5.0 or above, or in an OS/2 DOS
  1765.                     session.
  1766.  
  1767.              To load 4DOS, the master environment, or global alias and
  1768.              history lists into a UMB, you must be using a memory manager
  1769.              or XMS driver which provides both the ability to remap memory
  1770.              into the area between 640K and 1MB (to create the UMBs) and
  1771.              XMS or DOS 5.0 UMB support (to manage the UMBs).  These are
  1772.              generally the same requirements which must be met to load TSRs
  1773.              "high."
  1774.  
  1775.              To give 4DOS access to UMBs, you need hardware and software
  1776.              combinations like the following:
  1777.  
  1778.              386, 486, and Pentium systems (including 386SX computers):
  1779.  
  1780.                   Hardware:  Sufficient installed RAM.
  1781.  
  1782.  
  1783.         -------------------------------------------------------------------
  1784.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 27
  1785.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1786.         -------------------------------------------------------------------
  1787.  
  1788.  
  1789.                   Software:  Qualitas' 386MAX or Blue Max, Quarterdeck's
  1790.                   QEMM 5.0 or later, DOS's EMM386.SYS, or a similar 386
  1791.                   memory manager.  HIMEM.SYS alone is not sufficient.
  1792.  
  1793.              80286 systems:
  1794.  
  1795.                   Hardware:  Chips and Technologies NEAT or LEAP chip set,
  1796.                   or an EMS 4.0 or EEMS memory board, plus sufficient
  1797.                   installed RAM.
  1798.  
  1799.                   Software:  Qualitas' MOVE-EM 1.02 or later with
  1800.                   Microsoft's HIMEM.SYS, Quarterdeck's QRAM and QEXT, or a
  1801.                   similar 286 memory manager.
  1802.  
  1803.  
  1804.              Upper Memory Regions
  1805.  
  1806.              Upper memory blocks are divided into one or more contiguous
  1807.              regions by your memory manager (see your memory manager
  1808.              documentation for additional details).  All the 4DOS options
  1809.              and commands which allow access to UMBs also allow you to
  1810.              specify a particular UMB region.  For example, you can load
  1811.              the resident portion of 4DOS into upper memory region 1 with a
  1812.              UMBLoad = 1 directive in 4DOS.INI.  If you do not specify a
  1813.              particular region (for example, if you use UMBLoad = Yes
  1814.              rather than UMBLoad = 1), 4DOS will use the first available
  1815.              region.
  1816.  
  1817.              In order to use specific region numbers, you must enable DOS
  1818.              UMB management with the DOS=UMB or DOS=HIGH,UMB directive in
  1819.              CONFIG.SYS, or with the DOS_UMB setting for OS/2 2.x and above
  1820.              DOS sessions.  If you do not, 4DOS will display an error
  1821.              message and ignore the region number.
  1822.  
  1823.              You can make region support available by using DOS=UMB or
  1824.              DOS=HIGH,UMB even if you are using a 3rd-party memory manager
  1825.              like 386MAX or QEMM.  However, enabling DOS UMB management
  1826.              will disable the "load high" programs that come with some
  1827.              memory managers, requiring you to use the DOS DEVICEHIGH and
  1828.              4DOS LOADHIGH commands instead.  For additional details on how
  1829.              your memory manager responds to DOS UMB management, see the
  1830.              memory manager documentation.
  1831.  
  1832.              Region number support is not available under Novell DOS.
  1833.  
  1834.  
  1835.         Video
  1836.  
  1837.              Although 4DOS can normally detect your video parameters
  1838.              automatically, you may have to configure it to use the system
  1839.              most efficiently.
  1840.  
  1841.         -------------------------------------------------------------------
  1842.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 28
  1843.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1844.         -------------------------------------------------------------------
  1845.  
  1846.  
  1847.              4DOS uses two methods of displaying text on the screen:
  1848.  
  1849.                   * 4DOS calls DOS to write the text of prompts and normal
  1850.                     messages.  If you use an ANSI driver, DOS will
  1851.                     transmit the calls to it.  Otherwise, DOS will use
  1852.                     your BIOS to display text on the screen.  DOS text
  1853.                     display calls will work on all DOS systems, regardless
  1854.                     of video type.
  1855.  
  1856.                   * The DRAWBOX, DRAWHLINE, DRAWVLINE, LIST, SELECT,
  1857.                     SCRPUT, and VSCRPUT commands bypass DOS, the BIOS, and
  1858.                     any ANSI driver.  They write directly to video memory.
  1859.                     These commands will only work on systems with 100%
  1860.                     IBM-compatible video systems.  On other computers,
  1861.                     results will be unpredictable at best.  If you
  1862.                     experience a problem, try adding the line OutputBIOS =
  1863.                     Yes to your 4DOS.INI file.
  1864.  
  1865.              EGA and VGA systems can display text in standard 25-line mode,
  1866.              plus modes with 43, 50, or more lines.  4DOS normally detects
  1867.              the number of lines automatically.  If it doesn't, you can use
  1868.              the 4DOS.INI ScreenRows directive or the SETDOS /R command to
  1869.              set the 4DOS screen length.  Similarly, 4DOS normally detects
  1870.              the width of your screen, but in rare cases with some unusual
  1871.              video boards you may need to use the ScreenColumns directive
  1872.              to set the number of columns explicitly.
  1873.  
  1874.              4DOS never attempts to manipulate your video hardware in order
  1875.              to set the number of rows or columns actually displayed on the
  1876.              screen (the "video mode"); to do so, you must use the software
  1877.              that came with your video board or other software tailored to
  1878.              your system.
  1879.  
  1880.              If you put the screen in 43-line or 50-line mode and find that
  1881.              it still scrolls at the 25th line, you probably have installed
  1882.              an ANSI driver which does not support your extended screen
  1883.              length.  In this case you may need to use a different ANSI
  1884.              driver.
  1885.  
  1886.              The video cursor shape that 4DOS uses is defined as a
  1887.              percentage of a character cell height.  You can set the height
  1888.              independently for insert and overstrike mode with the
  1889.              CursorIns and CursorOver directives in 4DOS.INI or with the
  1890.              SETDOS /S command.  If you don't use either, 4DOS sets the
  1891.              height to 10% of the character cell height for overstrike mode
  1892.              and 100% (a block cursor) for insert mode.
  1893.  
  1894.              If the cursor does not appear the way you want it to, use
  1895.              SETDOS /S to find the values that work for your system.  Some
  1896.              video boards may not give a "smooth" response to varying
  1897.              SETDOS /S values.  For example, a value of 20% may generate a
  1898.  
  1899.         -------------------------------------------------------------------
  1900.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 29
  1901.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1902.         -------------------------------------------------------------------
  1903.  
  1904.  
  1905.              very small cursor while a value of 30% may generate a half-
  1906.              height cursor.  4DOS can't do anything about this behavior, so
  1907.              you will have to experiment to find the cursor values that you
  1908.              want to use.
  1909.  
  1910.              If you are using an EGA or VGA adapter, we encourage you to
  1911.              try UltraVision from Personics Corp.  It gives you excellent
  1912.              control over your video system, includes a wide variety of
  1913.              text-mode screen fonts, has its own ANSI driver, and works
  1914.              superbly with 4DOS.  A special version for laptop and notebook
  1915.              computers dramatically improves the readability of their
  1916.              smaller displays.
  1917.  
  1918.              Most versions of DOS include a copy of ANSI.SYS, a device
  1919.              driver that is normally installed with a DEVICE= line in your
  1920.              CONFIG.SYS file.  There are a number of more powerful and
  1921.              faster versions available as public-domain, shareware, and
  1922.              retail products.  PC Magazine's free utility ANSI.COM can be
  1923.              enabled, disabled, loaded, and unloaded without rebooting, and
  1924.              works well inside windows of multitasking systems.  It is
  1925.              available on most bulletin boards and online systems.  Another
  1926.              excellent choice is ANSI-UV.SYS which is included with
  1927.              UltraVision.
  1928.  
  1929.              4DOS normally detects automatically whether an ANSI driver is
  1930.              installed.  If you have an ANSI driver installed and 4DOS
  1931.              doesn't recognize it, try the command SETDOS /A1 which forces
  1932.              4DOS to use ANSI commands.  Use SETDOS /A2 to tell 4DOS you do
  1933.              not have an ANSI driver installed.  These options can also be
  1934.              set with the ANSI directive in 4DOS.INI.
  1935.  
  1936.              If you have a laptop or notebook computer with a color video
  1937.              board and a monochrome screen, you may need to add a
  1938.              HelpOptions=/M directive to 4DOS.INI, or run HELPCFG to adjust
  1939.              the HELP colors.  (See page 21 for additional information on
  1940.              help colors.)
  1941.  
  1942.  
  1943.         Hard Drives and Floppy Disks
  1944.  
  1945.              4DOS uses your disks for a wide variety of purposes, and many
  1946.              4DOS commands are designed to help you create, move, delete,
  1947.              view, and otherwise manage disk files.  4DOS never tries to
  1948.              manipulate the structure of your hard disk directly.  It never
  1949.              modifies the FAT, root directory, or other system areas of the
  1950.              disk directly, and it doesn't read or write data on your disk
  1951.              itself.  It always calls on DOS to perform these actions, just
  1952.              like most application programs do.  As a result, 4DOS is
  1953.              compatible with all disk sizes, formats, and structures that
  1954.              your DOS version supports.
  1955.  
  1956.  
  1957.         -------------------------------------------------------------------
  1958.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 30
  1959.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  1960.         -------------------------------------------------------------------
  1961.  
  1962.  
  1963.              4DOS is also fully compatible with hard disk compression
  1964.              software like DBLSPACE, Stacker, and SuperStor.  Under some
  1965.              compression systems you can display file compression ratios
  1966.              and sort directory displays in compression ratio order using
  1967.              the /C and /O:c switches of the DIR and SELECT commands.  See
  1968.              APPNOTES.DOC for details on using your particular compression
  1969.              software with 4DOS.
  1970.  
  1971.              4DOS will generally access your disk very quickly, but the
  1972.              speed depends on what you are trying to do.  If you find that
  1973.              4DOS is slower at performing a particular function than you
  1974.              are used to, you may have asked it to do more than you ask of
  1975.              traditional DOS commands.  In particular, if you use file
  1976.              descriptions, remember that 4DOS has to access the description
  1977.              file as well as the actual files that you are manipulating.
  1978.  
  1979.              Some users notice that the common commands DEL and DIR appear
  1980.              slower with 4DOS under certain circumstances.  With DEL, this
  1981.              slowdown may be because 4DOS uses a newer method of file
  1982.              deletion instead of a method that is no longer recommended
  1983.              (but is still used by COMMAND.COM).  The new method is
  1984.              necessary to enable 4DOS's display of the names of the files
  1985.              you are deleting, and to support 4DOS's "extended wildcards."
  1986.              You can force 4DOS to use the older method with DEL's /Q
  1987.              option, as long as you don't use extended wildcards.
  1988.  
  1989.              For DIR, any speed decrease is because of 4DOS's directory
  1990.              sorting and description processing.  4DOS must read all
  1991.              filenames and descriptions before it can display any of them.
  1992.              The sort itself is quite fast, but DOS is relatively slow at
  1993.              retrieving the entire list of file names and passing them on
  1994.              to 4DOS.  Once the 4DOS DIR display starts, it should go as
  1995.              fast as or faster than the traditional DIR display.
  1996.  
  1997.              Whenever 4DOS is interrupted by a Ctrl-C or Ctrl-Break, it
  1998.              performs a "disk reset" to clear out DOS's disk buffers and
  1999.              reset internal DOS disk parameters.  This helps ensure that
  2000.              modified data has been written to disk even though the
  2001.              operation was interrupted.  A disk reset is also performed
  2002.              before a REBOOT command.  If you have trouble with recognition
  2003.              of floppy disk changes, with CD-ROM drivers, or with network
  2004.              disk access, you can try forcing 4DOS to perform a disk reset
  2005.              after file processing commands, and before a DIR.  To do so
  2006.              use a DiskReset = Yes directive in 4DOS.INI.  Such problems
  2007.              are very rare and normally DiskReset = Yes is not necessary.
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.         -------------------------------------------------------------------
  2016.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 31
  2017.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2018.         -------------------------------------------------------------------
  2019.  
  2020.  
  2021.         4DOS and DOS
  2022.  
  2023.              4DOS is compatible with all versions of MS-DOS and PC-DOS from
  2024.              2.0 through 6.2 and above.  We recommend the use of DOS 3.1 or
  2025.              above.
  2026.  
  2027.              If you use the MS-DOS utility APPEND, you may need to set up
  2028.              some aliases to invoke it; see APPNOTES.DOC for details.
  2029.  
  2030.              If you use the FORMAT /S command from MS-DOS or PC-DOS,
  2031.              version 4.0 or above, FORMAT will copy the file pointed to by
  2032.              the COMSPEC environment variable (see page 17) and name it
  2033.              COMMAND.COM.  In most cases this means that 4DOS.COM will be
  2034.              copied to the floppy disk, but with the name COMMAND.COM.
  2035.              Such a disk should boot properly and start 4DOS, but its
  2036.              contents are sure to be confusing to others.  If you use
  2037.              FORMAT /S with MS-DOS or PC-DOS 4.0 or above, we recommend
  2038.              that you copy COMMAND.COM manually to the floppy disk (you can
  2039.              use an alias or batch file if you format bootable disks
  2040.              frequently), or rename the file that FORMAT copies back to
  2041.              4DOS.COM and place a proper CONFIG.SYS file for 4DOS on the
  2042.              floppy disk.
  2043.  
  2044.  
  2045.              Menus and SET Commands in CONFIG.SYS
  2046.  
  2047.              MS-DOS and PC-DOS 6.0 and above support configuration menus in
  2048.              CONFIG.SYS.  If you use these menus, the menu choice you make
  2049.              is typically stored in an environment variable.  In addition,
  2050.              under MS-DOS and PC-DOS 6.0 and above, and under Novell DOS,
  2051.              you can put SET commands in CONFIG.SYS to set environment
  2052.              variables explicitly.
  2053.  
  2054.              4DOS will automatically retrieve environment variables created
  2055.              in CONFIG.SYS and store them in the environment for use in
  2056.              AUTOEXEC.BAT and other batch files, just as COMMAND.COM does.
  2057.  
  2058.  
  2059.              Novell DOS / DR DOS
  2060.  
  2061.              (This section covers Novell DOS, as well as the older version
  2062.              of the same product, called DR DOS.  Throughout this section,
  2063.              and the rest of the manual, we refer to the product by its
  2064.              newer name, Novell DOS.  Unless otherwise noted, all
  2065.              information below applies to both the older DR DOS and the
  2066.              newer Novell DOS.)
  2067.  
  2068.              4DOS will work properly as the command processor for Novell
  2069.              DOS 3.4 through 7.0 and above.  However, there are certain
  2070.              differences between Novell DOS and MS-DOS which may affect
  2071.              4DOS.  This section covers some of those differences; see
  2072.  
  2073.         -------------------------------------------------------------------
  2074.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 32
  2075.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2076.         -------------------------------------------------------------------
  2077.  
  2078.  
  2079.              APPNOTES.DOC for additional information, including details on
  2080.              using the Novell DOS task switcher, TaskMax, with 4DOS.
  2081.  
  2082.  
  2083.              HILOAD
  2084.  
  2085.              4DOS supports the HILOAD feature using the MS-DOS / PC-DOS
  2086.              command names of LOADHIGH or LH.  To load a TSR high simply
  2087.              use the command:
  2088.  
  2089.                   LH program [options]
  2090.  
  2091.              If you want the command to be called HILOAD for complete
  2092.              Novell DOS compatibility, set up an alias before using it:
  2093.  
  2094.                   alias hiload lh
  2095.  
  2096.              Just as under MS-DOS, LOADHIGH and LH will not work properly
  2097.              unless you have memory management software loaded to provide
  2098.              upper memory block support.  Because Novell DOS does not
  2099.              return any error to 4DOS if a LOADHIGH operation fails, 4DOS
  2100.              cannot report this condition to you.  This means you must use
  2101.              the Novell DOS MEM program or another similar memory mapping
  2102.              utility to determine if your TSR was actually loaded high.
  2103.  
  2104.              The LOADHIGH command's /L and /S switches are included for
  2105.              compatibility with MS-DOS / PC-DOS 6.0 and above, and will not
  2106.              work with Novell DOS.
  2107.  
  2108.  
  2109.              File Passwords
  2110.  
  2111.              4DOS includes support for Novell DOS file passwords.  However,
  2112.              the command syntax used to access files with passwords is
  2113.              slightly different under 4DOS than under Novell DOS
  2114.              COMMAND.COM.
  2115.  
  2116.              The character used to separate passwords from filenames under
  2117.              Novell DOS is a semicolon [;], which 4DOS uses to separate
  2118.              parts of an "include list".  Therefore, to avoid confusion
  2119.              with include lists, 4DOS requires the use of two semicolons to
  2120.              separate the password and filename in any command which
  2121.              supports wildcards.  For example, to delete the file MYDATA
  2122.              which has the password "fred", you would use these commands:
  2123.  
  2124.                   del mydata;fred          for COMMAND.COM
  2125.                   del mydate;;fred         for 4DOS
  2126.  
  2127.              4DOS directory-related commands like MD and CD (or MKDIR and
  2128.              CHDIR) do not use wildcards.  Those commands, and Novell DOS
  2129.  
  2130.  
  2131.         -------------------------------------------------------------------
  2132.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 33
  2133.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2134.         -------------------------------------------------------------------
  2135.  
  2136.  
  2137.              external commands which accept the "filename;password" syntax,
  2138.              use only a single semicolon.
  2139.  
  2140.              Novell DOS hides files which are password-protected.  This
  2141.              means that you must use 4DOS command switches which allow
  2142.              processing of hidden files (COPY /H, DEL /Z, DIR /A, FOR /A,
  2143.              MOVE /H, and SELECT /A) to access a password-protected file
  2144.              under Novell DOS.
  2145.  
  2146.              Passwords are not automatically preserved when copying or
  2147.              moving a file with 4DOS.  However, the hidden attribute will
  2148.              be preserved.  This means that if you move or copy a password-
  2149.              protected file and want it to be visible in its new location
  2150.              or under its new name, you will have to manually remove the
  2151.              hidden attribute with ATTRIB.
  2152.  
  2153.              For example, to password-protect the file MYDATA, copy it to
  2154.              drive A:, and then delete it:
  2155.  
  2156.                   c:\> password mydata /r:fred
  2157.                   c:\> copy /h mydata;;fred a:
  2158.                   c:\> del /z mydata;;fred
  2159.  
  2160.              To unprotect the password-protected file MYDATA:
  2161.  
  2162.                   c:\> password mydata;fred /n
  2163.  
  2164.  
  2165.         Using 4DOS with Task Switchers and Multitaskers
  2166.  
  2167.              Task switchers are programs that allow you to switch quickly
  2168.              among multiple applications, with one application running at a
  2169.              time.  Multitaskers are more complex programs which appear to
  2170.              run multiple applications at the same time, with one or more
  2171.              programs executing "in the background" while you work with
  2172.              another program on the screen.
  2173.  
  2174.              This section gives you some important general tips on using
  2175.              4DOS with task switchers and multitaskers, and includes a
  2176.              specific discussion of Microsoft Windows.  If you are using
  2177.              DESQview, see APPNOTES.DOC for additional information.  See
  2178.              page 47 for a complete discussion on using 4DOS under OS/2.
  2179.  
  2180.              For convenience, in the text below we will refer to both
  2181.              multitaskers and task switchers as "multitaskers," and to each
  2182.              window or partition they use as a "window," even though some
  2183.              do not have windowed displays.
  2184.  
  2185.              4DOS works well as both the primary shell (loaded when your
  2186.              system boots) and the secondary shell (loaded in a window)
  2187.              with most multitaskers.  (See Chapter 1 of your Reference
  2188.  
  2189.         -------------------------------------------------------------------
  2190.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 34
  2191.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2192.         -------------------------------------------------------------------
  2193.  
  2194.  
  2195.              Manual for more information about primary and secondary
  2196.              shells.)
  2197.  
  2198.  
  2199.              Creating a 4DOS Window
  2200.  
  2201.              Most multitaskers have a pre-configured "DOS" window.  In some
  2202.              cases, this window always runs COMMAND.COM.  In others, it
  2203.              runs the default command processor defined when your system
  2204.              boots.  We recommend that you always set up a 4DOS window
  2205.              explicitly, with the configuration you want, rather that
  2206.              relying on the multitasker's generic "DOS" window.
  2207.  
  2208.              Many multitaskers also run the command processor when you
  2209.              start certain kinds of windows, such as windows that run a
  2210.              .BAT file.  In general, this use of the command processor is
  2211.              transparent.  The multitasker will run 4DOS for you
  2212.              automatically when it needs to, and you won't need to do
  2213.              anything about it.
  2214.  
  2215.              If you find that your multitasker is running COMMAND.COM when
  2216.              you meant to run 4DOS, check the COMSPEC setting that is in
  2217.              effect when you start the multitasker (see page 17 for details
  2218.              on COMSPEC).  You may also need to check the way a particular
  2219.              window is configured.
  2220.  
  2221.              When you set up a 4DOS window, be sure to specify the full
  2222.              path to 4DOS.COM and any startup options you want (see page 15
  2223.              for information on startup options for secondary shells).
  2224.  
  2225.  
  2226.              Parameters for 4DOS Windows
  2227.  
  2228.              To set parameters (swapping, alias space, etc.) to be used by
  2229.              all 4DOS secondary shells run by your multitasker, use the
  2230.              [Secondary] section in 4DOS.INI.  To set these parameters
  2231.              separately for a specific window, create a copy of 4DOS.INI
  2232.              just for that window and use the @d:\path\inifile option on
  2233.              your command line for the window (see page 11).  To change the
  2234.              configuration of a specific window without creating a separate
  2235.              copy of 4DOS.INI, use the //iniline option on your command
  2236.              line for the window (see the example below).
  2237.  
  2238.              4DOS allows you to place a command to be executed as the last
  2239.              parameter on your 4DOS command line.  This command is executed
  2240.              before 4DOS displays its first prompt.  You can use this
  2241.              feature to run a batch file (or any other command) each time a
  2242.              4DOS window is started by your multitasker.  For example, if
  2243.              you are setting up 4DOS to run as a DOS application under
  2244.              Windows 3.1, your setup for a 4DOS program item (or in a .PIF
  2245.              file for 4DOS) might look like this:
  2246.  
  2247.         -------------------------------------------------------------------
  2248.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 35
  2249.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2250.         -------------------------------------------------------------------
  2251.  
  2252.  
  2253.                   Program Name:  c:\4dos\4dos.com
  2254.                   Parameters:    //swapping=f:\ c:\winstart.btm
  2255.  
  2256.              This tells Windows to load 4DOS, includes a 4DOS.INI directive
  2257.              to tell 4DOS to swap to drive F, and passes 4DOS the command
  2258.              C:\WINSTART.BTM.  You can place commands in WINSTART.BTM to be
  2259.              executed whenever such a window is started (for example, to
  2260.              change your PROMPT to show that you're in a window, or to load
  2261.              a TSR for just that window).  The command to be executed
  2262.              (C:\WINSTART.BTM in this example), must be the last thing on
  2263.              the 4DOS command line; no 4DOS switches or options can be
  2264.              placed after it because anything after the command will be
  2265.              interpreted as parameters for the command.
  2266.  
  2267.              This feature is similar to what's provided by the 4START batch
  2268.              file, but 4START is executed every time 4DOS loads, whereas a
  2269.              file like WINSTART will be executed only when a 4DOS window is
  2270.              started from your multitasker.  A batch file started this way
  2271.              will be run after 4START.
  2272.  
  2273.          ##  If you wish, you can use 4START to accomplish the same goal.
  2274.              However, in order to do so you must have a way to detect
  2275.              whether the multitasker is running, so that you can select the
  2276.              appropriate commands to execute in 4START.  If you are running
  2277.              DESQview or Windows, you can use the 4DOS internal variables
  2278.              _DV and _WIN respectively to test this condition.  For
  2279.              example, the following lines could be used in 4START to change
  2280.              the prompt for DESQview command-line sessions:
  2281.  
  2282.                   iff "%_DV" != "0"
  2283.                      prompt [DV] $p$g
  2284.                   else
  2285.                      prompt $p$g
  2286.                   endiff
  2287.  
  2288.  
  2289.              Multitasking and KEYSTACK          ##
  2290.  
  2291.              If you use KEYSTACK inside a window of a multitasker, and the
  2292.              KSTACK.COM program has been loaded before the multitasker, you
  2293.              may find that stacked keystrokes "bleed through" from one
  2294.              window to another.  You can solve this problem by loading
  2295.              KSTACK.COM in a startup batch file for each window where it is
  2296.              needed.  If KSTACK is loaded before the multitasker as well,
  2297.              include a /I on the command line when loading KSTACK inside
  2298.              the window.  If you don't, KSTACK will detect that it is
  2299.              already installed and will not install again.
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.         -------------------------------------------------------------------
  2306.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 36
  2307.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2308.         -------------------------------------------------------------------
  2309.  
  2310.  
  2311.        ! ##  Multitasking and Disk Swapping
  2312.  
  2313.              When 4DOS is loaded as the primary shell, it acts as a
  2314.              "traffic cop" for copies of the transient portion of 4DOS
  2315.              swapped to disk.  Each secondary shell is assigned a unique
  2316.              shell number, which is normally used as the extension for its
  2317.              disk swap file name (4DOSSWAP.001, 4DOSSWAP.002, etc.).  These
  2318.              shell numbers avoid file name conflicts between multiple
  2319.              copies of 4DOS running in different windows but creating swap
  2320.              files in the same disk directory.
  2321.  
  2322.              However, if 4DOS is not loaded before the multitasker, this
  2323.              capability will not be available.  In this case, the copy of
  2324.              4DOS in each window will use a swap file called 4DOSSWAP.000.
  2325.              To avoid this conflict, you must either use the UniqueSwapName
  2326.              directive in 4DOS.INI, or force every copy of 4DOS to place
  2327.              its swap file in its own unique directory by using the
  2328.              "Swapping=d:\path" directive in 4DOS.INI.  If you don't follow
  2329.              this rule, your system will hang when you switch windows or
  2330.              when you exit from an application.
  2331.  
  2332.              This problem will occur only in those rare situations where
  2333.              4DOS is loaded within a window but is not loaded as your
  2334.              primary shell, and if 4DOS disk swapping is used in more than
  2335.              one window at a time.  Note that since the default swapping
  2336.              option uses disk swapping if insufficient EMS or XMS memory is
  2337.              available, you can be invoking disk swapping in your
  2338.              multitasker's windows without specifically requesting it.
  2339.  
  2340.  
  2341.         4DOS and Microsoft Windows 3.x
  2342.  
  2343.              4DOS works well as both the primary shell, loaded before
  2344.              Windows, and as a secondary shell loaded inside any window.
  2345.              It works in any Windows mode (Real, Standard, or Enhanced).
  2346.              The general information about multitaskers beginning on page
  2347.              34 applies to Windows as well.  You should read it before
  2348.              continuing with this section.
  2349.  
  2350.              This section gives you the basic information you need to use
  2351.              4DOS with Windows.  For additional details and updated
  2352.              information be sure to check APPNOTES.DOC.  All of the
  2353.              information in this section applies to both the standard
  2354.              single-user version of Windows and the peer-to-peer network
  2355.              version, Windows for Workgroups.
  2356.  
  2357.              To run 4DOS as a secondary shell from within Windows, you will
  2358.              need to create a desktop object for it.  The generic "MS-DOS
  2359.              Prompt" object supplied by Microsoft will normally run
  2360.              COMMAND.COM.
  2361.  
  2362.  
  2363.         -------------------------------------------------------------------
  2364.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 37
  2365.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2366.         -------------------------------------------------------------------
  2367.  
  2368.  
  2369.              You can set up a 4DOS object from the Program Manager's File /
  2370.              New menu selection.  To do so, simply create a new program
  2371.              item and set the command line to d:\path\4DOS.COM (use the
  2372.              appropriate drive and path for your system).  You can put the
  2373.              name of a batch file at the end of the command line if you
  2374.              want to run some specific commands when 4DOS starts under
  2375.              Windows (see page 35 for details).
  2376.  
  2377.              When you create a new item in this way, it will be initialized
  2378.              with a standard DOS icon (the word "DOS" inside a rectangle).
  2379.              To install a specific icon for 4DOS, use the Program Manager's
  2380.              File / Properties menu selection.  Click on the Change Icon
  2381.              button and type in the full path name of your new 4DOS icon
  2382.              file.  We supply two Windows icons with 4DOS:  4DOS.ICO for
  2383.              color displays, and 4DOSM.ICO for monochrome displays.  You
  2384.              can create your own icon with any icon editor.
  2385.  
  2386.              For more flexibility, you can use the Windows PIF editor to
  2387.              create a 4DOS.PIF file.  We have included a sample .PIF file
  2388.              on the distribution diskette.  You must edit this file and
  2389.              make it correspond to your system before you use it to run
  2390.              4DOS.
  2391.  
  2392.              4DOS will work properly in either a full-screen or a windowed
  2393.              session.  The .PIF file determines the mode that 4DOS will
  2394.              start in.  If you don't use a .PIF file, 4DOS will start in
  2395.              the mode set in the _DEFAULT.PIF file provided with Windows.
  2396.              You can set up multiple .PIF files if you need different
  2397.              session types (for example, one for windowed and one for full-
  2398.              screen sessions).
  2399.  
  2400.              Your batch files can determine whether they are running in a
  2401.              secondary shell under Windows, and the current Windows mode,
  2402.              with the 4DOS _WIN internal variable.
  2403.  
  2404.              You can easily set up the Windows File Manager to make .BTM
  2405.              files "executable."  Open your WIN.INI file with any editor
  2406.              and find the section labeled [extensions].  Add the following
  2407.              line to the end of the section:
  2408.  
  2409.                   btm=c:\4dos\4dos.com /c ^.btm
  2410.  
  2411.              (adjust this to show the proper path for 4DOS.COM on your
  2412.              system).  It is not possible to execute .BTM files from the
  2413.              Program Manager by modifying the Programs= setting in WIN.INI;
  2414.              if you try to do so, the system will hang when you attempt to
  2415.              actually invoke a .BTM file.
  2416.  
  2417.              For information on resolving memory allocation problems with
  2418.              Windows, see page 63.
  2419.  
  2420.  
  2421.         -------------------------------------------------------------------
  2422.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 38
  2423.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2424.         -------------------------------------------------------------------
  2425.  
  2426.  
  2427.         4DOS and Microsoft Windows 95
  2428.  
  2429.              4DOS works well as both the primary shell, loaded before
  2430.              Windows 95, and as a secondary shell loaded from the Windows
  2431.              95 GUI.  The general information about multitaskers beginning
  2432.              on page 34 applies to Windows 95 as well.  You should read it
  2433.              before continuing with this section.
  2434.  
  2435.  
  2436.              The Windows 95 Boot Sequence
  2437.  
  2438.              In order to understand the different methods for installing
  2439.              4DOS you may find it helpful to learn a little about the
  2440.              Windows 95 boot sequence (if you are not interested in these
  2441.              details, skip to the next section).
  2442.  
  2443.              Modified versions of the standard MS-DOS startup programs are
  2444.              used to boot Windows 95.  These programs look for CONFIG.SYS
  2445.              and AUTOEXEC.BAT just as under previous versions of MS-DOS.
  2446.              If CONFIG.SYS is NOT present, Windows 95 will load the
  2447.              appropriate real-mode DOS device drivers automatically, then
  2448.              start WIN.COM, which loads the Windows 32-bit drivers and GUI.
  2449.              If CONFIG.SYS IS present, the MS-DOS startup portion of
  2450.              Windows 95 will process it (while displaying a graphical
  2451.              Windows 95 startup screen).  Certain drivers required by
  2452.              Windows 95 (e.g. HIMEM.SYS) will be loaded automatically even
  2453.              if they are not listed in CONFIG.SYS, but otherwise CONFIG.SYS
  2454.              works just as it does under previous versions of MS-DOS.
  2455.  
  2456.              If you use the default command processor, COMMAND.COM, it will
  2457.              be loaded automatically at the end of CONFIG.SYS if needed to
  2458.              process AUTOEXEC.BAT, then the GUI is loaded as described
  2459.              above.  If you use a SHELL command in CONFIG.SYS to load a
  2460.              different command processor (like 4DOS), it will be loaded
  2461.              just as under previous versions of MS-DOS, and can then invoke
  2462.              the Windows GUI if desired (see below for details).  However
  2463.              the SHELL command is ignored if AUTOEXEC.BAT is not present.
  2464.  
  2465.              Some aspects of the boot process are controlled by the file
  2466.              MSDOS.SYS, which is now an ASCII file which functions as a
  2467.              .INI file for DOS itself.  For example you can control whether
  2468.              the GUI is automatically loaded with the BootGUI setting in
  2469.              the [Options] section of MSDOS.SYS, and you can automatically
  2470.              display a standard startup options menu by setting BootMenu=1
  2471.              in the [Options] section (you can also display this menu by
  2472.              pressing F8 when you see the "Starting Windows 95 ..."
  2473.              prompt).  MSDOS.SYS is a hidden, system, read-only file; to
  2474.              edit it from 4DOS use a sequence like this:
  2475.  
  2476.                   c:\> attrib -rhs msdos.sys
  2477.                   c:\> edit msdos.sys
  2478.  
  2479.         -------------------------------------------------------------------
  2480.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 39
  2481.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2482.         -------------------------------------------------------------------
  2483.  
  2484.  
  2485.                   c:\> attrib +rhs msdos.sys
  2486.  
  2487.  
  2488.              Installing 4DOS as the Primary Shell Under Windows 95
  2489.  
  2490.              The best way to configure 4DOS for Windows 95 is to add a
  2491.              standard SHELL command as shown in the 4DOS manual to the end
  2492.              of the Windows 95 CONFIG.SYS file.  For example:
  2493.  
  2494.                   SHELL=C:\4DOS55\4DOS.COM C:\4DOS55 /P
  2495.  
  2496.              The second directory name and the /P should always be used.
  2497.  
  2498.              [If you reinstall Windows 95 or install a later build over an
  2499.              earlier one, your SHELL line will be removed from CONFIG.SYS
  2500.              by the Windows 95 installation process.  To correct this
  2501.              simply boot the new version, go to a 4DOS prompt (your desktop
  2502.              with its 4DOS icon is typically preserved when you upgrade),
  2503.              and use EDIT or another ASCII editor to put the SHELL line
  2504.              back in CONFIG.SYS, then restart Windows 95.  You can also
  2505.              boot with F8 and select the "Command Prompt Only" boot option,
  2506.              which will give you a COMMAND.COM prompt.  At this point use
  2507.              an ASCII editor to modify CONFIG.SYS and add the SHELL= line
  2508.              for 4DOS, then reboot.]
  2509.  
  2510.              When 4DOS is loaded as the primary shell in CONFIG.SYS it will
  2511.              start the Windows 95 GUI automatically (except when you select
  2512.              the "Command prompt only" option from the Windows 95 boot
  2513.              menu).  If you want 4DOS to display a prompt without starting
  2514.              the GUI, edit MSDOS.SYS as described above and change the line
  2515.              reading BootGUI=1 to read BootGUI=0.  You can then use the WIN
  2516.              command to start the GUI when you wish.
  2517.  
  2518.              Some users find it convenient to set BootGUI=0, then add
  2519.              commands similar to the following at the end of AUTOEXEC.BAT:
  2520.  
  2521.                   inkey /w5 Press X for prompt, or wait) for Windows ...
  2522.                   %%key
  2523.                   if "%key" != "X" win
  2524.                   unset /q key
  2525.  
  2526.              These commands start Windows automatically unless you press
  2527.              the X key within 5 seconds after the message is displayed.
  2528.              You can interrupt the 5-second delay by pressing any other
  2529.              key.  This gives you a convenient way to go directly to a
  2530.              prompt if you wish, but otherwise starts Windows
  2531.              automatically.
  2532.  
  2533.              Please note that the Windows 95 directory (usually C:\WINDOWS)
  2534.              must be in your PATH for the above examples to work.  If it is
  2535.              not, the WIN command may not be recognized.  Generally under
  2536.  
  2537.         -------------------------------------------------------------------
  2538.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 40
  2539.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2540.         -------------------------------------------------------------------
  2541.  
  2542.  
  2543.              Windows 95 it is best to include the Windows 95 directory in
  2544.              your PATH.
  2545.  
  2546.              If you load Windows 95 in "safe mode" your startup files
  2547.              (CONFIG.SYS and AUTOEXEC.BAT) are ignored, and 4DOS will not
  2548.              be loaded as the primary shell (safe mode is for
  2549.              troubleshooting and is selected by pressing F5 during the boot
  2550.              process, or by pressing F8 and selecting a safe mode boot from
  2551.              the menu).  If you start Windows 95 in "safe mode" in most
  2552.              cases you should NOT load 4DOS after the GUI starts.  DOS
  2553.              applications often do not work properly in "safe mode".
  2554.  
  2555.              If you select other boot modes from the F8 menu (e.g. "step by
  2556.              step" or "command prompt only") the 4DOS primary shell will
  2557.              load, and will handle the option you have selected.  The only
  2558.              exception is that if you select step by step mode and then
  2559.              answer "N" (or Esc) when prompted whether to process
  2560.              AUTOEXEC.BAT, the SHELL line will also be ignored and
  2561.              COMMAND.COM will be loaded rather than 4DOS (this is a Windows
  2562.              95 behavior unrelated to 4DOS).
  2563.  
  2564.  
  2565.              Starting 4DOS From The Windows 95 GUI
  2566.  
  2567.              The simplest method for running 4DOS from the Windows 95 GUI
  2568.              is to create a new shortcut on the desktop.  To do so click
  2569.              with mouse button 2 in any open area of the desktop.  On the
  2570.              popup menu click New, then Shortcut.  Fill in the drive and
  2571.              path for 4DOS.COM, and any other items you wish to set (no
  2572.              specific settings are required for 4DOS).  Use the Change Icon
  2573.              button to assign the standard 4DOS icon, in the file 4DOS.ICO,
  2574.              to the shortcut.
  2575.  
  2576.              Once the shortcut is created 4DOS will start when you double-
  2577.              click the corresponding icon on the desktop.  You can place
  2578.              any necessary commands or other directives (e.g. @ininame to
  2579.              name a specific INI file) on the startup command line just as
  2580.              you would under DOS or Windows 3.1; see your 4DOS Introduction
  2581.              and Installation Guide or the file 4DOS.DOC for details.
  2582.  
  2583.              If 4DOS is started in this way, and is not installed as the
  2584.              primary shell (whether because you have no CONFIG.SYS and
  2585.              AUTOEXEC.BAT and therefore do not load a primary shell, or
  2586.              because you use COMMAND.COM as your primary shell), then it
  2587.              will not inherit aliases or other startup settings.  In this
  2588.              case you must use the 4START file (see your 4DOS manual) to
  2589.              load aliases and perform other startup tasks.  To avoid this
  2590.              problem we recommend that you install 4DOS as the primary
  2591.              shell (see above) and load your aliases etc. at system
  2592.              startup, just as you would under DOS.
  2593.  
  2594.  
  2595.         -------------------------------------------------------------------
  2596.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 41
  2597.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2598.         -------------------------------------------------------------------
  2599.  
  2600.  
  2601.              We do not recommend the use of disk swapping under Windows 95.
  2602.              If you do use disk swapping aliases and other settings may not
  2603.              be inherited properly in some cases, especially when 4DOS is
  2604.              the primary shell.  The best setup is to install 4DOS as the
  2605.              primary shell, and to use XMS swapping for all shells.  You
  2606.              can set this swapping type with the following line in
  2607.              4DOS.INI:
  2608.  
  2609.                   Swapping = XMS
  2610.  
  2611.              If you start Windows 95 in "safe mode" in most cases you
  2612.              should NOT load 4DOS after the GUI starts.  DOS applications
  2613.              often do not work properly in "safe mode".
  2614.  
  2615.  
  2616.              Using Long File Names with 4DOS
  2617.  
  2618.              Windows 95 supports filenames up to 255 characters long and
  2619.              which include spaces and other characters previously not
  2620.              allowed in filenames.  Names which meet these restrictions but
  2621.              do not fit in the original DOS "8.3" naming convention (8
  2622.              character name plus 3 character extension) are often called
  2623.              "long filenames".
  2624.  
  2625.              Long filenames are stored and displayed exactly as you entered
  2626.              them, and are not automatically shifted to upper or lower
  2627.              case.  For example, you could create a file called MYFILE,
  2628.              myfile, or MyFile, and each name would be stored in the
  2629.              directory just as you entered it.  However, case is ignored
  2630.              when looking for filenames, so you cannot have two files whose
  2631.              names differ only in case (i.e., the three names given above
  2632.              would all refer to the same file).  This behavior is sometimes
  2633.              described as "case-retentive but not case-sensitive" because
  2634.              the case information is retained, but does not affect access
  2635.              to the files.
  2636.  
  2637.              4DOS fully supports long filenames under Windows 95.  For
  2638.              example, COPY will retain long filenames if possible when
  2639.              copying files to another drive, and DIR will use the long
  2640.              filename display format on all drives by default.
  2641.  
  2642.              Each file on a drive which supports long filenames will have a
  2643.              "short name" which follows the standard 8.3 naming convention.
  2644.              Some files may have only a short name (if no long name has
  2645.              been assigned).  Others may have a long name assigned when the
  2646.              file was created, and a corresponding short name created
  2647.              automatically by Windows 95 (these names typically look
  2648.              something like "xxxxxx~n" where "xxxxxx" is the first few
  2649.              characters of the file name and "n" is a number to distinguish
  2650.              files where the initial characters match).  Some files may
  2651.  
  2652.  
  2653.         -------------------------------------------------------------------
  2654.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 42
  2655.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2656.         -------------------------------------------------------------------
  2657.  
  2658.  
  2659.              also have separate long and short names which were assigned
  2660.              when the files were created.
  2661.  
  2662.              On drives which support long filenames, DIR and SELECT use a
  2663.              display format which allows room for the longer name on the
  2664.              screen.  In this format file descriptions are not displayed.
  2665.              You can use the /Z switch on either command to switch back to
  2666.              the more traditional 8.3 format, and display the file
  2667.              descriptions.  You also can view short and long names at the
  2668.              same time with the DIR /X command.  See the on-line help for
  2669.              additional details on these options.
  2670.  
  2671.              Long names can be used for both files and directories.  When
  2672.              entering a long file name on the command line you must enclose
  2673.              the name in quotes if it contains any characters which are not
  2674.              valid in a standard 8.3 filename.  For example, this command
  2675.              would work without quotes:
  2676.  
  2677.                   copy c:\DataFiles\LetterToSara a:
  2678.  
  2679.              However this command requires quotes:
  2680.  
  2681.                   copy "c:\Data Files\Letter To Sara" a:
  2682.  
  2683.              For information on how long filenames affect specific 4DOS
  2684.              features, see the COPY, DESCRIBE, DIR, MOVE, SELECT, and
  2685.              SETDOS /U command, Ranges, and the UpperCase directive in
  2686.              4DOS.INI.
  2687.  
  2688.              Windows 95 only provides long filename features when the
  2689.              proper drivers are loaded.  These drivers are loaded with the
  2690.              GUI portion of Windows 95, so normally you cannot use long
  2691.              file names when the GUI is not loaded (for example, from a
  2692.              "Command prompt only" boot).  In this case you must refer to
  2693.              each file by its short name.
  2694.  
  2695.              If you boot an operating system which does not support long
  2696.              filenames, then access a drive which uses them, only short
  2697.              names will be visible.  (Note that manipulating files with
  2698.              long filenames under such an operating system may break the
  2699.              links between long filenames and the corresponding short
  2700.              names, or cause other damage.)
  2701.  
  2702.  
  2703.              Installing the KSTACK Program
  2704.  
  2705.              If you want to load KSTACK.COM (required for the KEYSTACK
  2706.              command) it should be loaded separately for each 4DOS window.
  2707.              To do so, include the KSTACK command on the startup command
  2708.              line when you set up the corresponding shortcut(s).  For
  2709.              example, the command line for your shortcut might read:
  2710.  
  2711.         -------------------------------------------------------------------
  2712.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 43
  2713.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2714.         -------------------------------------------------------------------
  2715.  
  2716.  
  2717.                   c:\4dos55\4dos.com c:\4dos55\kstack.com
  2718.  
  2719.              This will load KSTACK when the 4DOS window is opened, then
  2720.              display a prompt.
  2721.  
  2722.              If you install KSTACK in AUTOEXEC.BAT it will not work
  2723.              properly when multiple 4DOS windows are open -- stacked
  2724.              keystrokes will "bleed through" from one window to another.
  2725.  
  2726.  
  2727.         Using 4DOS on a Network
  2728.  
  2729.              4DOS works well with DOS-compatible networks.  This section
  2730.              will give you some tips on using 4DOS on a network, and on the
  2731.              proper locations for 4DOS files on a network.
  2732.  
  2733.              In general, you'll find that you can load and run your network
  2734.              software normally under 4DOS.  Network drives will be
  2735.              accessible as normal drives once the network is loaded, and
  2736.              files on the network will be accessible just as if they were
  2737.              on a local hard disk.
  2738.  
  2739.              Some networks support file and directory names beginning with
  2740.              a double backslash, or with a server name followed by a colon,
  2741.              to identify files by their location on the network.  4DOS
  2742.              detects such names and passes them through to the network
  2743.              unaltered, allowing the network software to process them
  2744.              properly.
  2745.  
  2746.              In rare situations, you may have trouble loading network
  2747.              software under 4DOS.  To the best of our knowledge, all DOS-
  2748.              compatible networks work with 4DOS.  If yours doesn't, our
  2749.              experience suggests that the most common cause is a network
  2750.              bug, an old version of your network software, or a conflict in
  2751.              the way 4DOS and your network are configured.  Most bugs have
  2752.              now been corrected by network vendors, and should not appear
  2753.              on your system.  If you have any questions about compatibility
  2754.              with your particular network, check for a listing in
  2755.              APPNOTES.DOC, and feel free to contact our technical support
  2756.              department for additional assistance.
  2757.  
  2758.              If you need to boot a diskless workstation from a network
  2759.              drive, you must have the network drive accessible at boot
  2760.              time.  If this condition is satisfied (so 4DOS can find its
  2761.              files on the network drives), the normal approach can be used
  2762.              to start 4DOS from the network.  You can also configure 4DOS
  2763.              so that it boots from the floppy disk image used to start your
  2764.              diskless workstation, then retrieves its files from the
  2765.              network.  For complete details on starting 4DOS on a diskless
  2766.              workstation under Novell Netware see APPNOTES.DOC.  The
  2767.  
  2768.  
  2769.         -------------------------------------------------------------------
  2770.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 44
  2771.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2772.         -------------------------------------------------------------------
  2773.  
  2774.  
  2775.              approach described there can generally be used for other
  2776.              networks as well.
  2777.  
  2778.              Some networks with large server disk drives (256 MB or more)
  2779.              may report total and free disk space values that are too small
  2780.              if the DIR command, the FREE command, or the @DISKFREE,
  2781.              @DISKTOTAL, or @DISKUSED variable functions are used on the
  2782.              server drive.  If this occurs, it is because DOS does not
  2783.              provide a way for the network software to return larger values
  2784.              to 4DOS.
  2785.  
  2786.          !## When you use 4DOS with your network software loaded you need
  2787.              to ensure that two users do not use the same directory
  2788.              simultaneously for secondary shell disk swap files.  If they
  2789.              do, the filenames (4DOSSWAP.001, etc.) will conflict and each
  2790.              user will write over the other's files, possibly causing one
  2791.              or both systems to hang.  In most cases you will find this is
  2792.              not a problem, because most network users swap 4DOS to XMS or
  2793.              EMS memory or a local hard disk.  However if you do swap to a
  2794.              network drive, you can prevent a conflict with the
  2795.              UniqueSwapName directive in 4DOS.INI, or by using the Swapping
  2796.              directive to assign each user's swap files to a different
  2797.              directory.  For this reason, 4DOS will automatically enable
  2798.              UniqueSwapName if it detects that you are swapping to a
  2799.              network drive.
  2800.  
  2801.  
  2802.              4DOS and Novell Netware
  2803.  
  2804.              This section gives you basic information for using 4DOS with
  2805.              Netware.  For additional details and updated information be
  2806.              sure to check APPNOTES.DOC.  The information below applies to
  2807.              Netware, but not to Novell's peer-to-peer networking software,
  2808.              Netware Lite.
  2809.  
  2810.              4DOS works well with Netware, and compatibility problems
  2811.              should be very rare.  Novell's newer NETX shells are more
  2812.              reliable than the older NET3 / NET4 / NET5.  We recommend that
  2813.              you use NETX with 4DOS whenever possible.
  2814.  
  2815.              4DOS includes a 4DOS.INI directive for Netware, NetwareNames.
  2816.              You must set NetwareNames = Yes on systems which load Netware
  2817.              to avoid problems with destroyed environment variables during
  2818.              LOGIN.  Setting NetwareNames = Yes will increase the resident
  2819.              size of 4DOS by 112 bytes.
  2820.  
  2821.              Under Netware version 3 and above, 4DOS commands which scan a
  2822.              directory tree (e.g. COPY /S, DIR /S, GLOBAL, etc.) may stop
  2823.              without scanning the entire tree, and without displaying an
  2824.              error message.  This happens when such commands exceed the
  2825.              size of the directory search table on your server; this is a
  2826.  
  2827.         -------------------------------------------------------------------
  2828.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 45
  2829.                             CHAPTER 3 / 4DOS AND YOUR HARDWARE AND SOFTWARE
  2830.         -------------------------------------------------------------------
  2831.  
  2832.  
  2833.              Netware design issue and not a 4DOS bug.  You can fix this
  2834.              problem by having your system administrator increase the
  2835.              Maximum Oustanding NCP Searches parameter for the server in
  2836.              question.
  2837.  
  2838.              4DOS can be set up to run on Novell Netware diskless
  2839.              workstations which boot from the server.  To do so, you must
  2840.              make several changes to 4DOS.INI and your other startup files.
  2841.              See APPNOTES.DOC for complete details.
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847.  
  2848.  
  2849.  
  2850.  
  2851.  
  2852.  
  2853.  
  2854.  
  2855.  
  2856.  
  2857.  
  2858.  
  2859.  
  2860.  
  2861.  
  2862.  
  2863.  
  2864.  
  2865.  
  2866.  
  2867.  
  2868.  
  2869.  
  2870.  
  2871.  
  2872.  
  2873.  
  2874.  
  2875.  
  2876.  
  2877.  
  2878.  
  2879.  
  2880.  
  2881.  
  2882.  
  2883.  
  2884.  
  2885.         -------------------------------------------------------------------
  2886.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 46
  2887.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  2888.         -------------------------------------------------------------------
  2889.  
  2890.  
  2891.  
  2892.         CHAPTER 4 / USING 4DOS UNDER OS/2
  2893.  
  2894.  
  2895.         4DOS offers almost unlimited flexibility for your OS/2 DOS
  2896.         sessions, and has been specifically designed to take advantage of
  2897.         OS/2 features wherever possible.  However, to use DOS, 4DOS, and
  2898.         OS/2 successfully requires some planning if you want to get all the
  2899.         power possible out of each operating environment.
  2900.  
  2901.         This chapter explains some of the planning you should do and some
  2902.         of the techniques you can use to get everything working together
  2903.         correctly.  It covers:
  2904.  
  2905.              * Configuring OS/2 version 1.x for 4DOS (see page 48).
  2906.  
  2907.              * Configuring OS/2 version 2.x and above DOS sessions
  2908.                (Virtual DOS Machines) for 4DOS (see page 48).
  2909.  
  2910.              * Arranging your 4DOS.INI, 4START, 4EXIT, and AUTOEXEC.BAT
  2911.                files for use in the multiple DOS sessions available under
  2912.                OS/2 2.x and above (see page 52).
  2913.  
  2914.              * Setting up temporary DOS sessions in OS/2 2.x and above to
  2915.                run a single DOS command or application (see page 53).
  2916.  
  2917.              * Adjusting 4DOS.INI, 4START, 4EXIT, and AUTOEXEC.BAT when
  2918.                you can boot under either DOS or OS/2 using OS/2's Dual
  2919.                Boot or Boot Manager features (see page 54).
  2920.  
  2921.         Throughout this section, we assume that you want to use 4DOS as
  2922.         your command processor in all of these situations.  Also, we assume
  2923.         that you have installed 4DOS in the C:\4DOS directory (alter the
  2924.         SHELL= and DOS_SHELL settings below appropriately if 4DOS is
  2925.         installed in a different directory).
  2926.  
  2927.         If you are using OS/2's Dual Boot or Boot Manager, you will have
  2928.         (at least) two copies of CONFIG.SYS and AUTOEXEC.BAT on your
  2929.         computer, one for booting OS/2 and OS/2 DOS sessions, and the other
  2930.         for booting DOS without OS/2.  See the section on Dual Boot and
  2931.         Boot Manager on page 54 for details on where these two sets of
  2932.         files are stored.  Unless otherwise specified, references in this
  2933.         section to CONFIG.SYS and AUTOEXEC.BAT refer to the OS/2 versions
  2934.         of these files.
  2935.  
  2936.         Before you read this section, read through Chapter 1 / Installation
  2937.         (see page 4) for details on installing 4DOS and modifying the
  2938.         SHELL= statement in your OS/2 CONFIG.SYS file.
  2939.  
  2940.  
  2941.  
  2942.  
  2943.         -------------------------------------------------------------------
  2944.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 47
  2945.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  2946.         -------------------------------------------------------------------
  2947.  
  2948.  
  2949.  
  2950.  
  2951.         OS/2 Version 1.x
  2952.  
  2953.              Under OS/2 version 1.x, you can install 4DOS simply by setting
  2954.              the SHELL= line in CONFIG.SYS.  This command determines how
  2955.              4DOS starts when you invoke the DOS Compatibility Box from the
  2956.              OS/2 desktop.
  2957.  
  2958.              You can use the [options] portion of the SHELL command to
  2959.              select a special 4DOS.INI file and to set any other 4DOS
  2960.              command line options you choose.  In essence, you can set up
  2961.              4DOS just as you would if you installed it on a DOS system
  2962.              without OS/2.
  2963.  
  2964.              You can skip the sections below which explain how to configure
  2965.              DOS sessions under OS/2 version 2.x and above.  If you are
  2966.              using the OS/2 version 1.x Dual Boot capability, you should
  2967.              read the section on Dual Boot and Boot Manager (page 54).
  2968.  
  2969.  
  2970.         OS/2 Version 2.x and OS/2 Warp
  2971.  
  2972.              Under OS/2 version 2.x and OS/2 Warp, you can have multiple
  2973.              objects which start DOS sessions, also called Virtual DOS
  2974.              Machines (VDMs).  These may include objects in the Command
  2975.              Prompts window, objects for "migrated applications," objects
  2976.              for DOS and Windows applications, and objects for batch files.
  2977.  
  2978.              Assuming you set up your VDM objects as described here, 4DOS
  2979.              is loaded as a primary shell each time a DOS session starts.
  2980.              4DOS will process 4DOS.INI, execute your 4START file if you
  2981.              have one, and execute AUTOEXEC.BAT.  When the session is
  2982.              closed with the EXIT command, 4DOS will run your 4EXIT file if
  2983.              you have one.  You can start any number of DOS sessions and
  2984.              (within the limits of system resources) have as many running
  2985.              simultaneously as you like.
  2986.  
  2987.              This is fundamentally different from what happens when you
  2988.              boot your computer under DOS or OS/2 1.x.  In these
  2989.              environments there is only one 4DOS primary shell,
  2990.              AUTOEXEC.BAT is only executed once each time you boot, and so
  2991.              on.  OS/2 version 2.x and above give you much more
  2992.              flexibility, but that flexibility requires planning to get the
  2993.              most out of 4DOS.
  2994.  
  2995.              For example, you can have all your DOS sessions use the same
  2996.              AUTOEXEC.BAT file, or you can have different versions of
  2997.              AUTOEXEC.BAT for different sessions.  The same is true of the
  2998.              other startup and exit files (4DOS.INI, 4START, and 4EXIT).
  2999.              This section and the sections below discuss how to set up
  3000.  
  3001.         -------------------------------------------------------------------
  3002.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 48
  3003.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  3004.         -------------------------------------------------------------------
  3005.  
  3006.  
  3007.              objects for your DOS sessions, and how to arrange your startup
  3008.              and exit files so that 4DOS will do just what you want it to
  3009.              in each DOS session.
  3010.  
  3011.  
  3012.              Settings for DOS Sessions
  3013.  
  3014.              Each VDM object contains its own information about how to
  3015.              start DOS for that session.  In essence, each object has its
  3016.              own CONFIG.SYS file built into it.  The information attached
  3017.              to an object which indicates how to start DOS is called its
  3018.              DOS Settings.
  3019.  
  3020.              You can modify these settings using OS/2's Settings notebook.
  3021.              To do so, click the right mouse button in the object.  When
  3022.              the popup menu appears, click the left mouse button on the
  3023.              small arrow to the right of the Open selection, then again on
  3024.              the Settings selection on the submenu.
  3025.  
  3026.              Once the Settings notebook is open, use the Program page to
  3027.              modify the object's program name, startup directory, and
  3028.              command line parameters.  The Session page lets you set the
  3029.              session type.  Other pages let you adjust other configuration
  3030.              data for the object.
  3031.  
  3032.              To modify the DOS settings, use the button with that legend on
  3033.              the Session page of the notebook.  Clicking on this button
  3034.              opens the DOS settings dialog box.  To modify an individual
  3035.              setting, click on the setting name in the list box at the
  3036.              left, then click on the value window to the right and enter
  3037.              the new value.  Settings with choice values (such as "On" and
  3038.              "Off") will show buttons for the value, rather than a text
  3039.              window.
  3040.  
  3041.              In a new object, each DOS setting starts out with a default
  3042.              value taken from your CONFIG.SYS file.  For settings which
  3043.              have no corresponding command in CONFIG.SYS, OS/2 uses a
  3044.              built-in default value.
  3045.  
  3046.              For example, the DOS_SHELL setting, which specifies the
  3047.              command processor to use for a DOS session, defaults to the
  3048.              value on the SHELL= line in CONFIG.SYS.  Changing the SHELL=
  3049.              line changes the default DOS_SHELL value for all new DOS
  3050.              sessions (as usual, changes to CONFIG.SYS are only effective
  3051.              after you reboot the system).
  3052.  
  3053.              However, the HW_TIMER setting (which tells OS/2 whether to
  3054.              allow the session to manipulate the hardware timer), always
  3055.              defaults to OFF.  The default cannot be changed in CONFIG.SYS.
  3056.  
  3057.  
  3058.  
  3059.         -------------------------------------------------------------------
  3060.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 49
  3061.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  3062.         -------------------------------------------------------------------
  3063.  
  3064.  
  3065.              Modifying a setting whose default is specified in CONFIG.SYS,
  3066.              such as DOS_SHELL, breaks the "link" between that setting and
  3067.              the default in CONFIG.SYS.  After the modification, changes
  3068.              made to the default in CONFIG.SYS will not affect the object
  3069.              at all.
  3070.  
  3071.              For example, to set up 4DOS as your default DOS command
  3072.              processor for OS/2 DOS sessions you might include this line in
  3073.              the OS/2 CONFIG.SYS file:
  3074.  
  3075.                   SHELL= C:\4DOS\4DOS\COM C:\4DOS /P
  3076.  
  3077.              If you then create a new DOS session object, its DOS_SHELL
  3078.              setting will reflect the value from the SHELL= line.  Now
  3079.              suppose you modify the DOS_SHELL setting for that object so
  3080.              that it reads:
  3081.  
  3082.                   C:\4DOS\4DOS.COM C:\4DOS /L /P
  3083.  
  3084.              At this point the "link" between your object and CONFIG.SYS is
  3085.              broken.  If you move 4DOS to a different directory and modify
  3086.              the SHELL= line in CONFIG.SYS, the object's DOS_SHELL setting
  3087.              will not be changed, and the object will no longer work
  3088.              properly.  In order to correct this you will have to manually
  3089.              modify the DOS_SHELL setting for that object.
  3090.  
  3091.              You can return any DOS setting to the current default value at
  3092.              any time.  To do so, open the DOS Settings dialog box,
  3093.              highlight the setting name, and click on the Default button.
  3094.              This replaces the value of the setting with the value OS/2
  3095.              read from CONFIG.SYS when you last booted, or with the value
  3096.              from OS/2's standard defaults.  For settings which have a
  3097.              default in CONFIG.SYS, this re-establishes the link between
  3098.              the object and CONFIG.SYS, and subsequent changes you make in
  3099.              CONFIG.SYS will again be reflected in the setting for that
  3100.              object each time you reboot.
  3101.  
  3102.  
  3103.              Configuring DOS Sessions for 4DOS
  3104.  
  3105.              To create a VDM object that gives you a standard 4DOS prompt,
  3106.              first place an asterisk [*] in the Program Name field (on the
  3107.              Program page in the Settings notebook).  This tells OS/2 to
  3108.              load the DOS command processor and go to a prompt instead of
  3109.              running a specific DOS application.  Then go to the Session
  3110.              page and set the session type to DOS Full Screen or DOS
  3111.              Window.
  3112.  
  3113.              Next, click on the DOS Settings button and set up the DOS
  3114.              settings for the object.  4DOS will run properly with default
  3115.              DOS settings, but you may want to check that the DOS_SHELL
  3116.  
  3117.         -------------------------------------------------------------------
  3118.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 50
  3119.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  3120.         -------------------------------------------------------------------
  3121.  
  3122.  
  3123.              setting is correct, because this setting determines which
  3124.              command processor OS/2 will load when the object is used to
  3125.              start a session.
  3126.  
  3127.              DOS_SHELL is formatted just like the SHELL= line in CONFIG.SYS
  3128.              (see page 11), but without the characters "SHELL=".  The
  3129.              DOS_SHELL setting should always include the COMSPEC path (see
  3130.              page 17 for an explanation of the COMSPEC path).  For example,
  3131.              you might set DOS_SHELL to:
  3132.  
  3133.                   C:\4DOS\4DOS.COM C:\4DOS /P
  3134.  
  3135.              If you've set up CONFIG.SYS for 4DOS as described in Chapter
  3136.              1, any new VDM objects you create will automatically use the
  3137.              correct DOS_SHELL setting for 4DOS.  However, VDM objects
  3138.              which existed before you modified CONFIG.SYS may list
  3139.              COMMAND.COM in the DOS_SHELL setting.  To correct the setting
  3140.              so that 4DOS is used for these objects, modify DOS_SHELL in
  3141.              each object to point to 4DOS, as shown in the example above,
  3142.              or change DOS_SHELL back to the default value with the Default
  3143.              button.
  3144.  
  3145.              You can customize any object with optional 4DOS command line
  3146.              switches, such as @ininame, or //iniline (see page 11 for more
  3147.              details).  These switches can be placed at the end of the
  3148.              DOS_SHELL setting, or in the Parameters field in the Program
  3149.              window.
  3150.  
  3151.              For example, your Program page might have the following
  3152.              settings for a standard 4DOS prompt, using a special .INI file
  3153.              for this session:
  3154.  
  3155.                   Program Name:       *
  3156.                   Parameters:         @C:\4DOS\OS2VDM.INI
  3157.                   Working Directory:  C:\
  3158.  
  3159.              You can run any alias, internal command, DOS application, or
  3160.              batch file directly from a 4DOS VDM object.  To do so, place
  3161.              the command to be executed as the last item in the Parameters
  3162.              field for the object.  4DOS will execute the command and then
  3163.              display a prompt.  4DOS will execute the command after it
  3164.              processes your 4START file (if any) and AUTOEXEC.BAT.
  3165.  
  3166.              If you precede the command name with /C, 4DOS will exit and
  3167.              return to the OS/2 desktop when the command is finished.  This
  3168.              is a "temporary" VDM, described in more detail on page 53.
  3169.              You can also make 4DOS exit when the command is complete by
  3170.              invoking a batch file or alias which ends with the EXIT
  3171.              command.
  3172.  
  3173.  
  3174.  
  3175.         -------------------------------------------------------------------
  3176.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 51
  3177.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  3178.         -------------------------------------------------------------------
  3179.  
  3180.  
  3181.              You can create an object which runs a DOS program by placing
  3182.              the program name (including drive and path) in the object's
  3183.              Program Name field.  When you select the object, OS/2 will
  3184.              automatically start a temporary VDM to run the program.  See
  3185.              page 53 for additional details.
  3186.  
  3187.          ##  Once you have created a 4DOS object on your desktop, you may
  3188.              wish to create a menu item on the desktop menu to run it.  You
  3189.              can do so using OS/2's menu editing facilities.  If you do,
  3190.              when you start 4DOS from the menu OS/2 will pass the name of
  3191.              the desktop directory as a command line argument to 4DOS.
  3192.              This directory name will appear to 4DOS as a COMSPEC path or a
  3193.              command to be executed, and may result in an error message
  3194.              when the session is started from the desktop menu.  To avoid
  3195.              this, add a single % sign in the Parameters field for the
  3196.              object.  The % sign will prevent OS/2 from passing the
  3197.              directory name, but will be treated as a null parameter by
  3198.              4DOS.
  3199.  
  3200.  
  3201.              4DOS.INI
  3202.  
  3203.              Each time you start a DOS session, 4DOS will search for
  3204.              4DOS.INI in the directory where 4DOS.COM is stored, then in
  3205.              the root directory of the boot drive.
  3206.  
  3207.              In most cases, the best strategy is to put 4DOS.INI in the
  3208.              same directory as 4DOS.COM and make sure your COMSPEC setting
  3209.              is correct as described above.  4DOS will use this 4DOS.INI
  3210.              file by default for all DOS sessions.
  3211.  
  3212.              To use a different .INI file for sessions started from a
  3213.              particular object, include an @ininame parameter on the
  3214.              DOS_SHELL setting for that object as described in the previous
  3215.              section.  Be sure to include the full path and name of the
  3216.              file.  To modify specific 4DOS.INI settings for sessions
  3217.              started from an object, use one or more //iniline parameters
  3218.              on the DOS_SHELL setting for the object.  For objects with a
  3219.              [*] in the program name field, the @ininame or //iniline
  3220.              parameters may be placed at the beginning of the Parameters
  3221.              field if you wish, rather than in the DOS_SHELL setting.
  3222.  
  3223.              You can also use the @ininame parameter on your SHELL= line in
  3224.              the OS/2 CONFIG.SYS file to change the default location of
  3225.              4DOS.INI for all DOS sessions run under OS/2.  If you do so,
  3226.              remember that changes made in CONFIG.SYS will only take effect
  3227.              after your next reboot, and will not affect existing objects
  3228.              whose DOS_SHELL setting has been changed from its default
  3229.              value.
  3230.  
  3231.  
  3232.  
  3233.         -------------------------------------------------------------------
  3234.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 52
  3235.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  3236.         -------------------------------------------------------------------
  3237.  
  3238.  
  3239.              AUTOEXEC.BAT, 4START, and 4EXIT
  3240.  
  3241.              Each time you start a DOS session, 4DOS will search for 4START
  3242.              and 4EXIT in the directory where 4DOS.COM is stored, then in
  3243.              the root directory of the OS/2 boot drive.  It will search for
  3244.              AUTOEXEC.BAT in the root directory of the OS/2 boot drive.
  3245.              Therefore, the same 4START, 4EXIT, and AUTOEXEC.BAT files will
  3246.              normally be used for all DOS sessions.  You can override these
  3247.              defaults with the 4StartPath and AutoExecPath directives in
  3248.              4DOS.INI.
  3249.  
  3250.              To select different 4START, 4EXIT, and AUTOEXEC.BAT files for
  3251.              a particular object, place the files for that object in a
  3252.              directory that is not one of the default directories described
  3253.              above.  Then create a new 4DOS.INI file for that object, using
  3254.              the 4StartPath and / or AutoExecPath directives to point to
  3255.              the new directory, or use a //4StartPath or //AutoExecPath
  3256.              directive in the DOS_SHELL setting or parameters field for the
  3257.              object.
  3258.  
  3259.              To disable the default 4START, 4EXIT, or AUTOEXEC.BAT files
  3260.              for a particular object without selecting alternate files, use
  3261.              the techniques described above to tell 4DOS to load these
  3262.              files from a directory where they do not exist.  All three
  3263.              files are optional, so if they do not exist in the directory
  3264.              specified by 4StartPath or AutoExecPath, they will not be
  3265.              executed.
  3266.  
  3267.              Remember that if your 4START and 4EXIT files have the
  3268.              extension .BTM, they may be executed by both 4DOS and 4OS2.
  3269.              If so, you may need to customize them for DOS mode and OS/2
  3270.              mode.  You can use the internal variable %_DOS to separate
  3271.              commands for each operating system.  For example:
  3272.  
  3273.                   iff "%_DOS" == "DOS"
  3274.                      rem Commands for DOS only go here
  3275.                   else
  3276.                      rem Commands for OS/2 only go here
  3277.                   endiff
  3278.  
  3279.  
  3280.         "Temporary" VDMs
  3281.  
  3282.              So far, we have discussed starting a VDM to run 4DOS and get
  3283.              to the DOS prompt.  OS/2 version 2.x and above also lets you
  3284.              start a temporary VDM, for example to run a DOS application or
  3285.              batch file from a desktop object.
  3286.  
  3287.              In a temporary VDM, 4DOS is still loaded as the primary shell
  3288.              even though it is being invoked to run just a single command
  3289.              or application.  This primary 4DOS shell is also a "transient"
  3290.  
  3291.         -------------------------------------------------------------------
  3292.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 53
  3293.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  3294.         -------------------------------------------------------------------
  3295.  
  3296.  
  3297.              shell that exits (back to OS/2) when its job is done.
  3298.              Temporary VDMs are created automatically by OS/2 if you set up
  3299.              an object with the Program Name set to the name of a DOS
  3300.              application.  You can also start them yourself by using a /C
  3301.              (see page 16) in the Parameters field for a standard 4DOS
  3302.              object.
  3303.  
  3304.              For example, to create a temporary VDM to run your word
  3305.              processor you might set up an object like this:
  3306.  
  3307.                   Program Name:       E:\WORDPROC\WP.EXE
  3308.                   Parameters:         [blank]
  3309.                   Working Directory:  D:\LETTERS
  3310.  
  3311.              You usually won't want a temporary VDM to load all the memory-
  3312.              resident utilities and execute all the commands that you want
  3313.              when you are setting up a DOS prompt.  Most often, you will
  3314.              want to set up a simple VDM, run the command, and exit as
  3315.              quickly as possible.  The 4DOS internal variable %_TRANSIENT
  3316.              makes it easy to do just that.  The beginning of your
  3317.              AUTOEXEC.BAT file could look like this:
  3318.  
  3319.                   iff %_transient == 1 then
  3320.                        call setpath
  3321.                        call aliases
  3322.                        quit
  3323.                   endiff
  3324.  
  3325.              This fragment calls other batch files to set up the path and
  3326.              aliases, but it does not load TSRs.
  3327.  
  3328.  
  3329.         Configuring 4DOS for Dual Boot and Boot Manager
  3330.  
  3331.              When you install OS/2, you are given a choice of making it the
  3332.              only operating system on your computer, or retaining a DOS
  3333.              boot capability as well.
  3334.  
  3335.              If you retain a DOS boot capability, OS/2 offers two different
  3336.              methods for switching between DOS and OS/2:  Dual Boot (OS/2
  3337.              versions 1.x, 2.x, and Warp) and Boot Manager (OS/2 version
  3338.              2.x and OS/2 Warp only).  The way you configure 4DOS to work
  3339.              with OS/2 depends partly on whether you retain a DOS boot
  3340.              capability on your computer, and, if so, which method you
  3341.              choose.
  3342.  
  3343.              Dual Boot is invoked with the BOOT command (the program
  3344.              BOOT.COM distributed with OS/2).  If you use Dual Boot, you
  3345.              will have one copy of CONFIG.SYS and AUTOEXEC.BAT available on
  3346.              your boot drive when you boot in DOS mode and another version
  3347.              available when you boot in OS/2 mode.  BOOT.COM works by
  3348.  
  3349.         -------------------------------------------------------------------
  3350.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 54
  3351.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  3352.         -------------------------------------------------------------------
  3353.  
  3354.  
  3355.              swapping the DOS and OS/2 versions of CONFIG.SYS and
  3356.              AUTOEXEC.BAT, as well as other system data, then rebooting the
  3357.              computer.
  3358.  
  3359.              Boot Manager (included with OS/2 version 2.x and above only)
  3360.              uses a different approach.  It lets you install DOS on one
  3361.              hard drive partition and OS/2 on another partition.  When you
  3362.              boot the computer, Boot Manager displays a menu and lets you
  3363.              pick which operating system to boot.  Each partition will have
  3364.              its own versions of CONFIG.SYS and AUTOEXEC.BAT.
  3365.  
  3366.              The difference between these approaches is the location and
  3367.              availability of files.
  3368.  
  3369.              If you use Dual Boot, the system always boots from the same
  3370.              drive, whether you are booting DOS or OS/2.  The CONFIG.SYS
  3371.              and AUTOEXEC.BAT files are switched back and forth as you
  3372.              switch from one operating system to the other.  The set of
  3373.              files that is in use at any given time is stored in the root
  3374.              directory of the boot drive, and the set not in use is stored
  3375.              in the \OS2\SYSTEM directory.
  3376.  
  3377.              If you use the Boot Manager, the files for DOS reside on one
  3378.              drive (for example, C) and those for OS/2 are on another drive
  3379.              (for example, D).  The files are not moved when you switch
  3380.              operating systems.  In both cases, you can keep the startup
  3381.              files synchronized or independent to meet your own needs.
  3382.  
  3383.  
  3384.              CONFIG.SYS
  3385.  
  3386.              Setting up CONFIG.SYS is very simple, whether you are using
  3387.              Dual Boot or Boot Manager.  Modify both the DOS and OS/2
  3388.              CONFIG.SYS files for 4DOS as described on page 7.  The two
  3389.              files remain separate, and any changes to common items (for
  3390.              example the name of the directory where 4DOS is stored, used
  3391.              in the SHELL= command) must be made in both files.
  3392.  
  3393.  
  3394.              AUTOEXEC.BAT
  3395.  
  3396.              With AUTOEXEC.BAT, you have more flexibility.  Whether you use
  3397.              Dual Boot or Boot Manager, you will have two standard
  3398.              AUTOEXEC.BAT files:  one for starting 4DOS under a DOS boot
  3399.              and one for OS/2 DOS sessions.
  3400.  
  3401.              If you want different commands in AUTOEXEC.BAT for a DOS boot
  3402.              and OS/2 DOS sessions, you can keep the two files separate and
  3403.              distinct.  Just be sure to update both files whenever you make
  3404.              changes to the commands they have in common.  You can also
  3405.  
  3406.  
  3407.         -------------------------------------------------------------------
  3408.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 55
  3409.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  3410.         -------------------------------------------------------------------
  3411.  
  3412.  
  3413.              CALL other batch files from each copy of AUTOEXEC.BAT to
  3414.              handle common commands.
  3415.  
  3416.              You may find that many of the commands in the two AUTOEXEC.BAT
  3417.              files are the same and that it is more convenient to maintain
  3418.              a single file.  The following paragraphs explain how to do so.
  3419.  
  3420.              If you use the Boot Manager, you can put all of your
  3421.              instructions in one file and start it from the other.  For
  3422.              example, if DOS boots from drive C: and OS/2 boots from drive
  3423.              D:, your AUTOEXEC.BAT on drive D: could simply be:
  3424.  
  3425.                   cdd c:\
  3426.                   autoexec.bat
  3427.  
  3428.              On a Dual Boot system the startup files are moved each time
  3429.              you boot, so you cannot start one file from the other as you
  3430.              can with Boot Manager.  If are using Dual Boot and you want to
  3431.              use the same commands in AUTOEXEC for both DOS and OS/2, you
  3432.              must put all of your commands into a third file (for example,
  3433.              C:\SYSTART.BAT), and CALL that file from both the DOS and OS/2
  3434.              AUTOEXEC.BAT files.
  3435.  
  3436.              You can also use the AutoExecPath directive in 4DOS.INI to
  3437.              force 4DOS to look in a particular directory for AUTOEXEC.BAT
  3438.              regardless of whether it is started from an OS/2 DOS session
  3439.              or from a DOS boot, and regardless of the boot drive.
  3440.  
  3441.              If you keep commands for both boot modes in a single
  3442.              AUTOEXEC.BAT file, you can use the internal variable %_DOSVER
  3443.              to separate commands to be executed during a DOS boot from
  3444.              those for an OS/2 DOS session.  %_DOSVER will be 10 or above
  3445.              for OS/2 DOS sessions.  For example:
  3446.  
  3447.                   iff %_DOSVER ge 10.0
  3448.                      rem Commands for OS/2 DOS go here
  3449.                   else
  3450.                      rem Commands for native DOS go here
  3451.                   endiff
  3452.  
  3453.  
  3454.              4DOS.INI, 4START, and 4EXIT
  3455.  
  3456.              Handling 4DOS's startup and exit files is a little different.
  3457.              Unlike CONFIG.SYS and AUTOEXEC.BAT, the other startup files
  3458.              won't be swapped for you when you switch operating systems
  3459.              with Dual Boot, and they won't be automatically stored on
  3460.              separate partitions if you use the Boot Manager.  4DOS
  3461.              normally looks for these files in the directory where 4DOS.COM
  3462.              is stored, so the same files will be used for both a DOS boot
  3463.              and OS/2 DOS sessions.
  3464.  
  3465.         -------------------------------------------------------------------
  3466.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 56
  3467.                                           CHAPTER 4 / USING 4DOS UNDER OS/2
  3468.         -------------------------------------------------------------------
  3469.  
  3470.  
  3471.              To set up one 4DOS.INI file for DOS and another for OS/2 DOS
  3472.              sessions, use the @ininame parameter on the SHELL= line in
  3473.              CONFIG.SYS (see page 11).  For example, you might configure
  3474.              the SHELL= line for DOS to load the default file (4DOS.INI in
  3475.              your 4DOS directory), and use the @ininame parameter on the
  3476.              SHELL= line in the OS/2 CONFIG.SYS file to select a different
  3477.              .INI file for OS/2 DOS sessions.  To do so, use a line like
  3478.              this for DOS:
  3479.  
  3480.                   SHELL=C:\4DOS\4DOS.COM C:\4DOS /P
  3481.  
  3482.              And one like this for OS/2 (enter this on one line):
  3483.  
  3484.                   SHELL=C:\4DOS\4DOS.COM C:\4DOS @C:\4DOS\4DOSOS2.INI /P
  3485.  
  3486.              To select different 4START and 4EXIT files for DOS and for
  3487.              OS/2 DOS sessions, place one set of files in a different
  3488.              directory (not the directory where 4DOS.COM is stored).  Then
  3489.              either set up a different 4DOS.INI file for that boot mode as
  3490.              described above, using 4StartPath to point to the new
  3491.              directory, or use a //4StartPath directive on the SHELL= line
  3492.              in CONFIG.SYS for that boot mode.  For example, this line in
  3493.              an OS/2 CONFIG.SYS file sets 4DOS as the command processor,
  3494.              and tells 4DOS to look for 4START and 4EXIT in the
  3495.              C:\4DOS\OS2START directory (enter this on one line):
  3496.  
  3497.                   SHELL=C:\4DOS\4DOS.COM C:\4DOS
  3498.                   //4STARTPATH=C:\4DOS\OS2START /P
  3499.  
  3500.              You can also keep commands for both boot modes in a single
  3501.              4START or 4EXIT file, and use %_DOSVER to separate the
  3502.              commands to be executed during a DOS boot from those for an
  3503.              OS/2 DOS session.  For a basic example, see page 56.
  3504.  
  3505.  
  3506.  
  3507.  
  3508.  
  3509.  
  3510.  
  3511.  
  3512.  
  3513.  
  3514.  
  3515.  
  3516.  
  3517.  
  3518.  
  3519.  
  3520.  
  3521.  
  3522.  
  3523.         -------------------------------------------------------------------
  3524.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 57
  3525.                        Appendix A / Solving Software Compatibility Problems
  3526.         -------------------------------------------------------------------
  3527.  
  3528.  
  3529.  
  3530.         Appendix A / Solving Software Compatibility Problems
  3531.  
  3532.  
  3533.         Any DOS program running on your computer can potentially interact
  3534.         with any other program running at the same time.  Of course, most
  3535.         program interactions are ones you want:  your print spooler
  3536.         intercepts printer output and saves it to print later, or your disk
  3537.         cache intercepts disk requests and speeds them up by retrieving
  3538.         data from memory.
  3539.  
  3540.         If you've used the PC for any length of time, however, you'll know
  3541.         that you can also get interactions you don't want.  If you load
  3542.         just the wrong combination of TSRs and device drivers, your system
  3543.         may slow to a crawl.  Perhaps you can't load your favorite Personal
  3544.         Information Manager with Windows running.  And so on.
  3545.  
  3546.         As publishers of a product that replaces part of the operating
  3547.         system, we're very familiar with these issues - not because 4DOS is
  3548.         more likely to cause problems, but because it sometimes gets blamed
  3549.         first when a problem appears.  Our technical support department has
  3550.         developed a set of reliable techniques for finding out what's
  3551.         causing an apparent compatibility problem with 4DOS and other
  3552.         software.
  3553.  
  3554.         We are presenting these techniques here as a series of things to
  3555.         try when there seems to be a compatibility problem.  Some may not
  3556.         make sense for the particular problem you're investigating.  Others
  3557.         may not yield useful results.  But as a group, they'll help you
  3558.         resolve many of the common software interactions that do appear,
  3559.         whether with 4DOS or anything else.  Before you get started, be
  3560.         sure to check APPNOTES.DOC to see if we've already solved the
  3561.         problem you're facing.
  3562.  
  3563.         If you've tried the techniques in this section and haven't found
  3564.         the problem, contact our technical support department (see page 3).
  3565.         We have more tricks up our sleeve, and a very high success rate at
  3566.         resolving compatibility problems.
  3567.  
  3568.         Some of our suggestions help you figure out what's going on, but
  3569.         aren't intended to help you fix it.  For example, when we suggest
  3570.         that you remove all your TSRs to look for the problem, we aren't
  3571.         suggesting that as a permanent solution, but only as a diagnostic
  3572.         test.
  3573.  
  3574.         The first thing to consider is whether the particular combination
  3575.         of software that's not working used to work together.  If so, think
  3576.         carefully about what you have changed and see if reversing the
  3577.         change solves the problem.  If it does, then you can narrow your
  3578.         search, using the following techniques to find out what it is about
  3579.         that specific change that is causing the problem.
  3580.  
  3581.         -------------------------------------------------------------------
  3582.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 58
  3583.                        Appendix A / Solving Software Compatibility Problems
  3584.         -------------------------------------------------------------------
  3585.  
  3586.  
  3587.         Second, make sure that your problem can be reproduced relatively
  3588.         easily, and make sure you know exactly what sequence of commands or
  3589.         other steps reproduces it.  Most interactions are very easy to
  3590.         reproduce, but if you think there's an interaction and it occurs
  3591.         once every 10 days, it's going to be difficult to know when you
  3592.         have fixed it.  Also, the process of carefully documenting how to
  3593.         reproduce a problem often helps you realize what the problem is
  3594.         without further effort.
  3595.  
  3596.         If you have a problem with a specific application hanging or
  3597.         working improperly, and the above techniques don't help, then try
  3598.         reducing your system configuration to the simplest possible level.
  3599.         This is the single most useful tool we know for finding
  3600.         compatibility problems.  To do so, use all of the approaches listed
  3601.         below, and any other similar things you may be able to think of
  3602.         about your particular system after reading our suggestions.
  3603.  
  3604.         When you're modifying 4DOS.INI in an attempt to resolve problems,
  3605.         you may find the INIQuery directive useful.  If you set INIQuery to
  3606.         Yes for a section of 4DOS.INI, then 4DOS will prompt you for each
  3607.         line in that section.  This allows you to test the effects of
  3608.         changing directives in the .INI file without actually modifying the
  3609.         file for each test.
  3610.  
  3611.  
  3612.         Path Length
  3613.  
  3614.              The first thing to do is to check the length of your PATH
  3615.              variable.  4DOS lets you make it longer than the traditional
  3616.              limit of 123 characters.  Some programs can't handle long
  3617.              PATHs and may behave strangely.  If your PATH is over the
  3618.              traditional limit, reduce its size using the PATH or ESET
  3619.              command and see if the application starts working.  If so, use
  3620.              a batch file or alias to set up an alternate path for running
  3621.              that one program, for example:
  3622.  
  3623.                   setlocal
  3624.                   path d:\myprog
  3625.                   d:\myprog\myprog.exe
  3626.                   endlocal
  3627.  
  3628.              The SETLOCAL / ENDLOCAL pair saves and restores the
  3629.              environment; when you're done, the old PATH will be restored
  3630.              automatically.
  3631.  
  3632.  
  3633.         Environment Size
  3634.  
  3635.              Next, check how much environment space is in use in your
  3636.              system.  The 4DOS MEMORY command reports the total environment
  3637.              space and the amount free; a simple subtraction tells you how
  3638.  
  3639.         -------------------------------------------------------------------
  3640.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 59
  3641.                        Appendix A / Solving Software Compatibility Problems
  3642.         -------------------------------------------------------------------
  3643.  
  3644.  
  3645.              much is in use.  Some programs simply don't work right if
  3646.              there's a lot of information in the environment (these
  3647.              programs don't usually care how big the total environment
  3648.              space is, only how much of it is actually in use).  In most
  3649.              cases, these problems show up when the amount of space in use
  3650.              gets up to around 1K (1024) bytes or so, but they can occur at
  3651.              any point. To test for this, use the following simple batch
  3652.              file:
  3653.  
  3654.                   setlocal
  3655.                   unset var1 var2 var3 ...
  3656.                   [command to run the program in question]
  3657.                   endlocal
  3658.  
  3659.              where VAR1, VAR2, etc. are variables you can remove from the
  3660.              environment to decrease the space in use before running the
  3661.              program.  If reducing the environment space in use makes
  3662.              things work, contact the program's manufacturer and report the
  3663.              problem.  You have found a legitimate bug.  DOS allows an
  3664.              environment of up to 32K bytes, and your program should be
  3665.              able to work with an environment that large.  Until the
  3666.              manufacturer fixes the bug, use the batch file above as a
  3667.              workaround.
  3668.  
  3669.  
  3670.         Testing for Interactions
  3671.  
  3672.              Before testing for software interactions, try booting your
  3673.              system with COMMAND.COM, without changing anything else about
  3674.              your configuration (though you may have to modify AUTOEXEC.BAT
  3675.              if it contains 4DOS-specific commands).  If the problem
  3676.              remains, then it's not related to an interaction with 4DOS.
  3677.              Contact the manufacturer of the software that isn't working
  3678.              properly to determine the cause of the problem.
  3679.  
  3680.              To look for a multi-program interaction, you'll need to remove
  3681.              all the device drivers and TSRs you possibly can and still
  3682.              have enough software present to demonstrate the problem.  For
  3683.              example, you can't look for a network problem if you don't
  3684.              load the network, but you probably can check it without your
  3685.              disk cache running.  If you're running DOS, be sure you have a
  3686.              bootable floppy disk handy (see page 4) before modifying your
  3687.              CONFIG.SYS and AUTOEXEC.BAT files to remove drivers and TSRs.
  3688.  
  3689.              If you run a partitioning disk driver, you probably can't
  3690.              remove it for diagnostic purposes without temporarily losing
  3691.              access to some or all of your hard disk.  The same may be true
  3692.              of disk compression programs like Stacker, depending on the
  3693.              mode in which they are installed.  Most other device drivers
  3694.              and TSRs can be removed without causing trouble.  Check your
  3695.  
  3696.  
  3697.         -------------------------------------------------------------------
  3698.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 60
  3699.                        Appendix A / Solving Software Compatibility Problems
  3700.         -------------------------------------------------------------------
  3701.  
  3702.  
  3703.              system and software manuals if you are unsure of which
  3704.              programs can safely be removed.
  3705.  
  3706.              Once you know what you can take out, don't skimp or guess
  3707.              where the interaction might be.  Take out everything you
  3708.              possibly can from CONFIG.SYS, 4START, and AUTOEXEC.BAT that
  3709.              loads or accesses another program .  In CONFIG.SYS, remove all
  3710.              possible DEVICE and INSTALL statements.  In AUTOEXEC.BAT,
  3711.              remove all the lines you can that load memory-resident
  3712.              programs (and remember that some DOS utilities, like MODE, can
  3713.              be memory-resident).
  3714.  
  3715.              Of course, you should save copies of your configuration files
  3716.              before you delete anything.  Better yet, use the REM command
  3717.              to remove lines temporarily without deleting them.  REM can be
  3718.              used on any line in AUTOEXEC.BAT, in 4START, and in CONFIG.SYS
  3719.              if you are running DOS 4.0 or above.  (In earlier DOS
  3720.              versions, REM will work in CONFIG.SYS but will also generate a
  3721.              harmless "unrecognized command" message during bootup.)  If
  3722.              you want to remove everything in AUTOEXEC.BAT you can rename
  3723.              it to another name (say AUOTEXEC.SAV), and rename it back when
  3724.              you are done testing.
  3725.  
  3726.              Clean out your configuration files all at once, not one line
  3727.              at a time.  If that solves the problem, you're on the right
  3728.              track, and you can put the lines back one at a time until you
  3729.              find the culprit.  If it doesn't solve the problem, you won't
  3730.              waste time removing lines one by one.
  3731.  
  3732.              If the problem isn't there under COMMAND.COM, try fiddling
  3733.              with the program's configuration. If you were loading it high,
  3734.              try loading it low.  If you can change the way it uses memory,
  3735.              try doing so.  If it's a driver that's used by other programs
  3736.              (like your mouse driver) and is quite old, consider obtaining
  3737.              an update from the manufacturer.  All of these techniques will
  3738.              help you narrow down what it is about the program that's
  3739.              causing a problem.  Once you have done that, you may have a
  3740.              simple workaround.  If not, contact our technical support
  3741.              department and we'll try to verify the problem, then resolve
  3742.              it with the manufacturer of the other software.
  3743.  
  3744.              Some problems can be resolved by modifying the order in which
  3745.              you load drivers and TSRs.  If you've found a problem with a
  3746.              particular driver or TSR, if possible try loading it earlier
  3747.              or later than you were and see if the problem goes away.
  3748.  
  3749.              If you're running OS/2, the process of removing device drivers
  3750.              and TSRs is usually simpler than under DOS.  You probably
  3751.              won't need to modify CONFIG.SYS, but you may need to adjust
  3752.              the DOS Settings for the session in which 4DOS is running (see
  3753.              page 49).  Try changing the amounts of XMS, EMS, and DPMI
  3754.  
  3755.         -------------------------------------------------------------------
  3756.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 61
  3757.                        Appendix A / Solving Software Compatibility Problems
  3758.         -------------------------------------------------------------------
  3759.  
  3760.  
  3761.              memory available to the DOS session, removing drivers if any
  3762.              are listed under DOS_DEVICE in your DOS Settings, and removing
  3763.              memory-resident programs loaded in AUTOEXEC.BAT as described
  3764.              above.
  3765.  
  3766.  
  3767.         Memory Allocation Conflicts
  3768.  
  3769.              A memory allocation conflict is very simple.  It occurs when
  3770.              two (or more) programs try to use the same memory, or when a
  3771.              program behaves differently depending on where it is loaded in
  3772.              memory.  Inevitably, at least one of the programs will operate
  3773.              incorrectly, report an error, or hang.  These conflicts can be
  3774.              very hard to diagnose, because it's difficult to determine
  3775.              which programs are actually causing the conflict, and the
  3776.              symptoms may appear to be totally unrelated to the program
  3777.              responsible for the problem.
  3778.  
  3779.              4DOS uses memory in a more complex way than COMMAND.COM.  It
  3780.              can use base, XMS, or EMS memory, and store portions of itself
  3781.              and its data in UMBs (see page 24 for additional details on
  3782.              4DOS memory usage).  COMMAND.COM does not offer any of these
  3783.              capabilities.  This added complexity makes it more likely that
  3784.              you'll encounter memory allocation conflicts with 4DOS.  This
  3785.              isn't because 4DOS is less reliable than other programs, it's
  3786.              because the memory allocation conflict was there waiting to
  3787.              happen, and 4DOS triggered it through its access to additional
  3788.              memory.
  3789.  
  3790.              It's easy to check whether 4DOS's use of memory is a problem.
  3791.              If you configure 4DOS so that it swaps to disk, and disable
  3792.              all use of UMBs, then 4DOS uses only base memory, and (in
  3793.              terms of memory allocation) operates very much like
  3794.              COMMAND.COM.  You can make this change in two simple steps.
  3795.              First, add one line to 4DOS.INI:
  3796.  
  3797.                   Swapping = c:\
  3798.  
  3799.              (change this if you prefer to swap to a different drive, but
  3800.              do not use a RAM disk when you are testing for compatibility
  3801.              problems - the RAM disk itself could be part of the problem).
  3802.              Second, remove any lines in 4DOS.INI which allocate UMBs
  3803.              (UMBLoad, UMBEnvironment, UMBAlias, and UMBHistory), or place
  3804.              a semicolon at the start of such lines to temporarily turn
  3805.              them into comments.
  3806.  
  3807.              If these steps solve the problem, you've found a memory
  3808.              allocation conflict.  The next thing to do is remove all the
  3809.              drivers and TSRs you can to see if you can determine where the
  3810.              conflict is.  For specific techniques, see page 60.  If you
  3811.  
  3812.  
  3813.         -------------------------------------------------------------------
  3814.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 62
  3815.                        Appendix A / Solving Software Compatibility Problems
  3816.         -------------------------------------------------------------------
  3817.  
  3818.  
  3819.              can't come up with an acceptable solution using these
  3820.              techniques, contact JP Software for technical assistance.
  3821.  
  3822.  
  3823.              Memory Allocation and Microsoft Windows
  3824.  
  3825.              If you use Microsoft Windows, there are some specific memory
  3826.              allocation issues you need to consider.  When you run Windows
  3827.              in 386 Enhanced mode, the Windows memory manager "takes over"
  3828.              from the underlying DOS-based memory manager.  If the two
  3829.              programs don't see memory in quite the same way, the conflict
  3830.              can produce some very strange behavior.  For example, the same
  3831.              memory can be allocated twice, or Windows can put portions of
  3832.              itself in areas that were being used by 4DOS or your device
  3833.              drivers and TSRs.  These problems typically apply to upper
  3834.              memory, and not to EMS or XMS memory.  Any of them can cause
  3835.              substantial difficulties in Windows DOS sessions.
  3836.  
  3837.              To avoid such problems you need to systematically verify that
  3838.              Windows and your memory manager are using the same information
  3839.              about upper memory.  You can do so with this approach:
  3840.  
  3841.                   * First, gather a list of all the areas of upper memory
  3842.                     used by your hardware.  This may require consulting
  3843.                     your hardware manuals.  Look for an explanation of the
  3844.                     range of addresses used by each board, as a pair of 4-
  3845.                     digit hexadecimal numbers, for example D400-D7FF.
  3846.                     (Sometimes the addresses have a trailing zero, for
  3847.                     example D4000-D7FF0.  In this case use only the first
  3848.                     4 digits.)  Some boards use no upper memory space at
  3849.                     all.  Boards which may occupy space in upper memory
  3850.                     include network interface cards, SCSI boards, sound
  3851.                     cards, and scanner boards.  Some hard disk controllers
  3852.                     and video boards also use upper memory space,
  3853.                     including "Super VGA" and other high-resolution video
  3854.                     boards.  Video boards may use different areas of upper
  3855.                     memory depending on your display mode.  However, you
  3856.                     don't usually need to consider the standard areas used
  3857.                     by basic VGA boards.
  3858.  
  3859.                   * Next, make sure you have excluded all the areas of
  3860.                     upper memory from management by your memory manager.
  3861.                     The basic approach is to include a switch when you
  3862.                     start up the memory manager, for example /X=D400-D7FF
  3863.                     to exclude the range D400-D7FF.  See your memory
  3864.                     manager documentation for the exact method.
  3865.  
  3866.                   * Finally, locate the SYSTEM.INI file in your Windows
  3867.                     directory.  Find the section of this file beginning
  3868.                     [386Enh] and add an EMMExclude line to it for each
  3869.                     range to be excluded, for example:
  3870.  
  3871.         -------------------------------------------------------------------
  3872.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 63
  3873.                        Appendix A / Solving Software Compatibility Problems
  3874.         -------------------------------------------------------------------
  3875.  
  3876.  
  3877.                        EMMExclude=D400-D7FF
  3878.  
  3879.                     The list in SYSTEM.INI should exactly match the
  3880.                     exclude list given to your memory manager.
  3881.  
  3882.              If this technique solves the problem, you're finished.  If
  3883.              not, also check that any network you have installed is
  3884.              properly configured for Windows.  Errors in network
  3885.              configuration under Windows may generate memory allocation
  3886.              conflicts of their own, and can cause unusual behavior in
  3887.              Windows DOS sessions even though the DOS sessions are not
  3888.              specifically accessing the network.
  3889.  
  3890.  
  3891.         Advanced Configuration Options
  3892.  
  3893.              If none of the other techniques in this Appendix proves
  3894.              useful, some of the advanced directives in 4DOS.INI may help
  3895.              solve very rare configuration problems.  However, unless you
  3896.              are an experienced DOS user and understand the side effects of
  3897.              each directive, they should be used only as diagnostic tools
  3898.              and not as a workaround or fix.  Any of the following can be
  3899.              tried for the conditions indicated:
  3900.  
  3901.                   FineSwap = Yes:  If you are using disk swapping and your
  3902.                   system hangs when exiting an application.
  3903.  
  3904.                   Inherit = No:  If you have unexplained problems in
  3905.                   starting secondary shells.
  3906.  
  3907.                   LineInput = Yes (or SETDOS /L1):  If you have memory-
  3908.                   resident programs which do not recognize that you are at
  3909.                   the prompt.
  3910.  
  3911.                   Reduce = No:  If you have unexplained problems in
  3912.                   starting secondary shells.
  3913.  
  3914.                   ReserveTPA = No:  For unusual memory allocation problems.
  3915.  
  3916.                   SwapReopen = Yes:  If an application or network generates
  3917.                   reproducible errors related to the 4DOS swap file (for
  3918.                   example "Swap file seek failed" or similar errors)
  3919.  
  3920.  
  3921.  
  3922.  
  3923.  
  3924.  
  3925.  
  3926.  
  3927.  
  3928.  
  3929.         -------------------------------------------------------------------
  3930.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 64
  3931.                                          APPENDIX B / TECHNICAL INFORMATION
  3932.         -------------------------------------------------------------------
  3933.  
  3934.  
  3935.  
  3936.         APPENDIX B / TECHNICAL INFORMATION
  3937.  
  3938.  
  3939.         This appendix provides technical information for programmers who
  3940.         wish to build interfaces to 4DOS.  It covers detecting 4DOS,
  3941.         placing keystrokes in the Keystack, writing installable commands,
  3942.         using the DESCRIPT.ION file, and using the interrupt 2E "back door"
  3943.         entry into 4DOS to execute commands.
  3944.  
  3945.  
  3946.         Detecting 4DOS
  3947.  
  3948.  
  3949.              Detecting 4DOS From a Batch File
  3950.  
  3951.              From a batch file, you can determine if 4DOS is loaded by
  3952.              testing for the variable function @EVAL, with a test like
  3953.              this:
  3954.  
  3955.                   if "%@eval[2+2]" == "4" echo 4DOS is loaded!
  3956.  
  3957.              This test can not succeed in COMMAND.COM and is therefore a
  3958.              reliable way to detect 4DOS.  Other variable functions could
  3959.              be used for the same purpose.
  3960.  
  3961.  
  3962.              Detecting 4DOS From a Program
  3963.  
  3964.              Any program can test for the presence of 4DOS by making a
  3965.              simple INT 2Fh call.  Be sure to check the INT 2Fh vector
  3966.              first as it may be 0 under some versions of DOS if no program
  3967.              has hooked the interrupt.  To detect 4DOS, call INT 2Fh with:
  3968.  
  3969.                   AX     D44Dh
  3970.                   BX     0
  3971.  
  3972.              If 4DOS is not loaded, AX will be returned unchanged.  If 4DOS
  3973.              is loaded, it will return the following (no other registers
  3974.              are modified):
  3975.  
  3976.                   AX     44DDh
  3977.                   BX     Version number (BL = major version, BH = minor
  3978.                          version)
  3979.                   CX     4DOS PSP segment address
  3980.                   DL     4DOS shell number
  3981.  
  3982.              The shell number is incremented each time a new copy of 4DOS
  3983.              is loaded, either in a different multitasker window (for
  3984.              example, under Windows), or via nested shells.  The primary
  3985.  
  3986.  
  3987.         -------------------------------------------------------------------
  3988.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 65
  3989.                                          APPENDIX B / TECHNICAL INFORMATION
  3990.         -------------------------------------------------------------------
  3991.  
  3992.  
  3993.              shell is shell number 0.  In OS/2 DOS sessions, each session's
  3994.              primary shell is shell 0.
  3995.  
  3996.              The response to INT 2F function D44Dh will come from the most
  3997.              recently loaded 4DOS shell.  For example, if your program is
  3998.              run from a secondary shell the response will come from that
  3999.              secondary shell, and will reflect its shell number and PSP
  4000.              address.
  4001.  
  4002.              This function tells you if 4DOS is loaded in memory, but not
  4003.              whether it is the parent process of your program.  You can
  4004.              determine if 4DOS is the parent process by comparing the PSP
  4005.              value returned in CX to the PSP chain pointer at offset 16h in
  4006.              your program's PSP.
  4007.  
  4008.  
  4009.              Detecting the 4DOS Prompt
  4010.  
  4011.              4DOS generates INT 2Fh calls before and after the prompt is
  4012.              displayed to allow TSRs to detect that 4DOS is at the prompt.
  4013.              The calls are:
  4014.  
  4015.                   AX     D44Eh
  4016.                   BX     0 if 4DOS is about to display the prompt; 1 if
  4017.                          4DOS has displayed the prompt and is about to
  4018.                          accept keyboard input; or 2 if keyboard input is
  4019.                          complete and 4DOS is about to begin processing
  4020.                          the line.
  4021.  
  4022.              Any routine intercepting these calls should preserve the SI,
  4023.              DI, BP, SP, DS, ES, and SS registers.
  4024.  
  4025.  
  4026.         Placing Keystrokes Into the Keystack
  4027.  
  4028.              You can put keystrokes into the 4DOS Keystack with an INT 2Fh
  4029.              call.  First, you must make a call to check whether KSTACK.COM
  4030.              is loaded:
  4031.  
  4032.                   AX     D44Fh
  4033.                   BX     0
  4034.  
  4035.              If KSTACK.COM is not loaded, this call will return AX
  4036.              unchanged.  If it is loaded, AX will be returned as 44DDh;
  4037.              other registers will be unchanged.  Once you have determined
  4038.              that KSTACK.COM is loaded, you can send keystrokes with this
  4039.              call:
  4040.  
  4041.                   AX     D44Fh
  4042.                   BX     1
  4043.                   CX     number of words being passed (0 - 255)
  4044.  
  4045.         -------------------------------------------------------------------
  4046.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 66
  4047.                                          APPENDIX B / TECHNICAL INFORMATION
  4048.         -------------------------------------------------------------------
  4049.  
  4050.  
  4051.                   DS:DX  address of the keystroke array
  4052.  
  4053.              On return, if the call succeeded then AX will be 0; if it
  4054.              failed, AX will be non-zero.  BX, CX, and DX are destroyed;
  4055.              other registers are preserved.  If the call succeeds,
  4056.              subsequent calls to INT 16h functions 0, 1, 10h, or 11h will
  4057.              receive the stacked keystrokes.
  4058.  
  4059.              The keystroke array passed to KSTACK must be an array of words
  4060.              containing the values to return from INT 16h.  The high byte
  4061.              of each word is a scan code and the low byte is an ASCII code.
  4062.              Many programs accept keystrokes properly with only the ASCII
  4063.              code, but some require the scan code as well.  See Appendix B
  4064.              of your Reference Manual for a list of ASCII and scan codes
  4065.              for most keyboards.  To insert a delay in the keystroke
  4066.              sequence, include a word set to FFFFh followed by a word
  4067.              containing the desired delay in clock ticks.
  4068.  
  4069.  
  4070.         Writing Installable Commands
  4071.  
  4072.              An "installable command" is created with a memory-resident
  4073.              program (TSR) which can receive signals from 4DOS and process
  4074.              commands.  4DOS makes every command available to such TSRs
  4075.              before it is executed; if any TSR chooses to execute the
  4076.              command, 4DOS will do no further processing.  Otherwise, 4DOS
  4077.              processes the command normally.
  4078.  
  4079.              The 4DOS "Installable Command" interface is compatible with an
  4080.              undocumented interface present in COMMAND.COM for MS-DOS and
  4081.              PC-DOS 3.3 and above.  This interface is documented more
  4082.              thoroughly in the excellent reference text Undocumented DOS by
  4083.              Schulman et. al., published by Addison Wesley.
  4084.  
  4085.              4DOS looks for an installable command after alias and variable
  4086.              expansion and redirection, and after checking to see if the
  4087.              command is a drive change, but before checking for an internal
  4088.              or external command.
  4089.  
  4090.              4DOS first makes an INT 2Fh call to determine whether any TSR
  4091.              loaded will respond to the command, with:
  4092.  
  4093.                   AX     AE00h
  4094.                   BX     offset of command line buffer:
  4095.                             first byte = maximum length of command line
  4096.                             second byte = actual length of command line,
  4097.                               not including trailing CR
  4098.                             remainder = command line, with a trailing CR
  4099.                   CH     FFh
  4100.                   CL     length of command line, not including the command
  4101.                          name
  4102.  
  4103.         -------------------------------------------------------------------
  4104.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 67
  4105.                                          APPENDIX B / TECHNICAL INFORMATION
  4106.         -------------------------------------------------------------------
  4107.  
  4108.  
  4109.                   DX     FFFFh
  4110.                   SI     offset of command name buffer:
  4111.                             first byte = length of command name
  4112.                             remainder = command name, shifted to upper case
  4113.                               and padded with blanks to 11 characters
  4114.                   DS     segment for command line and command name buffers
  4115.  
  4116.              If the TSR does not recognize the command as its own, it must
  4117.              pass the INT 2Fh along with registers unchanged.  If it does
  4118.              recognize the command, it must return 0FFh in AL.  The command
  4119.              should not be executed at this point.  4DOS will then make
  4120.              another call (buffer formats are the same as above):
  4121.  
  4122.                   AX     AE01h
  4123.                   BX     offset of command line buffer
  4124.                   CH     0
  4125.                   CL     length of command name
  4126.                   DX     FFFFh
  4127.                   SI     offset of command name buffer
  4128.                   DS     segment for command line and command name buffers
  4129.  
  4130.              If the TSR executes the command line, it must set the command
  4131.              name length at DS:[SI] to 0.  If the command name length is
  4132.              not set to 0, 4DOS will attempt to execute the command as an
  4133.              internal or external command.  This allows the TSR to return a
  4134.              modified command line to 4DOS by modifying the command line
  4135.              buffer at DS:BX, and leaving the command name length byte at
  4136.              DS:[SI] set to a non-zero value.  If the command is executed,
  4137.              the TSR should return the result of the command (zero for
  4138.              normal return or non-zero for an error) in AL.
  4139.  
  4140.  
  4141.         Using DESCRIPT.ION
  4142.  
  4143.              4DOS uses the file DESCRIPT.ION to store file descriptions.
  4144.              This file is created as a hidden file in each subdirectory
  4145.              which has descriptions, and deleted when all descriptions are
  4146.              removed or when all files with descriptions are deleted.  If
  4147.              you remove the hidden attribute from the file, 4DOS will not
  4148.              hide it again.
  4149.  
  4150.              Your programs can access DESCRIPT.ION to create, retrieve, or
  4151.              modify file descriptions, and to store other information.
  4152.              DESCRIPT.ION has one line per file, and is unsorted.  Each
  4153.              line is in the following format:
  4154.  
  4155.                   filename.ext Description[*<ID>Other program info]...<CR>
  4156.  
  4157.              There is normally one space between the description and
  4158.              filename but additional spaces may be used in future versions
  4159.              of 4DOS.  The characters after the description allow extension
  4160.  
  4161.         -------------------------------------------------------------------
  4162.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 68
  4163.                                          APPENDIX B / TECHNICAL INFORMATION
  4164.         -------------------------------------------------------------------
  4165.  
  4166.  
  4167.              of the description format for use by other programs.  They are
  4168.              as follows:
  4169.  
  4170.                   * is an ASCII Ctrl-D (04), and marks the end of the
  4171.                   description text and the beginning of information for a
  4172.                   program other than 4DOS.  This symbol can appear multiple
  4173.                   times on each line; each occurrence marks the beginning
  4174.                   of information for another program.
  4175.  
  4176.                   <ID> is an identification byte for the program which is
  4177.                   using this area of the particular line.  If you are
  4178.                   writing a program which will store information in
  4179.                   DESCRIPT.ION, test it using an ID byte of your own
  4180.                   choosing.  When you are ready to release the program,
  4181.                   contact JP Software and we will provide you with an ID
  4182.                   byte value that is not in use by others to the best of
  4183.                   our knowledge.
  4184.  
  4185.                   Other program info is any text the program wishes to
  4186.                   store in its area of the line.  The text should relate
  4187.                   specifically to the file named on the line.  It may not
  4188.                   contain the Ctrl-D character, carriage returns, line
  4189.                   feeds, or nulls (ASCII 0s).
  4190.  
  4191.              4DOS will copy, delete, or move all the information on a line
  4192.              in DESCRIPT.ION, including  information owned by other
  4193.              programs, when performing the same action on the corresponding
  4194.              file.  4DOS will also change the name if a file is renamed.
  4195.              To support DESCRIPT.ION properly, your program must do the
  4196.              same if it copies, deletes, moves, or renames files.  Take
  4197.              care not to remove information which does not belong to your
  4198.              program, or delete lines which contain information for other
  4199.              programs.  Your program should be able to handle a line
  4200.              terminated by a CR or LF alone, a CR/LF pair, an EOF (ASCII
  4201.              26), or the physical end of the file.  The lines it creates
  4202.              should be terminated with CR / LF.  The line length limit is
  4203.              4096 bytes; exceeding this limit will cause unpredictable
  4204.              results.
  4205.  
  4206.  
  4207.         Interrupt 2E
  4208.  
  4209.              4DOS provides full, documented support for the undocumented
  4210.              COMMAND.COM "back door" entry, INT 2E (hex).  INT 2E allows
  4211.              applications to call the primary copy of the command processor
  4212.              to execute commands, without loading a secondary shell.
  4213.  
  4214.              INT 2E support is enabled by default.  It can be disabled with
  4215.              the FullINT2E = No directive in 4DOS.INI, in which case 4DOS
  4216.              "hooks" INT 2E, but any calls to it are ignored.  INT 2E
  4217.              support adds about 100 bytes to the resident size of 4DOS, and
  4218.  
  4219.         -------------------------------------------------------------------
  4220.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 69
  4221.                                          APPENDIX B / TECHNICAL INFORMATION
  4222.         -------------------------------------------------------------------
  4223.  
  4224.  
  4225.              applies only to the primary shell (it is ignored in secondary
  4226.              shells).
  4227.  
  4228.              To use INT 2E, set DS:SI to the address of a buffer containing
  4229.              the command, then issue an INT 2E.  The buffer format is:
  4230.  
  4231.                   First byte  Length of the command, not including this
  4232.                               byte or the last byte
  4233.                   Text bytes  The command text
  4234.                   Last byte   CR (ASCII 13)
  4235.  
  4236.              You must release enough memory for 4DOS to reload its
  4237.              transient portion, and provide about 80 bytes of available
  4238.              stack space for the INT 2E handler to use.  INT 2E can not be
  4239.              called from a TSR while 4DOS is running (for example, a TSR
  4240.              popped up at the 4DOS prompt or from within LIST or SELECT),
  4241.              but can be called from within any application or from within a
  4242.              TSR while an application (including the 4DOS HELP system) is
  4243.              running.
  4244.  
  4245.              INT 2E can invoke any 4DOS command including an alias, an
  4246.              internal command, an external command, or a batch file.  All
  4247.              changes to 4DOS data (such as aliases, environment variables,
  4248.              and SETDOS settings) which are made by a command executed via
  4249.              INT 2E calls will affect the primary shell, and the
  4250.              environment passed to a program called via INT 2E will be a
  4251.              copy of the primary shell's environment.
  4252.  
  4253.              INT 2E uses the same internal stack as the primary shell.  If
  4254.              a complex command is used in the primary shell to start a
  4255.              program which eventually issues an INT 2E, the additional
  4256.              stack space required by commands executed through INT 2E may
  4257.              (in rare circumstances) cause a stack overflow.  If this
  4258.              occurs, use the StackSize directive in 4DOS.INI to increase
  4259.              4DOS's internal stack space.
  4260.  
  4261.              INT 2E also uses the same batch file "stack" as the primary
  4262.              shell.  This means that if INT 2E is used to execute a batch
  4263.              file, this batch file is considered "nested" within any batch
  4264.              file(s) used in the primary shell to start the program which
  4265.              issued the INT 2E.  This may cause batch nesting errors from
  4266.              within the INT 2E call which would not occur if the same
  4267.              command were executed at the prompt.
  4268.  
  4269.              On return from INT 2E, all registers will be destroyed except
  4270.              SS and SP.  AX will be set as follows:
  4271.  
  4272.                   FFFFh  An error occurred before processing the command:
  4273.                          not enough memory was available, INT 2E was
  4274.                          called from a TSR, or another error made it
  4275.                          impossible to handle the interrupt.
  4276.  
  4277.         -------------------------------------------------------------------
  4278.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 70
  4279.                                          APPENDIX B / TECHNICAL INFORMATION
  4280.         -------------------------------------------------------------------
  4281.  
  4282.  
  4283.                   0      The command was processed without error.
  4284.  
  4285.                   > 0    There was an error in processing the command.  AX
  4286.                          is the error number, equivalent to the %_? value
  4287.                          from an internal command or the %? value from an
  4288.                          external command.  If a batch file is run, the
  4289.                          value will be the error level returned by the
  4290.                          batch file (via QUIT n or CANCEL n) or the last
  4291.                          command within it.  If an alias is run the value
  4292.                          will be the exit code returned by the last
  4293.                          command in the alias.
  4294.  
  4295.  
  4296.  
  4297.  
  4298.  
  4299.  
  4300.  
  4301.  
  4302.  
  4303.  
  4304.  
  4305.  
  4306.  
  4307.  
  4308.  
  4309.  
  4310.  
  4311.  
  4312.  
  4313.  
  4314.  
  4315.  
  4316.  
  4317.  
  4318.  
  4319.  
  4320.  
  4321.  
  4322.  
  4323.  
  4324.  
  4325.  
  4326.  
  4327.  
  4328.  
  4329.  
  4330.  
  4331.  
  4332.  
  4333.  
  4334.  
  4335.         -------------------------------------------------------------------
  4336.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 71
  4337.                                                                       Index
  4338.         -------------------------------------------------------------------
  4339.  
  4340.  
  4341.         Index                               A
  4342.  
  4343.                                             Alias list, local and global,
  4344.         Conventions:  Most fully              12, 26, 27
  4345.         capitalized terms (e.g., ECHO,      ANSI driver, 28
  4346.         SELECT) are command names               in CONFIG.SYS, 30
  4347.         unless otherwise noted.             APPEND command, 32
  4348.                                             APPNOTES.DOC, 2
  4349.                                             AUTOEXEC.BAT, 10, 16
  4350.         Special Characters                      and 4START, 16
  4351.                                                 and installation, 4, 6, 8
  4352.         ## advanced topic mark, 3               and OS/2, 47, 53, 55
  4353.         ! warning mark, 3                       and OS/2 Dual Boot and Boot
  4354.                                                   Manager, 55
  4355.         3                                       and startup command, 13
  4356.                                                 disabling, 12
  4357.         386MAX, 28                              running, 13
  4358.                                                 single-step option, 13
  4359.         4                                       starting KSTACK.COM, 8, 16
  4360.  
  4361.         4DOS for Windows NT, 1              B
  4362.         4DOS.INI, 10
  4363.             and OS/2 DOS sessions, 51,      Back & Forth, 15
  4364.               52                            Base memory, see Memory
  4365.             and OS/2 Dual Boot and Boot     Batch files, startup, 13, 16,
  4366.               Manager, 56                     35
  4367.             directives, on startup              and Microsoft Windows, 38
  4368.               command line, 11, 15          BIOS, 28
  4369.             location of, 11, 15, 52         Boot Manager, see OS/2
  4370.             prompts during execution,       BOOT.SYS, 14
  4371.               59                            Bootable disk, creating, 4
  4372.             reference information, 2
  4373.             secondary section, and          C
  4374.               multitasking, 35
  4375.         4DOS.PIF, 38                        CD-ROM drives, 31
  4376.         4EXIT, 10, 16                       Colors, in help system, 21, 30
  4377.             and 4OS2, 53                    Command history list, local and
  4378.             and OS/2, 53, 56                  global, 12
  4379.             location of, 53                 COMMAND.COM
  4380.         4HELP, see Help system                  in DOS version 2.x, 14
  4381.         4OS2, 1                                 in Microsoft Windows, 37
  4382.             and 4DOS installation, 5            in multitasker DOS windows,
  4383.         4START, 10, 16                            35
  4384.             and 4OS2, 53                    Commands
  4385.             and multitasking, 36                4DOS startup, 13, 16
  4386.             and OS/2, 53, 56                        and multitasking, 35
  4387.             and startup command, 13                 in OS/2 DOS sessions,
  4388.             location of, 53                           51
  4389.             single-step option, 13              help on, 19
  4390.                                                 programming interface, 67
  4391.                                                 reference information, 2
  4392.  
  4393.         -------------------------------------------------------------------
  4394.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 72
  4395.                                                                       Index
  4396.         -------------------------------------------------------------------
  4397.  
  4398.  
  4399.         Compatibility, 23                   Configuration, 10
  4400.             and disks, 30                       troubleshooting, 64
  4401.             and memory, 24                  Coprocessor, see Numeric
  4402.             and the CPU, 23                   coprocessor
  4403.             and video hardware and          CPU, 23
  4404.               software, 28                  Critical errors, 12, 15
  4405.             solving problems, 58            Cursor shape, 29
  4406.             with DOS, 32
  4407.             with Microsoft Windows, 37      D
  4408.             with Microsoft Windows 95,
  4409.               39                            DBLSPACE, 31
  4410.             with multitasking software,     DEL, speed of, 31
  4411.               34                            Descriptions, see File
  4412.             with networks, 44                 descriptions
  4413.             with Novell Netware, 45         DESQview, 15, 34
  4414.         Compressed drives, 31               Detecting 4DOS, 65
  4415.             and installation, 5             DIR, speed of, 31
  4416.         COMSPEC                             Directory history list, local
  4417.             environment variable, 17          and global, 12
  4418.                 and disk swapping, 19       Directory scans, and Novell
  4419.                 and DOS FORMAT /S, 32         Netware, 45
  4420.                 and multitaskers, 35        Disk drives, 30
  4421.                 checking, 17                    free space on, on networks,
  4422.                 setting automatically,            45
  4423.                   11, 17                        swapping to, 17
  4424.                 setting manually, 9, 17     Disk reset, 31
  4425.             path, 7, 11, 17                 @DISKFREE variable function,
  4426.                 and OS/2 DOS sessions,        on networks, 45
  4427.                   11, 51, 52                Diskless workstations, 44
  4428.         CONFIG.SYS, 10                      @DISKTOTAL variable function,
  4429.             4DOS commands in, 11              on networks, 45
  4430.             and ANSI driver, 30             @DISKUSED variable function,
  4431.             and DOS bug, 14                   on networks, 45
  4432.             and installation, 4, 6, 7       DOS, see also MS-DOS / PC-DOS;
  4433.             in OS/2, 47                       Novell DOS
  4434.                 Dual Boot and Boot              memory, see Memory
  4435.                   Manager, 55                   shell, 1
  4436.                 location of, 55                 version 2.x, 14
  4437.             multiple configuration              versions of, 1
  4438.               utilities, 6, 32              DOS sessions, see OS/2 DOS
  4439.             SET commands in, 32               sessions
  4440.             SHELL=, 11                      DOS version 2.x, 14
  4441.                 and installation, 7         DOS=UMB, in CONFIG.SYS, 28
  4442.                 and multiple                DOS_SHELL, see OS/2 DOS
  4443.                   configuration               sessions
  4444.                   utilities, 14             DR DOS, see Novell DOS
  4445.                 in DOS version 2.x, 15      DRAWBOX, 29
  4446.                 in OS/2, 49, 52, 57         DRAWHLINE, 29
  4447.                 in OS/2 1.x, 48             DRAWVLINE, 29
  4448.                 length of, 14               Drive, see Disk drives
  4449.                                             Dual Boot, see OS/2
  4450.  
  4451.         -------------------------------------------------------------------
  4452.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 73
  4453.                                                                       Index
  4454.         -------------------------------------------------------------------
  4455.  
  4456.  
  4457.         E                                   Installable commands, 67
  4458.                                             Installation, 4
  4459.         EGA, 29, 30                             and DOS 2.x, 4
  4460.         EMS, see Memory                         and OS/2 Dual Boot and Boot
  4461.         Environment                               Manager, 5
  4462.             loading in UMBs, 27                 automated, 6
  4463.             memory space for, 12, 15            directory for, 4
  4464.             size of, and compatibility          manual, 7
  4465.               problems, 59                      of downloaded updates, 4, 7
  4466.         Expanded memory, see Memory             on diskettes, 7
  4467.         Extended memory, see Memory             preparations
  4468.                                                     under DOS, 4
  4469.         F                                           under OS/2, 5
  4470.                                                 reversing, 8
  4471.         File descriptions                       stopping, 7
  4472.             and disk performance, 31        INT 2E, 69
  4473.             programming for, 68             INT 2F, 65
  4474.         File names, long, 42
  4475.         File names, on networks, 44         K
  4476.         File passwords, in Novell DOS,
  4477.           33                                KEYSTACK
  4478.         Floppy disks, 30, 31                    and multitasking, 36
  4479.         FORMAT /S command, 32                   programming interface, 66
  4480.         Free memory, see Memory             KSTACK.COM, 8, 16
  4481.         FREE, on networks, 45                   and multitasking, 36
  4482.                                                 and Windows 95, 43
  4483.         G
  4484.                                             L
  4485.         Guided tour, 1, 6, 7
  4486.                                             LH, 27
  4487.         H                                   LIST, 29
  4488.                                             LOADHIGH, 27
  4489.         Hard drives, 30                     Local and global aliases and
  4490.         Hardware compatibility, see           histories, 12
  4491.           Compatibility                     Local and global aliases and
  4492.         Help system, 2, 19                    history, 26, 27
  4493.             /? option, 20                   Long file names, 42
  4494.             and monochrome monitor, 30
  4495.             colors, 21                      M
  4496.             configuring, 21
  4497.             keystrokes, 20                  Master environment, see
  4498.             location of files, 21             Environment
  4499.             options, 22, 30                 Memory, 24, 26
  4500.         HELPCFG, see Help system                allocation conflicts, 62
  4501.         History list, local and global,             and networks, 64
  4502.           26, 27                                    and Windows, 63
  4503.         HMA, see Memory                         base, 24
  4504.                                                 checking status, 26
  4505.         I                                       expanded (EMS), 24, 25
  4506.                                                     hardware, 28
  4507.         .INI file, see 4DOS.INI                     swapping to, 17, 27
  4508.  
  4509.         -------------------------------------------------------------------
  4510.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 74
  4511.                                                                       Index
  4512.         -------------------------------------------------------------------
  4513.  
  4514.  
  4515.         Memory (continued)                  N
  4516.             extended, 25
  4517.                 4DOS's use of, 26           Networks, 44
  4518.             extended (XMS), 25                  disk access problems on, 31
  4519.                 4DOS's use of, 26               disk space calculations on,
  4520.                 swapping to, 17                   45
  4521.             high memory area (HMA), 25          disk swapping on, 45
  4522.             problems with, 26                   diskless workstations on,
  4523.             upper, 24                             44
  4524.             upper memory blocks (UMBs),         file and directory names
  4525.               25                                  on, 44
  4526.                 4DOS's use of, 27           Novell DOS, 11, 25, 32
  4527.                 and Windows, 63                 and LOADHIGH, 33
  4528.                 regions, 28                     memory management, 27
  4529.                 system requirements             passwords, 33
  4530.                   for, 27                   Novell Netware, 45
  4531.             used by 4DOS, 17, 26                diskless workstations on,
  4532.         Memory resident programs, see             46
  4533.           TSRs                              Numeric coprocessor, 24
  4534.         Menus, in CONFIG.SYS, 32
  4535.         Microsoft Windows, 35, 37, 39       O
  4536.             and batch files, 38
  4537.             and compatibility, 63           Options, see Startup Options
  4538.             and secondary shells, 15        OS/2, 47
  4539.         Microsoft Windows 95                    4OS2 product, 1
  4540.             4DOS as primary shell, 40           and 4EXIT, 53
  4541.             and KSTACK.COM, 43                  and 4START, 53
  4542.             boot sequence, 39                   and AUTOEXEC.BAT, 47, 53
  4543.             long file names, 42                 and COMSPEC path, 11, 51,
  4544.             starting 4DOS from, 41                52
  4545.         Monochrome monitor, and help            CONFIG.SYS file, 11, 47
  4546.           system, 22, 30                        Desktop menu, 52
  4547.         Mouse, in help system, 22               DOS sessions, 48
  4548.         MS-DOS / PC-DOS, 32                         and .INI file, 52
  4549.             APPEND command, 32                      and 4DOS, 50
  4550.             bug in CONFIG.SYS                       DOS_SHELL setting, 49,
  4551.               processing, 14                          51, 52
  4552.             FORMAT /S command, 32                   settings for, 49
  4553.             memory management, 25, 27,              startup commands for,
  4554.               28                                      51
  4555.             version 2.x, 4                      Dual Boot and Boot Manager,
  4556.             version 6.x, 13, 14                   47, 54
  4557.         Multiple configuration                      and 4DOS installation,
  4558.           utilities, 6, 14, 32                        5
  4559.         Multitasking software, 34                   and 4DOS.INI, 56
  4560.             4DOS windows in, 35                     and 4EXIT, 56
  4561.             and COMSPEC, 35                         and 4START, 56
  4562.             and disk swapping, 37                   and AUTOEXEC.BAT, 55
  4563.             and KEYSTACK, 36                        and CONFIG.SYS, 55
  4564.             Microsoft Windows, 37                   file locations, 55
  4565.             Microsoft Windows 95, 39            installing 4DOS for, 5
  4566.  
  4567.         -------------------------------------------------------------------
  4568.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 75
  4569.                                                                       Index
  4570.         -------------------------------------------------------------------
  4571.  
  4572.  
  4573.         OS/2 (continued)                    Shell (continued)
  4574.             temporary VDMs, 51, 53              secondary
  4575.             version 1.x, 48                         and multitasking, 34,
  4576.             version 2.x, 48                           35
  4577.             Warp, 48                                startup options, 15
  4578.                                                     swap size, 17
  4579.         P                                           to run a single
  4580.                                                       command, 16
  4581.         Passwords, in Novell DOS, 33        Software compatibility, see
  4582.         PATH, length of, 59                   Compatibility
  4583.         Primary shell, see Shell            Software interactions, 60
  4584.         Programming, for 4DOS, see          Stacker, 31
  4585.           Technical Information             Startup options
  4586.                                                 //iniline, 11, 15, 35, 52
  4587.         Q                                       /C, 16, 51
  4588.                                                 /D, 12
  4589.         QEMM, 28                                /E, 12, 15
  4590.         Quick help, 20                          /F, 12, 15
  4591.                                                 /K, 13, 16
  4592.         R                                       /L, /LA, /LD, and /LH, 12,
  4593.                                                   15
  4594.         RAM, see Memory                         /P, 13
  4595.         RAM disk, 26                            /Y, 13
  4596.             swapping to, 17                     @inifile, 11, 15, 35, 52
  4597.         README.1ST file, 6                      commands in, 13, 16
  4598.         Reference information, 2                primary shell, 11
  4599.         Reference manual, 2                     secondary shell, 15
  4600.         Resident portion (of 4DOS), 17,     SuperStor, 31
  4601.           26                                Support, 3
  4602.             loading in UMBs, 27             Swapping
  4603.                                                 and compatibility, 26
  4604.         S                                       and multitasking software,
  4605.                                                   37
  4606.         Screen, 28                              file names used by, 18, 37
  4607.             size, 29                            on networks, 45
  4608.         SCRPUT, 29                              types of, 17
  4609.         Secondary shell, see Shell
  4610.         SELECT, 29                          T
  4611.         SET, in CONFIG.SYS, 32
  4612.         Shell                               Task switching software, see
  4613.             DOS shell, 1                      Multitasking software
  4614.             primary                         Technical information, 65
  4615.                 and multitasking, 34,           DESCRIPT.ION, 68
  4616.                   37                            detecting 4DOS, 65
  4617.                 in OS/2, 53                     installable commands, 67
  4618.                 startup options, 11             INT 2E, 69
  4619.                 swap size, 17                   KEYSTACK, 66
  4620.                                             Technical support, 3
  4621.                                             Transient portion (of 4DOS),
  4622.                                               17, 26
  4623.  
  4624.  
  4625.         -------------------------------------------------------------------
  4626.         Copr. 1995 JP Software Inc.   4DOS Intro. & Installation Guide / 76
  4627.                                                                       Index
  4628.         -------------------------------------------------------------------
  4629.  
  4630.  
  4631.         TSRs, 23
  4632.             and compatibility, 60
  4633.             and multitasker startup
  4634.               files, 35
  4635.             and OS/2 DOS sessions, 54
  4636.             loading order, 61
  4637.  
  4638.         U
  4639.  
  4640.         UltraVision, 30
  4641.         UMBs, see Memory
  4642.         Uninstalling 4DOS, 8
  4643.  
  4644.         V
  4645.  
  4646.         VDM, see OS/2
  4647.         VGA, 29, 30
  4648.         Video hardware, 28
  4649.         VSCRPUT, 29
  4650.  
  4651.         W
  4652.  
  4653.         Wildcards, and DEL speed, 31
  4654.         Windows, see Microsoft Windows;
  4655.           Microsoft Windows 95
  4656.         Windows NT, 4DOS/NT product, 1
  4657.  
  4658.         X
  4659.  
  4660.         XMS, see Memory
  4661. 
  4662.