home *** CD-ROM | disk | FTP | other *** search
/ Chip Hitware 3 / Chip_Hitware_Vol_03.iso / chiphit3 / win95 / tool / takecomm / tcmd32.doc < prev    next >
Text File  |  1995-08-21  |  64KB  |  1,453 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                                     Take Command/32
  9.  
  10.                                      for Windows NT
  11.                                      and Windows 95
  12.  
  13.  
  14.  
  15.                                       Version 1.01
  16.  
  17.  
  18.                           Introduction and Installation Guide
  19.  
  20.  
  21.  
  22.  
  23.  
  24.                                       Developed By
  25.                                 Rex Conn and Tom Rawson
  26.  
  27.                                     Documentation By
  28.                        Hardin Brothers, Tom Rawson, and Rex Conn
  29.  
  30.  
  31.  
  32.  
  33.                                       Published By
  34.  
  35.                                     JP Software Inc.
  36.                                      P.O. Box 1470
  37.                                 East Arlington, MA 02174
  38.                                          U.S.A.
  39.                                      (617) 646-3975
  40.                                    fax (617) 646-0904
  41.  
  42.  
  43.  
  44.  
  45.  
  46.                                   ACKNOWLEDGMENTS
  47.  
  48.  
  49.              We couldn't produce a product like Take Command without the
  50.              dedication and quality work of many people.  Our thanks to:
  51.  
  52.                   JP Software Staff:  Christine Alves, Mike Bessy, Michael
  53.                   Hart, Ellen Stone, Misty White.
  54.  
  55.                   Beta Test Support:  David Moskowitz and the sysops of
  56.                   CompuServe's CONSULT forum.
  57.  
  58.                   Online Support:  Brian Miller and Tess Heder of Channel 1
  59.                   BBS; Don Watkins of CompuServe's IBMNET.
  60.  
  61.                   Beta Testers:  We can't list all of our beta testers
  62.                   here.  A special thanks to all of you who helped make
  63.                   Take Command elegant, reliable, and friendly!
  64.  
  65.  
  66.  
  67.              The following tools are used in creating and maintaining Take
  68.              Command:
  69.  
  70.                   Compilers:       Microsoft Visual C++, Microsoft Macro
  71.                                    Assembler
  72.                   Editors:         Edix (Emerging Technology), Brief
  73.                                    (Solution Systems)
  74.                   Version Control: PVCS (Intersolv)
  75.                   Documentation:   Microsoft Word for Windows with Adobe
  76.                                    Type Manager
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.              Copyright 1995, JP Software Inc., All Rights Reserved.  "Take
  85.              Command," "4OS2," and "JP Software" are trademarks and "4DOS"
  86.              is a registered trademark of JP Software Inc.  Other product
  87.              and company names are trademarks of their respective owners.
  88.  
  89.                                                                        8-95
  90.                                                                    Contents
  91.         -------------------------------------------------------------------
  92.  
  93.  
  94.  
  95.         Contents
  96.  
  97.  
  98.         Introduction...............................................1
  99.             How to Use This Manual.................................3
  100.             Customer Service and Technical Support.................4
  101.  
  102.         Chapter 1 / Installation...................................5
  103.             Installing Take Command................................5
  104.             Changes Made During Installation.......................6
  105.             Manual Installation....................................6
  106.             Uninstalling Take Command..............................8
  107.  
  108.         Chapter 2 / Configuration.................................10
  109.             Creating and Configuring Take Command Items...........10
  110.             Take Command Startup Options..........................11
  111.             Configuring Take Command..............................12
  112.             TCSTART, TCEXIT, and Startup Commands.................13
  113.  
  114.         Chapter 3 / Using Take Command............................16
  115.             Using a Windows Command Line..........................16
  116.             Take Command and Windows..............................17
  117.             Character-Mode Applications...........................18
  118.             Take Command, 4DOS, and 4DOS for Windows NT...........19
  119.                 Using 4DOS Batch Files and Aliases................20
  120.  
  121.         Index.....................................................22
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.         -------------------------------------------------------------------
  146.         Copr. 1995 JP Software Inc.   Take Command/32 Intro./Inst. Guide  i
  147.                                                                INTRODUCTION
  148.         -------------------------------------------------------------------
  149.  
  150.  
  151.  
  152.         INTRODUCTION
  153.  
  154.  
  155.         Welcome, and thanks for purchasing Take Command!
  156.  
  157.         We developed Take Command/32 to bring the power and convenience of
  158.         our popular 4DOS and 4OS2 programs to Windows NT and Windows 95
  159.         users.  Whether you are a computer novice or an experienced user,
  160.         Take Command/32 will help you get the most out of your Windows
  161.         system.
  162.  
  163.         You're probably already familiar with graphical applications
  164.         running under Windows NT or Windows 95, and with the command line,
  165.         but you may not be used to seeing them combined in one product.
  166.         Most Windows applications offer limited command-line capability at
  167.         best, and most command-line utilities aren't designed for a
  168.         graphical environment like Windows.
  169.  
  170.         We designed Take Command to give you the best of both worlds.
  171.         You'll probably find it most useful when you need to perform tasks
  172.         like managing your hard disk, scripting a series of steps with an
  173.         alias or batch file, or starting applications under Windows.  There
  174.         are graphical utilities that perform some of these tasks, but often
  175.         you may find it more convenient or productive to perform them from
  176.         the command line. Take Command also looks and feels like the other
  177.         Windows programs you use, unlike a character-mode session.
  178.  
  179.         Take Command offers a host of features that couldn't exist at all
  180.         in a character-mode command-line utility.  For example you can pop
  181.         up simple dialogs from a batch file, pass keystrokes to Windows
  182.         applications, use a Windows-based dialog to find files or text on
  183.         any of your disks, or configure Take Command with dialogs instead
  184.         of editing an .INI file.
  185.  
  186.         If you are familiar with the traditional command prompt, or with
  187.         4DOS, 4OS2, or 4DOS for Windows NT, you won't have to change your
  188.         computing habits or unlearn anything to use Take Command.  If you
  189.         know how to use commands to display a directory, copy a file, or
  190.         start an application program, you already know how to use Take
  191.         Command.  And if you are a 4DOS or 4DOS for Windows NT user, you
  192.         already know how to use most of the advanced features that we have
  193.         built into Take Command.  You can even use many of your 4DOS/NT
  194.         batch files with Take Command (see page 20 or the online help for
  195.         tips about making batch files work properly in both environments).
  196.  
  197.         Once you have Take Command installed, you can learn its new
  198.         features at your own pace.  Relax, enjoy Take Command's power, and
  199.         browse through the manuals occasionally.  Press the F1 key whenever
  200.  
  201.  
  202.         -------------------------------------------------------------------
  203.         Copr. 1995 JP Software Inc.   Take Command/32 Intro./Inst. Guide  1
  204.                                                                INTRODUCTION
  205.         -------------------------------------------------------------------
  206.  
  207.  
  208.         you need help.  Take Command will soon become an essential part of
  209.         your computer, and you'll wonder how you ever got along without it.
  210.  
  211.         We are constantly working to improve Take Command.  If you have
  212.         suggestions for features or commands that we should include in the
  213.         next version, or any other way we could improve our product, please
  214.         let us know.  Many of the features in Take Command were suggested
  215.         by our users.  We can't promise to include every suggestion, but we
  216.         really do appreciate and pay attention to your comments.
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.         -------------------------------------------------------------------
  260.         Copr. 1995 JP Software Inc.   Take Command/32 Intro./Inst. Guide  2
  261.                                                                INTRODUCTION
  262.         -------------------------------------------------------------------
  263.  
  264.  
  265.  
  266.  
  267.         How to Use This Manual
  268.  
  269.              This manual is only one part of the documentation that you
  270.              will need for Take Command.  It introduces the product and
  271.              will help you install it correctly on your computer.  It will
  272.              also help you understand some of the terms and concepts that
  273.              you will need to know to get the most from Take Command.
  274.  
  275.              JP Software also offers a version of Take Command for Windows
  276.              3.1, and may produce versions for other platforms in the
  277.              future.  Except where we specifically say otherwise, in this
  278.              manual the terms "Take Command" and "Take Command/32" are used
  279.              interchangeably to refer to the 32-bit version of Take Command
  280.              for Microsoft Windows NT and Windows 95.
  281.  
  282.              If you are a 4DOS/NT user, or you use the Windows NT or
  283.              Windows 95 "MS-DOS Prompt" icon to do command-line work, be
  284.              sure to read Chapter 3 before using Take Command.  It will
  285.              give you a feel for some of the differences between a
  286.              character-mode command processor and a Windows-based one.
  287.  
  288.              Take Command/32 includes complete online help for all of its
  289.              built-in commands.  The online help provides information about
  290.              the commands and features of Take Command in an electronic
  291.              form which you can access quickly.  See page 14 for more
  292.              details about using the online help.
  293.  
  294.              The final part of our documentation is the separate Reference
  295.              Manual for Take Command.  It contains all of the information
  296.              in the online help, in printed form.  The Reference Manual is
  297.              sometimes sold separately from Take Command, so you may not
  298.              find it in your package.  If that's the case, use this manual
  299.              to get started, and use the online help for reference
  300.              information.
  301.  
  302.              You should start with this introductory manual to install Take
  303.              Command on your system.  Once you have successfully installed
  304.              Take Command, you can move back and forth between this manual
  305.              and the online help and Reference Manual.
  306.  
  307.              For the sake of clarity, we have chosen not to indicate each
  308.              of the dozens of places in this manual where you can refer to
  309.              the Reference Manual or online help for additional
  310.              information.  If you see a reference here to a command, the
  311.              initialization file TCMD32.INI, or any Take Command feature,
  312.              you can be sure that detailed information on that topic is
  313.              available in the reference material.
  314.  
  315.  
  316.         -------------------------------------------------------------------
  317.         Copr. 1995 JP Software Inc.   Take Command/32 Intro./Inst. Guide  3
  318.                                                                INTRODUCTION
  319.         -------------------------------------------------------------------
  320.  
  321.  
  322.              Files distributed with Take Command/32 cover important
  323.              additional information beyond what's included in the manuals.
  324.              README.DOC contains general notes, highlights of the latest
  325.              release, and brief installation instructions for those
  326.              installing from a downloaded copy, and UPDATxx.DOC contains
  327.              detailed information for users with older versions on what has
  328.              changed in the latest release ("xx" is the version number).
  329.  
  330.              You will likely find some parts of the documentation too
  331.              simple or too technical for your tastes.  Unless you are
  332.              convinced that one of those sections holds just the
  333.              information you need for a specific task, feel free to skip to
  334.              the next part of the manual that is more to your liking.  You
  335.              can use almost every feature of Take Command without having to
  336.              worry about other features or commands.
  337.  
  338.  
  339.         Customer Service and Technical Support
  340.  
  341.              Technical support is available via public electronic support
  342.              conferences, private electronic mail, telephone, fax, and
  343.              mail.  For complete details, including a listing of electronic
  344.              support conferences, see the Support topic in the online help,
  345.              or your Reference Manual.
  346.  
  347.              Customer service is always available through the telephone and
  348.              fax numbers listed on the title page of this manual.  See your
  349.              Reference Manual or the online help for electronic mail
  350.              addresses for our Sales and Customer Service departments.
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.         -------------------------------------------------------------------
  374.         Copr. 1995 JP Software Inc.   Take Command/32 Intro./Inst. Guide  4
  375.                                                    CHAPTER 1 / INSTALLATION
  376.         -------------------------------------------------------------------
  377.  
  378.  
  379.  
  380.         CHAPTER 1 / INSTALLATION
  381.  
  382.  
  383.  
  384.         Installing Take Command
  385.  
  386.              To install Take Command you must run the INSTALL program on
  387.              your Take Command distribution disk.  INSTALL will copy the
  388.              files from the diskette to your hard disk, create a Windows
  389.              icon to run Take Command, and make any other changes necessary
  390.              for Take Command to run properly on your system.
  391.  
  392.              If you're installing a downloaded copy you will not have an
  393.              INSTALL program.  Instead, use the appropriate decompression
  394.              program (for example, PKUNZIP) to extract the files from your
  395.              download into a new directory.  Then follow the instructions
  396.              on page 6 to complete your installation.  If you are updating
  397.              from a previous version, check the README.DOC file for update
  398.              instructions.
  399.  
  400.              To begin the installation process, put the Take Command/32
  401.              distribution diskette in drive A.  (You can use drive B if you
  402.              prefer, in which case you should substitute "b" for "a" in the
  403.              instructions below.)  Use the Program Manager's File Run
  404.              option to enter the command:
  405.  
  406.                   a:install
  407.  
  408.              Then press the Enter key.
  409.  
  410.              Once the installation program has started, just follow the
  411.              instructions on the screen to install Take Command on your
  412.              system.  Use Express Installation for a quick and simple
  413.              installation with default settings, or use Custom Installation
  414.              for finer control over the installation process.
  415.  
  416.              You can exit from the installation program at any time by
  417.              pressing Esc, then pressing "Y" in response to the next
  418.              prompt.
  419.  
  420.              The Take Command files are contained in a special library file
  421.              on the distribution diskette.  You cannot simply copy the
  422.              files from the diskette onto your system.  You must use
  423.              INSTALL to extract and decompress the Take Command files even
  424.              if you want to perform a manual installation (see below), or
  425.              if you need to replace a damaged Take Command file on your
  426.              hard disk.
  427.  
  428.  
  429.  
  430.         -------------------------------------------------------------------
  431.         Copr. 1995 JP Software Inc.   Take Command/32 Intro./Inst. Guide  5
  432.                                                    CHAPTER 1 / INSTALLATION
  433.         -------------------------------------------------------------------
  434.  
  435.  
  436.              If you also have our DOS command processor, 4DOS, do not
  437.              install Take Command in the same directory as 4DOS.  Some file
  438.              names (for example README.DOC) are the same in both products,
  439.              and the files should be kept separate to avoid confusion.
  440.  
  441.  
  442.         Changes Made During Installation
  443.  
  444.              Some Windows installation programs make changes to your system
  445.              which are difficult to find or modify.  While the Take Command
  446.              installation program makes few such changes, we know you may
  447.              feel more comfortable knowing exactly what is done to your
  448.              system and Windows configuration when you install Take
  449.              Command.
  450.  
  451.              Take Command's installation program takes the following steps.
  452.              Step (1) is always performed once you select a drive and
  453.              directory.  Express Installation selects steps (2) through (4)
  454.              automatically.  Custom Installation asks you to confirm steps
  455.              (2) through (4) individually.
  456.  
  457.                   1)Copy all Take Command files to a hard disk directory
  458.                     of your choice.
  459.  
  460.                   2)Brand your copy of Take Command with your name and
  461.                     serial number.
  462.  
  463.                   3)Copy the CTL3D32.DLL file to the \WINNT\SYSTEM32
  464.                     directory, unless a newer version is already present
  465.                     in that directory.
  466.  
  467.                   4)Create a Program Manager group for Take Command, and
  468.                     add items to that group for Take Command itself and
  469.                     for the online documentation.
  470.  
  471.  
  472.         Manual Installation
  473.  
  474.              There is little difference between manual and automated
  475.              installation for Take Command.  The Custom Installation option
  476.              will query you before any files are copied or existing files
  477.              are deleted or modified, so there is no real advantage to
  478.              performing these steps manually.  However if you prefer a
  479.              manual installation, you can extract the Take Command files
  480.              using the Custom Installation option, then follow the
  481.              instructions below.
  482.  
  483.              You must use manual installation if you have a downloaded copy
  484.              of Take Command (for downloaded copies, see the README.DOC
  485.  
  486.  
  487.         -------------------------------------------------------------------
  488.         Copr. 1995 JP Software Inc.   Take Command/32 Intro./Inst. Guide  6
  489.                                                    CHAPTER 1 / INSTALLATION
  490.         -------------------------------------------------------------------
  491.  
  492.  
  493.              file for any installation or update instructions specific to
  494.              the version you downloaded).
  495.  
  496.              To install Take Command/32 manually, first extract the files
  497.              to a directory on your hard disk.  We recommend that you use a
  498.              new directory for Take Command/32.  It can be on any hard disk
  499.              drive, and you can use any valid directory name.  After the
  500.              files are extracted, use the Esc key to exit from the
  501.              installation program.
  502.  
  503.              Next, install CTL3D32.DLL.  CTL3D32 is a Microsoft library
  504.              which gives a 3-dimensional appearance to some elements of the
  505.              Windows display for programs (like Take Command) that use it.
  506.              Use File Manager or a Windows DOS session to install
  507.              CTL3D32.DLL as follows:
  508.  
  509.                   * Check the date and time on the copy of CTL3D32.DLL
  510.                     that came with Take Command.  Then check your
  511.                     \WINNT\SYSTEM32 directory for the same file.
  512.  
  513.                   * If the version that came with Take Command is newer
  514.                     than the version in \WINNT\SYSTEM32, or if the file
  515.                     does not exist at all in \WINNT\SYSTEM32, then copy
  516.                     the newer version from the Take Command directory to
  517.                     the \WINNT\SYSTEM32 directory.  If the version in the
  518.                     \WINNT\SYSTEM32 directory is newer, leave it as-is.
  519.  
  520.                   * Delete the CTL3D32.DLL file from the Take Command
  521.                     directory.  This ensures that you do not have multiple
  522.                     copies of CTL3D32 on your system.  CTL3D32 only works
  523.                     properly if there is a single copy in the
  524.                     \WINNT\SYSTEM32 directory; if you have more than one
  525.                     copy you will receive an error when Take Command
  526.                     starts.
  527.  
  528.              Finally, under Windows NT use the following steps to create a
  529.              Take Command/32 item in the Program Manager's Main group (you
  530.              can use a different group or create a new group if you
  531.              prefer):
  532.  
  533.                   * Select the "Main" group.
  534.  
  535.                   * Select the Program Manager "File" menu.
  536.  
  537.                   * Select "New."
  538.  
  539.                   * Select "Program item."
  540.  
  541.                   * Enter "Take Command," or any other title you desire,
  542.                     in the Description field.
  543.  
  544.         -------------------------------------------------------------------
  545.         Copr. 1995 JP Software Inc.   Take Command/32 Intro./Inst. Guide  7
  546.                                                    CHAPTER 1 / INSTALLATION
  547.         -------------------------------------------------------------------
  548.  
  549.  
  550.                   * Enter the full path and name for TCMD32.EXE in the
  551.                     Command Line field (for example,
  552.                     C:\TCMD32\TCMD32.EXE).
  553.  
  554.                   * Enter the directory in which you want the Take Command
  555.                     window to start (if any) in the Working Directory
  556.                     field.
  557.  
  558.                   * Click on "OK" to accept the entry.
  559.  
  560.              Under Windows 95, use these steps to create a new shortcut for
  561.              Take Command/32 on the desktop:
  562.  
  563.                   * Click with mouse button 2 in any open area of the
  564.                     desktop
  565.  
  566.                   * On the popup menu click New, then Shortcut.
  567.  
  568.                   * Fill in the drive and path for TCMD32.EXE, and any
  569.                     other items you wish to set (no specific settings are
  570.                     required).
  571.  
  572.              Once the item or shortcut is created Take Command/32 will
  573.              start when you double-click the corresponding icon on the
  574.              desktop.  You can place any necessary commands or other
  575.              directives (e.g. @ininame to name a specific INI file) on the
  576.              startup command line (see page 11 for details).
  577.  
  578.              Take Command reads its configuration information from a file
  579.              named TCMD32.INI, normally stored in the Take Command
  580.              directory.  You can modify the first section of this file,
  581.              which begins with [TakeCommand], to configure Take Command to
  582.              meet your preferences; see page 12 for details.
  583.  
  584.  
  585.         Uninstalling Take Command
  586.  
  587.              We don't expect you to have trouble using Take Command, but we
  588.              know some people feel more comfortable knowing how to
  589.              uninstall a product as well as install it.  Or, you may need
  590.              to remove Take Command from one system to move it to another
  591.              system.
  592.  
  593.              To remove Take Command, just insert the distribution diskette,
  594.              start the INSTALL program as described on page 5, and select
  595.              the Uninstall Take Command option.  Uninstall will offer you
  596.              several options which "undo" the corresponding steps in the
  597.              installation procedure.  Complete Uninstall will take all of
  598.              the other steps automatically, and remove Take Command
  599.              entirely from your system.
  600.  
  601.         -------------------------------------------------------------------
  602.         Copr. 1995 JP Software Inc.   Take Command/32 Intro./Inst. Guide  8
  603.                                                    CHAPTER 1 / INSTALLATION
  604.         -------------------------------------------------------------------
  605.  
  606.  
  607.              The Uninstall option will attempt to reverse the changes made
  608.              during installation.  However if you have removed files,
  609.              changed group, item, or folder names, or otherwise modified
  610.              your system configuration, then the program may not be able to
  611.              complete all of the steps automatically or successfully.  In
  612.              this case you will need to perform some of them manually.
  613.  
  614.              To uninstall Take Command manually, first delete CTL3D32.DLL
  615.              from the \WINNT\SYSTEM32 or \WINDOWS\SYSTEM32 directory if you
  616.              are certain it is not in use by other applications (because
  617.              CTL3D32 is used fairly widely, in most cases you should not
  618.              delete it).  If you were using Take Command as your Windows
  619.              shell there will be a copy of TC32DLL.DLL in the same
  620.              directory; you can delete it as well.
  621.  
  622.              Use Program Manager (in Windows NT) or the Explorer (in
  623.              Windows 95) to remove any Take Command groups and / or items.
  624.  
  625.              Finally, check the Take Command directory for any files you
  626.              placed there that you want to save.  Use File Manager,
  627.              Explorer, or a DOS session to delete the remaining files from
  628.              the Take Command directory, and remove the directory.
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.         -------------------------------------------------------------------
  659.         Copr. 1995 JP Software Inc.   Take Command/32 Intro./Inst. Guide  9
  660.                                                   CHAPTER 2 / CONFIGURATION
  661.         -------------------------------------------------------------------
  662.  
  663.  
  664.  
  665.         CHAPTER 2 / CONFIGURATION
  666.  
  667.  
  668.         This chapter explains how you can tune Take Command to make it as
  669.         efficient and as useful as possible in your computing environment.
  670.         If Take Command works the way you want it to after installation,
  671.         you can skip this chapter.  You may, however, want to skim this
  672.         material to see what options are available.
  673.  
  674.         This chapter explains how to set up Take Command items in your
  675.         Windows groups, using the Take Command startup command line and
  676.         startup batch files, and the basics of configuring Take Command.
  677.         For more details on all of these topics, including complete
  678.         reference information on the configuration options and TCMD32.INI,
  679.         see your Reference Manual or online help.
  680.  
  681.  
  682.         Creating and Configuring Take Command Items
  683.  
  684.              You will typically start Take Command/32 from an item in one
  685.              of the Program Manager groups on your Windows NT desktop, or a
  686.              shortcut or folder on your Windows 95 desktop.  Usually a
  687.              single item is sufficient, but if you prefer you can create
  688.              multiple items to start Take Command with different startup
  689.              commands or options, or to run different batch files or other
  690.              commands.  You can use these items to run commonly-used
  691.              commands and batch files directly from the desktop.
  692.  
  693.              Each item or icon represents a different Take Command window.
  694.              Use the Properties screen for the item to set any necessary
  695.              command line parameters such as a command to be executed, any
  696.              desired switches, or the name and path for TCMD32.INI.  More
  697.              information on command line switches and options for Take
  698.              Command is included later in this section.
  699.  
  700.              For general information on creating and configuring desktop
  701.              items, see your Windows NT or or Windows 95 documentation.
  702.  
  703.              When you configure a Take Command item, place the full path
  704.              and name for TCMD32.EXE in the Command Line field, and put any
  705.              startup options that you want passed to Take Command (e.g.,
  706.              the name of a startup batch file) after the TCMD32.EXE file
  707.              name.  For example:
  708.  
  709.                   Command Line:       C:\TCMD32\TCMD32.EXE C:\GO.BAT
  710.                   Working directory:  C:\
  711.  
  712.              You do not need to use the Change Icon button, because
  713.              TCMD32.EXE already contains an icon.
  714.  
  715.         -------------------------------------------------------------------
  716.         Copr. 1995 JP Software Inc.  Take Command/32 Intro./Inst. Guide  10
  717.                                                   CHAPTER 2 / CONFIGURATION
  718.         -------------------------------------------------------------------
  719.  
  720.  
  721.              When Take Command starts it automatically runs the optional
  722.              TCSTART batch file (see page 13).  You can use this file to
  723.              load aliases and environment variables and otherwise
  724.              initialize Take Command.
  725.  
  726.              You can also place the name of a batch file, internal or
  727.              external command, or alias at the end of the Command Line
  728.              field for any item (as shown in the example above).  The batch
  729.              file, command, or alias will be executed after TCSTART, but
  730.              before the first prompt is displayed.
  731.  
  732.  
  733.         Take Command Startup Options
  734.  
  735.              Each Windows NT or Windows 95 program has a command line which
  736.              can be used to pass information to the program when it starts.
  737.              The command line is entered in the Command Line field for each
  738.              item in a Program Manager group, and consists of the name of
  739.              the program to execute, followed by any startup options.
  740.  
  741.              The Take Command startup command line does not need to contain
  742.              any information.  When invoked with an empty command line,
  743.              Take Command will configure itself from the TCMD32.INI file
  744.              (see page 12), run TCSTART (see page 13), and then display a
  745.              prompt and wait for you to type a command.  However, you may
  746.              add information to the startup command line that will affect
  747.              the way Take Command operates.
  748.  
  749.              Take Command recognizes three optional fields on the command
  750.              line.  If you use more than one of these fields, their order
  751.              is important.  The syntax for the command line is:
  752.  
  753.                   [@d:\path\inifile] [//iniline]... [[/C] command]
  754.  
  755.              In the descriptions below, d: means a drive letter and \path
  756.              means a subdirectory name.
  757.  
  758.                   @d:\path\inifile:  This option sets the path and name of
  759.                   the TCMD32.INI file.  You do not need this option if you
  760.                   aren't using a TCMD32.INI file, or if the file is named
  761.                   TCMD32.INI and is stored either in the same directory as
  762.                   TCMD32.EXE, or in the Windows NT or Windows 95 directory.
  763.                   This option is most useful if you want to start a Take
  764.                   Command window with a specific and unique .INI file.
  765.  
  766.                   //iniline:  This option tells Take Command to treat the
  767.                   text appearing between the // and the next space or tab
  768.                   as a TCMD32.INI directive.  The directive should be in
  769.                   the same format as a line in the [TakeCommand] section of
  770.                   TCMD32.INI, but it may not contain spaces, tabs, or
  771.  
  772.         -------------------------------------------------------------------
  773.         Copr. 1995 JP Software Inc.  Take Command/32 Intro./Inst. Guide  11
  774.                                                   CHAPTER 2 / CONFIGURATION
  775.         -------------------------------------------------------------------
  776.  
  777.  
  778.                   comments.  This option overrides any corresponding
  779.                   directive in your TCMD32.INI file.  It is a convenient
  780.                   way to send Take Command one or two simple directives
  781.                   without modifying or creating a new TCMD32.INI file.
  782.  
  783.                    [/C] command:  This option tells Take Command to run a
  784.                   command when it starts.  The command will be run after
  785.                   TCSTART has been executed and before any command prompt
  786.                   is displayed.  It can be any valid internal or external
  787.                   command, batch file, or alias; you may include multiple
  788.                   commands by using the command separator.  All other
  789.                   startup options must be placed before the command,
  790.                   because Take Command will treat characters after the
  791.                   command as part of the command and not as additional
  792.                   startup options.
  793.  
  794.                   When the command is preceded by a /C, Take Command will
  795.                   execute the command and then exit and return to the
  796.                   parent program or the Windows desktop without displaying
  797.                   a prompt.
  798.  
  799.                   See page 13 for details on using the command option to
  800.                   run a startup batch file.
  801.  
  802.  
  803.         Configuring Take Command
  804.  
  805.              Take Command's configuration is controlled through a file of
  806.              initialization information called TCMD32.INI.  This file is
  807.              created during installation, and is stored in the same
  808.              directory as TCMD32.EXE.  (You can move TCMD32.INI to the
  809.              Windows NT or Windows 95 directory if you wish; Take Command
  810.              will find it in either location.)
  811.  
  812.              Take Command reads TCMD32.INI each time it starts, and
  813.              configures itself accordingly.
  814.  
  815.              Many of the TCMD32.INI options can be set directly from within
  816.              Take Command using the configuration dialogs, which are
  817.              accessible from the Configure Take Command selection on the
  818.              Options menu.  There are several pages of options, selectable
  819.              from the list box on the left side of the dialog.
  820.  
  821.              When you use the configuration dialogs, be sure to click the
  822.              Save button to save your changes in TCMD32.INI.  The OK button
  823.              will save the configuration changes for the current session,
  824.              but will not record them in TCMD32.INI for use in future
  825.              sessions.  The help text available from the Help button
  826.              explains which specific TCMD32.INI directive is set by each
  827.              item in the dialog.
  828.  
  829.         -------------------------------------------------------------------
  830.         Copr. 1995 JP Software Inc.  Take Command/32 Intro./Inst. Guide  12
  831.                                                   CHAPTER 2 / CONFIGURATION
  832.         -------------------------------------------------------------------
  833.  
  834.  
  835.              TCMD32.INI is divided into sections like other Windows .INI
  836.              files.  Each section begins with a section name in square
  837.              brackets, for example:
  838.  
  839.                   [Fonts]
  840.  
  841.              The options you can set in TCMD32.INI are all in the
  842.              [TakeCommand] section, which is normally the first one in the
  843.              file.  This is the section modified by the configuration
  844.              dialogs.  Take Command maintains all other sections of
  845.              TCMD32.INI itself; you should not modify them unless you are
  846.              instructed to do so by our support personnel.
  847.  
  848.              See the Reference Manual or the TCMD32.INI topic in the online
  849.              help for complete details on the format and meaning of the
  850.              directives used in the [TakeCommand] section of TCMD32.INI.
  851.              Advanced Directives and Key Mapping Directives must be entered
  852.              manually (see below).  Most other directives are accessible
  853.              from corresponding items in the configuration dialogs.
  854.  
  855.              If you prefer manual editing, or you want to enter a directive
  856.              which cannot be set from the configuration dialogs, you can
  857.              edit TCMD32.INI with Windows Notepad or any similar ASCII text
  858.              editor.  Be sure to edit only the [TakeCommand] section.
  859.  
  860.              Take Command will not automatically re-read TCMD32.INI when
  861.              you edit it manually.  For manual changes to take effect, you
  862.              must exit Take Command and restart it.
  863.  
  864.  
  865.         TCSTART, TCEXIT, and Startup Commands
  866.  
  867.              Take Command executes two batch files automatically:  TCSTART
  868.              is run whenever Take Command starts, and TCEXIT is run
  869.              whenever Take Command exits.  TCSTART and TCEXIT can be .BAT,
  870.              .CMD, or .BTM files.  TCSTART gives you a convenient way to
  871.              load aliases and environment variables, and otherwise
  872.              initialize Take Command.
  873.  
  874.              If Take Command is started with the [/C] command option (see
  875.              page 11), TCSTART is executed before the command.
  876.  
  877.              See the online help or your Reference Manual for more
  878.              information on TCSTART and TCEXIT.
  879.  
  880.              To run a specific startup batch file or other command when a
  881.              particular Take Command item is started, include the batch
  882.              file or command name (with a path, if the file is not in the
  883.              startup directory) as the last item in the Command Line field.
  884.  
  885.  
  886.         -------------------------------------------------------------------
  887.         Copr. 1995 JP Software Inc.  Take Command/32 Intro./Inst. Guide  13
  888.                                                   CHAPTER 2 / CONFIGURATION
  889.         -------------------------------------------------------------------
  890.  
  891.  
  892.              The batch file or command will be executed after any TCSTART
  893.              file but before the first prompt is displayed.
  894.  
  895.              You can use this capability to run a specific batch file or
  896.              command for a particular item (as opposed to TCSTART, which is
  897.              run every time Take Command starts).  When you set up a batch
  898.              file or command to run in this way you are using the command
  899.              startup option (see page 11).
  900.  
  901.              For example, to run C:\STARTUP.BAT when the item starts:
  902.  
  903.                   Command Line:       C:\TCMD\TCMD32.EXE STARTUP.BAT
  904.                   Working directory:  C:\
  905.  
  906.              To execute an internal or external command, an alias, or a
  907.              batch file and then exit (return to the desktop) when it is
  908.              done, place /C command (rather than just command) as the last
  909.              item in the Parameters field.  For example:
  910.  
  911.                   Command Line:       D:\TCMD\TCMD32.EXE /C TEST.BTM
  912.                   Working directory:  C:\
  913.  
  914.  
  915.         Take Command Help
  916.  
  917.              Complete online help for all Take Command commands and
  918.              features is provided with your copy of Take Command.  Help is
  919.              invoked with the HELP command, the F1 key, or the Help menu on
  920.              the menu bar.
  921.  
  922.              When you start the help system, Take Command opens a new
  923.              window to run the standard Windows NT or Windows 95 help
  924.              program.  The help program displays the help text and lets you
  925.              browse through it.
  926.  
  927.              You can keep the help window on the screen and return to the
  928.              Take Command window, switching between the two as needed.
  929.              This may be useful when you are writing a batch file, working
  930.              on a complex command, or experimenting with Take Command.
  931.  
  932.              In order for the Take Command help system to work properly,
  933.              the help file, TCMD32.HLP, must be in the same directory as
  934.              TCMD32.EXE.
  935.  
  936.              The Take Command installation program sets up a separate item
  937.              for Take Command help so that you can load the help file
  938.              directly.  To create a similar item manually, use a command
  939.              line like this:
  940.  
  941.                   Command Line:  WINHELP C:\TCMD32\TCMD32.HLP
  942.  
  943.         -------------------------------------------------------------------
  944.         Copr. 1995 JP Software Inc.  Take Command/32 Intro./Inst. Guide  14
  945.                                                   CHAPTER 2 / CONFIGURATION
  946.         -------------------------------------------------------------------
  947.  
  948.  
  949.              (Change the drive and path to reflect the location of Take
  950.              Command on your system.)
  951.  
  952.              Take Command also supports the /? switch to display help for
  953.              any command.  Using /? will display help for the command using
  954.              the Windows help system.  For example, to obtain help on the
  955.              COPY command you could use either of these commands:
  956.  
  957.                   c:\> help copy
  958.                   c:\> copy /?
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.         -------------------------------------------------------------------
  1001.         Copr. 1995 JP Software Inc.  Take Command/32 Intro./Inst. Guide  15
  1002.                                              CHAPTER 3 / Using Take Command
  1003.         -------------------------------------------------------------------
  1004.  
  1005.  
  1006.  
  1007.         CHAPTER 3 / Using Take Command
  1008.  
  1009.  
  1010.         Take Command works like any other Windows NT or Windows 95
  1011.         application or utility, and most of the time you won't need to make
  1012.         any special adjustments for it.  However, as you learn to use Take
  1013.         Command you may want to understand in more detail how it interacts
  1014.         with Windows, Windows applications, and DOS applications.
  1015.  
  1016.         The information in this chapter gives you an overview of these
  1017.         topics; most are covered in more detail in the Reference Manual or
  1018.         online help.  This chapter also discusses using 4DOS and 4DOS/NT
  1019.         batch files and aliases under Take Command.
  1020.  
  1021.  
  1022.         Using a Windows Command Line
  1023.  
  1024.              Take Command is a new environment that lets you perform tasks
  1025.              easily under Windows.  You can use it to execute commands,
  1026.              start applications, and perform other work at the command
  1027.              line.
  1028.  
  1029.              In the past you may have accomplished some of these tasks with
  1030.              4DOS or 4DOS for Windows NT, JP Software's replacement
  1031.              character-mode command processors for DOS and Windows NT.  Or
  1032.              you may have used an "MS-DOS Prompt" session to run the
  1033.              default command processor (CMD.EXE under Windows NT, or
  1034.              COMMAND.COM under Windows 3.x).
  1035.  
  1036.              In either case --- and especially if you are an experienced
  1037.              user of 4DOS or 4DOS for Windows NT --- you'll find plenty of
  1038.              familiar features in Take Command.  You'll also find a lot
  1039.              that's new or different.
  1040.  
  1041.              While Take Command includes most of the command-line, batch
  1042.              file, and other capabilities provided by 4DOS for Windows NT,
  1043.              and goes well beyond those provided by CMD.EXE, the Windows
  1044.              environment places some limitations on how Take Command
  1045.              operates.
  1046.  
  1047.              These limitations mostly affect the use of external programs,
  1048.              especially character-mode and DOS programs.  This topic is
  1049.              covered in detail beginning on page 18.
  1050.  
  1051.              There are some other minor differences between using Take
  1052.              Command and using a 4DOS/NT (or CMD.EXE) session under Windows
  1053.              (for example, some keystrokes are interpreted differently to
  1054.              conform more closely to Windows conventions).  There are also
  1055.              some considerations when running 4DOS or 4DOS for Windows NT
  1056.  
  1057.         -------------------------------------------------------------------
  1058.         Copr. 1995 JP Software Inc.  Take Command/32 Intro./Inst. Guide  16
  1059.                                              CHAPTER 3 / Using Take Command
  1060.         -------------------------------------------------------------------
  1061.  
  1062.  
  1063.              batch files or aliases in Take Command/32.  All of these
  1064.              differences are covered in more detail beginning on page 19.
  1065.  
  1066.              Take Command also offers a wide range of new Windows-related
  1067.              features which are not available in 4DOS/NT or CMD.EXE
  1068.              sessions, including:
  1069.  
  1070.                   * A built-in scrollback buffer that lets you look back
  1071.                     through the output from past commands.
  1072.  
  1073.                   * A standard Windows menu bar for access to many
  1074.                     commonly used Take Command features.
  1075.  
  1076.                   * A status bar showing memory load, date, time, and
  1077.                     keyboard state.
  1078.  
  1079.                   * A customizable tool bar that gives you quick access to
  1080.                     commands and applications.
  1081.  
  1082.                   * Windows dialogs (accessible from the Take Command
  1083.                     Configuration and Utilities menus), for editing
  1084.                     environment variables, aliases, file descriptions, and
  1085.                     startup parameters.
  1086.  
  1087.                   * Direct access to Program Manager groups and items
  1088.                     through the Apps menu.
  1089.  
  1090.                   * High-speed, dialog-based file and text search (see
  1091.                     "Find Files / Text" on the Utilities menu).  The FFIND
  1092.                     command gives you the same capabilities at the Take
  1093.                     Command prompt.
  1094.  
  1095.                   * Commands like ACTIVATE, MSGBOX, QUERYBOX, and WINDOW
  1096.                     that allow you to use Windows features and control
  1097.                     Windows applications from your batch files.
  1098.  
  1099.  
  1100.         Take Command and Windows
  1101.  
  1102.              Take Command/32 supports several Windows NT and Windows 95
  1103.              features which enhance the way it works with other
  1104.              applications.  The information below covers most of these
  1105.              features very briefly; for complete details, see the Reference
  1106.              Manual or the topics under the Take Command and Windows
  1107.              heading in the online help.
  1108.  
  1109.                   * You can use the Windows clipboard to copy text onto
  1110.                     the command line, or to transfer text from Take
  1111.                     Command to another application.
  1112.  
  1113.  
  1114.         -------------------------------------------------------------------
  1115.         Copr. 1995 JP Software Inc.  Take Command/32 Intro./Inst. Guide  17
  1116.                                              CHAPTER 3 / Using Take Command
  1117.         -------------------------------------------------------------------
  1118.  
  1119.  
  1120.                   * Take Command will use Windows' File Associations like
  1121.                     Executable Extensions, to associate data files with
  1122.                     applications.
  1123.  
  1124.                   * Take Command can communicate with Program Manager to
  1125.                     determine what groups and applications to list on the
  1126.                     Apps menu.
  1127.  
  1128.                   * You can use the Windows Drag and Drop feature to
  1129.                     insert file names from other applications onto the
  1130.                     command line.
  1131.  
  1132.                   * Take Command can send messages to other Windows
  1133.                     applications using Dynamic Date Exchange (DDE).  You
  1134.                     can also use DDE to send commands to Take Command from
  1135.                     other applications.
  1136.  
  1137.              Take Command offers several methods for starting Windows
  1138.              applications, some of which go beyond what you may be used to
  1139.              when running programs from the character-mode command line.
  1140.              The search sequence for applications is also slightly
  1141.              different from some other platforms.  For complete details,
  1142.              see Starting Windows Applications in the online help.
  1143.  
  1144.  
  1145.         Character-Mode Applications
  1146.  
  1147.              When you start a DOS or character-mode program under Windows
  1148.              NT or Windows 95 it runs in a "console session."  A console
  1149.              session displays a special type of window without a standard
  1150.              menu bar or other Windows NT features.  It typically uses 4DOS
  1151.              for Windows NT or CMD.EXE to perform command line tasks or
  1152.              start such programs.
  1153.  
  1154.              Take Command/32 starts Windows "graphical" applications in
  1155.              their own windows, just as if you had started the application
  1156.              directly from the desktop.  It also creates a console session
  1157.              to run DOS and Windows NT character mode applications.
  1158.  
  1159.              The console session connected to Take Command/32 is created
  1160.              when Take Command starts (this may cause a momentary flicker
  1161.              on your screen during the startup process).  A separate window
  1162.              is created for this session.  You can view this window at any
  1163.              time with the Alt-V key or the View Console selection on the
  1164.              Apps menu.  You can use Alt-V to return to the Take Command/32
  1165.              window, but only when the application in the console window
  1166.              has completed, and the input "focus" has returned to Take
  1167.              Command/32.
  1168.  
  1169.  
  1170.  
  1171.         -------------------------------------------------------------------
  1172.         Copr. 1995 JP Software Inc.  Take Command/32 Intro./Inst. Guide  18
  1173.                                              CHAPTER 3 / Using Take Command
  1174.         -------------------------------------------------------------------
  1175.  
  1176.  
  1177.              When you start a DOS or character-mode application from Take
  1178.              Command/32 it is automatically run in this console session (to
  1179.              start a separate session for the application, use the START
  1180.              command).  The console window is automatically brought to the
  1181.              foreground when the application starts, and returned to the
  1182.              background when it exits.
  1183.  
  1184.              If you run a DOS or character-mode program which does not exit
  1185.              immediately (for example, a DOS word processor or editor) you
  1186.              will be able to work in the console session, and return
  1187.              automatically to Take Command when you exit the application.
  1188.  
  1189.              However if you run a DOS or character-mode application from
  1190.              Take Command and the application exits quickly, without
  1191.              waiting for any input (for example, a utility like PKUNZIP),
  1192.              you may have to use Alt-V to return to the console window and
  1193.              view the output.
  1194.  
  1195.  
  1196.         Take Command, 4DOS, and 4DOS for Windows NT
  1197.  
  1198.              If you're a 4DOS or 4DOS for Windows NT user, many of the
  1199.              features in Take Command will seem very familiar.  Because the
  1200.              underlying command processing in Take Command/32 is based on
  1201.              4DOS and 4DOS for Windows NT, you'll find the features of
  1202.              4DOS/NT are readily accessible.  All the commands and switches
  1203.              you've used in 4DOS/NT work the same way and have the same
  1204.              meaning in Take Command; the only exceptions are those that
  1205.              don't make sense outside a character-mode environment.
  1206.  
  1207.              Other 4DOS and 4DOS/NT features are included in Take Command
  1208.              as well --- you'll find support for command line editing,
  1209.              command and directory histories, aliases, .BTM files, and
  1210.              virtually all the other features you already know.
  1211.  
  1212.              Even if you've never used 4DOS, you'll notice plenty of
  1213.              familiar items in Take Command.  Like 4DOS, Take Command is
  1214.              compatible with the default Windows NT command processor
  1215.              (CMD.EXE) and the default Windows 95 command processor
  1216.              (COMMAND.COM), either which you may have used from the "MS-DOS
  1217.              Prompt" icon, or at the DOS prompt when you aren't running
  1218.              Windows NT.
  1219.  
  1220.              There are also a few differences between running under 4DOS
  1221.              (or CMD.EXE) and running under Take Command.  The remainder of
  1222.              this section discusses minor differences in the way keystrokes
  1223.              are interpreted by 4DOS/NT and Take Command.  It also explains
  1224.              some things to look for when using 4DOS or 4DOS/NT batch files
  1225.              and aliases (and CMD.EXE batch files) under Take Command.
  1226.  
  1227.  
  1228.         -------------------------------------------------------------------
  1229.         Copr. 1995 JP Software Inc.  Take Command/32 Intro./Inst. Guide  19
  1230.                                              CHAPTER 3 / Using Take Command
  1231.         -------------------------------------------------------------------
  1232.  
  1233.  
  1234.              In order to support the scrollback buffer, some Take
  1235.              Command/32 keystrokes are different from what you may be used
  1236.              to.  In particular, Take Command uses Ctrl-Up Arrow and Ctrl-
  1237.              Down Arrow (rather than Up Arrow and Down Arrow) to scroll
  1238.              through the command history at the prompt, Ctrl-PgUp (rather
  1239.              than PgUp) to open the history window, and F6 (rather than
  1240.              Ctrl-PgUp) to open the directory history window.  The arrow
  1241.              keys and PgUp and PgDn are then used to access the scrollback
  1242.              buffer.
  1243.  
  1244.              If you prefer to reverse this arrangement and use the arrow
  1245.              and PgUp keys to access the command history (as they are used
  1246.              in 4DOS/NT), and the Ctrl- keys to access the scrollback
  1247.              buffer, use the configuration dialogs (accessible from the
  1248.              Options menu) to set the Swap Scrolling Keys option.  See
  1249.              SwapScrollKeys (in the TCMD32.INI Configuration Directives in
  1250.              the online help) for additional details.
  1251.  
  1252.              Some command-line editing defaults have also been changed to
  1253.              conform more closely to Windows conventions.  In Take Command
  1254.              the default editing mode is insert, not overtype, and the
  1255.              default insert-mode cursor is a line, not a block.  You can
  1256.              change these defaults via the configuration dialogs or with
  1257.              statements in TCMD32.INI.
  1258.  
  1259.              For complete details on all of the features listed above, see
  1260.              the online help or your Reference Manual (Take Command for
  1261.              4DOS/NT Users in the online help provides links to detailed
  1262.              information on each of these topics).
  1263.  
  1264.  
  1265.              Using Your Batch Files and Aliases
  1266.  
  1267.              As a 4DOS or 4DOS/NT user, you may want to use your 4DOS batch
  1268.              files and aliases with Take Command.  Or, you may want to run
  1269.              batch files developed for CMD.EXE under Take Command.  In
  1270.              general you can run these batch files under Take Command ---
  1271.              but you need to understand how the batch files and aliases
  1272.              operate first.
  1273.  
  1274.              Take Command and 4DOS/NT aliases are separate and independent;
  1275.              Take Command does not automatically "inherit" aliases from a
  1276.              previously loaded copy of 4DOS/NT, and it cannot pass aliases
  1277.              on to a copy of 4DOS/NT started from the Take Command prompt.
  1278.              However, you can load aliases from your Take Command startup
  1279.              batch file (see page 13).  These can be the same aliases you
  1280.              use in 4DOS/NT, or a set that is just for Take Command.
  1281.  
  1282.              While many of your 4DOS/NT aliases will work well under Take
  1283.              Command, you'll probably want to create a separate set of Take
  1284.  
  1285.         -------------------------------------------------------------------
  1286.         Copr. 1995 JP Software Inc.  Take Command/32 Intro./Inst. Guide  20
  1287.                                              CHAPTER 3 / Using Take Command
  1288.         -------------------------------------------------------------------
  1289.  
  1290.  
  1291.              Command aliases.  This will allow you to account for the
  1292.              differences in running DOS and character-mode applications,
  1293.              and to create new aliases that take advantage of Take Command
  1294.              features which are unavailable in 4DOS or 4DOS/NT.
  1295.  
  1296.              If you want to write aliases or batch files that are used in
  1297.              both Take Command and 4DOS/NT, but that behave differently in
  1298.              each environment, use the %_DOS variable to make the
  1299.              distinction.  For example, this batch file fragment uses the
  1300.              INPUT command to accept a string if it is run under 4DOS/NT,
  1301.              but uses the QUERYBOX dialog box if it is run under Take
  1302.              Command:
  1303.  
  1304.                   iff "%_dos" == "WIN32" then
  1305.                        querybox "Enter your name:  " %%name
  1306.                   else
  1307.                        input "Enter your name:  " %%name
  1308.                   endiff
  1309.  
  1310.              Aliases and batch files which simply manipulate files or use
  1311.              other internal commands should work with little or no change
  1312.              under Take Command.  However, as a general rule, you should
  1313.              test any batch file developed for 4DOS/NT or CMD.EXE before
  1314.              assuming it will do exactly what you want under Take Command.
  1315.              Pay particular attention to batch files which run complex
  1316.              sequences of external programs.
  1317.  
  1318.              If you use aliases or batch files to perform a sequence which
  1319.              mixes internal commands and DOS or character-mode
  1320.              applications, the sequence may not work the way you expect
  1321.              under Take Command.  For example, suppose you have an alias
  1322.              that changes the screen color, starts a DOS application, and
  1323.              then resets the color again.  Because the DOS application will
  1324.              be started in the console window (see page 18) the color
  1325.              changes will not affect it --- a contingency you probably
  1326.              didn't have to consider when you wrote the batch file.
  1327.  
  1328.              You may also find that you want to take advantage of some of
  1329.              the new features of Take Command to improve your batch files.
  1330.              For example, the START command offers additional flexibility
  1331.              in starting applications.  MSGBOX and QUERYBOX can be used to
  1332.              create dialog-box input prompts, and KEYSTACK and ACTIVATE
  1333.              will help control your Windows applications.
  1334.  
  1335.              Once you get used to these enhancements and minor differences
  1336.              you'll find that you can use Take Command to manage your
  1337.              system using the same techniques and features you already know
  1338.              from your experience with 4DOS, 4DOS/NT, or CMD.EXE.
  1339.  
  1340.  
  1341.  
  1342.         -------------------------------------------------------------------
  1343.         Copr. 1995 JP Software Inc.  Take Command/32 Intro./Inst. Guide  21
  1344.                                                                       Index
  1345.         -------------------------------------------------------------------
  1346.  
  1347.  
  1348.         Index                               Customer Service, 4
  1349.  
  1350.  
  1351.         4DOS for Windows NT                 DDE, 18
  1352.             aliases, 20
  1353.             and Take Command, 16, 19        DOS applications, see
  1354.                 keystroke differences,        Applications
  1355.                   20
  1356.             batch files, 20                 Drag and Drop, 18
  1357.  
  1358.  
  1359.         Aliases, 20                         File associations, 18
  1360.             enhancing, 21
  1361.  
  1362.         Applications                        Help system, 3, 14
  1363.             character-mode, 16, 18              /? option, 15
  1364.             DOS, 16, 18
  1365.             Windows, 18
  1366.                                             Icon, for Take Command, 10
  1367.  
  1368.         Batch files, 20                     INI file., see TCMD32.INI
  1369.             and Windows, 17
  1370.             enhancing, 21                   Installation, 5
  1371.                                                 changes to your system, 6
  1372.         Batch files, startup, 13                manual, 6
  1373.                                                 reversing, 8
  1374.  
  1375.         Clipboard, 17
  1376.                                             Keystrokes, in 4DOS and Take
  1377.         CMD.EXE                               Command, 20
  1378.             and Take Command, 16, 19
  1379.             batch files, 20
  1380.                                             Menus, 17
  1381.         Command history keystrokes, 20
  1382.                                             MS-DOS Prompt, see CMD.EXE
  1383.         Command-line editing, in 4DOS
  1384.           and Take Command, 20
  1385.                                             Options, see Startup Options
  1386.         Commands
  1387.             help on, 14
  1388.             reference information, 3        Program Manager
  1389.             Take Command startup, 12,           and Installation, 6
  1390.               13                                and uninstall, 9
  1391.                                                 groups and applications,
  1392.         Configuration, 8, 12                      17, 18
  1393.             dialogs, 12, 17                     Take Command items, 7, 10
  1394.  
  1395.         Console session, 18
  1396.                                             Quick help, 15
  1397.         CTL3D, 7
  1398.  
  1399.         -------------------------------------------------------------------
  1400.         Copr. 1995 JP Software Inc.  Take Command/32 Intro./Inst. Guide  22
  1401.                                                                       Index
  1402.         -------------------------------------------------------------------
  1403.  
  1404.  
  1405.  
  1406.  
  1407.         Reference information, 3            Windows, and Take Command, 16,
  1408.                                               17
  1409.         Reference Manual, 3
  1410.                                             Windows, Take Command, 10
  1411.  
  1412.         Scrollback buffer, 17
  1413.             keystrokes for, 20
  1414.  
  1415.         Starting DOS applications, see
  1416.           Applications
  1417.  
  1418.         Starting Take Command, 7, 10
  1419.  
  1420.         Startup
  1421.             commands, 10, 12, 13
  1422.             options, 10, 11
  1423.                 //iniline, 11
  1424.                 /C, 12
  1425.                 @inifile, 11
  1426.  
  1427.         Status bar, 17
  1428.  
  1429.         Support, 4
  1430.  
  1431.  
  1432.         Take Command
  1433.             and Windows, 16, 17
  1434.             Windows-related features,
  1435.               17
  1436.  
  1437.         TCEXIT, 11, 13
  1438.  
  1439.         TCMD32.INI, 8, 12
  1440.             directives, on startup
  1441.               command line, 11
  1442.             location of, 11
  1443.  
  1444.         TCSTART, 11, 13
  1445.             and startup command, 12
  1446.  
  1447.         Technical support, 4
  1448.  
  1449.         Tool bar, 17
  1450.  
  1451.  
  1452.         Uninstalling Take Command, 8
  1453.