home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / tcv203.zip / TCMDOS2.INF (.txt) < prev    next >
OS/2 Help File  |  2001-12-20  |  635KB  |  20,244 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. About Take Command for OS/2 Help ΓòÉΓòÉΓòÉ
  3.  
  4.                               Take Command for OS/2
  5.  
  6.                             Version 2.03 Help System
  7.  
  8.                 Text by Hardin Brothers, Tom Rawson, and Rex Conn
  9.  
  10. Program and Help Text Copyright 1988 - 2001, JP Software Inc., All Rights 
  11. Reserved. 
  12.  
  13. Take Command and 4DOS are registered trademarks of JP Software Inc.  4DOS, 
  14. 4OS2, and 4NT are JP Software Inc.'s trademarks for its family of 
  15. character-mode command processors.  JP Software, jpsoft.com, and all JP 
  16. Software designs and logos are also trademarks of JP Software Inc.  Other 
  17. product and company names are trademarks of their respective owners. 
  18.  
  19. [12/01 - 2.03A] 
  20.  
  21.  
  22. ΓòÉΓòÉΓòÉ 2. Using Take Command ΓòÉΓòÉΓòÉ
  23.  
  24. We developed Take Command to bring the power and convenience of our popular 
  25. 4DOS, 4NT, and 4OS2 programs to the Windows and OS/2 desktops.  Whether you are 
  26. a computer novice or an experienced user, Take Command will help you get the 
  27. most out of your computer system. 
  28.  
  29. You're probably already familiar with graphical applications running under 
  30. Windows or OS/2, and with the command line, but you may not be used to seeing 
  31. them combined in one product.  Most graphical applications offer limited 
  32. command-line capability at best, and most command-line utilities aren't 
  33. designed for a graphical environment like Windows or the OS/2 desktop. 
  34.  
  35. We designed Take Command to give you the best of both worlds.  You'll probably 
  36. find it most useful when you need to perform tasks like managing your hard 
  37. disk, scripting a series of steps with an alias or batch file, or starting 
  38. applications.  There are graphical utilities that perform some of these tasks, 
  39. but often you may find it more convenient or productive to perform them from 
  40. the command line. 
  41.  
  42. Take Command can use fewer resources than starting a traditional character-mode 
  43. command-line session, and, unlike a traditional command line session, it looks 
  44. and feels like the other graphical programs you use. 
  45.  
  46. Take Command also offers a host of features that couldn't exist at all in a 
  47. command-line utility.  For example, you can pop up simple dialogs from a batch 
  48. file, pass keystrokes to other graphical applications, and use a dialog to find 
  49. files or text on any of your disks. 
  50.  
  51. In this section, you'll find a wealth of information about using Take Command, 
  52. including: 
  53.  
  54.              Using the Take Command Interface 
  55.  
  56.              Using the Command Line 
  57.  
  58.              File Selection 
  59.  
  60.              Directory Navigation 
  61.  
  62.              Other Features 
  63.  
  64.  
  65. ΓòÉΓòÉΓòÉ 2.1. Using the Take Command Interface ΓòÉΓòÉΓòÉ
  66.  
  67. In this section, you'll find general information about using the Take Command 
  68. interface, including: 
  69.  
  70.          Using an OS/2 "Graphical" Command Line 
  71.  
  72.          Starting Applications 
  73.  
  74.          The Take Command Screen 
  75.  
  76.          Take Command for 4DOS and 4OS2 Users 
  77.  
  78.  
  79. ΓòÉΓòÉΓòÉ 2.1.1. Using an OS/2 "Graphical" Command Line ΓòÉΓòÉΓòÉ
  80.  
  81. Take Command for OS/2 is a new environment that lets you perform tasks easily 
  82. under OS/2. You can use it to execute commands, start applications, and perform 
  83. other work at the command line. 
  84.  
  85. In the past you may have accomplished some of these tasks by starting an OS/2 
  86. character-mode session or running 4OS2, JP Software's replacement character- 
  87. mode command processor. 
  88.  
  89. In either case -- and especially if you are an experienced user of 4OS2 -- 
  90. you'll find plenty of familiar features in Take Command.  You'll also find a 
  91. lot that's new and different. 
  92.  
  93. While Take Command includes most of the command-line, batch file, and other 
  94. capabilities provided by 4OS2, and goes well beyond those provided by CMD.EXE, 
  95. the OS/2 environment places a few limitations on how Take Command operates. 
  96.  
  97. These limitations are minor -- for example, some keystrokes are interpreted 
  98. differently to conform more closely to OS/2 conventions, and there are some 
  99. considerations when running batch files or OS/2 aliases designed to work in 
  100. character mode under a graphical program like Take Command.  All of these 
  101. differences are covered in more detail under Take Command for 4DOS and 4OS2 
  102. Users. 
  103.  
  104. Take Command also offers a wide range of new OS/2 PM-related features which are 
  105. not available in 4OS2 or CMD.EXE, including: 
  106.  
  107.         *   A built-in scrollback buffer that lets you look back through the 
  108.             output from past commands. 
  109.  
  110.         *   A standard OS/2 menu bar for access to many commonly-used Take 
  111.             Command features. 
  112.  
  113.         *   A status bar showing memory and resource usage. 
  114.  
  115.         *   A customizable tool bar that gives you quick access to commands and 
  116.             applications. 
  117.  
  118.         *   Dialogs (accessible from the Options and Utilities menus) for 
  119.             editing environment variables, aliases, file descriptions, and 
  120.             startup parameters. 
  121.  
  122.         *   High-speed, dialog-based file and text search (see "Search 
  123.             Files/Text" on the Utilities menu). The new FFIND command gives you 
  124.             the same capabilities at the Take Command prompt. 
  125.  
  126.         *   Commands like ACTIVATE, MSGBOX, and QUERYBOX that allow you to use 
  127.             OS/2 features and control OS/2 applications from your batch files. 
  128.  
  129.  
  130. ΓòÉΓòÉΓòÉ 2.1.2. Starting Applications ΓòÉΓòÉΓòÉ
  131.  
  132. Take Command offers several ways to start applications.  (For special 
  133. considerations related to starting character-mode applications, see the next 
  134. topic). 
  135.  
  136. First, you can simply type the name of any OS/2, DOS, or Windows application at 
  137. the Take Command prompt.  As long as the application's executable file is in 
  138. one of the standard search directories (see below), Take Command will find it 
  139. and start it.  If you type the full path name of the executable file at the 
  140. prompt the application will be started even if it is not in one of the standard 
  141. search directories. 
  142.  
  143. Take Command offers two methods to simplify and speed up access to 
  144. yourapplications.  One is to create an alias, for example: 
  145.  
  146.         [c:\] alias myapp d:\apps\myapp.exe
  147.  
  148. You can also use the Tool Bar To start frequently-used applications.  For 
  149. example, a tool bar button named MyApp which invokes the command 
  150. d:\apps\myapp.exe would accomplish the same thing as the alias shown above. 
  151.  
  152. You can use these methods together.  For example, if you define the alias shown 
  153. above you can set up a tool bar button called MyApp and simply use the command 
  154. myapp, which would then invoke the previously-defined alias. 
  155.  
  156. You can also start an application by typing the name of a data file associated 
  157. with the application.  Take Command will examine the file's extension and run 
  158. the appropriate application, based on Take Command's executable extensions. 
  159.  
  160. For additional flexibility, you can also start applications with the START 
  161. command.  START provides a number of switches to customize the way an 
  162. application is started. 
  163.  
  164. Searching for Applications 
  165.  
  166. When you start an application without specifying a path, Take Command searches 
  167. for the application in the current directory and then all directories on the 
  168. PATH.  (If you do enter an explicit path, Take Command will only look in the 
  169. directory you specified.) 
  170.  
  171. If you enter a file name with no extension, Take Command will search each 
  172. directory for a matching .COM, .EXE, .BTM, or .CMD file, then for a file 
  173. matching a Take Command executable extension.  If no such file is found Take 
  174. Command will move on to the next directory in the search sequence. 
  175.  
  176. Waiting for Applications to Finish 
  177.  
  178. When you start an application from the prompt, normally Take Command does not 
  179. wait for the application to finish before returning to the prompt.  This allows 
  180. you to continue your work in Take Command while the application is running. 
  181. You can change this default behavior for applications started from the prompt, 
  182. using the ExecWait directive in TCMDOS2.INI, or the Wait for Completion option 
  183. on the Options 2 page of the configuration notebook.  These options do not 
  184. affect batch files; Take Command always waits for applications started from 
  185. batch files. 
  186.  
  187. Character-mode applications which run inside the Take Command window are an 
  188. exception to this rule.  Take Command always waits for such applications to 
  189. finish before displaying a new prompt, regardless of the ExecWait setting. For 
  190. more information see the next section, on starting character-mode applications. 
  191.  
  192. You can also force Take Command to wait for an application to finish with the 
  193. START command with the /WAIT switch.  START can also control many other aspects 
  194. of how your applications are started. 
  195.  
  196.  
  197. ΓòÉΓòÉΓòÉ 2.1.3. Starting Character-Mode Applications ΓòÉΓòÉΓòÉ
  198.  
  199. Take Command for OS/2 starts OS/2 "graphical" applications in their own 
  200. windows, just as if you had started them from the desktop.  By default, it also 
  201. creates a separate character-mode window to run each DOS or OS/2 character mode 
  202. application you start. 
  203.  
  204. If you prefer, you can run some DOS and OS/2 character-mode applications within 
  205. the Take Command window, using an OS/2 facility called "named pipes." When you 
  206. use this option, output from the application is displayed in the Take Command 
  207. window, and no separate window is created. 
  208.  
  209. Because not all applications work properly with named pipes, you must specify 
  210. which TTY applications should be run within the Take Command window.  To do so, 
  211. use the TTY Applications Dialog (accessible from the Setup menu). The dialog 
  212. lets you specify the application name, whether the application is a DOS or OS/2 
  213. character-mode program, and whether or not the application is currently enabled 
  214. to run within the Take Command window.  See the section on the TTY Applications 
  215. dialog for details of the dialog fields and their meanings.  Information 
  216. entered in this dialog is stored in the [TTYApps] section of TCMDOS2.INI. 
  217.  
  218. Your copy of Take Command comes with a list of applications which can be run 
  219. within the Take Command window.  The list is visible when you open the dialog. 
  220. However, all applications in the list are initially disabled to ensure maximum 
  221. compatibility.  This prevents problems if you have a program with the same name 
  222. as one we tested, but which is not the same program.  To enable any 
  223. application, select it and check the Enable box.  Us the Add button to add your 
  224. own applications to the list. 
  225.  
  226. When you include an application name in the dialog, you can use an executable 
  227. file name (e.g., CHKDSK.COM), or a full path name (e.g., C:\OS2\CHKDSK.COM). 
  228. If you use the full path name, the entry will apply only to that specific file. 
  229. If you use just the file name, the entry will apply to any file of that name, 
  230. regardless of its location.  If you use both, the full path name entry will be 
  231. used when you execute that specific file, and the file name entry will be used 
  232. for other files of the same name. 
  233.  
  234. As an advanced option, you can also enter a path without a filename into the 
  235. dialog (e.g. C:\OS2UTILS).  This will tell Take Command to treat all DOS or 
  236. OS/2 character-mode programs in the specified directory as TTY applications. 
  237. This approach is useful if you have many applications of the same type in a 
  238. single directory, but before you use it you should review the contents of the 
  239. directory carefully to be sure all the character-mode programs stored there are 
  240. compatible with Take Command's TTY application support. 
  241.  
  242. If you do choose to configure an entire directory for TTY application support, 
  243. you can create exceptions by entering specific filenames from that directory 
  244. into the dialog as well.  For example, if you enable the directory C:\OS2UTILS 
  245. for TTY support, you could also add a listing for C:\OS2UTILS\MYAPP.EXE (or 
  246. simply for MYAPP.EXE, with no path), and make sure the Enable box in the dialog 
  247. is not checked for the MYAPP entry.  This would prevent MYAPP.EXE from being 
  248. treated as a TTY application despite the entry for the directory as a whole. 
  249. If you use this approach, the two listings can appear in any order. 
  250.  
  251. Once an application is listed in the dialog and enabled, it will run within the 
  252. Take Command window whenever you start it from the command line.  However, if 
  253. you start the application with the START command (without the /TTY switch, see 
  254. below), the program will start in its own window. 
  255.  
  256. You can explicitly start any character-mode application within the Take Command 
  257. window by using the START command's /TTY switch.  For example: 
  258.  
  259.      start /tty c:\os2\chkdsk.com
  260.  
  261. Using this switch is the same as entering the application in the TTY 
  262. Applications dialog and enabling it.  Using START /TTY is a convenient way to 
  263. experiment with your DOS and OS/2 character-mode applications to see if they 
  264. are compatible with Take Command's TTY application support.  See the START 
  265. command or Reference Manual for additional details. 
  266.  
  267. The only character-mode programs which will run properly within the Take 
  268. Command window are those which can handle input and output delivered through 
  269. pipes.  In technical terms, these are programs which read all input from the 
  270. DOS or OS/2 "standard input" device, and write output to the "standard output" 
  271. or "standard error" device.  Applications which use command-line parameters 
  272. (rather than user input or "question and answer" dialogs), and which use simple 
  273. scrolling (TTY-style) output, are the ones most likely to work well. Common 
  274. applications which run successfully in the Take Command window include program 
  275. development software like compilers and linkers, and some command-line 
  276. utilities.  Programs which use "direct video" output to write complex screen 
  277. displays, require dialog with the user, or display graphics, must be run in 
  278. their own window. 
  279.  
  280. Many OS/2 character-mode programs meet this test, as do some DOS programs. 
  281. However, some programs -- especially DOS programs which appear to work this way 
  282. may in fact use internal tricks or contain internal restrictions which are not 
  283. compatible with piped input and output. 
  284.  
  285. For this reason, you will need to experiment to determine which of your DOS and 
  286. OS/2 character-mode applications can run successfully within the Take Command 
  287. window.  If you try an application and it does not work, first try using Ctrl-C 
  288. or Ctrl-Break to interrupt the application.  If this does not work you can 
  289. close the Take Command window with the mouse to clean up the offending 
  290. application, then restart Take Command from your desktop. Applications which do 
  291. not run properly within the Take Command window can still be run from Take 
  292. Command, but will have to use their own window. 
  293.  
  294. TTY application support for DOS programs depends on the TCNPDOS.COM file 
  295. distributed with Take Command.  This file must be available in the same 
  296. directory as TCMDOS2.EXE.  If it is not, Take Command will display an error 
  297. message if you try to run a DOS application within the Take Command window. 
  298.  
  299.  
  300. ΓòÉΓòÉΓòÉ 2.1.4. The Take Command Screen ΓòÉΓòÉΓòÉ
  301.  
  302. The Take Command screen has five parts: the title bar, menu bar, toolbar, 
  303. command window, and status bar. 
  304.  
  305. The Title Bar is the same as the one used in most OS/2 applications, with a 
  306. control menu button on the left and the maximize and minimize buttons on the 
  307. right.  You can change the text that appears on the Title Bar, and adjust the 
  308. size of the Take Command window, with the WINDOW command. 
  309.  
  310. The command window accepts your input at the prompt, and displays Take 
  311. Command's output.  You can use the scroll bars or the up arrow and down arrow 
  312. keys to view text that has scrolled off the window.  You can also save the 
  313. contents of the command window and scrollback buffer to a file, copy text from 
  314. the command window to the clipboard, and copy text from the clipboard or the 
  315. command window to the command line. 
  316.  
  317. If you use a laptop or LCD screen and find the "I-Beam" cursor in the Take 
  318. Command window difficult to see, use an IBeamCursor = No directive in the 
  319. [TakeCommand] section of the TCMDOS2.INI file to force the use of an arrow 
  320. cursor in all parts of the window. 
  321.  
  322. The next few sections discuss the menu bar, tool bar, and status bar portions 
  323. of the Take Command screen. 
  324.  
  325.  
  326. ΓòÉΓòÉΓòÉ 2.1.4.1. Take Command Menus ΓòÉΓòÉΓòÉ
  327.  
  328. Like all OS/2 PM applications, Take Command displays a menu bar along the top 
  329. of the Take Command window.  To select a particular menu item, click once on 
  330. the menu heading, or use Alt+x where x is the underlined letter on the menu bar 
  331. (for example, Alt+F displays the File menu). 
  332.  
  333. The items on the menu bar allow you to select a variety of Take Command 
  334. features: 
  335.  
  336.             File Menu 
  337.             Edit Menu 
  338.             Apps Menu 
  339.             Options or Setup Menu 
  340.             Utilities Menu 
  341.             Help Menu 
  342.  
  343.  
  344. ΓòÉΓòÉΓòÉ 2.1.4.1.1. File Menu ΓòÉΓòÉΓòÉ
  345.  
  346. The File menu allows you to save or print the screen buffer, or exit Take 
  347. Command. 
  348.  
  349.  Save to File... 
  350.      Saves the contents of the screen buffer to a file.  A Save As dialog box 
  351.      appears in which you can enter the name of the file that you wish to use. 
  352.  
  353.  Print... 
  354.      Sends the contents of the screen buffer to the printer.  A Print dialog 
  355.      box appears in which you can select print options. 
  356.  
  357.  Refresh 
  358.      Redraws everything on the Take Command window (use this selection if the 
  359.      display appears incorrect, for example if it is not repainted properly 
  360.      after another application exits).  You can also press F5 at the Take 
  361.      Command prompt to refresh the screen. 
  362.  
  363.  Shutdown 
  364.      Shuts down OS/2. 
  365.  
  366.  Exit 
  367.      Ends the current Take Command session. 
  368.  
  369.  
  370. ΓòÉΓòÉΓòÉ 2.1.4.1.2. Edit Menu ΓòÉΓòÉΓòÉ
  371.  
  372. The Edit menu allows you to copy text between the Take Command window and the 
  373. OS/2 clipboard. 
  374.  
  375. To use the the Copy command you must first select a block of text with the 
  376. mouse or with the Select All command, below.  If you hold down the mouse button 
  377. 2 while you select a block of text, that block will be copied to the clipboard 
  378. automatically when you release the button. 
  379.  
  380. Note that you can also access the clipboard with redirection to or from the 
  381. CLIP: device, or with the @CLIP variable function. 
  382.  
  383. For more information on copying text see Highlighting and Copying Text. 
  384.  
  385.  Cut 
  386.      Removes selected text from the command line and copies it to the OS/2 
  387.      clipboard.  This option is only available when you have selected text on 
  388.      the command line; it does not apply to selections anywhere else on the 
  389.      screen, or in the scrollback buffer. 
  390.  
  391.  Copy 
  392.      Copies selected text from the Take Command screen buffer to the OS/2 
  393.      clipboard. 
  394.  
  395.  Paste 
  396.      Copies text from the OS/2 clipboard to the Take Command command line.  If 
  397.      the text you insert contains a line feed or carriage return, the command 
  398.      line will be executed just as if you had pressed Enter.  If you insert 
  399.      multiple lines, each line will be treated like a command typed at the 
  400.      prompt. 
  401.  
  402.  Delete 
  403.      Removes selected text from the command line.  Like Cut, this option is 
  404.      only available when you have selected text on the command line. 
  405.  
  406.  Copy + Paste 
  407.      Copies the selected text directly to the command line. 
  408.  
  409.  Select All 
  410.      Marks the entire contents of the Take Command scrollback buffer as 
  411.      selected text. 
  412.  
  413.  
  414. ΓòÉΓòÉΓòÉ 2.1.4.1.3. Apps Menu ΓòÉΓòÉΓòÉ
  415.  
  416. The Apps menu allows you to start applications or switch to the desktop. 
  417.  
  418.  Run 
  419.      Displays the run dialog from which you can run an application or batch 
  420.      file.  Take Command remembers the commands you have run from this dialog 
  421.      in the current session.  To select from this list click on the drop-down 
  422.      arrow to the right of the "Command Line" field, or press Alt-down arrow 
  423.      [Alt-].  To scroll through the list line by line press the down arrow 
  424.      []. 
  425.  
  426.  Goto Desktop 
  427.      Minimizes the Take Command window and switches the input focus to the OS/2 
  428.      desktop. 
  429.  
  430.  OS/2 window 
  431.      Starts an OS/2 text-mode window (using the command processor defined in 
  432.      the SET OS2_SHELL statement in CONFIG.SYS). 
  433.  
  434.  DOS window 
  435.      Starts a windowed DOS text-mode window (using the command processor 
  436.      defined in the SHELL statement in CONFIG.SYS). 
  437.  
  438.  Win 3.x Window 
  439.      Starts a seamless WinOS2 window in 386 enhanced mode, running your Windows 
  440.      shell (e.g., Program manager or Take Commad/16). 
  441.  
  442.  
  443. ΓòÉΓòÉΓòÉ 2.1.4.1.4. Options or Setup Menu ΓòÉΓòÉΓòÉ
  444.  
  445. The Setup menu lets you control the configuration of Take Command. 
  446.  
  447.  Configure Take Command 
  448.      Opens the configuration notebook which you can use to change the 
  449.      configuration of Take Command. 
  450.  
  451.  Configure Tool Bar 
  452.      Opens the toolbar dialog, to allow you to create or modify buttons for the 
  453.      Take Command tool bar. 
  454.  
  455.  Configure TTY Apps 
  456.      Opens the TTY applications dialog in which you can specify character-mode 
  457.      DOS and OS/2 applications to run under Take Command's TTY application 
  458.      support. 
  459.  
  460.  Font 
  461.      Displays a font selection submenu which allows you to choose the font for 
  462.      the command window, tool bar, or status bar.  The command window is 
  463.      restricted to monospaced fonts (having the same fixed width for all 
  464.      characters, rather than varying the width based on each character's 
  465.      shape), but the tool bar and status bar can use any installed font. 
  466.  
  467.           Command window:          Selects the font for the main Take Command 
  468.                                    window.  You can choose any monospaced font 
  469.                                    that has been properly installed in OS/2. 
  470.                                    (A monospaced font is one which uses the 
  471.                                    same fixed width for all characters, rather 
  472.                                    than varying the width based on each 
  473.                                    character's shape.)  When you change the 
  474.                                    font, everything in the command window is 
  475.                                    displayed in the new font.  You cannot mix 
  476.                                    fonts in the Take Command command window. 
  477.  
  478.                                    Note:  Some fonts will not display all of 
  479.                                    the characters used by Take Command.  In 
  480.                                    particular, the DRAWBOX, DRAWHLINE, and 
  481.                                    DRAWVLINE commands use line-drawing 
  482.                                    characters which are not included in many 
  483.                                    standard fonts.  The standard OS/2 
  484.                                    monospaced fonts (Courier, System 
  485.                                    Monospaced, and System VIO) do include these 
  486.                                    characters when an English language 
  487.                                    character set is used. 
  488.  
  489.                                    You can experiment with different fonts by 
  490.                                    using DRAWBOX or a similar command to 
  491.                                    display line drawing characters in the 
  492.                                    command window.  Then use Select Font to 
  493.                                    choose a different font.  When you leave the 
  494.                                    dialog, the new font will be used to display 
  495.                                    the entire command window, including the 
  496.                                    line drawing characters.  You can select 
  497.                                    different fonts until you find one that 
  498.                                    satisfies you. 
  499.  
  500.           Tool bar:                Selects the font for the tool bar. 
  501.  
  502.           Status bar:              Selects the font for the status bar. 
  503.  
  504.  Logging 
  505.      Controls logging via a submenu with two choices (see the LOG command for 
  506.      more details on logging): 
  507.  
  508.           Command:         Enables or disables command logging using the 
  509.                            default OS2LOG file or the file you have chosen with 
  510.                            the LOG command or the LogName directive in the 
  511.                            TCMDOS2.INI file. 
  512.  
  513.           History:         Enables or disables command history logging using 
  514.                            the default OS2HLOG file or the file you have 
  515.                            specified with the LOG /H command or the HistLogName 
  516.                            directive in the TCMDOS2.INI file. 
  517.  
  518.  Show Tool Bar 
  519.      Select this item to enable or disable the Take Command tool bar, which 
  520.      appears near the top of the Take Command window.  The tool bar will not 
  521.      appear unless at least one item has been defined for it with the Configure 
  522.      Tool Bar command, above. 
  523.  
  524.  Show Status Bar 
  525.      Select this item to enable or disable the Take Command status bar, which 
  526.      appears near the bottom of the Take Command window. 
  527.  
  528.  
  529. ΓòÉΓòÉΓòÉ 2.1.4.1.5. Utilities Menu ΓòÉΓòÉΓòÉ
  530.  
  531. The Utilities menu invokes dialogs to search for files and text or to set up 
  532. Take Command aliases, environment variables, or file descriptions.  It can also 
  533. start your editor. 
  534.  
  535.  Search Files/Text 
  536.      Opens the search files dialog which lets you search for files or text 
  537.      interactively (see FFIND to search from the command line). 
  538.  
  539.      Once Take Command has created a list of files based on your 
  540.      specifications, you can double-click on a file name and Take Command will 
  541.      display an information box about the file. From the information box, you 
  542.      can choose to list, edit, or run the file. 
  543.  
  544.  Descriptions 
  545.      Opens the descriptions dialog in which you can view and change the 
  546.      descriptions of files in any directory available on your system.  See 
  547.      DESCRIBE for details on file descriptions. 
  548.  
  549.  Aliases 
  550.      Opens the aliases dialog in which you can view and change the list of 
  551.      current aliases.  You can also use this window to import aliases from a 
  552.      file or save all current aliases in a file.  Any changes you make will 
  553.      take effect as soon as you close the Aliases window. For more information 
  554.      on aliases see the ALIAS command. 
  555.  
  556.  Environment 
  557.      Opens the environment dialog in which you can view and change the current 
  558.      environment.  Any changes you make will be immediately recorded in Take 
  559.      Command's environment. 
  560.  
  561.  Editor 
  562.      Starts the OS/2 E editor or any other editor you have specified with the 
  563.      Editor directive in TCMDOS2.INI or on the Commands page of the 
  564.      Configuration Notebook. 
  565.  
  566.  
  567. ΓòÉΓòÉΓòÉ 2.1.4.1.6. Help Menu ΓòÉΓòÉΓòÉ
  568.  
  569.  Help Index 
  570.      Displays the index for the Take Command help. 
  571.  
  572.  General Help 
  573.      Displays the table of contents for the Take Command help. 
  574.  
  575.  Keys Help 
  576.      Displays help for the Take Command command line.  From this help page you 
  577.      can select a subtopic which covers the keystroke information you need 
  578.      (e.g. command line editing, command history window, etc.). 
  579.  
  580.  Product Information 
  581.      Displays Take Command version, copyright, and license information. 
  582.  
  583.  
  584. ΓòÉΓòÉΓòÉ 2.1.4.2. Tool Bar ΓòÉΓòÉΓòÉ
  585.  
  586. The Take Command screen has an optional Tool Bar that you can use to execute 
  587. internal or external commands, aliases, batch files, and applications with the 
  588. click of a mouse. 
  589.  
  590. To create buttons for the Tool Bar, select Configure Tool Bar from the Setup 
  591. menu.  This selection displays the tool bar dialog. 
  592.  
  593. You can define up to 24 Tool Bar buttons. 
  594.  
  595. When you first install Take Command a sample tool bar is included.  Use the 
  596. tool bar dialog to remove or modify any of the sample buttons, or add buttons 
  597. of your own. 
  598.  
  599. To enable or disable the Tool Bar, use the ToolBarOn directive in TCMDOS2.INI, 
  600. the Tool Bar Enable setting on the Display page in the configuration notebook, 
  601. or the Show Tool Bar command in the Setup menu . 
  602.  
  603. The configuration dialog and TCMDOS2.INI settings are modified when you enable 
  604. and disable the tool bar from the Setup menu.  This preserves the tool bar 
  605. state when you close Take Command, and restores it the next time you start a 
  606. Take Command session. 
  607.  
  608.  
  609. ΓòÉΓòÉΓòÉ 2.1.4.3. Status Bar ΓòÉΓòÉΓòÉ
  610.  
  611. The Take Command screen has an optional Status Bar that shows information about 
  612. your system.  To enable or disable the Status Bar, use the StatusBarOn 
  613. directive in TCMDOS2 .INI, the Status Bar Enable setting on the Display page in 
  614. the configuration notebook, or the Show Status Bar command in the Setup menu. 
  615.  
  616. The configuration dialog and TCMDOS2.INI settings are modified when you enable 
  617. and disable the status bar from the Setup menu.  This preserves the tool bar 
  618. state when you close Take Command, and restores it the next time you start a 
  619. Take Command session. 
  620.  
  621. The Status Bar shows 5 pieces of information: 
  622.  
  623.     The Date, based on the OS/2 clock. 
  624.     The Time, based on the OS/2 clock. 
  625.     The size of the OS/2 swap file. 
  626.     The state of the Caps Lock key on the keyboard. 
  627.     The state of the Num Lock key on the keyboard. 
  628.  
  629. If the OS/2 swap file is not stored in the \OS2\SYSTEM directory of the boot 
  630. drive, you must use the SwapFilePath directive in TCMDOS2.INI or Take Command 
  631. will not be able to display the swap file size in the status bar. 
  632.  
  633.  
  634. ΓòÉΓòÉΓòÉ 2.1.4.4. Dialogs ΓòÉΓòÉΓòÉ
  635.  
  636. The Take Command menus invoke several dialog boxes: 
  637.  
  638.     Save To File Dialog 
  639.     Print Dialog 
  640.     Run Dialog 
  641.     Configuration Notebook 
  642.     Toolbar Dialog 
  643.     TTY Apps Dialog 
  644.     Search Files Dialog 
  645.     Descriptions Dialog 
  646.     Aliases Dialog 
  647.     Environment Dialog 
  648.  
  649.  
  650. ΓòÉΓòÉΓòÉ 2.1.4.4.1. Save To File Dialog ΓòÉΓòÉΓòÉ
  651.  
  652. This standard "Save As" dialog box allows you to select the file to use to save 
  653. the contents of the screen buffer. 
  654.  
  655.  
  656. ΓòÉΓòÉΓòÉ 2.1.4.4.2. Print Dialog ΓòÉΓòÉΓòÉ
  657.  
  658. This dialog allows you to print the contents of the screen buffer.  You can 
  659. select the printer to use, the print priority, and the number of copies.  The 
  660. Properties button will take you to the properties dialog for the printer you 
  661. have selected. 
  662.  
  663. If you have selected some text in the buffer, the Selection checkbox is 
  664. automatically marked.  If you leave it marked, Take Command prints only the 
  665. selected text.  If you remove the check mark, the entire buffer is printed. 
  666.  
  667.  
  668. ΓòÉΓòÉΓòÉ 2.1.4.4.3. Run Dialog ΓòÉΓòÉΓòÉ
  669.  
  670. The Apps/Run menu leads to the Run Program dialog.  In the Command Line edit 
  671. box, you can enter the name of any executable program plus command-line 
  672. parameters.  If you click on the arrow to the right of the edit box, the dialog 
  673. displays a list of previous commands you have entered during the current Take 
  674. Command session. 
  675.  
  676. The Normal, Minimized, and Maximized radio buttons determine the type of window 
  677. that will be used for the program.  If you select Minimized, the program will 
  678. start as an icon on the desktop or in the Minimized Window Viewer (depending on 
  679. your system default location for minimized window icons).  Maximized starts the 
  680. program in a full-screen window.  Normal lets the operating system select the 
  681. size and position of the program's window. 
  682.  
  683. The Browse button leads to a standard file browser, from which you can select 
  684. any executable program.  Your choice will be placed in the Command Line edit 
  685. box, and you can add parameters before pressing Enter or selecting OK to run 
  686. the program. 
  687.  
  688.  
  689. ΓòÉΓòÉΓòÉ 2.1.4.4.4. Toolbar Dialog ΓòÉΓòÉΓòÉ
  690.  
  691. This dialog allows you to define or modify buttons on the tool bar . 
  692.  
  693. Select the button you want to define or modify in the box on the left. 
  694.  
  695. Enter the button's label and the command to be executed when you select the 
  696. button in the fields at the bottom of the dialog box.  You can enter multiple 
  697. commands in the Command field by separating them with the command separator 
  698. character [&]. 
  699.  
  700. You can use the Browse button to find a path and filename to be entered at the 
  701. beginning of the Command field. 
  702.  
  703. Before entering a command to start an application program, be sure to check 
  704. whether the application must be started in a particular directory.  If so, you 
  705. should use a CDD command in the Command field before the application name, for 
  706. example: 
  707.  
  708.         cdd d:\source & d:\os2\apps\epm.exe
  709.  
  710. If the command line begins with an at-sign [@] the command will not be added to 
  711. the command history. Otherwise, all commands executed from the tool bar are 
  712. stored in the history. 
  713.  
  714. Use the radio buttons to select how you want the command to be executed: 
  715.  
  716.         *   Echo means display the tool bar command on the command line, but do 
  717.             not execute it.  You can add additional text to the line if you 
  718.             wish, then press Enter to execute the command.  This is the default 
  719.             setting. 
  720.  
  721.         *   Echo & Execute means display the tool bar command on the command 
  722.             line, then execute it immediately, without waiting for you to press 
  723.             Enter. 
  724.  
  725.         *   Execute w/o Echo means execute the tool bar command immediately, 
  726.             without waiting for you to press Enter, and without displaying the 
  727.             command. 
  728.  
  729.  The Font Size setting applies to all of the buttons on the tool bar.  If you 
  730.  make the font size too large (or make the Take Command window too small), 
  731.  buttons on the right hand end of the toolbar may not be visible even if the 
  732.  Take Command window is expanded to fill the screen. 
  733.  
  734.  If you exit by choosing the OK button, any changes you have made will be saved 
  735.  in the TCMDOS2.INI file, and reloaded automatically the next time you start 
  736.  Take Command.  If you use the Cancel button, your changes will be discarded. 
  737.  
  738.  If you don't specify a label for a button, a small space is created on the 
  739.  tool bar.  For example, if you define buttons 5 and 7 but leave button 6 
  740.  blank, Take Command will leave a space between buttons 5 and 7 when the tool 
  741.  bar is displayed.  You can use this feature to separate groups of buttons on 
  742.  the tool bar; however, the total number of buttons, including empty buttons, 
  743.  cannot exceed 24. 
  744.  
  745.  If you want to rearrange the order of the buttons on the tool bar, use an 
  746.  editor (e.g. OS/2's E editor) to edit the [Buttons] section of the .INI file. 
  747.  Simply rearrange the lines into the order you wish, and renumber the buttons 
  748.  accordingly. 
  749.  
  750.  
  751. ΓòÉΓòÉΓòÉ 2.1.4.4.5. TTY Apps Dialog ΓòÉΓòÉΓòÉ
  752.  
  753. This dialog allows you to specify which character-mode applications can be run 
  754. within the Take Command window.  If you are not familiar with the issues 
  755. involved in running character-mode applications inside the Take Command window, 
  756. read the separate section on Starting Character-Mode Applications before using 
  757. this dialog. 
  758.  
  759. The list box on the left shows currently defined TTY applications. 
  760.  
  761. The Command field shows the command line for the currently selected 
  762. application.  You can specify an executable file name (e.g. CHKDSK.COM), or a 
  763. full path name (e.g. C:\OS2\CHKDSK.COM). If you use a full path name, the entry 
  764. will apply only to that specific file. If you use just the file name, the entry 
  765. will apply to any file of that name, regardless of its location.  (For advanced 
  766. use of this field to name an entire directory of TTY applications, see the end 
  767. of this section.) 
  768.  
  769. The OS/2 and DOS radio buttons control whether Take Command treats the 
  770. application as a DOS or OS/2 program. 
  771.  
  772. The Enable checkbox enables or disables an application.  If the box is checked, 
  773. the application will be run within the Take Command window.  If the box is not 
  774. checked, the entry will be ignored.  This allows you to temporarily disable an 
  775. application (without removing it from the list) in order to test its 
  776. compatibility with Take Command's TTY application support. 
  777.  
  778. Your copy of Take Command comes with a list of applications which can be run 
  779. within the Take Command window.  The list is visible when you open the dialog, 
  780. and is also included in the README.DOC file.  However, all applications in the 
  781. list are initially disabled to ensure maximum compatibility.  This prevents 
  782. problems if you have a program with the same name as one we tested, but which 
  783. is not the same program or the same version.  To enable any application, select 
  784. it and check the Enable box. 
  785.  
  786. To modify an entry which is already in the TTY applications list, select the 
  787. application in the box on the left and press Enter (or double-click).  Modify 
  788. the Command field, the application type (DOS or OS/2), and the Enable checkbox 
  789. as desired. 
  790.  
  791. To add a new entry, select the Add button.  Fill in the Command field, set the 
  792. application type, and check the Enable button if desired.  You can use the 
  793. Browse button to find a path and filename to be entered at the beginning of the 
  794. Command field.  After creating a new entry you must press Enter to copy the new 
  795. entry to the listbox.  If you do not, the information about the new application 
  796. will be discarded. 
  797.  
  798. To delete an entry, select it in the list box, then select the Delete button. 
  799.  
  800. If you exit by choosing the OK button, any changes you have made will be saved 
  801. in the [TTYApps] of TCMDOS2.INI, and reloaded automatically the next time you 
  802. start Take Command.  If you use the Cancel button, your changes will be 
  803. discarded. 
  804.  
  805. In addition to the options described above, you can also enter a path without a 
  806. filename in the Command field (e.g., C:\OS2UTILS).  This will tell Take Command 
  807. to treat all DOS or OS/2 character-mode programs in the specified directory as 
  808. TTY applications.  If you use this option the OS2, DOS, and Enable buttons 
  809. apply to all applications in the specified directory.  This approach is useful 
  810. if you have many applications of the same type in a single directory, but 
  811. before you use it you should review the content of the directory carefully to 
  812. be sure all the character-mode programs stored there are compatible with Take 
  813. Command's TTY application support. 
  814.  
  815. If you do choose to configure an entire directory for TTY application support, 
  816. you can create exceptions by entering specific filenames from that directory 
  817. into the dialog as well.  For example, if you enable the directory C:\OS2UTILS 
  818. for TTY support, you could also add a listing for C:\OS2UTILS\MYAPP.EXE (or 
  819. simply for MYAPP.EXE, with no path), and make sure the Enable box is not 
  820. checked for the MYAPP entry.  This would prevent MYAPP.EXE from being treated 
  821. as a TTY application despite the entry for the directory as a whole.  If you 
  822. use this approach, the two listings can appear in any order. 
  823.  
  824. TTY application support for DOS programs depends on the TCNPDOS.COM file 
  825. distributed with Take Command.  This file must be available in the same 
  826. directory as TCMDOS2.EXE.  If it is not, Take Command will display an error 
  827. message if you try to run a DOS application within the Take Command window. 
  828.  
  829.  
  830. ΓòÉΓòÉΓòÉ 2.1.4.4.6. Search Files Dialog ΓòÉΓòÉΓòÉ
  831.  
  832. The Search Files/Text dialog box gives you the same features as the FFIND 
  833. command, in dialog form. 
  834.  
  835. Enter the file name or names you wish search in the Files field. You can use 
  836. wildcards and include lists as part of the file name.  To select files from 
  837. previous searches in the same Take Command session, click on the down arrow 
  838. beside the Files field, or press the up arrow [] or down arrow [] while the 
  839. input cursor is in the Files field.  You can also use the Browse button to find 
  840. files to include in the search. 
  841.  
  842. Enter the text (or hexadecimal values) you are searching for in the Text field. 
  843. You can use extended wildards in the search string to increase the flexibility 
  844. of the search.  Use back-quotes [`] around the text if you want to search for 
  845. characters which would otherwise be interpreted as wildcards, such as the 
  846. asterisk [*], question mark [?], or square brackets.  For example, to search 
  847. for an A, followed by some number of other characters, followed by a B, enter 
  848. the A*B as your search string.  To search for the literal string A*B (A, 
  849. followed by an asterisk, followed by B), enter `A*B` as your search string 
  850. search string (the closing back-quote is optional). 
  851.  
  852. Enter the drive(s) you want to search in the Disks field. This field is ignored 
  853. unless Entire Disk is selected in the Search portion of the dialog.  If you 
  854. select All Hard Disks, this field is set automatically to include all hard disk 
  855. drive letters Take Command finds on your system. 
  856.  
  857. The Match Case box, when it is selected, makes the search case- sensitive.  To 
  858. search for specific hexadecimal values (for example, to look for non-printing 
  859. characters), check Hex Search and enter the string in the Text field as a 
  860. series of one- or two-digit hexadecimal characters, separated by spaces (e.g., 
  861. 42 6F 70).  See the ASCII Table for hexadecimal values of ASCII and extended 
  862. ASCII characters. 
  863.  
  864. If you enable All Lines, every line from every file that contains the search 
  865. text will be displayed.  If this option is not enabled, only the first line 
  866. from such a file will be displayed. 
  867.  
  868. Unless you enable the Hidden Files option, files with the hidden attribute will 
  869. not be included in the search. 
  870.  
  871. The radio buttons in the Search area let you specify where you want Take 
  872. Command to look for files.  If you select Dir Only or Dir & Subdirs, the search 
  873. will begin in the current default directory, shown above the Files box.  If you 
  874. select Entire Disk, Take Command will use the drives that you specified in the 
  875. Disks field.  If you select All Hard Disks, Take Command will search all the 
  876. hard disk drives it finds on your system. 
  877.  
  878. To start the search, press the Find button.  Once the search has started the 
  879. Find button changes to a Stop button, which can use to interrupt the search 
  880. before it is finished. 
  881.  
  882. Once Take Command has finished searching, you can save the list of matching 
  883. files with the Export button. 
  884.  
  885. As you move the cursor over the list of matching files, information about each 
  886. file appears below the file list.  If you select one of the matching files in 
  887. the list (by double-clicking on it, or selecting it with the cursor and 
  888. pressing Enter), Take Command will display another dialog with complete 
  889. directory information about the file. 
  890.  
  891. From this second dialog you can Run the file (if it is an executable file, a 
  892. batch file, or has an executable extension), display the file with the LIST 
  893. command, or Edit the file.  If you choose List, the cursor will be placed on 
  894. the first matching text within the file.  When you exit from LIST or the 
  895. editor, the original list of matching files will still be available. 
  896.  
  897.  
  898. ΓòÉΓòÉΓòÉ 2.1.4.4.7. Descriptions Dialog ΓòÉΓòÉΓòÉ
  899.  
  900. This dialog allows you to create, modify, or delete file descriptions (if you 
  901. are not familiar with Take Command file descriptions, see the DESCRIBE command 
  902. for details). 
  903.  
  904. A list of files in the current directory is shown in the pane on the left side 
  905. of the dialog.  As you move the cursor in the pane, the description for the 
  906. file (if any) is shown in the Description field.  You can use this field to 
  907. edit or create the selected file's description. 
  908.  
  909. After changing a description you must press Enter (or select the OK button and 
  910. close the dialog) to record your changes on the disk. If you do not (for 
  911. example, if you change a description, then select another file without first 
  912. pressing Enter), your changes will be discarded. 
  913.  
  914. If you click Cancel any changes to the current description are discarded, and 
  915. the dialog is closed.  Cancel does not undo previous changes which were saved 
  916. by pressing the Enter key as described above. 
  917.  
  918. To delete a description, select the file, move to the description field and 
  919. delete all of the description text, then press Enter or click OK. 
  920.  
  921. To work in a different drive or directory, use the Drive and/or Directory 
  922. fields on the right side of the dialog to select the desired location. 
  923.  
  924. The dialog automatically includes all files in the list.  To select a specific 
  925. group of files of your own choosing, type a new filename in the Filename box. 
  926.  
  927. File descriptions can also be entered or changed with the DESCRIBE command, and 
  928. are visible when you use the DIR and SELECT commands. 
  929.  
  930.  
  931. ΓòÉΓòÉΓòÉ 2.1.4.4.8. Aliases Dialog ΓòÉΓòÉΓòÉ
  932.  
  933. The current list of aliases is shown in the pane on the left of this dialog 
  934. box.  As you move the cursor in the pane, the name of the alias under the 
  935. cursor is shown in the Name field and its definition is shown in the Value 
  936. field.  You can use these fields to edit the alias name or value. 
  937.  
  938. To add a new alias to the list, use the Add button.  The Name and Value fields 
  939. will be cleared so you can enter new values in each.  To save the new entry, 
  940. switch to a different entry or press Enter. 
  941.  
  942. The Delete button deletes the highlighted alias. 
  943.  
  944. The Import button reads a list of aliases from a file (similar to the ALIAS /R 
  945. command).  The Export button writes the current list to a file. 
  946.  
  947. Changes you make in this dialog are not saved in the alias list until you click 
  948. the OK button.  If you click Cancel the changes are discarded. 
  949.  
  950.  
  951. ΓòÉΓòÉΓòÉ 2.1.4.4.9. Environment Dialog ΓòÉΓòÉΓòÉ
  952.  
  953. The current environment variables are shown in the pane on the left of this 
  954. dialog box.  As you move the cursor in the pane, the name of each entry appears 
  955. in the Name field and its value appears in the Value field.  You can use these 
  956. fields to edit the environment entry. 
  957.  
  958. To add a entry to the list, use the Add button.  The Name and Value fields will 
  959. be cleared so you can enter new values in each. To save the new entry, switch 
  960. to a different entry or press Enter. 
  961.  
  962. The Delete button deletes the highlighted environment variable. 
  963.  
  964. The Import button reads a list of environment variables from a file (similar to 
  965. the SET /R command).  The Export button writes the current list to a file. 
  966.  
  967. Changes you make in this dialog are not saved in the environment until you 
  968. click the OK button.  If you click Cancel the changes are discarded. 
  969.  
  970.  
  971. ΓòÉΓòÉΓòÉ 2.1.5. Scrollback Buffer ΓòÉΓòÉΓòÉ
  972.  
  973. Take Command retains the text displayed on its screen in a "scrollback buffer". 
  974.  
  975. You can scroll through this buffer using the mouse and the vertical scroll bar 
  976. at the right side of the Take Command window, just as you can in any OS/2 GUI 
  977. application. 
  978.  
  979. You can also use the up-arrow [] and down-arrow [] keys to scroll the display 
  980. one line at a time from the keyboard, and the PgUp and PgDn keys to scroll one 
  981. page at a time. 
  982.  
  983. If you scroll back through the buffer to view previous output, and then enter 
  984. text on the command line, Take Command will automatically return to the bottom 
  985. of the buffer to display the text. 
  986.  
  987. If you prefer to use the arrow and PgUp keys to access the command history (as 
  988. in 4DOS and 4OS2), see the SwapScrollKeys directive in the TCMDOS2.INI file, or 
  989. the corresponding option on the Command Line page of the configuration dialogs. 
  990. SwapScrollKeys switches the keystroke mapping so that the , , and PgUp Keys 
  991. manipulate the command history, and Ctrl-, Ctrl-, Ctrl-PgUp, and Ctrl-PgDn 
  992. are used to control the scrollback buffer.  For more details see Scrolling and 
  993. History Keystrokes. 
  994.  
  995. You can set the size of the scrollback buffer on the Display page of the 
  996. configuration notebook (available from the Setup menu), or with the 
  997. ScreenBufSize directive in TCMDOS2.INI. 
  998.  
  999. To clear the entire scrollback buffer, use the CLS /C command. 
  1000.  
  1001.  
  1002. ΓòÉΓòÉΓòÉ 2.1.6. Resizing the Take Command Window ΓòÉΓòÉΓòÉ
  1003.  
  1004. You can resize the Take Command window at any time with standard OS/2 
  1005. techniques (e.g., by dragging a corner with the mouse).  Resizing the window 
  1006. changes the number of rows and columns of text which will fit in the command 
  1007. window (the actual number of rows and columns for any given window size depends 
  1008. on the font you are using).  Take Command reacts to these changes using two 
  1009. sets of rules:  one for the height and one for the width. 
  1010.  
  1011. When the height of the command window changes, future commands simply use the 
  1012. new height as you see it on the screen.  For example, if you reduce the window 
  1013. to three rows high and do a DIR /P (display a directory of files and pause at 
  1014. the bottom of each visual "page"), DIR will display two lines of output, a 
  1015. prompt ("Press any key to continue..."), and then pause.  If you expand the 
  1016. window to 40 lines high and repeat the same command, DIR will display 39 lines, 
  1017. a prompt, and then pause. 
  1018.  
  1019. However, when the width of the window changes, Take Command must check the 
  1020. current "virtual screen width".  The virtual width is the maximum number of 
  1021. characters on each line in Take Command's internal screen buffer.  You can 
  1022. think of it as the width of the data which can be displayed in the Take Command 
  1023. window, including an invisible portion to the right of the window's right-hand 
  1024. edge.  When the virtual width is larger than the actual width, a standard 
  1025. horizontal scroll bar is displayed to allow you to see any hidden output. 
  1026.  
  1027. The screen height normally starts at 25 lines; you can alter this default with 
  1028. the ScreenRows directive in the .INI file, or the Height setting on the Display 
  1029. page of the configuration dialogs.  The _ROWS internal variable can be used to 
  1030. determine the current screen height. 
  1031.  
  1032. The virtual screen width starts at 80 columns or the number of columns which 
  1033. fit into the startup Take Command window, whichever is larger.  You can alter 
  1034. the default minimum width of 80 columns with the ScreenColumns directive in the 
  1035. .INI file, or the Width setting on the Display page of the configuration 
  1036. dialogs.  The _COLUMNS internal variable can be used to determine the current 
  1037. virtual screen width. 
  1038.  
  1039. If you use keyboard commands or the mouse to expand the Take Command window 
  1040. beyond its previous virtual width, the virtual width is automatically 
  1041. increased.  This ensures that the internal buffer can hold lines which will 
  1042. fill the newly enlarged window.  If you contract the window, the virtual width 
  1043. is not reduced because this might require removing output already on the screen 
  1044. or in the scrollback buffer. 
  1045.  
  1046. As a result, widening the window will make future commands use the new enlarged 
  1047. size (for example, as the window is widened DIR /W, which displays a "wide" 
  1048. directory listing, will display additional columns of file names). However, if 
  1049. the window is narrowed future commands will still remember the enlarged virtual 
  1050. width, and display data to the right of the window edge.  The horizontal scroll 
  1051. bar will make this data visible. 
  1052.  
  1053. When the font is changed, Take Command will recalculate the virtual screen 
  1054. width.  The new virtual width will be the width set by the Screen Columns 
  1055. directive or on the Display page of the configuration dialogs, or the current 
  1056. width of the window in the new font, whichever is larger. 
  1057.  
  1058.  
  1059. ΓòÉΓòÉΓòÉ 2.1.7. Highlighting and Copying Text ΓòÉΓòÉΓòÉ
  1060.  
  1061. While you are working at the Take Command prompt you can use common keystrokes 
  1062. to edit commands, and use the OS/2 clipboard to copy text between Take Command 
  1063. and other applications.  You can also select all of the text in the Take 
  1064. Command screen buffer by using the Select All command on the Edit menu. 
  1065.  
  1066. To copy text from the Take Command window to the clipboard, first use the mouse 
  1067. to highlight the text, then press Ctrl-Ins, or use the Copy command on the Edit 
  1068. menu. 
  1069.  
  1070. If you double-click on a word in the Take Command window, the entire word is 
  1071. highlighted or selected.  You can also mark the text using mouse button 2 
  1072. (normally, the right mouse button); in this case the text will be copied to the 
  1073. clipboard immediately when you release the mouse button. 
  1074.  
  1075. To highlight text on the command line use the Shift key in conjunction with the 
  1076. Left, Right, Ctrl-Left, Ctrl-Right, Home, and End cursor movement keys.  The 
  1077. Del key will delete any highlighted text on the command line, or you can type 
  1078. new text to replace the highlighted text. 
  1079.  
  1080. While the Take Command window contains text, it is not a document window like 
  1081. those used by word processors and other similar software, and you cannot move 
  1082. the cursor throughout the window as you can in text processing programs.  As a 
  1083. result, you cannot use the OS/2 shortcut keys like Shift-Left or Shift-Right to 
  1084. highlight text in the window.  These keys work only at the command line; to 
  1085. highlight text elsewhere in the window you must use the mouse. 
  1086.  
  1087. To copy text from the clipboard to the command line use Shift-Ins, or the Paste 
  1088. command on the Edit menu. 
  1089.  
  1090. To paste text from elsewhere in the Take Command window directly onto the 
  1091. command line, highlight the text with the mouse and press Ctrl-Shift- Ins, or 
  1092. use the Copy+Paste command on the Edit menu.  This is equivalent to 
  1093. highlighting the text and pressing Ctrl-Ins followed by Shift-Ins.  It's a 
  1094. convenient way to copy a filename from a previous DIR or other command directly 
  1095. to the command line. 
  1096.  
  1097. You should use caution when pasting text containing carriage return or line 
  1098. feed characters onto the command line.  If the text you insert contains one of 
  1099. these characters the command line will be executed just as if you had pressed 
  1100. Enter.  If you insert multiple lines, the text will be treated just like 
  1101. multiple lines of commands typed at the prompt. 
  1102.  
  1103. You can also use OS/2's Drag and Drop facility to paste a filename from another 
  1104. application onto the command line. 
  1105.  
  1106.  
  1107. ΓòÉΓòÉΓòÉ 2.1.8. Using Drag and Drop ΓòÉΓòÉΓòÉ
  1108.  
  1109. Take Command is compatible with the OS/2 Drag-and-Drop facility. 
  1110.  
  1111. To add a filename to the command line using drag and drop, simply drag the file 
  1112. from another application using the mouse and release the mouse button with the 
  1113. file icon anywhere inside the Take Command window.  The full name of the file 
  1114. will be pasted onto the command line at the current cursor position. 
  1115.  
  1116. Take Command is a drag and drop "client," which means it can accept files 
  1117. dragged in from other applications and paste their names onto the command line 
  1118. as described above.  It is not a drag and drop "server," so you cannot drag 
  1119. filenames from the Take Command window into other applications.  However, you 
  1120. can copy filenames and other text from the Take Command screen to other 
  1121. applications using the clipboard; see Highlighting and Copying Text for 
  1122. details. 
  1123.  
  1124.  
  1125. ΓòÉΓòÉΓòÉ 2.1.9. Cursor Display on LCD Screens ΓòÉΓòÉΓòÉ
  1126.  
  1127. If you use a laptop or LCD screen and find the "I-Beam" cursor in the Take 
  1128. Command window difficult to see, use an IBeamCursor = No directive in the 
  1129. [TakeCommand] section of TCMDOS2.INI to force the use of an arrow cursor in all 
  1130. parts of the window. 
  1131.  
  1132.  
  1133. ΓòÉΓòÉΓòÉ 2.1.10. Take Command for 4DOS and 4OS2 Users ΓòÉΓòÉΓòÉ
  1134.  
  1135. If you're a 4DOS or 4OS2 user, many of the features in Take Command will seem 
  1136. very familiar.  Because the underlying command processing in Take Command is 
  1137. based on 4DOS and 4OS2, you'll find the features of those products are readily 
  1138. accessible.  All the commands and switches you're familiar with work the same 
  1139. way and have the same meaning in Take Command; the only exceptions are those 
  1140. that don't make sense in the OS/2 GUI environment. 
  1141.  
  1142. Other 4DOS and 4OS2 features are included in Take Command as well -- you'll 
  1143. find support for command line editing, command and directory histories, 
  1144. aliases, .BTM files, and virtually all the other features you already know. 
  1145.  
  1146. Even if you've never used 4DOS or 4OS2, you'll notice plenty of familiar items 
  1147. in Take Command.  Like these products, Take Command is compatible with the 
  1148. default OS/2 command processor (CMD.EXE), which you've probably used from the 
  1149. objects in the OS/2 Command Prompts folder. 
  1150.  
  1151. There are also a few differences between running under 4DOS and 4OS2 (or 
  1152. CMD.EXE) and running under Take Command. 
  1153.  
  1154. In order to support the Take Command screen scrollback buffer, some Take 
  1155. Command keystrokes are different from what you may be used to in 4DOS or 4OS2. 
  1156. See Scrolling and History Keystrokes for more details. 
  1157.  
  1158. Some command-line editing defaults have also been changed to conform more 
  1159. closely to OS/2 GUI conventions.  In Take Command the default editing mode is 
  1160. insert, not overstrike, and the default insert-mode cursor is a line, not a 
  1161. block.  You can change these defaults with statements in TCMDOS2.INI or via the 
  1162. Command Line page of the configuration notebook, accessible from the Setup 
  1163. menu. 
  1164.  
  1165. Before using your 4DOS or 4OS2 batch files and aliases under Take Command, see 
  1166. Using 4OS2 Batch Files and Aliases. 
  1167.  
  1168. What's new in Take Command are OS/2 GUI-related features, including: 
  1169.  
  1170.         *   A built-in scrollback buffer that lets you look back through the 
  1171.             output from past commands. 
  1172.  
  1173.         *   A standard menu bar for access to many commonly-used Take Command 
  1174.             features. 
  1175.  
  1176.         *   A status bar showing memory and resource usage. 
  1177.  
  1178.         *   A customizable tool bar that gives you quick access to commands and 
  1179.             applications. 
  1180.  
  1181.         *   Dialogs, accessible from the Options and Utilities menus, for 
  1182.             editing environment variables, aliases, file descriptions, and 
  1183.             startup parameters (the TCMDOS2.INI file). 
  1184.  
  1185.         *   High-speed, dialog-based file and text search (see "Search 
  1186.             Files/Text" on the Utilities menu). The new FFIND command gives you 
  1187.             the same capabilities at the Take Command prompt. 
  1188.  
  1189.         *   Commands like ACTIVATE, MSGBOX, and QUERYBOX that allow you to use 
  1190.             OS/2 features and control OS/2 applications from your batch files. 
  1191.  
  1192.  
  1193. ΓòÉΓòÉΓòÉ 2.2. Using the Command Line ΓòÉΓòÉΓòÉ
  1194.  
  1195. Take Command displays a [c:\] prompt when it is waiting for you to enter a 
  1196. command.  (The actual text depends on the current drive and directory as well 
  1197. as your PROMPT settings.)  This is called the command line and the prompt is 
  1198. asking you to enter a command, an alias or batch file name, or the instructions 
  1199. necessary to begin an application program. 
  1200.  
  1201. This section explains the features that will help you while you are typing in 
  1202. commands and how keystrokes are interpreted when you enter them at the command 
  1203. line.  The keystrokes discussed here are the ones normally used by Take 
  1204. Command.  If you prefer using different keystrokes to perform these functions, 
  1205. you can assign new ones with key mapping directives in the .INI file. 
  1206.  
  1207. The command line features documented in this section are: 
  1208.  
  1209.             Command-Line Editing 
  1210.             Command History and Recall 
  1211.             Command History Window 
  1212.             Command Names and Parameters 
  1213.             Filename Completion 
  1214.             Automatic Directory Changes 
  1215.             Directory History Window (includes details about local and global 
  1216.             directory histories) 
  1217.             Multiple Commands 
  1218.             Expanding and Disabling Aliases 
  1219.             Command-Line Length Limits 
  1220.  
  1221.  Additional command-line features are documented under File Selection, 
  1222.  Directory Navigation, and Other Features. 
  1223.  
  1224.  
  1225. ΓòÉΓòÉΓòÉ 2.2.1. Command-Line Editing ΓòÉΓòÉΓòÉ
  1226.  
  1227. The command line works like a single-line word processor, allowing you to edit 
  1228. any part of the command at any time before you press Enter to execute it, or 
  1229. Esc to erase it.  The command line extends to a maximum of 1023 characters. 
  1230.  
  1231. You can use the following editing keys when you are typing a command (the words 
  1232. Ctrl and Shift mean to press the Ctrl Or Shift key together with the other key 
  1233. named): 
  1234.  
  1235. Cursor Movement Keys: 
  1236.  
  1237.                        Move the cursor left one character. 
  1238.                        Move the cursor right one character. 
  1239.         Ctrl-          Move the cursor left one word. 
  1240.         Ctrl-          Move the cursor right one word. 
  1241.         Home            Move the cursor to the beginning of the line. 
  1242.         End             Move the cursor to the end of the line. 
  1243.  
  1244.  Insert and Delete: 
  1245.  
  1246.         Ins             Toggle between insert and overtype mode. 
  1247.         Del             Delete the character at the cursor. 
  1248.         Backspace       Delete the character to the left of the cursor. 
  1249.         Ctrl-          Delete the word or partial word to the left of the 
  1250.                         cursor. 
  1251.         Ctrl-          or Ctrl-Bksp  Delete the word or partial word to the 
  1252.                         right of the cursor. 
  1253.         Ctrl-Home       Delete from the beginning of the line to the cursor. 
  1254.         Ctrl-End        Delete from the cursor to the end of the line. 
  1255.         Esc             Delete the entire line. 
  1256.         Shift-Ins       Insert the text from the clipboard at the current 
  1257.                         cursor postion on the command line. 
  1258.         Ctrl-Shift-Ins  Insert the highlighed text (from anywhere in the 
  1259.                         window) at the current cursor postion on the command 
  1260.                         line. 
  1261.  
  1262.  Execution: 
  1263.  
  1264.         Ctrl-C          or Ctrl-Break  Cancel the command line. 
  1265.         Enter           Execute the command line. 
  1266.  
  1267.  To highlight text on the command line use the mouse, or hold down the Shift 
  1268.  key and use any of the cursor movement keys listed above.  You can select a 
  1269.  complete word by placing the cursor anywhere in the word and double-clicking 
  1270.  with the mouse. 
  1271.  
  1272.  Once you have selected or highlighted text on the command line, any new text 
  1273.  you type will replace the highlighted text.  If you press Bksp or Del while 
  1274.  there is text highlighted on the command line, the highlighted text will be 
  1275.  deleted. 
  1276.  
  1277.  While you are working at the Take Command prompt, you can use the OS/2 
  1278.  clipboard to copy text between Take Command and other applications (see 
  1279.  Highlighting and Copying Text.  You can also use Drag and Drop to paste a 
  1280.  filename from another application onto the command line. 
  1281.  
  1282.  Most of the command-line editing capabilities are also available when Take 
  1283.  Command prompts you for a line of input.  For example, you can use the 
  1284.  command-line editing keys when DESCRIBE prompts for a file description, when 
  1285.  INPUT prompts for input from an alias or batch file, or when LIST prompts you 
  1286.  for a search string. 
  1287.  
  1288.  If you want your input at the command line to be in a different color from the 
  1289.  command processor's prompts or output, you can use the Display page of the 
  1290.  configuration notebook, or the InputColors directive in the TCMDOS2.INI file. 
  1291.  
  1292.  Take Command will prompt for additional command-line text when you include the 
  1293.  escape character as the very last character of a typed command line.  The 
  1294.  default escape character is the caret [^].  For example: 
  1295.  
  1296.           [c:\] echo The quick brown fox jumped over the lazy^
  1297.           More? sleeping dog. > alphabet
  1298.  
  1299.  Sometimes you may want to enter one of the command line editing  keystrokes on 
  1300.  the command line instead of performing the key's usual action.  For example, 
  1301.  suppose you have a program that requires a Ctrl-R character on its command 
  1302.  line.  Normally you couldn't type this keystroke at the prompt, because it 
  1303.  would be interpreted as a "Delete word right" command. 
  1304.  
  1305.  To get around this problem, use the special keystroke Alt-255.  You enter 
  1306.  Alt-255 by holding down the Alt key while you type 255 on the numeric keypad, 
  1307.  then releasing the Alt key (you must use the number keys on the numeric pad; 
  1308.  the row of keys at the top of your keyboard won't work).  This forces Take 
  1309.  Command to interpret the next keystroke literally and places it on the command 
  1310.  line, ignoring any special meaning it would normally have as a command-line 
  1311.  editing or history keystroke. You can use Alt-255 to suppress the normal 
  1312.  meaning of command-line editing keystrokes even if they have been reassigned 
  1313.  with key mapping directives in the TCMDOS2.INI file, and Alt-255 itself can be 
  1314.  reassigned with the CommandEscape directive. 
  1315.  
  1316.  
  1317. ΓòÉΓòÉΓòÉ 2.2.2. Command History and Recall ΓòÉΓòÉΓòÉ
  1318.  
  1319. Each time you execute a command, the entire command line is saved in a command 
  1320. history list.  You can display the saved commands, search the list, modify 
  1321. commands, and rerun commands.  The command history is available at the command 
  1322. prompt and in a special command history window. 
  1323.  
  1324. Command History Keys: 
  1325.  
  1326.         Ctrl-          Recall the previous (or most recent) command, or the 
  1327.                         most recent command that matches a partial command 
  1328.                         line. 
  1329.         Ctrl-          Recall the next (or oldest) command, or the oldest 
  1330.                         command that matches a partial command line. 
  1331.         F3              Fill in the rest of the command line from the previous 
  1332.                         command, beginning at the current cursor position. 
  1333.         Ctrl-D          Delete the currently displayed history list entry, 
  1334.                         erase the command line, and display the previous 
  1335.                         (matching) history list entry. 
  1336.         Ctrl-E          Display the last entry in the history list. 
  1337.         Ctrl-K          Save the current command line in the history list 
  1338.                         without executing it, and then clear the command line. 
  1339.         Ctrl-Enter      Copy the current command line to the end of the history 
  1340.                         list even it has not been altered, then execute it. 
  1341.         @               As the first character in a line: Do not save the 
  1342.                         current line in the history list when it is executed, 
  1343.                         and do not store it in the CMDLINE environment 
  1344.                         variable. 
  1345.  
  1346.  Use the Ctrl- key repeatedly to scan back through the history list.  When the 
  1347.  desired command appears, press Enter to execute it again.  After you have 
  1348.  found a command, you can edit it before pressing Enter. 
  1349.  
  1350.  The history list is normally "circular".  If you move to the last command in 
  1351.  the list and then press the Ctrl- one more time, you'll see the first command 
  1352.  in the list.  Similarly, if you move to the first command in the list and then 
  1353.  press the Ctrl- one more time, you'll see the last command in the list.  You 
  1354.  can disable this feature and make command history recall stop at the beginning 
  1355.  or end of the list by turning off History Wrap on the Command Line 1 page of 
  1356.  the configuration notebook, or setting HistWrap to No in TCMDOS2.INI. 
  1357.  
  1358.  If you prefer to use the arrow keys to access the command history with having 
  1359.  to press Ctrl (as in 4OS2 and 4DOS), see the SwapScrollKeys directive in 
  1360.  TCMDOS2.INI, or the corresponding option on the Command Line 1 page of the 
  1361.  configuration notebook.  SwapScrollKeys switches the keystroke mapping so that 
  1362.  the , , and PgUp keys manipulate the command history, and Ctrl-, Ctrl-, 
  1363.  Ctrl-PgUp, and Ctrl-PgDn are used to control the scrollback buffer.  For more 
  1364.  details see Scrolling and History Keystrokes. 
  1365.  
  1366.  You can search the command history list to find a previous command quickly 
  1367.  using command completion. 
  1368.  
  1369.  Just enter the first few characters of the command you want to find and press 
  1370.  Ctrl-.  You only need to enter enough characters to identify the command that 
  1371.  you want to find.  If you press the Ctrl-  key a second time, you will see 
  1372.  the previous command that matches.  The system will beep if there are no 
  1373.  matching commands.  The search process stops as soon as you type one of the 
  1374.  editing keys, whether or not the line is changed.  At that point, the line 
  1375.  you're viewing becomes the new line to match if you press Ctrl- again. 
  1376.  
  1377.  You can specify the size of the command history list on the Startup page of 
  1378.  the Configuration notebook, or with the History directive in TCMDOS2.INI. 
  1379.  When the list is full, the oldest commands are discarded to make room for new 
  1380.  ones.  You can also use the Command Line 1 page of the configuration notebook 
  1381.  HistMin directive in the .INI file to enable or disable history saves and to 
  1382.  specify the shortest command line that will be saved. 
  1383.  
  1384.  When you execute a command from the history, that command remains in the 
  1385.  history list in its original position.  The command is not copied to the end 
  1386.  of the list (unless you modify it).  If you want each command to be copied or 
  1387.  moved to the end of the list when it is re-executed, set HistCopy or HistMove 
  1388.  to Yes in TCMDOS2.INI or select Copy to End or Move to End on the Command Line 
  1389.  1 page of the configuration notebook.  If you select either of these options, 
  1390.  the list entry identified as "current" (the entry from which commands are 
  1391.  retrieved when you press Ctrl-Up Arrow) is also adjusted to refer to the end 
  1392.  of the history list after each recalled command is executed. 
  1393.  
  1394.  Local and Global Command History 
  1395.  
  1396.  The command history can be stored in either a "local" or "global" list. 
  1397.  
  1398.  With a local history list, any changes made to the history will only affect 
  1399.  the current copy of Take Command.  They will not be visible in other shells, 
  1400.  or other sessions. 
  1401.  
  1402.  With a global history list, all copies of Take Command will share the same 
  1403.  command history, and any changes made to the history in one copy will affect 
  1404.  all other copies.  Global lists are the default for Take Command.  You can 
  1405.  control the type of history list with the LocalHistory directive in 
  1406.  TCMDOS2.INI, and with the /L and /LH options of the START command. 
  1407.  
  1408.  If you select a global history list for Take Command you can share the history 
  1409.  among all copies of Take Command running in any session.  When you close all 
  1410.  Take Command sessions, the memory for the global history list is released, and 
  1411.  a new, empty history list is created the next time you start Take Command. 
  1412.  
  1413.  If you want the command history to be retained in memory even when no Take 
  1414.  Command session is running, see the SHRALIAS command, which retains the global 
  1415.  alias, command history, and directory history lists. 
  1416.  
  1417.  SHRALIAS retains the command history in memory, but cannot preserve it when 
  1418.  OS/2 itself is shut down.  To save history list when restarting OS/2, you must 
  1419.  store it in a file and reload it after the system restarts.  For details on 
  1420.  how to do so, see the HISTORY command. 
  1421.  
  1422.  
  1423. ΓòÉΓòÉΓòÉ 2.2.3. Command History Window ΓòÉΓòÉΓòÉ
  1424.  
  1425. You can view the command history in a scrollable command history window, and 
  1426. select the command to re-execute or modify from those displayed in the window. 
  1427.  
  1428. Command History Window Keys: 
  1429.  
  1430.         Ctrl-PgUp       (from the command line)  Open the command history 
  1431.                         window. 
  1432.          or Ctrl-PgDn 
  1433.                        Scroll the display up one line. 
  1434.                        Scroll the display down one line. 
  1435.                        Scroll the display left 4 columns. 
  1436.                        Scroll the display right 4 columns. 
  1437.         PgUp            Scroll the display up one page. 
  1438.         PgDn            Scroll the display down one page. 
  1439.         Ctrl-PgUp       Go to the beginning of the history list. 
  1440.          or Home 
  1441.         Ctrl-PgDn       Go to the end of the history list. 
  1442.          or End 
  1443.         Ctrl-D          Delete the selected line from the history list. 
  1444.         Enter           Execute the selected line. 
  1445.         Ctrl-Enter      Move the selected line to the command line for editing. 
  1446.          or Ctrl-Double Click 
  1447.  
  1448.  To activate the command history window press Ctrl-PgUp or Ctrl-PgDn at the 
  1449.  command line.  A window will appear in the upper right corner of the screen, 
  1450.  with the command you most recently executed marked with a highlight. (If you 
  1451.  just finished re-executing a command from the history, then the next command 
  1452.  in sequence will be highlighted.) 
  1453.  
  1454.  Once you have selected a command in the history window, press Enter or 
  1455.  double-click with the mouse to execute it immediately.  Press Ctrl- Enter or 
  1456.  hold down the Ctrl key while you double-click with the mouse to move the line 
  1457.  to the prompt for editing (you cannot edit the line directly in the history 
  1458.  window). 
  1459.  
  1460.  You can view a "filtered" history window by typing some characters on the 
  1461.  command line, then pressing Ctrl-PgUp or Ctrl-PgDn. Only those commands 
  1462.  matching the typed characters will be displayed in the window. 
  1463.  
  1464.  See Popup Windows for information on customizing window position and size. 
  1465.  
  1466.  If you prefer to use the PgUp key to access the command history without having 
  1467.  to press Ctrl (as in 4OS2 and 4DOS), see the SwapScrollKeys directive in 
  1468.  TCMDOS2.INI, or the corresponding option on the Command Line page of the 
  1469.  configuration notebook. SwapScrollKeys switches the keystroke mapping so that 
  1470.  the  and PgUp keys manipulate the command history, and Ctrl-, Ctrl-, 
  1471.  Ctrl-PgUp, and Ctrl-PgDn are used to control the scrollback buffer.  For more 
  1472.  details see Scrolling and History Keystrokes. 
  1473.  
  1474.  
  1475. ΓòÉΓòÉΓòÉ 2.3. Command Names and Parameters ΓòÉΓòÉΓòÉ
  1476.  
  1477. When you enter a command you type its name at the prompt, followed by a space 
  1478. and any parameters for the command.  For example, all of these could be valid 
  1479. commands: 
  1480.  
  1481.       [c:\] dir
  1482.       [c:\] copy file1 file2 d:\
  1483.       [c:\] f:\util\mapmem /v
  1484.       [c:\] "c:\my programs\jp software\take command\tcmdos2.exe" /l
  1485.  
  1486. The last three commands above include both a command name, and one or more 
  1487. parameters.  There are no spaces within the command name (except in quoted file 
  1488. names), but there is a space between the command name and any parameeters, and 
  1489. there are spaces between the parameters. 
  1490.  
  1491. Some commands may work when parameters are entered directly after the command 
  1492. (without an intervening space, e.g. dir/p), or when several parameters are 
  1493. entered without spaces between them (e.g. dir /2/p). A very few older programs 
  1494. may even require this approach.  However leaving out spaces in this way is 
  1495. usually technically incorrect, and is not recommended as a general practice, as 
  1496. it may not work for all commands. 
  1497.  
  1498. If the command name includes a path, the elements must be separated with 
  1499. backslashes (e.g. f:\util\mapmem).  If you are accustomed to Unix syntax where 
  1500. forward slashes are used in command paths, and want Take Command to recognize 
  1501. this approach, you can set UnixPaths to Yes in TCMDOS2.INI. 
  1502.  
  1503. For more information on command entry see Multiple Commands and Command-Line 
  1504. Length Limits. 
  1505.  
  1506.  
  1507. ΓòÉΓòÉΓòÉ 2.3.1. Filename Completion ΓòÉΓòÉΓòÉ
  1508.  
  1509. Filename completion can help you by filling in a complete file name on the 
  1510. command line when you only remember or woant to type part of the name. Filename 
  1511. completion can be used at the command line, which is explained here, and in a 
  1512. filename completion window. 
  1513.  
  1514. Filename Completion Keys: 
  1515.  
  1516.         F8                  Get the previous matching filename. 
  1517.          or Shift-Tab 
  1518.         F9                  Get the next matching filename. 
  1519.          or Tab 
  1520.         Ctrl-Shift-Tab      Keep the current matching filename and display the 
  1521.                             next matching name immediately after the current 
  1522.                             one. 
  1523.          or F11 
  1524.  
  1525.  For example, if you know the name of a file begins AU but you can't remember 
  1526.  the rest of the name, type: 
  1527.  
  1528.           [c:\] copy au
  1529.  
  1530.  and then press the Tab key or F9 key.  Take Command will search the current 
  1531.  directory for filenames that begin AU and insert the first one onto the 
  1532.  command line in place of the AU that you typed. 
  1533.  
  1534.  If this is the file that you want, simply complete the command.  If Take 
  1535.  Command didn't find the file that you were looking for, press Tab or F9 again 
  1536.  to substitute the next filename that begins with AU.  When there are no more 
  1537.  filenames that match your pattern, the system will beep each time you press 
  1538.  Tab or F9. 
  1539.  
  1540.  If you go past the filename that you want, press Shift-Tab or F8 to back up 
  1541.  and return to the previous matching filename.  After you back up to the first 
  1542.  filename, the system will beep each time you press Shift-Tab or F8. 
  1543.  
  1544.  If you want to enter more than one matching filename on the same command line, 
  1545.  press Ctrl-Shift-Tab or F11 when each desired name appears.  This will keep 
  1546.  that name and place the next matching filename after it on the command line. 
  1547.  You can then use Tab (or F9) and Shift-Tab (or F8) and Ctrl-Shift-Tab (or F11) 
  1548.  to move through the remaining matching files. 
  1549.  
  1550.  The pattern you use for matching may contain any valid filename characters, as 
  1551.  well as wildcard characters and extended wildcards.  For example, you can copy 
  1552.  the first matching .TXT file by typing 
  1553.  
  1554.           [c:\] copy *.txt
  1555.  
  1556.  and then pressing Tab. 
  1557.  
  1558.  If you don't specify part of a filename before pressing Tab, the matching 
  1559.  pattern will be *.*.  If you type a filename without an extension, Take 
  1560.  Command will add "*.*" to the name.  It will also place a "*" after a partial 
  1561.  extension.  If you are typing a group of file names in an Include Lists, the 
  1562.  part of the include list at the cursor will be used as the pattern to match. 
  1563.  
  1564.  When filename completion is used at the start of the command line, it will 
  1565.  only match directories, executable files, and files with executable extensions 
  1566.  , since these are the only file names that it makes sense to use at the start 
  1567.  of a command.  If a directory is found, a "\" will be appended to it to enable 
  1568.  an automatic directory change. 
  1569.  
  1570.  Several topics are related to filename completion.  See 
  1571.  
  1572.              Appending Backslashes to Directory Names 
  1573.              Customizing Filename Completion 
  1574.              Filename Completion Window 
  1575.  
  1576.  
  1577. ΓòÉΓòÉΓòÉ 2.3.1.1. Appending Backslashes to Directory Names ΓòÉΓòÉΓòÉ
  1578.  
  1579. If you set the AppendToDir directive in the TCMDOS2.INI file, or the 
  1580. corresponding option on the Command Line 1 page of the configuration dialogs, 
  1581. Take Command will add a trailing backslash [\] to all directory names.  This 
  1582. feature can be especially handy if you use filename completion to specify files 
  1583. that are not in the current directory -- a succession of Tab (or F9) and 
  1584. Ctrl-Shift-Tab keystrokes can build a complete path to the file you want to 
  1585. work with. 
  1586.  
  1587. The following example shows the use of this technique to edit the file 
  1588. C:\DATA\FINANCE\MAPS.DAT.  The lines which include "<F9>" show where F9 (or 
  1589. Tab) is pressed; the other lines show how the command line appears after the 
  1590. previous F9 or Tab (the example is displayed on several lines here, but all 
  1591. appears at a single command prompt when you actually perform the steps): 
  1592.  
  1593.         1  [c:\] edit \da <F9>
  1594.         2  [c:\] edit \data\
  1595.         3  [c:\] edit \data\f <F9>
  1596.         4  [c:\] edit \data\frank.doc <F9>
  1597.         5  [c:\] edit \data\finance\
  1598.         6  [c:\] edit \data\finance\map <F9>
  1599.         7  [c:\] edit \data\finance\maps.dat
  1600.  
  1601. Note that F9 was pressed twice in succession on lines 3 and 4, because the file 
  1602. name displayed on line 3 was not what was needed ╨º we were looking for the 
  1603. FINANCE directory, which came up the second time F9 was pressed.  In this 
  1604. example, filename completion saves about half the keystrokes that would be 
  1605. required to type the name in full.  If you are using long file or directory 
  1606. names, the savings can be much greater. 
  1607.  
  1608.  
  1609. ΓòÉΓòÉΓòÉ 2.3.1.2. Customizing Filename Completion ΓòÉΓòÉΓòÉ
  1610.  
  1611. You can customize filename completion for any internal or external command or 
  1612. alias.  This allows the command processor to display filenames intelligently 
  1613. based on the command you are entering.  For example, you might want to see only 
  1614. .TXT files when you use filename completion in the EDIT command. 
  1615.  
  1616. To customize filename completion you can use the Command Line 1 page of the 
  1617. configuration dialogs, or set the FileCompletion directive manually in the 
  1618. TCMDOS2.INI file.  You can also use the FILECOMPLETION environment variable. 
  1619. If you use both, the environment variable will override the settings in your 
  1620. .INI file.  You may find it useful to use the environment variable for 
  1621. experimenting, then create permanent settings with the configuration dialogs or 
  1622. the FileCompletion directive. 
  1623.  
  1624. The format for both the environment variable and the TCMDOS2.INI file is: 
  1625.  
  1626.         cmd1:ext1 ext2 ...; cmd2: ...
  1627.  
  1628. where "cmd" is a command name and "ext" is a file extension (which may include 
  1629. wildcards) or one of the following file types: 
  1630.  
  1631.         DIRS        Directories 
  1632.         RDONLY      Read-only files 
  1633.         HIDDEN      Hidden files 
  1634.         SYSTEM      System files 
  1635.         ARCHIVE     Files modified since the last backup 
  1636.  
  1637.  The command name is the internal command, alias command, or executable file 
  1638.  name (without a path).  For example, to have file completion return only 
  1639.  directories for the CD command and only .C and .ASM files for a Windows editor 
  1640.  called WinEdit, you would use this setting for filename completion in the 
  1641.  configuration dialogs: 
  1642.  
  1643.           FileCompletion=cd:dirs; winedit:c asm
  1644.  
  1645.  To set the same values using the environment variable, you would use this 
  1646.  line: 
  1647.  
  1648.           [c:\] set filecompletion=cd:dirs; winedit:c asm
  1649.  
  1650.  With this setting in effect, if you type "CD " and then pressed Tab, Take 
  1651.  Command will return only directories, not files.  If you type "B " and press 
  1652.  Tab, you will see only names of .C and .ASM files. 
  1653.  
  1654.  Take Command does not check your command line for aliases before matching the 
  1655.  commands for customized file completion.  Instead, it ignores any path or file 
  1656.  extension information in the first word of the command, and then searches the 
  1657.  FILECOMPLETION environment variable and the FileCompletion directive the 
  1658.  TCMDOS2.INI file to find a match that will limit the files selected for 
  1659.  filename completion 
  1660.  
  1661.  
  1662. ΓòÉΓòÉΓòÉ 2.3.1.3. Filename Completion Window ΓòÉΓòÉΓòÉ
  1663.  
  1664. You can view filenames in a scrollable filename completion window and select 
  1665. the file you want to work with.  To activate the window, press F7 or Ctrl-Tab 
  1666. at the command line. You will see a window in the upper-right corner of the 
  1667. screen, with a sorted list of files that match any partial filename you have 
  1668. entered on the command line.  If you haven't yet entered a file name, the 
  1669. window will contain the name of all files in the current directory.  You can 
  1670. search for a name by typing the first few characters; see Popup Windows for 
  1671. details. (Ctrl-Tab will work only if your keyboard and keyboard driver support 
  1672. it.  If it does not work on your system, use F7 instead.) 
  1673.  
  1674. See Popup Windows for information on customizing window position and size. 
  1675.  
  1676. Filename Completion Window Keys: 
  1677.  
  1678.         F7                  (from the command line)  Open the filename 
  1679.                             completion window. 
  1680.          or Ctrl-Tab 
  1681.                            Scroll the display up one line. 
  1682.                            Scroll the display down one line. 
  1683.                             Scroll the display left 4 columns. 
  1684.                             Scroll the display right 4 columns. 
  1685.         PgUp                Scroll the display up one page. 
  1686.         PgDn                Scroll the display down one page. 
  1687.         Ctrl-PgUp           Go to the beginning of the filename list. 
  1688.          or Home 
  1689.         Ctrl-PgDn           Go to the end of the filename list. 
  1690.          or End 
  1691.         Enter               Insert the selected filename into the command line. 
  1692.          or Double click 
  1693.  
  1694.  
  1695. ΓòÉΓòÉΓòÉ 2.3.2. Automatic Directory Changes ΓòÉΓòÉΓòÉ
  1696.  
  1697. [Automatic directory changes are part of a set of comprehensive directory 
  1698. navigation features built into Take Command.  For a summary of these features, 
  1699. and more information on the Extended Directory Searches and CDPATH features 
  1700. mentioned below, see the Directory Navigation section.] 
  1701.  
  1702. The automatic directory change feature lets you change directories quickly from 
  1703. the command prompt, without entering an explicit CD or CDD command.  To do so, 
  1704. simply type the name of the directory you want to change to at the prompt, with 
  1705. a backslash [\] at the end.  For example: 
  1706.  
  1707.         [c:\] tcmd\
  1708.         [c:\tcmd]
  1709.  
  1710. This feature can make directory changes very simple when it's combined with 
  1711. Extended Directory Searches or CDPATH.  If you have enabled either of those 
  1712. features, Take Command will use them in searching for any directory you change 
  1713. to with an automatic directory change (see Directory Navigation for more 
  1714. information on CDPATH and Extended Directory Searches). 
  1715.  
  1716. For example, suppose Extended Directory Searches are enabled, and the directory 
  1717. WIN exists on drive E:.  You can change to this directory with a single word on 
  1718. the command line: 
  1719.  
  1720.         [c:\tcmd] win\
  1721.         [e:\win]
  1722.  
  1723. (Depending on the way Extended Directory Changes are configured, and the number 
  1724. of subdirectories on your disk whose names contain the string WIN, when you 
  1725. execute such a command you may see an immediate change as shown above, or a 
  1726. popup window which contains a list of subdirectories named WIN to choose from.) 
  1727.  
  1728. The text before the backslash can include a drive letter, a full path, a 
  1729. partial path, or a UNC name. Commands like "....\" can be used to move up the 
  1730. directory tree quickly (see Extended Parent Directory Names). Automatic 
  1731. directory changes save the current directory, so it can be recalled with a "CDD 
  1732. -" or "CD -" command.  For example, any of the following are valid automatic 
  1733. directory change entries: 
  1734.  
  1735.         [c:\] d:\data\finance\
  1736.         [c:\] archives\
  1737.         [c:\] ...\util\os2\
  1738.         [c:\] \\server\vol1\george\
  1739.  
  1740. The first and last examples change to the named directory.  The second changes 
  1741. to the ARCHIVES subdirectory of the current directory, and the third changes to 
  1742. the UTIL\OS2 subdirectory of the directory which is two levels "up" from the 
  1743. current directory in the tree. 
  1744.  
  1745.  
  1746. ΓòÉΓòÉΓòÉ 2.3.3. ┬áDirectory History Window ΓòÉΓòÉΓòÉ
  1747.  
  1748. [The directory history window is part of a set of compreshensive directory 
  1749. navigation features built into Take Command.  For a summary of thse features, 
  1750. and more information on enhanced directory navigation features, see Directory 
  1751. Navigation.] 
  1752.  
  1753. Directory History Window Keys: 
  1754.  
  1755.         F6              Open the directory history window. 
  1756.                        Scroll the display up one line. 
  1757.                        Scroll the display down one line. 
  1758.                         Scroll the display left 4 columns. 
  1759.                         Scroll the display right 4 columns. 
  1760.         PgUp            Scroll the display up one page. 
  1761.         PgDn            Scroll the display down one page. 
  1762.         Ctrl-PgUp       Go to the beginning of the directory list. 
  1763.          or Home 
  1764.         Ctrl-PgDn       Go to the end of the directory list. 
  1765.          or End 
  1766.         Ctrl-D          Delete the selected line from the directory list. 
  1767.         Enter           Change to the selected drive and directory. 
  1768.         Ctrl-Enter      Move the selected line to the command line for editing. 
  1769.  
  1770.  See Popup Windows for information on customizing window position and size. 
  1771.  
  1772.  The current directory is recorded automatically in the directory history list 
  1773.  just before each change to a new directory or drive. 
  1774.  
  1775.  You can view the directory history from a directory history window and change 
  1776.  to any drive and directory on the list.  To activate the directory history 
  1777.  window, press F6 at the command line.  You can then select a new directory 
  1778.  with the Enter key or by double-clicking with the mouse. 
  1779.  
  1780.  If the directory history list becomes full, old entries are deleted to make 
  1781.  room for new ones.  You can set the size of the list from the Startup page of 
  1782.  the configuration dialogs, or with the DirHistory directive in the TCMDOS2.INI 
  1783.  file or with the corresponding itmes on the Startup and Command Line pages of 
  1784.  the configuration notebook.  You can change the keys used in the window with 
  1785.  key mapping directives in the TCMDOS2.INI file. 
  1786.  
  1787.  In order to conserve space, each directory name is recorded just once in the 
  1788.  directory history, even if you move into and out of that directory several 
  1789.  times.  The directory history can be stored in either a "local" or "global" 
  1790.  list; see below for details. 
  1791.  
  1792.  When you switch directories the original directory is saved in the directory 
  1793.  history list, regardless of whether you change directories at the command 
  1794.  line, from within a batch file, or from within an alias.  However, directory 
  1795.  changes made by external directory navigation utilities or other external 
  1796.  programs are not recorded by Take Command. 
  1797.  
  1798.  Local and Global Directory History 
  1799.  
  1800.  The directory history can be stored in either a local or global list. 
  1801.  
  1802.  With a local directory history list, any changes made to the list will only 
  1803.  affect the current Take Command session.  They will not be visible in other 
  1804.  sessions. 
  1805.  
  1806.  With a global list, all Take Command sessions will share the same directory 
  1807.  history, and any changes made to the list in one copy will affect all other 
  1808.  copies.  Global lists are the default. 
  1809.  
  1810.  You can control the type of directory history list with the LocalDirHistory 
  1811.  directive in TCMDOS2.INI and with the /L and /LD options of the START command. 
  1812.  
  1813.  When you close all Take Command sessions, the memory for the global directory 
  1814.  history list is released, and a new, empty directory history list is created 
  1815.  the next time you start Take Command.  If you want the directory histy list to 
  1816.  be retained in memory even when no copy Take Command is running, you need to 
  1817.  execute the SHRALIAS command, which performs this service for the global 
  1818.  command history, directory history, and alias lists. 
  1819.  
  1820.  There is no fixed rule for deciding whether to use a local or global directory 
  1821.  history list.  Depending on your work style, you may find it most convenient 
  1822.  to use one type, or a mixture of types in different sessions.  We recommend 
  1823.  that you start with a global directory history, then modify it if you find a 
  1824.  situation where the default is not convenient. 
  1825.  
  1826.  
  1827. ΓòÉΓòÉΓòÉ 2.3.4. Multiple Commands ΓòÉΓòÉΓòÉ
  1828.  
  1829. You can type several commands on the same command line, separated by an 
  1830. ampersand [&].  For example, if you know you want to copy all of your .TXT 
  1831. files to drive A: and then run CHKDSK to be sure that drive A's file structure 
  1832. is in good shape, you could enter the following command: 
  1833.  
  1834.         [c:\] copy *.txt a: & chkdsk a:
  1835.  
  1836. You may put as many commands on the command line as you wish, as long as the 
  1837. total length of the command line does not exceed 1023 characters. 
  1838.  
  1839. You can use multiple commands in alias definitions and batch files and as well 
  1840. as from the command line. 
  1841.  
  1842. If you don't like using the default command separator, you can pick another 
  1843. character using the SETDOS /C command or the CommandSep directive in the 
  1844. TCMDOS2.INI file.  If you plan to share aliases or batch files between Take 
  1845. Command and 4DOS, 4OS2, or 4NT, see Special Character Compatibility for details 
  1846. about choosing compatible command separators for two or more products. 
  1847.  
  1848.  
  1849. ΓòÉΓòÉΓòÉ 2.3.5. Expanding and Disabling Aliases ΓòÉΓòÉΓòÉ
  1850.  
  1851. A few command line options are specifically related aliases, and are documened 
  1852. briefly here for completeness.  If you are not familiar with alises, see 
  1853. Aliases and the ALIAS command for complete details. 
  1854.  
  1855. You can expand an alias on the command line and view or edit the results by 
  1856. pressing Ctrl-F before the command is executed.  Doing so is especially useful 
  1857. when you are developing and debugging a complex alias or if you want to make 
  1858. sure that an alias that you may have forgotten won't change the intent of your 
  1859. command. 
  1860.  
  1861. At times, you may want to temporarily disable an alias that you have defined. 
  1862. To do so, precede the command with an asterisk [*].  For example, if you have 
  1863. an alias for DIR which changes the display format, you can use the following 
  1864. command to bypass the alias and display the directory in the standard format: 
  1865.  
  1866.         [c:\] *dir
  1867.  
  1868.  
  1869. ΓòÉΓòÉΓòÉ 2.3.6. Command-Line Length Limits ΓòÉΓòÉΓòÉ
  1870.  
  1871. When you first enter a command at the prompt or in an alias or batch file, it 
  1872. can be up to 1,023 characters long. 
  1873.  
  1874. As Take Command scans the command line and substitutes the contents of aliases 
  1875. and environment variables for their names, the line usually gets longer.  This 
  1876. expanded line is stored in an internal buffer which allows each individual 
  1877. command to grow to 1,023 characters during the expansion process. 
  1878.  
  1879. In addition, if you have multiple commands on a single line, during expansion 
  1880. the entire line can grow to as much as 2,047 characters.  If your use of 
  1881. aliases or environment variables causes the command line to exceed either of 
  1882. these limits as it is expanded, you will see a "Command line too long" error 
  1883. message and the remainder of the line will not be executed. 
  1884.  
  1885.  
  1886. ΓòÉΓòÉΓòÉ 2.4. File Selection ΓòÉΓòÉΓòÉ
  1887.  
  1888. Most internal commands (like COPY, DIR, etc.) work on a file or a group of 
  1889. files.  Besides typing the exact name of the file you want to work with, you 
  1890. can use several shorthand forms for naming or selecting files and the 
  1891. applications associated with them. 
  1892.  
  1893. Most of these features apply to Take Command commands only, and can not be used 
  1894. to pass file names to external programs unless those programs were specifically 
  1895. written to support these features. 
  1896.  
  1897. The file selection features are: 
  1898.  
  1899.     Extended Parent Directory Names 
  1900.     Wildcards 
  1901.     Date, Time, and Size Ranges 
  1902.     File Exclusion Ranges 
  1903.     Multiple Filenames 
  1904.     Include Lists 
  1905.     Executable Extensions 
  1906.  
  1907.  
  1908. ΓòÉΓòÉΓòÉ 2.4.1. Extended Parent Directory Names ΓòÉΓòÉΓòÉ
  1909.  
  1910. Take Command allows you to extend the traditional syntax for naming the parent 
  1911. directory, by adding additional [.] characters.  Each additional [.] represents 
  1912. an additional directory level above the current directory.  For example, 
  1913. .\FILE.DAT refers to a file in the current directory, ..\FILE.DAT refers to a 
  1914. file one level up (in the parent directory), and ...\FILE.DAT refers to a file 
  1915. two levels up (in the parent of the parent directory). If you are in the 
  1916. C:\DATA\FINANCE\JANUARY directory and want to copy the file LETTERS.DAT from 
  1917. the directory C:\DATA to drive A: 
  1918.  
  1919.         [C:\DATA\FINANCE\JANUARY] copy ...\LETTERS.DAT A:
  1920.  
  1921.  
  1922. ΓòÉΓòÉΓòÉ 2.4.2. Wildcards ΓòÉΓòÉΓòÉ
  1923.  
  1924. Wildcards let you specify a file or group of files by typing a partial 
  1925. filename.  The appropriate directory is scanned to find all of the files that 
  1926. match the partial name you have specified. 
  1927.  
  1928. Wildcards are usually used to specify which files should be processed by a 
  1929. command.  If you need to specify which files should not be processed see File 
  1930. Exclusion Ranges (for internal commands), or EXCEPT (for external commands). 
  1931.  
  1932. Most internal commands accept filenames with wildcards anywhere that a full 
  1933. filename can be used.  There are two wildcard characters, the asterisk [*] and 
  1934. the question mark [?], plus a special method of specifying a range of 
  1935. permissible characters. 
  1936.  
  1937. An asterisk [*] in a filename means "any zero or more characters in this 
  1938. position."  For example, this command will display a list of all files in the 
  1939. current directory: 
  1940.  
  1941.         [c:\] dir *.*
  1942.  
  1943. If you want to see all of the files with a .TXT extension, you could type this: 
  1944.  
  1945.         [c:\] dir *.txt
  1946.  
  1947. If you know that the file you are looking for has a base name that begins with 
  1948. ST and an extension that begins with .D, you can find it this way. Filenames 
  1949. such as STATE.DAT, STEVEN.DOC, and ST.D will all be displayed: 
  1950.  
  1951.         [c:\] dir st*.d*
  1952.  
  1953. Take Command also lets you use the asterisk to match filenames with specific 
  1954. letters somewhere inside the name.  The following example will display any file 
  1955. with a .TXT extension that has the letters AM together anywhere inside its base 
  1956. name.  It will, for example, display AMPLE.TXT, STAMP.TXT, CLAM.TXT, and 
  1957. AM.TXT: 
  1958.  
  1959.         [c:\] dir *am*.txt
  1960.  
  1961. A question mark [?] matches any single filename character.  You can put the 
  1962. question mark anywhere in a filename and use as many question marks as you 
  1963. need.  The following example will display files with names like LETTER.DOC, 
  1964. LATTER.DAT, and LITTER.DU: 
  1965.  
  1966.         [c:\] dir l?tter.d??
  1967.  
  1968. The use of an asterisk wildcard before other characters, and of the character 
  1969. ranges discussed below, are enhancements to the standard wildcard syntax, and 
  1970. are not likely to work properly with software other than Take Command, 4DOS, 
  1971. 4OS2, and 4NT. 
  1972.  
  1973. Advanced Wildcards 
  1974.  
  1975. "Extra" question marks in your wildcard specification are ignored if the file 
  1976. name is shorter than the wildcard specification.  For example, if you have 
  1977. files called LETTER.DOC, LETTER1.DOC, and LETTERA.DOC, this command will 
  1978. display all three names: 
  1979.  
  1980.         [c:\] dir letter?.doc
  1981.  
  1982. The file LETTER.DOC is included in the display because the "extra" question 
  1983. mark at the end of "LETTER?" is ignored when matching the shorter name LETTER. 
  1984.  
  1985. In some cases, the question mark wildcard may be too general.  You can also 
  1986. specify what characters you want to accept (or exclude) in a particular 
  1987. position in the filename by using square brackets. Inside the brackets, you can 
  1988. put the individual acceptable characters or ranges of characters.  For example, 
  1989. if you wanted to match LETTER0.DOC through LETTER9.DOC, you could use this 
  1990. command: 
  1991.  
  1992.         [c:\] dir letter[0-9].doc
  1993.  
  1994. You could find all files that have a vowel as the second letter in their name 
  1995. this way.  This example also demonstrates how to mix the wildcard characters: 
  1996.  
  1997.         [c:\] dir ?[aeiouy]*.*
  1998.  
  1999. You can exclude a group of characters or a range of characters by using an 
  2000. exclamation mark [!] as the first character inside the brackets. This example 
  2001. displays all filenames that are at least 2 characters long except those which 
  2002. have a vowel as the second letter in their names: 
  2003.  
  2004.         [c:\] dir ?[!aeiouy]*.*
  2005.  
  2006. The next example, which selects files such as AIP, BIP, and TIP but not NIP, 
  2007. demonstrates how you can use multiple ranges inside the brackets.  It will 
  2008. accept a file that begins with an A, B, C, D, T, U, or V: 
  2009.  
  2010.         [c:\] dir [a-dt-v]ip
  2011.  
  2012. You may use a question mark character inside the brackets, but its meaning is 
  2013. slightly different than a normal (unbracketed) question mark wildcard.  A 
  2014. normal question mark wildcard matches any character, but will be ignored when 
  2015. matching a name shorter than the wildcard specification, as described above. A 
  2016. question mark inside brackets will match any character, but will not be 
  2017. discarded when matching shorter filenames.  For example: 
  2018.  
  2019.         [c:\] dir letter[?].doc
  2020.  
  2021. will display LETTER1.DOC and LETTERA.DOC, but not LETTER.DOC. 
  2022.  
  2023. A pair of brackets with no characters between them [], or an exclamation point 
  2024. and question mark together [!?], will match only if there is no character in 
  2025. that position.  For example, 
  2026.  
  2027.         [c:\] dir letter[].doc
  2028.  
  2029. will not display LETTER1.DOC or LETTERA.DOC, but will display LETTER.DOC.  This 
  2030. is most useful for commands like 
  2031.  
  2032.         [c:\] dir /I"[]" *.btm
  2033.  
  2034. which will display a list of all .BTM files which don't have a description, 
  2035. because the empty brackets match only an empty description string (DIR /I 
  2036. selects files to display based on their descriptions). 
  2037.  
  2038. You can repeat any of the wildcard characters in any combination you desire 
  2039. within a single file name.  For example, the following command lists all files 
  2040. which have an A, B, or C as the third character, followed by zero or more 
  2041. additional characters, followed by a D, E, or F, followed optionally by some 
  2042. additional characters, and with an extension beginning with P or Q.  You 
  2043. probably won't need to do anything this complex, but we've included it to show 
  2044. you the flexibility of extended wildcards: 
  2045.  
  2046.         [c:\] dir ??[abc]*[def]*.[pq]*
  2047.  
  2048. You can also use the square bracket wildcard syntax to work around a conflict 
  2049. between HPFS filenames containing semicolons [;], and the use of a semicolon to 
  2050. indicate an include list . For example, if you have a file on an HPFS drive 
  2051. named C:\DATA\LETTER1;V2 and you enter this command: 
  2052.  
  2053.         [c:\] del \data\letter1;v2
  2054.  
  2055. you will not get the results you expect.  Instead of deleting the named file, 
  2056. Take Command will attempt to delete LETTER1 and then V2, because the semicolon 
  2057. indicates an include list.  However, if you use square brackets around the 
  2058. semicolon it will be interpreted as a filename character, and not as an include 
  2059. list separator.  For example, this command would delete the file named above: 
  2060.  
  2061.         [c:\] del \data\letter1[;]v2
  2062.  
  2063.  
  2064. ΓòÉΓòÉΓòÉ 2.4.3. Ranges ΓòÉΓòÉΓòÉ
  2065.  
  2066.             Date, Time, and Size Ranges 
  2067.             File Exclusion Ranges 
  2068.  
  2069.  
  2070. ΓòÉΓòÉΓòÉ 2.4.3.1. Date, Time, and Size Ranges ΓòÉΓòÉΓòÉ
  2071.  
  2072. Most internal commands which accept wildcards also allow date, time, and size 
  2073. ranges to further define the files that you wish to work with.  Take Command 
  2074. will examine each file's size and timestamps (a record of when the file was 
  2075. created, last modified, or last accessed) to determine which files meet the 
  2076. range criteria that you have specified. 
  2077.  
  2078. (Take Command for OS/2 also supports File Exclusion Ranges to exclude files 
  2079. from a command.  These are similar to date, time, and size ranges, but have a 
  2080. slightly different purpose and therefore are documented separately.) 
  2081.  
  2082. A range begins with the switch character (/), followed by a left square bracket 
  2083. ("[") and a character that specifies the range type:  "s" for a size range, "d" 
  2084. for a date range, or "t" for a time range.  The "s", "d", or "t" is followed by 
  2085. a start value, and an optional comma and end value.  The range ends with a 
  2086. right square bracket ("]").  For example, to select files between 100 and 200 
  2087. bytes long you could use the range /[s100,200]. 
  2088.  
  2089. See the individual range types for details on specifying ranges: 
  2090.  
  2091.     Date Ranges 
  2092.     Time Ranges 
  2093.     Size Ranges 
  2094.  
  2095. Using Ranges 
  2096.  
  2097. All ranges are inclusive.  For example, a size range which selects files from 
  2098. 10,000 to 20,000 bytes long will match files that are exactly 10,000 bytes and 
  2099. 20,000 bytes long, as well as all sizes in between; a date range that selects 
  2100. files last modified between 10-27-97 and 10-30-97 will include files modified 
  2101. on each of those dates, and on the two days in between. 
  2102.  
  2103. If you reverse range start and end values, Take Command will recognize the 
  2104. reversal, and will use the second (lower) value as the start point of the range 
  2105. and the first (higher) value as its end point.  For example, the range above 
  2106. for files between 10 and 200 bytes long could also be entered as /[s200,100]. 
  2107.  
  2108. If you combine two types of ranges, a file must satisfy both ranges to be 
  2109. included.  For example, /[d2-8-97,2-9-97] /[s1024,2048] means files last 
  2110. modified between February 8 and February 9, 1997, which are also between 1,024 
  2111. and 2,048 bytes long. 
  2112.  
  2113. When you use a date, time, or size range in a command, it should immediately 
  2114. follow the command name.  Unlike some command switches which apply to only part 
  2115. of the command line, the range usually applies to all file names specified for 
  2116. the command.  Any exceptions are noted in the descriptions of individual 
  2117. commands. 
  2118.  
  2119. For example, to get a directory of all the *.C files dated October 1, 1997, you 
  2120. could use this command: 
  2121.  
  2122.         [c:\] dir /[d10-1-97,+0] *.c
  2123.  
  2124. To delete all of the 0-byte files on your hard disk, you could use this 
  2125. command: 
  2126.  
  2127.         [c:\] del /[s0,0] *.* /s
  2128.  
  2129. And to copy all of the non-zero byte files that you changed yesterday or today 
  2130. to your floppy disk, you can use this command: 
  2131.  
  2132.         [c:\] copy /[d-1] /[s1] *.* a:
  2133.  
  2134. File systems which support long filenames maintain 3 sets of dates and times 
  2135. for each file: creation, last access, and last modification.  By default, date 
  2136. and time ranges work with the last modification time stamp.  You can use the 
  2137. "last access" (a) or "created" (c) time stamp in a date or time range with the 
  2138. syntax: 
  2139.  
  2140.         /[da...]
  2141.     or  /[dc...]
  2142.     or  /[ta...]
  2143.     or  /[tc...]
  2144.  
  2145. For example, to select files that were last accessed yesterday or today: 
  2146.  
  2147.         /[da-1]
  2148.  
  2149. Date, time, and size ranges can be used with the ATTRIB, COPY, DEL, DESCRIBE, 
  2150. DIR, EXCEPT, FFIND, FOR, LIST, MOVE, RD, REN, SELECT, and TYPE commands. They 
  2151. cannot be used with filename completion or in filename arguments for variable 
  2152. functions. 
  2153.  
  2154.  
  2155. ΓòÉΓòÉΓòÉ 2.4.3.1.1. Date Ranges ΓòÉΓòÉΓòÉ
  2156.  
  2157. Date ranges select files that were created or last modified at any time between 
  2158. the two dates.  For example, /[d12-1-97,12-5-97] selects files that were last 
  2159. modified between December 1, 1997, and December 5, 1997. 
  2160.  
  2161. The time for the starting date defaults to 00:00:00 and the time for the ending 
  2162. date defaults to 23:59:59.  You can alter these defaults, if you wish, by 
  2163. including a start and stop time inside the date range.  The time is separated 
  2164. from the date with an at sign [@]. For example, the range 
  2165. /[d7-1-97@8:00a,7-3-97@6:00p] selects files that were modified at any time 
  2166. between 8:00 am on July 1, 1997 and 6:00 PM on July 3, 1997.  If you prefer, 
  2167. you can specify the times in 24-hour format (e.g., @18:00 for the end time in 
  2168. the previous example).  The date format and the separator character used in the 
  2169. time may vary depending upon your country information. 
  2170.  
  2171. If you omit the second argument in a date range, Take Command substitutes the 
  2172. current date and time.  For example, /[d10-1-97] selects files dated between 
  2173. October 1, 1997 and today. 
  2174.  
  2175. You can use an offset value for either the beginning or ending date, or both. 
  2176. An offset begins with a plus sign [+] or a minus sign [- ] followed by an 
  2177. integer.  If you use an offset for the second value, it is calculated relative 
  2178. to the first.  If you use an offset for the first (or only) value, the current 
  2179. date is used as the basis for calculation.  For example: 
  2180.  
  2181.         Specification     Selects Files
  2182.         /[d10-27-97,+3]   modified between 10-27-97 and 10-30-97
  2183.         /[d10-27-97,-3]   modified between 10-24-97 and 10-27-97
  2184.         /[d-0]            modified today (from today minus zero days,
  2185.                           to today)
  2186.         /[d-1]            modified yesterday or today (from today
  2187.                           minus one day, to today)
  2188.         /[d-1,+0]         modified yesterday (from today minus one
  2189.                           day, to zero days after that)
  2190.  
  2191. As a shorthand way of specifying files modified today, you can also use /[d]; 
  2192. this has the same effect as the /[d-0] example shown above. 
  2193.  
  2194. To select files last modified n days ago or earlier, use /[d- n,1/1/80].  For 
  2195. example, to get a directory of all files last modified 3 days or more before 
  2196. today (i.e., those files not modified within the last 3 days), you could use 
  2197. this command: 
  2198.  
  2199.         [c:\] dir /[d-3,1/1/80]
  2200.  
  2201. This reversed date range (with the later date given first) will be handled 
  2202. correctly by Take Command.  It takes advantage of the facts that an offset in 
  2203. the start date is relative to today, and that the base or "zero" point for PC 
  2204. file dates is January 1, 1980, or earlier. 
  2205.  
  2206. You cannot use offsets in the time portion of a date range (the part after an 
  2207. at sign), but you can combine a time with a date offset.  For example, 
  2208. /[d12-8-97@12:00,+2@12:00] selects files that were last modified between noon 
  2209. on December 8 and noon on December 10, 1997.  Similarly, /[d-2@15:00,+1] 
  2210. selects files last modified between 3:00 PM the day before yesterday and the 
  2211. end of the day one day after that, i.e., yesterday.  The second time defaults 
  2212. to the end of the day because no time is given. 
  2213.  
  2214. OS/2 HPFS partitions keep track of the date a file was created, the date it was 
  2215. last modified (written), and the date it was last accessed.  You can specify 
  2216. which date and time is used in a date range by adding a (access), c (creation), 
  2217. or w (write) after the d in the range.  For example, to select all files 
  2218. created between February 1, 1997 and February 7, 1997 you would use 
  2219. /[dc2-1-97,2-7- 97].  If you don't specify which date and time to use, Take 
  2220. Command will use the date the file was last modified (written). 
  2221.  
  2222.  
  2223. ΓòÉΓòÉΓòÉ 2.4.3.1.2. Time Ranges ΓòÉΓòÉΓòÉ
  2224.  
  2225. A time range specifies a file modification time without reference to the date. 
  2226. For example, to select files modified between noon and 2:00 PM on any date, use 
  2227. /[t12:00p,2:00p].  The times in a time range can either be in 12-hour format, 
  2228. with a trailing "a" for AM or "p" for PM, or in 24-hour format. 
  2229.  
  2230. If you omit the second argument in a time range, you will select files that 
  2231. were modified between the first time and the current time, on any date.  You 
  2232. can also use offsets, beginning with a plus sign [+] or a minus sign [-] for 
  2233. either or both of the arguments in a time range.  The offset values are 
  2234. interpreted as minutes.  Some examples: 
  2235.  
  2236.         Specification      Selects Files
  2237.         /[t12:00p,+120]    modified between noon and 2:00
  2238.                            PM on any date
  2239.         /[t-120,+120]      modified between two hours ago and the
  2240.                            current time on any date
  2241.         /[t0:00,11:59]     modified in the morning on any date
  2242.  
  2243. The separator character used in the time may vary depending upon your country 
  2244. information. 
  2245.  
  2246. OS/2 HPFS partitions keep track of the time a file was created, the time it was 
  2247. last modified (written), and the time it was last accessed.  You can specify 
  2248. which time is used in a time range by adding a (access), c (creation), or w 
  2249. (write) after the d in the range.  For example, to select all files created 
  2250. between noon and 2 pm,  you would use /[tc12:00p,2:00p].  If you don't specify 
  2251. which time to use, Take Command will use the time the file was last modified 
  2252. (written). 
  2253.  
  2254.  
  2255. ΓòÉΓòÉΓòÉ 2.4.3.1.3. Size Ranges ΓòÉΓòÉΓòÉ
  2256.  
  2257. Size ranges simply select files whose size is between the limits given.  For 
  2258. example, /[s10000,20000] selects files between 10,000 and 20,000 bytes long. 
  2259.  
  2260. Either or both values in a size range can end with "k" to indicate thousands of 
  2261. bytes, "K" to indicate kilobytes (1,024 bytes), "m" to indicate millions of 
  2262. bytes, or "M" to indicate megabytes (1,048,576 bytes).  For example, the range 
  2263. above could be rewritten as /[s10k,20k]. 
  2264.  
  2265. All ranges are inclusive.  Both examples above will match files that are 
  2266. exactly 10,000 bytes and 20,000 bytes long, as well as all sizes in between. 
  2267.  
  2268. The second argument of a size range is optional.  If you use a single argument, 
  2269. like /[s10k], you will select files of that size or larger.  You can also 
  2270. precede the second argument with a plus sign [+]; when you do, it is added to 
  2271. the first value to determine the largest file size to include in the search. 
  2272. For example, /[s10k,+1k] selects files from 10,000 through 11,000 bytes in 
  2273. size. 
  2274.  
  2275. Some further examples of size ranges: 
  2276.  
  2277.         Specification    Selects Files
  2278.         /[s0,0]          of length zero(empty)
  2279.         /[s1M]           1 megabyte or more in length
  2280.         /[s10k,+200]     between 10,000 and 10,200 bytes
  2281.  
  2282.  
  2283. ΓòÉΓòÉΓòÉ 2.4.3.2. File Exclusion Ranges ΓòÉΓòÉΓòÉ
  2284.  
  2285. Most internal commands which accept wildcards also accept file exclusion ranges 
  2286. to further define the files that you wish to work with.  Take Command examines 
  2287. each file name and excludes files that match the names you have specified in a 
  2288. file exclusion range. 
  2289.  
  2290. A file exclusion range begins with the switch character (usually a slash), 
  2291. followed by a left square bracket and an exclamation mark ("[!") The range ends 
  2292. with a right square bracket ("]"). 
  2293.  
  2294. Inside the brackets, you can list one or more filenames to be excluded from the 
  2295. command.  The filenames can include wildcards and extended wildcards, but 
  2296. cannot include path names or drive letters. 
  2297.  
  2298. The following example will display all files in the current directory except 
  2299. backup files (files with the extension .BAK or .BK!): 
  2300.  
  2301.         [c:\] dir /[!*.bak *.bk!] *.*
  2302.  
  2303. You can combine file exclusion ranges with date, time, and size ranges.  This 
  2304. example displays all files that are 10K bytes or larger in size and that were 
  2305. created in the last 7 days, except .C and .H files: 
  2306.  
  2307.         [c:\] dir /[s10k] /[d-7] /[!*.c *.h] *.*
  2308. File exclusion ranges will only work for internal commands.  The EXCEPT command 
  2309. can be used to exclude files from processing by many external commands. 
  2310.  
  2311.  
  2312. ΓòÉΓòÉΓòÉ 2.4.4. Multiple Filenames ΓòÉΓòÉΓòÉ
  2313.  
  2314. Most file processing commands can work with multiple files at one time.  To use 
  2315. multiple file names, you simply list the files one after another on the command 
  2316. line, separated by spaces.  You can use wildcards in any or all of the 
  2317. filenames.  For example, to copy all .TXT and .DOC files from the current 
  2318. directory to drive A, you could use this command: 
  2319.  
  2320.         [c:\] copy *.txt *.doc a:
  2321.  
  2322. If the files you want to work with are not in the default directory, you must 
  2323. include the full path with each filename: 
  2324.  
  2325.         [c:\] copy a:\details\file1.txt a:\details\file1.doc
  2326. c:
  2327.  
  2328. Multiple filenames are handy when you want to match a group of files which 
  2329. cannot be defined with a single filename and wildcards.  They let you be very 
  2330. specific about which files you want to work with in a command. 
  2331.  
  2332. When you use multiple filenames with a command that expects both a source and a 
  2333. destination, like COPY or MOVE, be sure that you always include a specific 
  2334. destination on the command line.  If you don't, the command will assume that 
  2335. the last filename is the destination and may overwrite important files. 
  2336.  
  2337. Like extended wildcards and include lists, the multiple filename feature will 
  2338. work with internal commands but not with external programs, unless those 
  2339. programs have been written to handle multiple file names on the command line. 
  2340.  
  2341. If you have a list of files to process that's too long to put on the command 
  2342. line or too time-consuming to type, see the FOR and SELECT commands for other 
  2343. ways of passing multiple file names to a command. 
  2344.  
  2345.  
  2346. ΓòÉΓòÉΓòÉ 2.4.5. Include Lists ΓòÉΓòÉΓòÉ
  2347.  
  2348. Any internal command that accepts multiple filenames will also accept one or 
  2349. more include lists.  An include list is simply a group of filenames, with or 
  2350. without wildcards, separated by semicolons [;].  All files in the include list 
  2351. must be in the same directory.  You may not add a space on either side of the 
  2352. semicolon. 
  2353.  
  2354. For example, you can shorten this command which uses multiple file names: 
  2355.  
  2356.         [c:\] copy a:\details\file1.txt a:\details\file1.doc
  2357. c:
  2358.  
  2359. to this using an include list: 
  2360.  
  2361.         [c:\] copy a:\details\file1.txt;file1.doc c:
  2362.  
  2363. Include lists are similar to multiple filenames, but have three important 
  2364. differences.  First, you don't have to repeat the path to your files if you use 
  2365. an include list, because all of the included files must be in the same 
  2366. directory. 
  2367.  
  2368. Second, if you use include lists, you aren't as likely to accidentally 
  2369. overwrite files if you forget a destination path for commands like COPY, 
  2370. because the last name in the list will be part of the include list, and won't 
  2371. be seen as the destination file name. (Include lists can only be used as the 
  2372. source parameter -- the location files are coming from -- for COPY and other 
  2373. similar commands.  They cannot be used to specify a destination for files.) 
  2374.  
  2375. Third, multiple filenames and include lists are processed differently by the 
  2376. DIR and SELECT commands. If you use multiple filenames, all of the files 
  2377. matching the first filename are processed, then all of the files matching the 
  2378. second name, and so on.  When you use an include list, all files that match any 
  2379. entry in the include list are processed together, and will appear together in 
  2380. the directory display or SELECT list.  You can see this difference clearly if 
  2381. you experiment with both techniques and the DIR command. For example, 
  2382.  
  2383.         [c:\] dir *.txt *.doc
  2384.  
  2385. will list all the .TXT files with a directory header, the file list, and a 
  2386. summary of the total number of files and bytes used.  Then it will do the same 
  2387. for the .DOC files.  However, 
  2388.  
  2389.         [c:\] dir *.txt;*.doc
  2390.  
  2391. will display all the files in one list. 
  2392.  
  2393. Like extended wildcards and multiple filenames, the include list feature will 
  2394. work with internal commands, but not with external programs (unless they have 
  2395. been programmed especially to support it). 
  2396.  
  2397. The maximum length of an include list is 260 characters. 
  2398.  
  2399.  
  2400. ΓòÉΓòÉΓòÉ 2.4.6. Executable Extensions ΓòÉΓòÉΓòÉ
  2401.  
  2402. Normally, when you type a filename (as opposed to an alias or internal command 
  2403. name) as the first word on the command line, Take Command looks for a file with 
  2404. that name to execute. 
  2405.  
  2406. The file's extension may be .EXE or .COM to indicate that it contains a 
  2407. program, it may have a batch file extension like .BTM, or the file's contents 
  2408. may indicate that it is executable.  (To change the default list of extensions 
  2409. see the PATHEXT environment variable and the PathExt setting in TCMDOS2.INI.) 
  2410.  
  2411. You can add to this default list of extensions, and have Take Command take the 
  2412. action you want with files that are not executable programs or batch files. The 
  2413. action taken is always based on the file's extension.  For example, you could 
  2414. start your text editor whenever you type the name of a .DOC file, or start your 
  2415. database manager whenever you type the name of a .DAT file. 
  2416.  
  2417. You can use environment variables to define the internal command, external 
  2418. program, batch file, or alias to run for each defined file extension.  To 
  2419. create an executable extension use the SET command to create a new environment 
  2420. variable.  An environment variable is recognized as an executable extension if 
  2421. its name begins with a period. 
  2422.  
  2423. The syntax for creating an executable extension is: 
  2424.  
  2425.         set .ext=command [options]
  2426.  
  2427. This tells Take Command to run the specified command whenever you name a file 
  2428. with the extension .ext at the prompt.  .EXT is the executable file extension; 
  2429. command is the name of the internal command, external program, alias, or batch 
  2430. file to run; and [options] are any command-line startup options you want to 
  2431. specify for the program, batch file, or alias. 
  2432.  
  2433. For example, if you want to run a word processor called EDITOR whenever you 
  2434. type the name of a file that has an extension of .EDT, you could use this 
  2435. command: 
  2436.  
  2437.         [c:\] set .edt=c:\edit\editor.exe
  2438.  
  2439. If the command specified in an executable extension is a batch file or external 
  2440. program, Take Command will search the PATH for it if necessary. However, you 
  2441. can make sure that the correct program or batch file is used, and speed up the 
  2442. executable extension, by specifying the full name including drive, path, 
  2443. filename, and extension. 
  2444.  
  2445. To remove an executable extension, use the UNSET command to remove the 
  2446. corresponding variable. 
  2447.  
  2448. Once an executable extension is defined, any time you name a file with that 
  2449. extension the corresponding program, batch file, or alias is started, with the 
  2450. name of your file passed to it as a parameter. 
  2451.  
  2452. This example defines B.EXE (the Boxer text editor) as the processor for .C 
  2453. files: 
  2454.  
  2455.         [c:\] set .c=c:\boxer\b.exe -Mxyz
  2456.  
  2457. Now, if you have a file called HELLO.C and enter the command 
  2458.  
  2459.         [c:\] hello -i30
  2460.  
  2461. This will be expanded to: 
  2462.  
  2463.         c:\brief\b.exe -Mxyz hello.c -i30
  2464.  
  2465. Notice that the text from the .C environment variable is inserted at the 
  2466. beginning of the line, including any options, followed by the original file 
  2467. name plus its extension, and then the remainder of the original command line. 
  2468.  
  2469. In order for executable extensions to work, the command, program, batch file, 
  2470. or alias must be able to interpret the command line properly.  For example, if 
  2471. a program you want to run doesn't accept a file name on its command line as 
  2472. shown in these examples, then executable extensions won't work with that 
  2473. program. 
  2474.  
  2475. Executable extensions may include wildcards, so you could, for example, run 
  2476. your text editor for any file with an extension beginning with T by defining an 
  2477. executable extension called .T*.  Extended wildcards (e.g., DO[CT] for .DOC and 
  2478. .DOT files) may also be used. 
  2479.  
  2480. To remove an executable extension, use the UNSET command to remove the 
  2481. corresponding variable. 
  2482.  
  2483.  
  2484. ΓòÉΓòÉΓòÉ 2.5. ┬áDirectory Navigation ΓòÉΓòÉΓòÉ
  2485.  
  2486. Take Command and OS/2 remember both a current or default drive for your system 
  2487. as a whole, and a current or default directory for every drive in your system. 
  2488. The current directory on the current drive is sometimes called the current 
  2489. working directory. 
  2490.  
  2491. With traditional command processors, you change the current drive by typing the 
  2492. new drive letter plus a colon at the prompt, and you change the current working 
  2493. directory with the CD command.  Take Command supports those standard features, 
  2494. and offers a number of enhancements to make directory navigation much simpler 
  2495. and faster. 
  2496.  
  2497. This section begins with a summary of all Take Command directory navigation 
  2498. features.  It also provides detailed documentation on the enhanced directory 
  2499. search features: Extended Directory Searches and the CDPATH. 
  2500.  
  2501. The Take Command directory navigation features are in three groups: features 
  2502. which help Take Command find the directory you want, methods for initiating a 
  2503. directory change with a minimal amount of typing, and methods for returning 
  2504. easily to directories you've recently used.  Each group is summarized below. 
  2505.  
  2506. Finding Directories 
  2507.  
  2508. Traditional command processors require you to explicitly type the name of the 
  2509. directory you want to change to.  Take Command supports this method, and also 
  2510. offer two significant enhancements: 
  2511.  
  2512.              Extended Directory Searchesallow Take Command to search a 
  2513.              "database" of all the directories on your system to find the one 
  2514.              you want. 
  2515.  
  2516.              The CDPATH allows you to enter a specific list of directories to 
  2517.              be searched, rather than searching a database.  Use CDPATH instead 
  2518.              of Extended Directory Searches if you find the extended searches 
  2519.              too broad, or your hard drive has too many directories for an 
  2520.              efficient search. 
  2521.  
  2522.  Initiating a Directory Change 
  2523.  
  2524.  Take Command supports the traditional methods of changing directories, and 
  2525.  also offer several more flexible approaches: 
  2526.  
  2527.              Automatic directory changes allow you to type a directory name at 
  2528.              the prompt and switch to it automatically, without typing an 
  2529.              explicit CD or similar command. 
  2530.  
  2531.              The CD command can change directories on a single drive, and can 
  2532.              return to the most recently used directory. 
  2533.  
  2534.              The CDD command changes drive and directory at the same time, and 
  2535.              can return to the most recently used drive and directory. 
  2536.  
  2537.              The PUSHD command changes the drive and directory like CDD, and 
  2538.              records the previous directory in a directory "stack."  You can 
  2539.              view the stack with DIRS and return to the directory on the top of 
  2540.              the stack with POPD. 
  2541.  
  2542.  CDD, PUSHD, and automatic directory changes can also change to a network drive 
  2543.  and directory mapped to a drive letter or specified with a UNC name. 
  2544.  
  2545.  Returning to a Previous Directory 
  2546.  
  2547.  Traditional command processors do not remember previously-used directories, 
  2548.  and can only "return" to a directory by changing back to it with a standard 
  2549.  drive change or CD command.  Take Command supports three additional methods 
  2550.  for returning to a previous directory: 
  2551.  
  2552.              The CD - and CDD - commands can be used to return to the previous 
  2553.              working directory (the one you used immediately before the current 
  2554.              directory). Use these commands if you are working in two 
  2555.              directories and alternating between them. 
  2556.  
  2557.              The directory history window allows you to select one of several 
  2558.              recently-used directories from a popup list and return to it 
  2559.              immediately.  The window displays the contents of the directory 
  2560.              history list. 
  2561.  
  2562.              The POPD command will return to the last directory saved by PUSHD. 
  2563.              The directory stack holds 511 characters, enough for 20 to 40 
  2564.              typical drive and directory entries. 
  2565.  
  2566.  
  2567. ΓòÉΓòÉΓòÉ 2.5.1. Extended Directory Searches ΓòÉΓòÉΓòÉ
  2568.  
  2569. When you change directories with an automatic directory change, CD, CDD, or 
  2570. PUSHD command, Take Command must find the directory you want to change to.  To 
  2571. do so, it first uses the traditional method to find a new directory:  it checks 
  2572. to see whether you have specified either the name of an existing subdirectory 
  2573. below the current directory, or the name of an existing directory with a full 
  2574. path or a drive letter.  If you have, Take Command changes to that directory, 
  2575. and does no further searching. 
  2576.  
  2577. This traditional search method requires that you navigate manually through the 
  2578. directory tree, and type the entire name of each directory you want to change 
  2579. to.  Extended Directory Searches speed up the navigation process dramatically 
  2580. by allowing Take Command to find the directory you want, even if you only enter 
  2581. a small part of its name. 
  2582.  
  2583. When the traditional search method fails, Take Command tries to find the 
  2584. directory you requested via the CDPATH, then via an Extended Directory Search. 
  2585. This section covers only Extended Directory Searches, which are more flexible 
  2586. and more commonly used than CDPATH. 
  2587.  
  2588. Extended Directory Searches use a database of directory names to facilitate 
  2589. changing to the correct directory.  The database is used only if Extended 
  2590. Directory Searches are enabled, and if the explicit directory search and CDPATH 
  2591. search fail to find the directory you requested. 
  2592.  
  2593. An extended directory search automatically finds the correct path to the 
  2594. requested directory and changes to it if that directory exists in your 
  2595. directory database.  If more than one directory in the database matches the 
  2596. name you have typed, a popup window appears and you can choose the directory 
  2597. you want. 
  2598.  
  2599. You can control the position and size of the popup directory search window from 
  2600. the Command Line 2 page of the configuration dialogs, or with the CDDWinLeft, 
  2601. CDDWinTop, CDDWinWidth, and CDDWinHeight directives in the .INI file.  You can 
  2602. also change the keys used in the popup window with key mapping directives in 
  2603. the .INI file. 
  2604.  
  2605. To use extended directory searches, you must explicitly enable them (see below) 
  2606. and also create the directory database. 
  2607.  
  2608. The Extended Search Database 
  2609.  
  2610. To create or update the database of directory names, use the CDD /S command. 
  2611. When you create the database with CDD /S, you can specify which drives should 
  2612. be included.  If you enable Extended Directory Searches and do not create the 
  2613. database, it will be created automatically the first time it is required, and 
  2614. will include all local hard drives. 
  2615.  
  2616. The database is stored in the file JPSTREE.IDX, which is placed in the root 
  2617. directory of drive C: by default.  The same tree file is used by all JP 
  2618. Software command processors.  You can specify a different location for this 
  2619. file on the Command Line 2 page of the configuration notebook or the TreePath 
  2620. directive in the TCMDOS2.INI file.  If you are using two or more of our 
  2621. products on your computer and want to have different drives stored in the 
  2622. database for each, use the dialogs or the TreePath directive to place their 
  2623. database directories in different locations. 
  2624.  
  2625. If you use an internal command to create or delete a directory, the directory 
  2626. database is automatically updated to reflect the change to your directory 
  2627. structure.  The updates occur if Take Command can find the JPSTREE.IDX file in 
  2628. the root directory of drive C: or in the location specified by the TreePath 
  2629. directive. 
  2630.  
  2631. The internal commands which can modify the directory structure and cause 
  2632. automatic updates of the file are MD, RD, COPY /S, DEL /X, MOVE /S, and REN. 
  2633. The MD /N command can be used to create a directory without updating the 
  2634. directory database.  This is useful when creating a temporary directory which 
  2635. you do not want to appear in the database. 
  2636.  
  2637. Enabling Extended Searches 
  2638.  
  2639. To enable extended directory searches and control their operation, you must set 
  2640. the FuzzyCD directive in the TCMDOS2.INI file.  You can set FuzzyCD either from 
  2641. the Command Line 2 page of the configuration notebook, or by editing the .INI 
  2642. file manually. 
  2643.  
  2644.         If FuzzyCD = 0, extended searches are disabled, the JPSTREE database is 
  2645.                         ignored, and CD, CDD, PUSHD, and automatic directory 
  2646.                         changes search for directories using only explicit 
  2647.                         names and CDPATH.  This is the default. 
  2648.  
  2649.         If FuzzyCD = 1  and an extended search is required, then Take Command 
  2650.                         will search the JPSTREE database for directory names 
  2651.                         which exactly match the name you specified. 
  2652.  
  2653.         If FuzzyCD = 2  and an extended search is required, Take Command will 
  2654.                         search the database for exact matches first, just as 
  2655.                         when FuzzyCD = 1.  If the requested directory is not 
  2656.                         found, it will search the database a second time 
  2657.                         looking for directory names that begin with the name 
  2658.                         you specified. 
  2659.  
  2660.         If FuzzyCD = 3  and an extended search is required, the command 
  2661.                         processor will search the database for exact matches 
  2662.                         first, just as when FuzzyCD = 1.  If the requested 
  2663.                         directory is not found, it will search the database a 
  2664.                         second time looking for directory names that contain 
  2665.                         the name you specified anywhere within them. 
  2666.  
  2667.  For example, suppose that you have a directory called C:\DATA\MYDIR, CDPATH is 
  2668.  not set, and C:\DATA is not the current directory on drive C:.  The following 
  2669.  chart shows what CDD command you might use to change to this directory. 
  2670.  
  2671.           FuzzyCD
  2672.           Setting     CDD Command
  2673.              0        cdd c:\data\mydir
  2674.              1        cdd mydir
  2675.              2        cdd myd
  2676.              3        cdd yd
  2677.  
  2678.  An extended directory search is not used if you specify a full directory path 
  2679.  (one beginning with a backslash [\], or a drive letter and a backslash).  If 
  2680.  you use a name which begins with a drive letter (e.g. C:MYDIR), the extended 
  2681.  search will examine only directories on that drive. 
  2682.  
  2683.  Forcing an Extended Search with Wildcards 
  2684.  
  2685.  Normally you type a specific directory name for Take Command to locate, and 
  2686.  the search proceeds as described in the preceding sections.  However, you can 
  2687.  also force the command processor to perform an extended directory search by 
  2688.  using wildcard characters in the directory name.  If you use a wildcard, an 
  2689.  extended search will occur whether or not extended searches have been enabled. 
  2690.  
  2691.  When Take Command is changing directories and it finds wildcards in the 
  2692.  directory name, it skips the explicit search and CDPATH steps and goes 
  2693.  directly to the extended search. 
  2694.  
  2695.  If a single match is found, the change is made immediately.  If more than one 
  2696.  match is found, a popup window is displayed with all matching directories. 
  2697.  
  2698.  Wildcards can only be used in the final directory name in the path (after the 
  2699.  last backslash in the path name).  For example you can find COMM\*A*.* (all 
  2700.  directories whose parent directory is COMM and which have an A somewhere in 
  2701.  their names), but you cannot find CO?M\*A*.* because it uses a wildcard before 
  2702.  the last backslash. 
  2703.  
  2704.  If you use wildcards in the directory name as described here, and the extended 
  2705.  directory search database does not exist, it will be built automatically the 
  2706.  first time a wildcard is used.  You can update the database at any time with 
  2707.  CDD /S. 
  2708.  
  2709.  Internally, extended directory searches use wildcards to scan the directory 
  2710.  database.  If FuzzyCD is set to 2, an extended search looks for the name you 
  2711.  typed followed by an asterisk (i.e., DIRNAME*).  If FuzzyCD is set to 3, it 
  2712.  looks for the name preceded and followed by an asterisk (i.e., *DIRNAME*). 
  2713.  
  2714.  These internal wildcards will be used in addition to any wildcards you use in 
  2715.  the name.  For example if you search for ABC?DEF (ABC followed by any 
  2716.  character followed by DEF) and FuzzyCD is set to 3, Take Command will actually 
  2717.  search the directory database for *ABC?DEF*. 
  2718.  
  2719.  Disabling Extended Searches in Batch Files 
  2720.  
  2721.  When writing batch files you may want to use the CD or CDD command to switch 
  2722.  directories without triggering an extended search.  For example, you may need 
  2723.  the search to fail (rather than search the extended search database) if a 
  2724.  directory does not exist, or you may want to ensure that the extended search 
  2725.  popup window does not appear in a batch file designed to run in unattended 
  2726.  mode. 
  2727.  
  2728.  To disable extended searches, use the /N option of CD or CDD.  When this 
  2729.  option is used and a directory does not exist below the current directory or 
  2730.  on the CDPATH, the command will fail with an error message, and will not 
  2731.  search the extended search database.  For example this command might trigger 
  2732.  an extended search: 
  2733.  
  2734.        cdd testdir
  2735.  
  2736.  but this one will not: 
  2737.  
  2738.        cdd /n testdir
  2739.  
  2740.  Note that this option is not available for PUSHD.  To perform the same 
  2741.  function when using PUSHD, save the current directory with PUSHD (without 
  2742.  parameters) and then use CDD /N to change directories, for example: 
  2743.  
  2744.        pushd
  2745.        cdd /n testdir
  2746.  
  2747.  
  2748. ΓòÉΓòÉΓòÉ 2.5.2. CDPATH ΓòÉΓòÉΓòÉ
  2749.  
  2750. When you change directories with an automatic directory change or the CD, CDD, 
  2751. or PUSHD command, Take Command must find the directory you want to change to. 
  2752. To do so, it first uses the traditional method to find a new directory. 
  2753.  
  2754. When the traditional search method fails, Take Command tries to find the 
  2755. directory you requested via the CDPATH, then via an Extended Directory Search. 
  2756. This section covers only the CDPATH. 
  2757.  
  2758. Enabling both CDPATH and Extended Directory Searches can yield confusing 
  2759. results, so we recommend that you do not use both features at the same time. If 
  2760. you prefer to explicitly list where Take Command should look for directories, 
  2761. use CDPATH.  If you prefer to have Take Command look at all of the directory 
  2762. names on your disk, use Extended Directory Searches. 
  2763.  
  2764. CDPATH is an environment variable, and is similar to the PATH variable used to 
  2765. search for executable files:  it contains an explicit list of directories to 
  2766. search when attempting to find a new directory.  Take Command appends the 
  2767. specified directory name to each directory in CDPATH and attempts to change to 
  2768. that drive and directory.  It stops when it finds a match or when it reaches 
  2769. the end of the CDPATH list. 
  2770.  
  2771. CDPATH is ignored if a complete directory name (one beginning with a backslash 
  2772. [\]) is specified, or if a drive letter is included in the name. It is only 
  2773. used when a name is given with no drive letter or leading backslash. 
  2774.  
  2775. CDPATH provides a quick way to find commonly used subdirectories in an explicit 
  2776. list of locations.  You can create CDPATH with the SET command.  The format of 
  2777. CDPATH is similar to that of PATH:  a list of directories separated by 
  2778. semicolons [;]. For example, if you want the directory change commands to 
  2779. search the C:\DATA directory, the D:\SOFTWARE directory, and the root directory 
  2780. of drive E:\ for the subdirectories that you name, you should create CDPATH 
  2781. with this command: 
  2782.  
  2783.         [c:\] set cdpath=c:\data;d:\software;e:\
  2784.  
  2785. Suppose you are currently in the directory C:\WP\LETTERS\JANUARY, and you'd 
  2786. like to change to D:\SOFTWARE\UTIL.  You could change directories explicitly 
  2787. with the command: 
  2788.  
  2789.         [c:\wp\letters\january] cdd d:\software\util
  2790.  
  2791. However, because the D:\SOFTWARE directory is listed in your CDPATH variable as 
  2792. shown in the previous example (we'll assume it is the first directory in the 
  2793. list with a UTIL subdirectory), you can simply enter the command 
  2794.  
  2795.         [c:\wp\letters\january] cdd util
  2796. or, using an automatic directory change: 
  2797.  
  2798.         [c:\wp\letters\january] util\
  2799.  
  2800. to change to D:\SOFTWARE\UTIL. 
  2801.  
  2802. As it handles this request, Take Command looks first in the current directory, 
  2803. and attempts to find the C:\WP\LETTERS\JANUARY\UTIL subdirectory.  Then it 
  2804. looks at CDPATH, and appends the name you entered, UTIL, to each entry in the 
  2805. CDPATH variable ╨º in other words, it tries to change to C:\DATA\UTIL, then to 
  2806. D:\SOFTWARE\UTIL.  Because this change succeeds, the search stops and the 
  2807. directory change is complete. 
  2808.  
  2809.  
  2810. ΓòÉΓòÉΓòÉ 2.6. Other Features ΓòÉΓòÉΓòÉ
  2811.  
  2812. This section includes details these Take Command features: 
  2813.  
  2814.              Page and File Prompts 
  2815.  
  2816.              Redirection and Piping 
  2817.  
  2818.              Using the Keystack 
  2819.  
  2820.              ANSI Support 
  2821.  
  2822.              Critical Errors 
  2823.  
  2824.              Conditional Commands 
  2825.  
  2826.              Command Grouping 
  2827.  
  2828.              The Escape Character 
  2829.  
  2830.  
  2831. ΓòÉΓòÉΓòÉ 2.6.1. Page and File Prompts ΓòÉΓòÉΓòÉ
  2832.  
  2833. Several Take Command commands can generate prompts, which wait for you to press 
  2834. a key to view a new page or to perform a file activity. 
  2835.  
  2836. When Take Command is displaying information in page mode, for example with a 
  2837. DIR /P or SET /P command, it displays the message 
  2838.  
  2839.         Press Esc to Quit or any other key to continue...
  2840.  
  2841. At this prompt, you can press Esc, Ctrl-C, or Ctrl- Break if you want to quit 
  2842. the command.  You can press almost any other key to continue with the command 
  2843. and see the next page of information. 
  2844.  
  2845. During file processing, if you have activated prompting with a command like DEL 
  2846. /P, you will see this prompt before processing every file: 
  2847.  
  2848.         Y/N/R ?
  2849.  
  2850. You can answer this prompt by pressing Y for "Yes, process this file;"  N for 
  2851. "No, do not process this file;" R for "process the Remainder of the files 
  2852. without further prompting; or Esc for "cancel further processing for this 
  2853. argument."  You can also press Ctrl-C or Ctrl-Break at this prompt to cancel 
  2854. the remainder of the command. 
  2855.  
  2856. If you press Ctrl-C or Ctrl-Break while a batch file is running, you will see a 
  2857. "Cancel batch job" prompt.  For information on responses to this prompt see 
  2858. Interrupting a Batch File. 
  2859.  
  2860.  
  2861. ΓòÉΓòÉΓòÉ 2.6.2. Redirection and Piping ΓòÉΓòÉΓòÉ
  2862.  
  2863. This section covers redirection and piping.  You can use these features to 
  2864. change how Take Command and some application programs handle input and output. 
  2865.  
  2866. Internal commands and many external programs get their input from the 
  2867. computer's standard input device and send their output to the standard output 
  2868. device.  Some programs also send special messages to the standard error device. 
  2869. Normally, the keyboard is used for standard input and the video screen for both 
  2870. standard output and standard error. 
  2871.  
  2872. Redirection and piping allow you to change these assignments temporarily. 
  2873.  
  2874. Redirection changes the standard input, standard output, or standard error 
  2875. device for a program or command from the default device (the keyboard or 
  2876. screen), to another device or to a file. 
  2877.  
  2878. Piping changes the standard output and / or standard error device so that the 
  2879. output of one command becomes the standard input for another program or 
  2880. command. 
  2881.  
  2882.  
  2883. ΓòÉΓòÉΓòÉ 2.6.2.1. Redirection ΓòÉΓòÉΓòÉ
  2884.  
  2885. Redirection can be used to reassign the standard input, standard output, and 
  2886. standard error to a device like the printer or serial port, to a file or to the 
  2887. OS/2 clipboard.  You must use some discretion when you use redirection with a 
  2888. device; there is no way to get input from the printer, for example. 
  2889.  
  2890. Redirection always applies to a specific command, and lasts only for the 
  2891. duration of that command.  When the command is finished, the assignments for 
  2892. standard input, standard output, and standard error revert to whatever they 
  2893. were before the command. 
  2894.  
  2895. In the descritpions below, filename means either the name of a file or of an 
  2896. appropriate device (PRN, LPT1, LPT2, or LPT3 for printers; COM1 to COM4 for 
  2897. serial ports; CON for the keyboard and screen; CLIP for the clipboard, NUL for 
  2898. the "null" device, etc.). 
  2899.  
  2900. Here are the standard redirection options supported by Take Command (see below 
  2901. for additional redirection options using numeric file handles): 
  2902.  
  2903.         < filename          To get input from a file or device instead of from 
  2904.                             the keyboard 
  2905.         > filename          Redirect standard output to a file or device 
  2906.         >& filename         Redirect standard output and standard error to a 
  2907.                             file or device 
  2908.         >&> filename        Redirect standard error only to a file or device 
  2909.  
  2910.  If you want to append output to the end of an existing file, rather than 
  2911.  creating a new file, replace the first ">" in the output redirection symbol 
  2912.  with ">>" (use >>, >>&, and >>&>). 
  2913.  
  2914.  To use redirection, place the redirection symbol and filename at the end of 
  2915.  the command line, after the command name and any parameters.  For example, to 
  2916.  redirect the output of the DIR command to a file called DIRLIST, you could use 
  2917.  a command line like this: 
  2918.  
  2919.           [c:\] dir /b *.dat > dirlist
  2920.  
  2921.  You can use both input and output redirection for the same command, if both 
  2922.  are appropriate.  For example, this command sends input to SORT from the file 
  2923.  DIRLIST, and sends output from SORT to the file DIRLIST.SRT: 
  2924.  
  2925.           [c:\] sort < dirlist > dirlist.srt
  2926.  
  2927.  You can redirect text to or from the OS/2 clipboard by using the pseudo-device 
  2928.  name CLIP: (the colon is required). 
  2929.  
  2930.  If you redirect the output of a single internal command like DIR, the 
  2931.  redirection ends automatically when that command is done.  If you start a 
  2932.  batch file with redirection, all of the batch file's output is redirected, and 
  2933.  redirection ends when the batch file is done.  Similarly, if you use 
  2934.  redirection at the end of a command group, all of the output from the command 
  2935.  group is redirected, and redirection ends when the command group is done. 
  2936.  
  2937.  Advanced Redirection Options 
  2938.  
  2939.  When output is directed to a file with >, >&, or >&>, if the file already 
  2940.  exists, it will be overwritten.  You can protect existing files by using the 
  2941.  SETDOS /N1 command, the "Protect redirected output files" setting on the 
  2942.  Options 1 page of the configuration notebook, or the NoClobber directive in 
  2943.  the TCMDOS2.INI file. 
  2944.  
  2945.  When output is appended to a file with >>, >>&, or >>&>, the file will be 
  2946.  created if it doesn't already exist.  However, if NoClobber is set as 
  2947.  described above, append redirection will not create a new file; instead, if 
  2948.  the output file does not exist a "File not found" or similar error will be 
  2949.  displayed. 
  2950.  
  2951.  You can temporarily override the current setting of NoClobber by using an 
  2952.  exclamation mark [!] after the redirection symbol.  For example, to redirect 
  2953.  the output of DIR to the file DIROUT, and allow overwriting of any existing 
  2954.  file despite the NoClobber setting: 
  2955.  
  2956.           [c:\] dir >! dirout
  2957.  
  2958.  Redirection is fully nestable.  For example, you can invoke a batch file and 
  2959.  redirect all of its output to a file or device.  Output redirection on a 
  2960.  command within the batch file will take effect for that command only; when the 
  2961.  command is completed, output will revert to the redirected output file or 
  2962.  device in use for the batch file as a whole. 
  2963.  
  2964.  You can use redirection if you need to create a zero-byte file.  To do so, 
  2965.  enter  >filename as a command, with no actual command before the > character. 
  2966.  
  2967.  In addition to the redirection options above, Take Command also supports the 
  2968.  OS/2 CMD.EXE syntax: 
  2969.  
  2970.         n>file      Redirect handle n to the named file 
  2971.         n>&m        Redirect handle n to the same place as handle m 
  2972.  
  2973.  [n] and [m] are one-digit file handles between 0 and 9. You may not put any 
  2974.  spaces between the n and the >, or between the >, &, and m in the second form. 
  2975.  Take Command defines "0" as standard input, "1" as standard output, and "2" as 
  2976.  standard error.  Handles 3 to 9 will probably not be useful unless you have an 
  2977.  application which uses those handles for a specific, documented purpose, or 
  2978.  have opened a file with the %@FILEOPEN variable function and the file handle 
  2979.  is between 3 and 9. 
  2980.  
  2981.  The n>file syntax redirects output from handle n to a file.  You can use this 
  2982.  form to redirect two handles to different places.  For example: 
  2983.  
  2984.           [c:\] dir > outfile 2> errfile
  2985.  sends normal output to a file called OUTFILE and any error messages to a file 
  2986.  called ERRFILE. 
  2987.  
  2988.  The n>&m syntax redirects handle n to the same location as the previously 
  2989.  assigned handle m.  For example, to send standard error to the same file as 
  2990.  standard output, you could use this command: 
  2991.  
  2992.           [c:\] dir > outfile 2>&1
  2993.  
  2994.  Notice that you can perform the same operations by using standard Take Command 
  2995.  redirection features.  The two examples above could be written as 
  2996.  
  2997.           [c:\] dir > outfile >&> errfile
  2998.  and 
  2999.  
  3000.           [c:\] dir >&outfile
  3001.  
  3002.  
  3003. ΓòÉΓòÉΓòÉ 2.6.2.2. Piping ΓòÉΓòÉΓòÉ
  3004.  
  3005. You can create a "pipe" to send the standard output of one command to the 
  3006. standard input of another command: 
  3007.  
  3008.         command1 | command2             Send the standard output of command1 to 
  3009.                                         the standard input of command2 
  3010.         command1 |& command2            Send the standard output and standard 
  3011.                                         error of command1 to the standard input 
  3012.                                         of command2 
  3013.  
  3014.  For example, to take the output of the SET command (which displays a list of 
  3015.  your environment variables and their values) and pipe it to the SORT utility 
  3016.  to generate a sorted list, you would use the command: 
  3017.  
  3018.           [c:\] set | sort
  3019.  
  3020.  To do the same thing and then pipe the sorted list to the internal LIST 
  3021.  command for full-screen viewing: 
  3022.  
  3023.           [c:\] set | sort | list /s
  3024.  
  3025.  The TEE and Y commands are "pipe fittings" which add more flexibility to 
  3026.  pipes. 
  3027.  
  3028.  Like redirection, pipes are fully nestable.  For example, you can invoke a 
  3029.  batch file and send all of its output to another command with a pipe.  A pipe 
  3030.  on a command within the batch file will take effect for that command only; 
  3031.  when the command is completed, output will revert to the pipe in use for the 
  3032.  batch file as a whole.  You may also have 2 or more pipes operating 
  3033.  simultanesoulsy if, for example, you have the pipes running in different 
  3034.  sessions. 
  3035.  
  3036.  Take Command implements pipes by starting a new process for the receiving 
  3037.  program instead of using temporary files.  The sending and receiving programs 
  3038.  run simultaneously; the sending program writes to the pipe and the receiving 
  3039.  program reads from the pipe.  When the receiving program finishes reading and 
  3040.  processing the piped data, it ends automatically. 
  3041.  
  3042.  When you use pipes with Take Command make sure you think about any possible 
  3043.  consequences that can occur from using a separate process to run the receiving 
  3044.  program. 
  3045.  
  3046.  If you want to pipe information to a command inside an IFF, use command 
  3047.  grouping around the IFF command.  If you do not, piping will affect on the 
  3048.  first command after the IFF. 
  3049.  
  3050.  
  3051. ΓòÉΓòÉΓòÉ 2.6.3. Using the Keystack ΓòÉΓòÉΓòÉ
  3052.  
  3053. The Keystack overcomes two weaknesses of input redirection:  some programs 
  3054. ignore standard input and read the keyboard through the operating system, and 
  3055. input redirection doesn't end until the program or command terminates.  You 
  3056. can't, for example, use redirection to send the opening commands to a program 
  3057. and then type the rest of the commands yourself.  But the Keystack lets you do 
  3058. exactly that. 
  3059.  
  3060. The Keystack sends keystrokes to an application program.  Once the Keystack is 
  3061. empty, the program will receive the rest of its input from the keyboard.  The 
  3062. Keystack is useful when you want a program to take certain actions 
  3063. automatically when it starts.  It is most often used in batch files and 
  3064. aliases. 
  3065.  
  3066. The Keystack is invoked with the KEYSTACK command.  To place the letters, 
  3067. digits, and punctuation marks you would normally type for your program into the 
  3068. keystack, enclose them in double quotes: 
  3069.  
  3070.         [c:\] keystack "myfile"
  3071.  
  3072. Many other keys can be entered into the Keystack using their names.  This 
  3073. example puts the F1 key followed by the Enter key in the keystack: 
  3074.  
  3075.         [c:\] keystack F1 Enter
  3076.  
  3077. See Keys and Keynames for details on how key names are entered.  See the 
  3078. KEYSTACK command for information on using numeric key values along with or 
  3079. instead of key names, and other details about using the Keystack. 
  3080.  
  3081. You must start or activate the window for the program that will receive the 
  3082. characters before you place them into the Keystack.  See KEYSTACK for 
  3083. additional details; see ACTIVATE for information on activating a specific 
  3084. window. 
  3085.  
  3086.  
  3087. ΓòÉΓòÉΓòÉ 2.6.4. ANSI Support ΓòÉΓòÉΓòÉ
  3088.  
  3089. ANSI control sequences are standardized sequences of text characters which 
  3090. allow you to control colors on the screen, manipulate the cursor, and redefine 
  3091. keys.  You may have used ANSI sequences to display text or control the color 
  3092. and appearance of your prompt in DOS or OS/2 character mode. 
  3093.  
  3094. Take Command includes built-in support for most standard ANSI color and cursor 
  3095. control sequences (key substitutions are not supported).  To use Take Command's 
  3096. ANSI support you must enable it on the Display page of the configuration 
  3097. notebook, with the ANSI directive in the TCMDOS2.INI file, or with the SETDOS 
  3098. /A command.  You can determine whether ANSI support is enabled with the _ANSI 
  3099. internal variable. 
  3100.  
  3101. Several Take Command features provide simpler ways to accomplish the tasks 
  3102. usually performed with ANSI control sequences. For example, there are commands 
  3103. to set the screen colors, display text in specific colors, and position the 
  3104. cursor.  These commands are generally easier to understand and use than the 
  3105. corresponding ANSI control sequences.  However, we have included ANSI support 
  3106. in Take Command for situations where it is useful, such as when using the ECHO 
  3107. command, or in the PROMPT. 
  3108.  
  3109. See the ANSI Reference for more details on ANSI strings, and a reference list 
  3110. of ANSI sequences supported by Take Command for OS/2. 
  3111.  
  3112.  
  3113. ΓòÉΓòÉΓòÉ 2.6.5. Critical Errors ΓòÉΓòÉΓòÉ
  3114.  
  3115. OS/2 watches for physical errors during input and output operations.  Physical 
  3116. errors are those due to hardware problems, such as trying to read a floppy disk 
  3117. while the drive door is open. 
  3118.  
  3119. These errors are called critical errors because OS/2, Take Command, or your 
  3120. application program may not be able to proceed until the error is resolved. 
  3121.  
  3122. When a critical error occurs, you will see a popup window asking you to choose 
  3123. an error handling option.  The message comes from OS/2, and will typically 
  3124. offer you three choices: 
  3125.  
  3126.         Return error code to program 
  3127.  
  3128.             Tell the program that the operation failed.  This option returns an 
  3129.             error code to Take Command or to the application program that was 
  3130.             running when the error occurred.  Take Command generally stops the 
  3131.             current command when an operation fails. 
  3132.  
  3133.         End program/command/operation 
  3134.  
  3135.             Terminate the program which generated the error.  Use this option 
  3136.             with caution as it is likely to close Take Command or any other 
  3137.             program which caused an error. 
  3138.  
  3139.         Retry command or operation 
  3140.  
  3141.             Choose this option if you have corrected the problem. 
  3142.  
  3143.  
  3144. ΓòÉΓòÉΓòÉ 2.6.6. Conditional Commands ΓòÉΓòÉΓòÉ
  3145.  
  3146. When an internal command or external program finishes, it returns a result 
  3147. called the exit code.  Conditional commands allow you to perform tasks based 
  3148. upon the previous command's exit code.  Many programs return a 0 if they are 
  3149. successful and a non-zero value if they encounter an error. 
  3150.  
  3151. If you separate two commands by && (AND), the second command will be executed 
  3152. only if the first returns an exit code of 0. For example, the following command 
  3153. will only erase files if the BACKUP operation succeeds: 
  3154.  
  3155.         [c:\] backup c:\ a: && del c:\*.bak;*.lst
  3156.  
  3157. If you separate two commands by || (OR), the second command will be executed 
  3158. only if the first returns a non-zero exit code. For example, if the following 
  3159. BACKUP operation fails, then ECHO will display a message: 
  3160.  
  3161.         [c:\] backup c:\ a: || echo Error in the backup!
  3162.  
  3163. All internal commands return an exit code, but not all external programs do. 
  3164. Conditional commands will behave unpredictably if you use them with external 
  3165. programs which do not return an explicit exit code.  To determine whether a 
  3166. particular external program returns a meaningful exit code use an ECHO %? 
  3167. command immediately after the program is finished.  If the program's 
  3168. documentation does not discuss exit codes you may need to experiment with a 
  3169. variety of conditions to see how the exit code changes. 
  3170.  
  3171.  
  3172. ΓòÉΓòÉΓòÉ 2.6.7. Command Grouping ΓòÉΓòÉΓòÉ
  3173.  
  3174. Command grouping allows you to logically group a set of commands together by 
  3175. enclosing them in parentheses.  The parentheses are similar in function to the 
  3176. BEGIN and END block statements in some programming languages. 
  3177.  
  3178. There are two primary uses for command grouping.  One is to execute multiple 
  3179. commands in a place where normally only a single command is allowed.  For 
  3180. example, suppose you wanted to execute two different REN commands in all 
  3181. subdirectories of your hard disk.  You could do it like this: 
  3182.  
  3183.         [c:\] global ren *.wx1 *.wx0
  3184.         [c:\] global ren *.tx1 *.tx0
  3185.  
  3186. But with command grouping you can do the same thing in one command: 
  3187.  
  3188.         [c:\] global (ren *.wx1 *.wx0 & ren *.tx1 *.tx0)
  3189.  
  3190. The two REN commands enclosed in the parentheses appear to GLOBAL as if they 
  3191. were a single command, so both commands are executed for every directory, but 
  3192. the directories are scanned only once, not twice.  This kind of command 
  3193. grouping is most useful with the EXCEPT, FOR, GLOBAL, and IF commands.  When 
  3194. you use this approach in a batch file you must either place all of the commands 
  3195. in the group on one line, or place the opening parenthesis at the end of a line 
  3196. and place the commands on subsequent lines.  For example, the first two of 
  3197. these sequences will work properly, but the third will not: 
  3198.  
  3199.         for %f in (1 2 3) (echo hello %f & echo goodbye %f)
  3200.  
  3201.         for %f in (1 2 3) (
  3202.             echo hello %f
  3203.             echo goodbye %f
  3204.         )
  3205.  
  3206.         for %f in (1 2 3) (echo hello %f
  3207.         echo goodbye %f)
  3208.  
  3209. You can also use command grouping to redirect input or output for several 
  3210. commands without repeatedly using the redirection symbols.  For example, 
  3211. consider the following batch file fragment which places some header lines 
  3212. (including today's date) and directory displays in an output file using 
  3213. redirection.  The first ECHO command creates the file using >, and the other 
  3214. commands append to the file using >>: 
  3215.  
  3216.         echo Data files %_date > filelist
  3217.         dir *.dat >> filelist
  3218.         echo. >> filelist
  3219.         echo Text files %_date >> filelist
  3220.         dir *.txt >> filelist
  3221.  
  3222. Using command grouping, these commands can be written much more simply: 
  3223.  
  3224.         (echo Data files %_date & dir *.dat & echo. & echo Text files %_date & dir *.txt) > filelist
  3225.  
  3226. The redirection, which appears outside the parentheses, applies to all the 
  3227. commands within the parentheses.  Because the redirection is performed only 
  3228. once, the commands will run slightly faster than if each command was entered 
  3229. separately.  The same approach can be used for input redirection and for 
  3230. piping. 
  3231.  
  3232. You can also use command grouping in a batch file or at the prompt to split 
  3233. commands over several lines.  This last example is like the redirection example 
  3234. above, but is entered at the prompt.  Note the "More?" prompt after each 
  3235. incomplete line.  None of the commands are executed until the command group is 
  3236. completed with the closing parenthesis.  This example does not have to be 
  3237. entered on one line: 
  3238.  
  3239.         [c:\] (echo Data files %_date
  3240.         More? dir *.dat
  3241.         More? echo.
  3242.         More? echo Text files %_date
  3243.         More? dir *.txt) > filelist
  3244.         [c:\]
  3245.  
  3246. A group of commands in parentheses is like a long command line.  The total 
  3247. length of the group may not exceed 2,047 characters, whether the commands are 
  3248. entered from the prompt, an alias, or a batch file.  The limit includes the 
  3249. space required to expand aliases and environment variables used within the 
  3250. group.  In addition, each line you type at the normal prompt or the More? 
  3251. prompt, and each individual command within the line, must meet the usual 
  3252. 1,023-character line length limit. 
  3253.  
  3254.  
  3255. ΓòÉΓòÉΓòÉ 2.6.8. Escape Character ΓòÉΓòÉΓòÉ
  3256.  
  3257. Take Command recognizes a user-definable escape character.  This character 
  3258. gives the following character a special meaning; it is not the same as the 
  3259. ASCII ESC that is often used in ANSI and printer control sequences. 
  3260.  
  3261. The default escape character is a caret [^]. 
  3262.  
  3263. If you don't like using the default escape character, you can pick another 
  3264. character using the SETDOS /E command, the Options 1 page of the configuration 
  3265. dialogs, or the EscapeChar directive in the TCMDOS2.INI file.  If you plan to 
  3266. share aliases or batch files between 4DOS, 4OS2, 4NT and Take Command, see 
  3267. Special Character Compatibility for details about choosing compatible escape 
  3268. characters for two or more products. 
  3269.  
  3270. Ten special characters are recognized when they are preceded by the escape 
  3271. character.  The combination of the escape character and one of these characters 
  3272. is translated to a single character, as shown below.  These are primarily 
  3273. useful for redirecting codes to the printer.  The special characters which can 
  3274. follow the escape character are: 
  3275.  
  3276.         b   backspace 
  3277.         c   comma 
  3278.         e   the ASCII ESC character (ASCII 27) 
  3279.         f   form feed 
  3280.         k   back quote 
  3281.         n   line feed 
  3282.         q   double quote 
  3283.         r   carriage return 
  3284.         s   space 
  3285.         t   tab character 
  3286.  
  3287.  If you follow the escape character with any other character, the escape 
  3288.  character is removed and the second character is copied directly to the 
  3289.  command line.  This allows you to suppress the normal meaning of special 
  3290.  characters (such as ? * / \ | " ` > < and &). 
  3291.  
  3292.  For example, to display a message containing a > symbol, which normally 
  3293.  indicates redirection: 
  3294.  
  3295.           [c:\] echo 2 is ^> 4
  3296.  
  3297.  To send a form feed followed by the sequence ESC Y to the printer, you can use 
  3298.  this command: 
  3299.  
  3300.           [c:\] echos ^f^eY > prn
  3301.  
  3302.  The escape character has an additional use when it is the last character on 
  3303.  any line of a .BAT or .BTM  batch file.  Take Command recognizes this use of 
  3304.  the escape character to signal line continuation:  it removes the escape 
  3305.  character and appends the next line to the current line before executing it. 
  3306.  
  3307.  
  3308. ΓòÉΓòÉΓòÉ 3. Commands ΓòÉΓòÉΓòÉ
  3309.  
  3310. The following topics are a complete guide and reference to the commands that 
  3311. are available from the command line, in aliases, and in batch files.  Most of 
  3312. these commands are internal, which means that Take Command performs the 
  3313. activity you have requested without running another program.  (See internal and 
  3314. external commands.) 
  3315.  
  3316. Take Command offers over 90 internal commands.  These neither replace nor 
  3317. interfere with external commands like BACKUP, DISKCOPY, SCANDISK, or XCOPY. You 
  3318. can continue to use those utilities like you always have.  Take Command has 
  3319. been designed to be compatible with virtually all traditional internal 
  3320. commands, and to enhance most of those commands with additional options and 
  3321. capabilities.  Once you have installed Take Command, you can continue using the 
  3322. commands that you already know and get the same results. 
  3323.  
  3324. Most of these commands are either enhanced traditional commands or are entirely 
  3325. new (a few are the same as traditional commands).  If you are comfortable using 
  3326. traditional commands, you can switch to Take Command without making any changes 
  3327. in your habits.  But you will be missing a lot of the power of these 
  3328. enhancements and new commands unless you take a few minutes to see what's 
  3329. available here.  Make sure you don't skip a section of this reference just 
  3330. because you already know how to use a traditional command with the same name. 
  3331.  
  3332. If you come across terms or concepts in this section that you are unsure about, 
  3333. please refer to the Reference Information topic and its subtopics. 
  3334.  
  3335. The subtopics included in this topic are: 
  3336.  
  3337.     How to Use the Command Descriptions 
  3338.             includes an explanation of the command descriptions, the formating 
  3339.             conventions we use, and how to use the options available with each 
  3340.             command. 
  3341.  
  3342.     Command Categories 
  3343.             is a list of the available commands, organized so you can find the 
  3344.             command you are looking for most easily. 
  3345.  
  3346.     Commands by Name 
  3347.             is an alphabetic list of the available commands. 
  3348.  
  3349.  
  3350. ΓòÉΓòÉΓòÉ 3.1. How to Use the Command Descriptions ΓòÉΓòÉΓòÉ
  3351.  
  3352. Each of the internal commands is described in detail in the following topics. 
  3353. The descriptions are arranged alphabetically, and each includes examples that 
  3354. will help you learn to use the commands. 
  3355.  
  3356. The name of each command is followed by a sentence or two that briefly 
  3357. describes the command's purpose or major function.  That sentence should help 
  3358. you determine quickly whether you have found the command you are seeking. 
  3359.  
  3360. The next part of each description shows the command's format or syntax.  The 
  3361. format line uses certain conventions to describe how the command should be 
  3362. entered and to create reference points for the text describing the command: 
  3363.  
  3364.         Words in UPPER CASE must be spelled exactly as they are shown 
  3365.          (although you can type them in either upper or lower case, or a 
  3366.          combination).  If a word is shown partly in upper case (for example 
  3367.          BRIght), only the upper case portion is required, the rest is 
  3368.          optional. 
  3369.  
  3370.         Words shown in italics (for example source or filename) are meant to 
  3371.          be replaced by other words or values.  Each of these words is 
  3372.          explained directly beneath the format line and discussed in more 
  3373.          detail in the text description of the command.  When the word stands 
  3374.          for a file name, you can use a simple name like MYFILE.TXT, or include 
  3375.          a drive letter and/or a full path, like C:\MYDIR\MYFILE.TXT. 
  3376.  
  3377.         Items followed by an ellipsis (three periods [...]) may be repeated. 
  3378.          For example, filename... means you may enter one or more file names at 
  3379.          this point in the command. 
  3380.  
  3381.         Text shown in [square brackets] is optional.  Text outside of square 
  3382.          brackets must be entered literally (if it is capitalized) or replaced 
  3383.          by other words or values (if it is in italics).  For example, in this 
  3384.          hypothetical command: 
  3385.  
  3386.                           DOIT [/A /W] filename [NOW]
  3387.  
  3388.          the switches /A and /W and the keyword NOW are optional.  The filename 
  3389.          should be replaced by the appropriate name for the operation you want 
  3390.          to perform.  The switches and the keyword NOW at the end must be 
  3391.          entered as shown, if they are used.  For example, you could use "NOW", 
  3392.          "Now", or "now", but you could not abbreviate NOW to NO. 
  3393.  
  3394.         Vertical bars [|] represent a choice; you can pick one option or 
  3395.          another but not both.  For example, the following format shows that 
  3396.          the command may be followed by the word ON or the word OFF, but not 
  3397.          both: 
  3398.  
  3399.                           COMMAND [ ON | OFF ]
  3400.  
  3401.         A slash followed by a letter, like [/X], is an "option" or "switch" 
  3402.          which controls the effect of a command.  Many commands have several 
  3403.          switches, and you are usually free to use none, one, or several to 
  3404.          make a command behave as you wish.  If you use a single switch, you 
  3405.          must precede it with a slash.  If you use several switches, in most 
  3406.          cases you can put them together with one slash or use separate 
  3407.          slashes.  For example, if you wanted to use switches X, Y, and Z for a 
  3408.          command, you could type them three different ways: 
  3409.  
  3410.                           command /x /y /z
  3411.                           command /x/y/z
  3412.                           command /xyz
  3413.  
  3414.         A few switches, particularly in the DIR, SELECT, and START commands, 
  3415.          use two or more characters.  If you need to follow a multi-letter 
  3416.          switch with another switch, the second switch must have its own slash 
  3417.          to avoid ambiguity.  For example, you could use DIR /oa /d to force an 
  3418.          alphanumeric sort (/oa) and suppress directory colors (/d).  However, 
  3419.          if you try to put all the switches together (DIR /oad) Take Command 
  3420.          will not do what you want because the "d" will be interpreted as part 
  3421.          of the /o switch, where it would mean sort by date and time.  The 
  3422.          second slash eliminates this ambiguity. 
  3423.  
  3424.  Included in the format section is an explanation of each replaceable argument 
  3425.  and a one or two word explanation of each switch.  Many descriptions also list 
  3426.  related commands to help you find the exact command you want. 
  3427.  
  3428.  For file handling commands, a section called File Selection appears 
  3429.  immediately after the format section.  This section lists the file-handling 
  3430.  features that the command supports.  The list may include mention of extended 
  3431.  wildcards; multiple file names; include lists; and date, time, and size ranges 
  3432.  and file exclusion ranges. 
  3433.  
  3434.  Next, you'll find a description of the command's usage.  This description 
  3435.  normally starts with the basic functions of a command and gradually adds more 
  3436.  details.  We've also included many examples to help you see the command in 
  3437.  action. 
  3438.  
  3439.  The last part of each description is a detailed explanation of the options or 
  3440.  switches available for each command, in alphabetical order.  Occasionally, 
  3441.  we've included more examples in this section to demonstrate how a switch is 
  3442.  used or how multiple switches interact. 
  3443.  
  3444.  
  3445. ΓòÉΓòÉΓòÉ 3.2. Commands by Category ΓòÉΓòÉΓòÉ
  3446.  
  3447. The best way to learn about commands is to experiment with them.  The lists 
  3448. below categorize the available commands by topic and will help you find the 
  3449. ones that you need. 
  3450.  
  3451. System configuration: 
  3452.  
  3453.  
  3454.                  CHCP         CLS          COLOR        DATE
  3455.  
  3456.                  DIRHISTORY   FREE         HISTORY      KEYBD
  3457.  
  3458.                  KEYS         LOG          MEMORY       OPTION
  3459.  
  3460.                  PROMPT       REBOOT       SETDOS       TIME
  3461.  
  3462.                  VER          VERIFY       VOL
  3463.  
  3464.         File and directory management: 
  3465.  
  3466.  
  3467.                  ATTRIB       COPY         DEL          DESCRIBE
  3468.  
  3469.                  FFIND        LIST         MOVE         REN
  3470.  
  3471.                  SELECT       TOUCH        TREE         TYPE
  3472.  
  3473.         Subdirectory management: 
  3474.  
  3475.  
  3476.                  CD           CDD          DIR          DIRS
  3477.  
  3478.                  MD           POPD         PUSHD        RD
  3479.  
  3480.         Input and output: 
  3481.  
  3482.  
  3483.                  DRAWBOX      DRAWHLINE    DRAWVLINE    ECHO
  3484.  
  3485.                  ECHOERR      ECHOS        ECHOSERR     INKEY
  3486.  
  3487.                  INPUT        KEYSTACK     MSGBOX       QUERYBOX
  3488.  
  3489.                  SCREEN       SCRPUT       VSCRPUT
  3490.  
  3491.         Commands primarily for use in or with batch files and aliases (some 
  3492.         work only in batch files; see the individual commands for details): 
  3493.  
  3494.  
  3495.                  ALIAS        BEEP         CALL         CANCEL
  3496.  
  3497.                  DELAY        DO           ENDLOCAL     FOR
  3498.  
  3499.                  GLOBAL       GOSUB        GOTO         IF
  3500.  
  3501.                  IFF          LOADBTM      ON           PAUSE
  3502.  
  3503.                  QUIT         REM          RETURN       SETLOCAL
  3504.  
  3505.                  SHIFT        SWITCH       TEXT         UNALIAS
  3506.  
  3507.         Environment and path commands: 
  3508.  
  3509.  
  3510.                  DPATH        ESET         PATH         SET
  3511.  
  3512.                  UNSET
  3513.  
  3514.         Window Management 
  3515.  
  3516.  
  3517.                  ACTIVATE     TITLE        WINDOW
  3518.  
  3519.         Other commands: 
  3520.  
  3521.  
  3522.                  ?            DETACH       EXCEPT       EXIT
  3523.  
  3524.                  HELP         SHRALIAS     START        TEE
  3525.  
  3526.                  TIMER        Y
  3527.  
  3528.  
  3529. ΓòÉΓòÉΓòÉ 3.3. Commands by Name ΓòÉΓòÉΓòÉ
  3530.  
  3531. The following topics contain an explanation of each of Take Command's internal 
  3532. commands, arranged alphabetically by name.  You can browse through the list or 
  3533. jump directly to one of the following commands: 
  3534.  
  3535.          ? - List internal commands 
  3536.          ACTIVATE - Activate or change window state 
  3537.          ALIAS - Create or display aliases 
  3538.          ATTRIB - Change file attributes 
  3539.          BEEP - Beep the speaker 
  3540.          CALL - Execute one batch file from another 
  3541.          CANCEL - End all batch files 
  3542.          CD - Change directory 
  3543.          CDD - Change drive and directory 
  3544.          CHCP - Change the current code page 
  3545.          CLS - Clear the screen 
  3546.          COLOR - Change display colors 
  3547.          COPY - Copy files 
  3548.          DATE - Set the date 
  3549.          DEL - Delete files 
  3550.          DELAY - Pause for a specified time 
  3551.          DESCRIBE - Create file description 
  3552.          DETACH - Start a program in "detached" mode 
  3553.          DIR - Display directories 
  3554.          DIRHISTORY - Display the directory history 
  3555.          DIRS - Display the directory stack 
  3556.          DO - Loop in batch files 
  3557.          DPATH - Set data search path 
  3558.          DRAWBOX - Draw a box 
  3559.          DRAWHLINE - Draw horizontal line 
  3560.          DRAWVLINE - Draw a vertical line 
  3561.          ECHO - Display a message 
  3562.          ECHOS - Display a message with no CR/LF 
  3563.          ENDLOCAL - Restore saved environment 
  3564.          ESET - Edit variable or alias 
  3565.          EXCEPT - Exclude files from command 
  3566.          EXIT - Exit Take Command 
  3567.          FFIND - Search for files or text 
  3568.          FOR - Repeat a command 
  3569.          FREE - Display total and free disk space 
  3570.          GLOBAL - Execute command in all subdirectories 
  3571.          GOSUB - Call subroutine 
  3572.          GOTO - Branch within batch file 
  3573.          HELP - Call online help 
  3574.          HISTORY - Manage command history list 
  3575.          IF - Test condition 
  3576.          IFF - IFF / THEN / ELSE conditional test 
  3577.          INKEY - Input a character 
  3578.          INPUT - Input a string 
  3579.          KEYBD - Set keyboard toggles 
  3580.          KEYS - Enable/disable history list 
  3581.          KEYSTACK - Feed keystrokes to programs 
  3582.          LIST - Display file 
  3583.          LOADBTM - Switch batch file mode 
  3584.          LOG - Log commands to file 
  3585.          MD - Create a subdirectory 
  3586.          MEMORY - Display memory status 
  3587.          MOVE - Move files to another directory 
  3588.          MSGBOX - Display a message box prompt 
  3589.          ON - Trap errors in batch files 
  3590.          OPTION - Configure Take Command 
  3591.          PATH - Set the executable search path 
  3592.          PAUSE - Suspend batch file execution 
  3593.          POPD - Restore previous directory 
  3594.          PROMPT - Change command-line prompt 
  3595.          PUSHD - Save current directory 
  3596.          QUERYBOX - Popup dialog for input 
  3597.          QUIT - Exit batch file 
  3598.          RD - Remove subdirectory 
  3599.          REBOOT - Reboot or shutdown the computer 
  3600.          REM - Add comment to batch file 
  3601.          REN - Rename files 
  3602.          RETURN - Return from GOSUB 
  3603.          SCREEN - Position cursor 
  3604.          SCRPUT - Display text in color 
  3605.          SELECT - Select files for a command 
  3606.          SET - Set environment variables 
  3607.          SETDOS - Set the Take Command configuration 
  3608.          SETLOCAL - Save the environment 
  3609.          SHIFT - Shift batch parameters 
  3610.          SHRALIAS - Retain global lists 
  3611.          START - Start application in new session 
  3612.          SWITCH - Select commands to execute 
  3613.          TEE - "Tee" pipe fitting 
  3614.          TEXT - Display text in batch file 
  3615.          TIME - Set the system time 
  3616.          TIMER - Start or stop a stopwatch 
  3617.          TITLE - Set window title 
  3618.          TOUCH - Change date and time stamps 
  3619.          TREE - Display directory tree 
  3620.          TYPE - Display a file 
  3621.          UNALIAS - Remove aliases 
  3622.          UNSET - Remove environment variables 
  3623.          VER - Display version levels 
  3624.          VERIFY - Disk write verification 
  3625.          VOL - Display drive label 
  3626.          VSCRPUT - Display text in color vertically 
  3627.          WINDOW - Change the window state or title 
  3628.          Y - "Y" pipe fitting 
  3629.  
  3630.  
  3631. ΓòÉΓòÉΓòÉ 3.3.1. ? - List internal commands ΓòÉΓòÉΓòÉ
  3632.  
  3633.  Purpose:    Display a list of internal commands or prompt for a command. 
  3634.  
  3635.  Format:     ? ["prompt" command] 
  3636.              prompt :  Prompt text about whether to execute the command. 
  3637.              command : Command to be executed if the user answers Y. 
  3638.  
  3639.  Usage: 
  3640.  
  3641.  ? has two functions 
  3642.  
  3643.  When you use the ? command by itself, it displays a list of internal commands. 
  3644.  For help with any individual command, see the HELP command. 
  3645.  
  3646.  If you have disabled a command with SETDOS /I, it will not appear in the list. 
  3647.  
  3648.  The second function of ? is to prompt the user before executing a specific 
  3649.  line in a batch file.  If you add a prompt and a command, ? will display the 
  3650.  prompt followed by "(Y/N)?" and wait for the user's response.  If the user 
  3651.  presses "Y" or "y", the line will be executed. If the user presses "N" or "n", 
  3652.  the line will be ignored. 
  3653.  
  3654.  For example, the following command might be used in a batch file: 
  3655.  
  3656.           ? *Load the network* call netstart.btm
  3657.  
  3658.  When this command is executed, you will see the following prompt; if you 
  3659.  answer "Y", the CALL command will be executed: 
  3660.  
  3661.           Load the network (Y/N)?
  3662.  
  3663.  
  3664. ΓòÉΓòÉΓòÉ 3.3.2. ACTIVATE - Activate or change window state ΓòÉΓòÉΓòÉ
  3665.  
  3666.  Purpose:    Activate a window, change its state, or change its title. 
  3667.  
  3668.  Format:     ACTIVATE "window" [MAX | MIN | RESTORE | CLOSE ] 
  3669.  
  3670.              window :  Current title of window to work with. 
  3671.  
  3672.  See also:  START, TITLE, and WINDOW. 
  3673.  
  3674.  Usage: 
  3675.  
  3676.  Both the current name of the window and the new name, if any, must be enclosed 
  3677.  in double quotes.  The quotes will not appear as part of the title bar text. 
  3678.  
  3679.  If no options are used, the window named in the command will become the active 
  3680.  window and be able to receive keystrokes and mouse commands. 
  3681.  
  3682.  The MAX option expands the window to its maximum size, the MIN option reduces 
  3683.  the window to an icon, and the RESTORE option returns the window to its 
  3684.  default size and location on the desktop.  The CLOSE option closes the window 
  3685.  and ends the session running in the window. 
  3686.  
  3687.  This example maximizes and then renames the window called "Take Command": 
  3688.  
  3689.           [c:\] activate "Take Command" max
  3690.           [c:\] activate "Take Command" "TCMD"
  3691.  
  3692.  You can use wildcards,  in the window parameter.  This is useful with 
  3693.  applications that change their window title to reflect the file currently in 
  3694.  use. 
  3695.  
  3696.  ACTIVATE is often used before KEYSTACK to make sure the proper window receives 
  3697.  the keystrokes.  ACTIVATE works by sending the appropriate messages to the 
  3698.  named window.  If the window ignores or misinterprets the messages, ACTIVATE 
  3699.  may not have the effect you want.  - 
  3700.  
  3701.  
  3702. ΓòÉΓòÉΓòÉ 3.3.3. ALIAS - Create or display aliases ΓòÉΓòÉΓòÉ
  3703.  
  3704.  Purpose:    Create new command names that execute one or more commands or 
  3705.              redefine default options for existing commands; assign commands to 
  3706.              keystrokes; load or display the list of defined alias names. 
  3707.  
  3708.  Format:     ALIAS [/P /R file...] [name [=][value ]] 
  3709.  
  3710.              file :  One or more files to read for alias definitions. 
  3711.              name :  Name for an alias, or for the key to execute the alias. 
  3712.              value :  Text to be substituted for the alias name. 
  3713.  
  3714.              /P(ause)                 /R(ead alias file) 
  3715.  
  3716.  See also:  UNALIAS and Aliases. 
  3717.  
  3718.  Usage: 
  3719.  
  3720.  The ALIAS command lets you create new command names or redefine internal 
  3721.  commands.  It also lets you assign one or more commands to a single keystroke. 
  3722.  An alias is often used to execute a complex series of commands with a few 
  3723.  keystrokes or to create "in memory batch files" that run much faster than 
  3724.  disk-based batch files. 
  3725.  
  3726.  For example, to create a single-letter command D to display a wide directory, 
  3727.  instead of using the longer DIR /W, you could use the command: 
  3728.  
  3729.           [c:\] alias d = dir /w
  3730.  
  3731.  Now when you type a single d as a command, it will be translated into a DIR /W 
  3732.  command. 
  3733.  
  3734.  You can also define or modify aliases with the Alias dialog.  The dialog 
  3735.  allows you to enter the alias name and value into separate fields in a dialog 
  3736.  box, rather than using the ALIAS command.  All of the information in this 
  3737.  section also applies to aliases defined via the dialog, unless otherwise 
  3738.  noted. 
  3739.  
  3740.  If you define aliases for commonly used application programs, you can often 
  3741.  remove the directories they're stored in from the PATH. For example, if you 
  3742.  use Microsoft Word for Windows and had the C:\WINWORD directory in your path, 
  3743.  you could define the following alias: 
  3744.  
  3745.           [c:\] alias ww = c:\winword\winword.exe
  3746.  
  3747.  With this alias defined, you can probably remove C:\WINWORD from your path. 
  3748.  Word for Windows will now load much faster than it would if Take Command had 
  3749.  to search the PATH for it.  In addition, the PATH can be shorter, which will 
  3750.  speed up searches for other programs. 
  3751.  
  3752.  If you apply this technique for each application program, you can often reduce 
  3753.  your PATH to just two or three directories containing utility programs, and 
  3754.  significantly reduce the time it takes to load most software on your system. 
  3755.  Before removing a directory from the PATH, you will need to define aliases for 
  3756.  all the executable programs you commonly use which are stored in that 
  3757.  directory. 
  3758.  
  3759.  Aliases are stored in memory, and are not saved automatically when you turn 
  3760.  off your computer or end your current session.  See below for information on 
  3761.  saving and reloading your aliases. 
  3762.  
  3763.  Multiple Commands and Special Characters in Aliases 
  3764.  
  3765.  An alias can represent more than one command.  For example: 
  3766.  
  3767.           [c:\] alias letters = `cd \letters & tedit`
  3768.  
  3769.  creates a new command called LETTERS.  The command first uses CD to change to 
  3770.  a subdirectory called \LETTERS and then runs a program called TEDIT.  The 
  3771.  ampersand [&] is the command separator and indicates that the two commands are 
  3772.  distinct and should be executed sequentially. 
  3773.  
  3774.  Aliases make extensive use of the command separator, and the parameter 
  3775.  character, and may also use the escape character.  These characters differ 
  3776.  between 4OS2, 4DOS, and Take Command.  In the text and examples below, we use 
  3777.  the Take Command characters. If you want to use the same aliases under 
  3778.  different command processors, see Special Character Compatibility. 
  3779.  
  3780.  When an alias contains multiple commands, the commands are executed one after 
  3781.  the other.  However, if any of the commands run an external Windows or OS/2 
  3782.  application, you must be sure the alias will wait for the application to 
  3783.  finish before continuing with the other commands.  This behavior is controlled 
  3784.  by the Wait for completion setting on the Options 2 page of the configuration 
  3785.  notebook  or the ExecWait directive in the TCMDOS2.INI file. 
  3786.  
  3787.  When you type alias commands at the command line or in a batch file, you must 
  3788.  use back quotes [`] around the definition if it contains multiple commands, 
  3789.  parameters (discussed below), environment variables, redirection, or piping. 
  3790.  The back quotes prevent premature expansion of these arguments.  You may use 
  3791.  back quotes around other definitions, but they are not required. (You do not 
  3792.  need back quotes when your aliases are loaded from an ALIAS /R file; see below 
  3793.  for details.)  You also do not need back-quotes when entering an alias in the 
  3794.  Aliases dialog box.)  The examples in this section include back-quotes only 
  3795.  when they are required. 
  3796.  
  3797.  Nested Aliases 
  3798.  
  3799.  Aliases may invoke internal commands, external commands, or other aliases. 
  3800.  (However, an alias may not invoke itself, except in special cases where an IF 
  3801.  or IFF command is used to prevent an infinite loop.)  The two aliases below 
  3802.  demonstrate alias nesting (one alias invoking another).  The first line 
  3803.  defines an alias which runs Word for Windows in the E:\WINWORD subdirectory. 
  3804.  The second alias changes directories with the PUSHD command, runs the WP 
  3805.  alias, and then returns to the original directory with the POPD command: 
  3806.  
  3807.           [c:\] alias wp = e:\wp60\wpinword\winword.exe
  3808.           [c:\] alias w = `pushd c:\wp & wp & popd`
  3809.  
  3810.  The second alias above could have included the full path and name of the 
  3811.  WINWORD.EXE program instead of calling the WP alias.  However, writing two 
  3812.  aliases makes the second one easier to read and understand, and makes the 
  3813.  first alias available for independent use.  If you rename the WINWORD.EXE 
  3814.  program or move it to a new directory, only the first alias needs to be 
  3815.  changed. 
  3816.  
  3817.  Temporarily Disabling Aliases 
  3818.  
  3819.  If you put an asterisk [*] immediately before a command in the value of an 
  3820.  alias definition (the part after the equal sign), it tells Take Command not to 
  3821.  attempt to interpret that command as another (nested) alias.  An asterisk used 
  3822.  this way must be preceded by a space or the command separator and followed 
  3823.  immediately by an internal or external command name. 
  3824.  
  3825.  By using an asterisk, you can redefine the default options for any internal or 
  3826.  external command.  For example, suppose that you always want to use the DIR 
  3827.  command with the /2 (two column) and /P (pause at the end of each page) 
  3828.  options.  The following line will do just that: 
  3829.  
  3830.           [c:\] alias dir = *dir /2/p
  3831.  
  3832.  If you didn't include the asterisk, the second DIR on the line would be the 
  3833.  name of the alias itself, and Take Command would repeatedly re- invoke the DIR 
  3834.  alias, rather than running the DIR command.  This would cause an "Alias loop" 
  3835.  or "Command line too long" error. 
  3836.  
  3837.  An asterisk also helps you keep the names of internal commands from 
  3838.  conflicting with the names of external programs.  For example, suppose you 
  3839.  have a program called DESCRIBE.EXE.  Normally, the internal DESCRIBE command 
  3840.  will run anytime you type DESCRIBE.  But two simple aliases will give you 
  3841.  access to both the DESCRIBE.EXE program and the DESCRIBE command: 
  3842.  
  3843.           [c:\] alias describe = c:\winutil\describe.exe
  3844.           [c:\] alias filedesc = *describe
  3845.  
  3846.  The first line above defines DESCRIBE as an alias for the DESCRIBE.EXEprogram. 
  3847.  If you stopped there, the external program would run every time you typed 
  3848.  DESCRIBE and you would not have easy access to the internal DESCRIBE command. 
  3849.  The second line renames the internal DESCRIBE command as FILEDESC.  The 
  3850.  asterisk is needed in the second command to indicate that the following word 
  3851.  means the internal command DESCRIBE, not the DESCRIBE alias which runs your 
  3852.  external program. 
  3853.  
  3854.  Another way to understand the asterisk is to remember that a command is always 
  3855.  checked for an alias first, then for an internal or external command, or a 
  3856.  batch file (see Internal and External Commands).  The asterisk at the 
  3857.  beginning of a command name simply skips over the usual check for aliases when 
  3858.  processing that command, and allows Take Command to go straight to checking 
  3859.  for an internal command, external command, or batch file. 
  3860.  
  3861.  You can also use an asterisk before a command that you enter at the command 
  3862.  line or in a batch file.  If you do, that command won't be interpreted as an 
  3863.  alias.  This can be useful when you want to be sure you are running the true, 
  3864.  original command and not an alias with the same name, or temporarily defeat 
  3865.  the purpose of an alias which changes the meaning or behavior of a command. 
  3866.  For example, above we defined an alias for DIR which made directories display 
  3867.  in 2-column paged mode by default.  If you wanted to see a directory display 
  3868.  in the normal single-column, non-paged mode, you could enter the command *DIR 
  3869.  and the alias would be ignored during that one command. 
  3870.  
  3871.  You can also disable aliases temporarily with the SETDOS /X command. 
  3872.  
  3873.  Partial Alias Names 
  3874.  
  3875.  You can also use an asterisk in the name of an alias.  When you do, the 
  3876.  characters following the asterisk are optional when you invoke the alias 
  3877.  command.  (Use of an asterisk in the alias name is unrelated to the use of an 
  3878.  asterisk in the alias value discussed above.)  For example, with this alias: 
  3879.  
  3880.           [c:\] alias wher*eis = dir /sp
  3881.  
  3882.  the new command, WHEREIS, can be invoked as WHER, WHERE, WHEREI, or WHEREIS. 
  3883.  Now if you type: 
  3884.  
  3885.           [c:\] where myfile.txt
  3886.  
  3887.  The WHEREIS alias will be expanded to the command: 
  3888.  
  3889.           dir /sp myfile.txt
  3890.  
  3891.  Keystroke Aliases 
  3892.  
  3893.  If you want to assign an alias to a keystroke, use the key name on the left 
  3894.  side of the equal sign, preceded by an at sign [@]. For example, to assign the 
  3895.  command DIR /W to the F4 key, type 
  3896.  
  3897.           [c:\] alias @F4 = dir /w
  3898.  
  3899.  See Keys and Key Names for a complete listing of key names and a description 
  3900.  of the key name format. 
  3901.  
  3902.  You can not use Alt key names (e.g., Alt-D) for keystroke aliases because 
  3903.  these names are used by OS/2 for "accelerator" (shortcut) keys for menu items. 
  3904.  
  3905.  If you define a keystroke alias with a single at sign as shown above, then, 
  3906.  when you press the F4 key, the value of the alias (DIR /W above) will be 
  3907.  placed on the command line for you.  You can type additional parameters if you 
  3908.  wish and then press Enter to execute the command. With this particular alias, 
  3909.  you can define the files that you want to display after pressing F4 and before 
  3910.  pressing Enter to execute the command. 
  3911.  
  3912.  If you want the keystroke alias to take action automatically without waiting 
  3913.  for you to edit the command line or press Enter, you can begin the definition 
  3914.  with two at signs [@@].  Take Command will execute the alias "silently," 
  3915.  without displaying its text on the command line.  For example, this command 
  3916.  will assign an alias to the F11 key that uses the CDD command to take you back 
  3917.  to the previous default directory: 
  3918.  
  3919.           [c:\] alias @@f11 = cdd -
  3920.  
  3921.  When you define keystroke aliases, the assignments will only be in effect at 
  3922.  the command line, not inside application programs.  Be careful not to assign 
  3923.  aliases to keys that are already used at the command line (like F1for Help). 
  3924.  The command-line meanings take precedence and the keystroke alias will never 
  3925.  be invoked.  If you want to use one of the command- line keys for an alias 
  3926.  instead of its normal meaning, you must first disable its regular use with the 
  3927.  NormalKey or NormalEditKey directives in your .INI file. 
  3928.  
  3929.  You can also define a keystroke alias by using "@" or "@@" plus a scan code 
  3930.  for one of the permissible keys (see the Key Code Tables for a list of scan 
  3931.  codes).  In most cases it will be easier to use key names.  Scan codes should 
  3932.  only be used with unusual keyboards where a key name is not available for the 
  3933.  key you are using. 
  3934.  
  3935.  Displaying Aliases 
  3936.  
  3937.  If you want to see a list of all current ALIAS commands, type: 
  3938.  
  3939.           [c:\] alias
  3940.  
  3941.  You can also view the definition of a single alias.  For example, if you want 
  3942.  to see the definition of the alias LIST, you can type: 
  3943.  
  3944.           [c:\] alias list
  3945.  
  3946.  Saving and Reloading Your Aliases 
  3947.  
  3948.  You can save your aliases to a file called ALIAS.LST this way: 
  3949.  
  3950.           [c:\] alias > alias.lst
  3951.  
  3952.  You can then reload all the alias definitions in the file the next time you 
  3953.  boot up with the command: 
  3954.  
  3955.           [c:\] alias /r alias.lst
  3956.  
  3957.  This is much faster than defining each alias individually in a batch file.  If 
  3958.  you keep your alias definitions in a separate file which you load when your 
  3959.  system starts, you can edit them with a text editor, reload the edited file 
  3960.  with ALIAS /R, and know that the same alias list will be loaded the next time 
  3961.  you boot your computer. 
  3962.  
  3963.  When you define aliases in a file that will be read with the ALIAS /R command, 
  3964.  you do not need back quotes around the value, even if back quotes would 
  3965.  normally be required when defining the same alias at the command line or in a 
  3966.  batch file. 
  3967.  
  3968.  You can also save and reload your aliases using the Aliases dialog.  The 
  3969.  Export button in the dialog box is equivalent to the ALIAS > filename command 
  3970.  shown above, and the Import button is equivalent to the ALIAS /R command. 
  3971.  
  3972.  To remove an alias, use the UNALIAScommand. 
  3973.  
  3974.  Alias Parameters 
  3975.  
  3976.  Aliases can use command-line arguments or parameters like those in batch 
  3977.  files.  The command-line arguments are numbered from %0 to % 127.  %0 contains 
  3978.  the alias name.  It is up to the alias to determine the meaning of the other 
  3979.  parameters. You can use quotation marks to pass spaces, tabs, commas, and 
  3980.  other special characters in an alias parameter; see Argument Quotingfor 
  3981.  details. 
  3982.  
  3983.  Parameters that are referred to in an alias, but which are missing on the 
  3984.  command line, appear as empty strings inside the alias.  For example, if you 
  3985.  put two parameters on the command line, any reference in the alias to %3 or 
  3986.  any higher-numbered parameter will be interpreted as an empty string. 
  3987.  
  3988.  The parameter %n$ has a special meaning.  Take Command interprets it to mean 
  3989.  "the entire command line, from argument n to the end." If n is not specified, 
  3990.  it has a default value of 1, so %$means "the entire command line after the 
  3991.  alias name."  The special parameter %# contains the number of command-line 
  3992.  arguments. 
  3993.  
  3994.  For example, the following alias will change directories, perform a command, 
  3995.  and return to the original directory: 
  3996.  
  3997.           [c:\] alias in = `pushd %1 & %2$ & popd`
  3998.  
  3999.  When this alias is invoked as: 
  4000.  
  4001.           [c:\] in c:\comm mycomm zmodem /56K
  4002.  
  4003.  the first parameter, %1, has the value c:\comm. %2 is mycomm,  %3is zmodem, 
  4004.  and %4 is /56K. The command line expands into these three separate commands: 
  4005.  
  4006.           pushd c:\comm
  4007.           mycomm zmodem /56K
  4008.           popd
  4009.  
  4010.  This next example uses the IFF command to redefine the defaults for SET.  It 
  4011.  should be entered on one line: 
  4012.  
  4013.           [c:\] alias set = `iff %# == 0 then & *set /p & else
  4014.   & *set %$ & endiff`
  4015.  
  4016.  This modifies the SET command so that if SET is entered with no arguments, it 
  4017.  is replaced by SET /P (pause after displaying each page), but if SET is 
  4018.  followed by an argument, it behaves normally. Note the use of asterisks (*set) 
  4019.  to prevent alias loops. 
  4020.  
  4021.  If an alias uses parameters, command-line arguments will be deleted up to and 
  4022.  including the highest referenced argument.  For example, if an alias refers 
  4023.  only to %1 and %4, then the first and fourth arguments will be used, the 
  4024.  second and third arguments will be discarded, and any additional arguments 
  4025.  beyond the fourth will be appended to the expanded command (after the value 
  4026.  portion of the alias).  If an alias uses no parameters, all of the command- 
  4027.  line arguments will be appended to the expanded command. 
  4028.  
  4029.  Aliases also have full access to all variables in the environment, internal 
  4030.  variables, and variable functions.  For example, you can create a simple 
  4031.  command-line calculator this way: 
  4032.  
  4033.           [c:\] alias calc = `echo The answer is: %@eval[%$]`
  4034.  
  4035.  Now, if you enter: 
  4036.  
  4037.           [c:\] calc 5 * 6
  4038.  
  4039.  the alias will display: 
  4040.  
  4041.           The answer is: 30
  4042.  
  4043.  Expanding Aliases at the Prompt 
  4044.  
  4045.  You can expand an alias on the command line and view or edit the results by 
  4046.  pressing Ctrl-F after typing the alias name, but before the command is 
  4047.  executed.  This replaces the alias with its contents, and substitutes values 
  4048.  for each alias paramter, just as if you had pressed the Enter key.  However, 
  4049.  the command is not executed; it is simply redisplayed on the command line for 
  4050.  additional editing. 
  4051.  
  4052.  Ctrl-F is especially useful when you are developing and debugging a complex 
  4053.  alias, or if you want to make sure that an alias that you may have forgotten 
  4054.  won't change the effect of your command. 
  4055.  
  4056.  Local and Global Aliases 
  4057.  
  4058.  The aliases can be stored in either a "local" or "global" list. 
  4059.  
  4060.  With a local alias list, any changes made to the aliases will only affect the 
  4061.  current copy of Take Command.  They will not be visible in other sessions. 
  4062.  
  4063.  With a global alias list, all copies of Take Command will share the same alias 
  4064.  list, and any changes made to the aliases in one copy will affect all other 
  4065.  copies.  This is the default. 
  4066.  
  4067.  You can control the type of alias list from the Startup page of the 
  4068.  configuration dialogs, with the LocalAliases directive in the TCMDOS2.INI 
  4069.  file, with the /L and /LA options of the START commandand with the /L and /LA 
  4070.  startup options. 
  4071.  
  4072.  There is no fixed rule for determining whether to use a local or global alias 
  4073.  list.  Depending on your work style, you may find it most convenient to use 
  4074.  one type, or a mixture of types in different sessions or shells.  We recommend 
  4075.  that you start with the default approach, then modify it if you find a 
  4076.  situation where the default is not convenient. 
  4077.  
  4078.  Whenever you start a second copy of Take Command which uses a local alias 
  4079.  list, it inherits a copy of the aliases from the previous copy.. However, any 
  4080.  changes to the alias made in the second copy will affect only that copy.  If 
  4081.  you want changes made in a second copy of Take Command to affect the previous 
  4082.  copy, use a global alias list in both. 
  4083.  
  4084.  Retaining Global Aliases with SHRALIAS 
  4085.  
  4086.  If you select a global alias list you can share the aliases among all copies 
  4087.  of Take Command running in any session.  When you close all Take Command 
  4088.  sessions, the memory for the global alias list is released, and a new, empty 
  4089.  alias list is created the next time you start Take Command. 
  4090.  
  4091.  If you want the aliases to be retained in memory even when no Take Command 
  4092.  session is running, you need to execute the SHRALIAS command, which loads a 
  4093.  program to perform this service for the global alias list, the global command 
  4094.  history list, and the global directory history list.  You may find it 
  4095.  convenient to execute SHRALIAS from your TCSTART file 
  4096.  
  4097.  SHRALIAS retains the alias list in memory, but cannot preserve it when OS/2 
  4098.  itself is shut down.  To save your aliases when restarting OS/2, you must 
  4099.  store them in a file and reload them after the system restarts.  For details 
  4100.  on how to do so, see Saving and Reloading Your Aliases (above). 
  4101.  
  4102.  The UNKNOWN_CMD Alias 
  4103.  
  4104.  If you create an alias with the name UNKNOWN_CMD, it will be executed any time 
  4105.  Take Command would normally issue an "Unknown command" error message.  This 
  4106.  allows you to define your own "handler" for unknown commands.  When the 
  4107.  UNKNOWN_CMD alias is executed, the command line which generated the error is 
  4108.  passed to the alias for possible processing.  For example, to display the 
  4109.  command that caused the error: 
  4110.  
  4111.           alias unknown_cmd `echo Error in command "%&"`
  4112.  
  4113.  Use caution when you create the UNKNOWN_CMD alias.  If the alias contains an 
  4114.  unknown command, it will be called repeatedly and Take Command will loop up to 
  4115.  10 times, then display an "UNKNOWN_CMD loop" error. 
  4116.  
  4117.  Options: 
  4118.  
  4119.     /P      (Pause) This option is only effective when ALIAS is used to display 
  4120.             existing definitions.  It pauses the display after each page and 
  4121.             waits for a keystroke before continuing (see Page and File 
  4122.             Prompts). 
  4123.  
  4124.     /R      (Read file) This option loads an alias list from a file. The format 
  4125.             of the file is the same as that of the ALIAS display: 
  4126.  
  4127.                                 name=value
  4128.  
  4129.             where name is the name of the alias and value is its value.  You 
  4130.             can use an equal sign [=] or space to separate the name and value. 
  4131.             Back quotes are not required around the value. You can add comments 
  4132.             to the file by starting each comment line with a colon [:].  You 
  4133.             can load multiple files with one ALIAS /R command by placing the 
  4134.             names on the command line, separated by spaces: 
  4135.  
  4136.                                 [c:\] alias /r alias1.lst alias2.lst
  4137.  
  4138.             Each definition in an ALIAS /R file can be up to 2,047 characters 
  4139.             long.  The definitions can span multiple lines in the file if each 
  4140.             line, except the last, is terminated with an escape character. 
  4141.  
  4142.  
  4143. ΓòÉΓòÉΓòÉ 3.3.4. ATTRIB - Change file attributes ΓòÉΓòÉΓòÉ
  4144.  
  4145.  Purpose:    Change or view file and subdirectory attributes. 
  4146.  
  4147.  Format:     ATTRIB [/A:[[-]rhsda] /D /E /P /Q /S] [+|-[AHRS]] files ... 
  4148.  
  4149.              files :  A file, directory, or list of files or directories on 
  4150.              which to operate. 
  4151.  
  4152.              /A: (Attribute select)      /P(ause) 
  4153.              /D(irectories)              /Q(uiet) 
  4154.              /E (No error messages)      /S(ubdirectories) 
  4155.  
  4156.              Attribute flags: 
  4157.  
  4158.               +A     Set the archive attribute 
  4159.               -A     Clear the archive attribute 
  4160.               +H     Set the hidden attribute 
  4161.               -H     Clear the hidden attribute 
  4162.               +R     Set the read-only attribute 
  4163.               -R     Clear the read-only attribute 
  4164.               +S     Set the system attribute 
  4165.               -S     Clear the system attribute 
  4166.  
  4167.  File Selection: 
  4168.  
  4169.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  4170.  
  4171.  Usage: 
  4172.  
  4173.  Every file and subdirectory has 4 attributes that can be turned on (set) or 
  4174.  turned off (cleared):  Archive, Hidden, Read- only, and System. 
  4175.  
  4176.  The ATTRIB command lets you view, set, or clear attributes for any file, group 
  4177.  of files, or subdirectory. 
  4178.  
  4179.  You can view file attributes by entering ATTRIB without specifying new 
  4180.  attributes (i.e., without the [+|-[AHRS]] part of the format).  (You can also 
  4181.  view file attributes with the DIR /T command. 
  4182.  
  4183.  The primary use of ATTRIB is to set attributes.  For example, you can set the 
  4184.  read-only and hidden attributes for the file MEMO: 
  4185.  
  4186.           [c:\] attrib +rh memo
  4187.  
  4188.  Attribute options apply to the file(s) that follow the options on the ATTRIB 
  4189.  command line.  The example below shows how to set different attributes on 
  4190.  different files with a single command.  It sets the archive attribute for all 
  4191.  .TXT files, then sets the system attribute and clears the archive attribute 
  4192.  for TEST.COM: 
  4193.  
  4194.           [c:\] attrib +a *.txt +s -a test.com
  4195.  
  4196.  When you use ATTRIB on an HPFS drive, you must quote any file names which 
  4197.  contain whitespace or special characters. 
  4198.  
  4199.  To change directory attributes, use the /D switch.  If you give ATTRIB a 
  4200.  directory name instead of a file name, and omit /D, it will append "\*.*" to 
  4201.  the end of the name and act on all files in that directory, rather than acting 
  4202.  on the directory itself. 
  4203.  
  4204.  OS/2 also supports "D" (subdirectory) and "V" (volume label) attributes. These 
  4205.  attributes cannot be altered with ATTRIB; they are designed to be controlled 
  4206.  only by the operating system itself. 
  4207.  
  4208.  ATTRIB will ignore underlines in the new attribute (the [+|- [AHRS]] part of 
  4209.  the command).  For example, ATTRIB sees these 2 commands as identical: 
  4210.  
  4211.           [c:\] attrib +a filename
  4212.           [c:\] attrib +__A_ filename
  4213.  
  4214.  This allows you to use a string of attributes from either the @ATTRIB variable 
  4215.  function or from ATTRIB itself (both of which use underscores to represent 
  4216.  attributes that are not set) and send that string back to ATTRIB to set 
  4217.  attributes for other files.  For example, to clear the attributes of FILE2 and 
  4218.  then set its attributes to match those of FILE1 (enter this on one line): 
  4219.  
  4220.           [c:\] attrib -arhs file2 & attrib +%@attrib[file1] file2
  4221.  
  4222.  Options: 
  4223.  
  4224.     /A:     (Attribute select):  Select only those files that have the 
  4225.             specified attribute(s) set.  Preceding the attribute character with 
  4226.             a hyphen [-] will select files that do not have that attribute set. 
  4227.             The colon [:] after /A is required.  The attributes are: 
  4228.  
  4229.                          R  Read-only 
  4230.                          H  Hidden 
  4231.                          S  System 
  4232.                          D  Subdirectory 
  4233.                          A  Archive 
  4234.  
  4235.             If no attributes are listed at all (e.g., /A:), ATTRIB will select 
  4236.             all files and subdirectories including hidden and system files.  If 
  4237.             attributes are combined, all the specified attributes must match 
  4238.             for a file to be selected.  For example, /A:RHS will select only 
  4239.             those files with all three attributes set. 
  4240.  
  4241.             This switch specifies which files to select, not which attributes 
  4242.             to set.  For example, to remove the archive attribute from all 
  4243.             hidden files, you could use this command: 
  4244.  
  4245.                                 [c:\] attrib /a:h -a *.*
  4246.  
  4247.     /D      (Directories) If you use the /D option, ATTRIB will modify the 
  4248.             attributes of subdirectories in addition to files (yes, you can 
  4249.             have a hidden subdirectory): 
  4250.  
  4251.                                 [c:\] attrib /d +h c:\mydir
  4252.  
  4253.     /E      (No error messages) Suppress all non-fatal error messages, such as 
  4254.             "File Not Found."  Fatal error messages, such as "Drive not ready," 
  4255.             will still be displayed.  This option is most useful in batch files 
  4256.             and aliases. 
  4257.  
  4258.     /P      (Pause) Wait for a key to be pressed after each screen page before 
  4259.             continuing the display.  Your options at the prompt are explained 
  4260.             in detail under Page and File Prompts. 
  4261.  
  4262.     /Q      (Quiet) This option turns off ATTRIB's normal screen output. It is 
  4263.             most useful in batch files. 
  4264.  
  4265.     /S      (Subdirectories) If you use the /S option, the ATTRIB command will 
  4266.             be applied to all matching files in the current or named directory 
  4267.             and all of its subdirectories. 
  4268.  
  4269.  
  4270. ΓòÉΓòÉΓòÉ 3.3.5. BEEP - Beep the speaker ΓòÉΓòÉΓòÉ
  4271.  
  4272.  Purpose:    Beep the speaker or play simple music. 
  4273.  
  4274.  Format:     BEEP [frequency duration ...] 
  4275.  
  4276.              frequency :  The beep frequency in Hertz (cycles per second). 
  4277.              duration :  The beep length in 1/18th second intervals. 
  4278.  
  4279.  Usage: 
  4280.  
  4281.  BEEP generates a sound through your computer's speaker.  It is normally used 
  4282.  in batch files to signal that an operation has been completed, or that the 
  4283.  computer needs attention. 
  4284.  
  4285.  Because BEEP allows you to specify the frequency and duration of the sound, 
  4286.  you can also use it to play simple music or to create different kinds of 
  4287.  signals for the user. 
  4288.  
  4289.  You can include as many frequency and duration pairs as you wish. No sound 
  4290.  will be generated for frequencies less than 20 Hz, allowing you to insert 
  4291.  short delays.  The default value for frequency is 440 Hz; the default value 
  4292.  for duration is 2. 
  4293.  
  4294.  This batch file fragment runs a program called DEMO, then plays a few notes 
  4295.  and waits for you to press a key: 
  4296.  
  4297.           demo
  4298.           beep 440 4  600 2  1040 6
  4299.           pause Finished with the demo - hit a key
  4300.  
  4301.   The following table gives the frequency values for a five octave range 
  4302.  (middle C is 262 Hz): 
  4303.  
  4304.           ΓòöΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòñΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòñΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòñΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòñΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòñΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòù
  4305.           Γòæ C      Γöé  131  Γöé  262  Γöé  523  Γöé  1046  Γöé  2093 Γòæ
  4306.           Γòæ C#/Db  Γöé  139  Γöé  277  Γöé  554  Γöé  1108  Γöé  2217 Γòæ
  4307.           Γòæ D      Γöé  147  Γöé  294  Γöé  587  Γöé  1175  Γöé  2349 Γòæ
  4308.           Γòæ D#/Eb  Γöé  156  Γöé  311  Γöé  622  Γöé  1244  Γöé  2489 Γòæ
  4309.           Γòæ E      Γöé  165  Γöé  330  Γöé  659  Γöé  1318  Γöé  2637 Γòæ
  4310.           Γòæ F      Γöé  175  Γöé  349  Γöé  698  Γöé  1397  Γöé  2794 Γòæ
  4311.           Γòæ F#/Gb  Γöé  185  Γöé  370  Γöé  740  Γöé  1480  Γöé  2960 Γòæ
  4312.           Γòæ G      Γöé  196  Γöé  392  Γöé  784  Γöé  1568  Γöé  3136 Γòæ
  4313.           Γòæ G#/Ab  Γöé  208  Γöé  415  Γöé  831  Γöé  1662  Γöé  3322 Γòæ
  4314.           Γòæ A      Γöé  220  Γöé  440  Γöé  880  Γöé  1760  Γöé  3520 Γòæ
  4315.           Γòæ A#/Bb  Γöé  233  Γöé  466  Γöé  932  Γöé  1866  Γöé  3729 Γòæ
  4316.           Γòæ B      Γöé  248  Γöé  494  Γöé  988  Γöé  1973  Γöé  3951 Γòæ
  4317.           ΓòÜΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòºΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòºΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòºΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòºΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòºΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓò¥
  4318.  
  4319.  
  4320. ΓòÉΓòÉΓòÉ 3.3.6. CALL - Execute one batch file from another ΓòÉΓòÉΓòÉ
  4321.  
  4322.  Purpose:    Execute one batch file from within another. 
  4323.  
  4324.  Format:     CALL [/Q]  file 
  4325.  
  4326.              file :  The batch file to execute. 
  4327.  
  4328.              /Q(uiet) 
  4329.  
  4330.  See also:  CANCEL and QUIT. 
  4331.  
  4332.  Usage: 
  4333.  
  4334.  CALL allows batch files to call other batch files (batch file nesting).  The 
  4335.  calling batch file is suspended while the called (second) batch file runs. 
  4336.  When the second batch file finishes, the original batch file resumes execution 
  4337.  at the next command.  If you execute a batch file from inside another batch 
  4338.  file without using CALL, the first batch file is terminated before the second 
  4339.  one starts. 
  4340.  
  4341.  The following batch file fragment compares an input line to "wp" and calls 
  4342.  another batch file if it matches: 
  4343.  
  4344.           input  Enter your choice:  %%option
  4345.           if "%option" == "wp" call wp.bat
  4346.  
  4347.  Take Command supports batch file nesting up to ten levels deep. 
  4348.  
  4349.  The current ECHO state is inherited by a called batch file, except when the /Q 
  4350.  switch is used. 
  4351.  
  4352.  The called batch file should always either return (by executing its last line, 
  4353.  or using the QUIT command), or terminate batch file processing with CANCEL. Do 
  4354.  not restart or CALL the original batch file from within the called file as 
  4355.  this may cause an infinite loop or a stack overflow. 
  4356.  
  4357.  CALL returns an exit code which matches the batch file return code.  You can 
  4358.  test this exit code with the %_? or %? environment variable, and use it with 
  4359.  conditional commands (&& and ||). 
  4360.  
  4361.  Option: 
  4362.  
  4363.     /Q      (Quite):  Starts the new batch file with echo off, regardless of 
  4364.             the current batch file's echo state.  This switch is provided for 
  4365.             compatibility with CMD.EXE. 
  4366.  
  4367.  
  4368. ΓòÉΓòÉΓòÉ 3.3.7. CANCEL - End all batch files ΓòÉΓòÉΓòÉ
  4369.  
  4370.  Purpose:    Terminate batch file processing. 
  4371.  
  4372.  Format:     CANCEL [value] 
  4373.  
  4374.              value :  The numeric exit code to return to Take Command. 
  4375.  
  4376.  See also:  CALL and QUIT. 
  4377.  
  4378.  Usage: 
  4379.  
  4380.  The CANCEL command ends all batch file processing, regardless of the batch 
  4381.  file nesting level.  Use QUIT to end a nested batch file and return to the 
  4382.  previous batch file. 
  4383.  
  4384.  You can CANCEL at any point in a batch file.  If CANCEL is used from within an 
  4385.  alias it will end execution of both the alias and any batch files which are 
  4386.  running at the time. 
  4387.  
  4388.  The following batch file fragment compares an input line to "end" and 
  4389.  terminates all batch file processing if it matches: 
  4390.  
  4391.           input Enter your choice:  %%option
  4392.           if "%option" == "end" cancel
  4393.  
  4394.  If you specify a value, CANCEL will set the ERRORLEVEL or exit code to that 
  4395.  value (see the IF command, and the %? variable). 
  4396.  
  4397.  
  4398. ΓòÉΓòÉΓòÉ 3.3.8. CD - Change directory ΓòÉΓòÉΓòÉ
  4399.  
  4400.  Purpose:    Display or change the current directory. 
  4401.  
  4402.  Format:     CD [/N] [ path | - ] 
  4403.                 or 
  4404.              CHDIR [/N] [ path | - ] 
  4405.  
  4406.              path :  The directory to change to, including an optional drive 
  4407.              name. 
  4408.  
  4409.              /N(o extended search) 
  4410.  
  4411.  See also:  CDD, MD, PUSHD, RD, and Directory Navigation. 
  4412.  
  4413.  Usage: 
  4414.  
  4415.  CD and CHDIR are synonyms.  You can use either one. 
  4416.  
  4417.  CD lets you navigate through a drive's subdirectory structure by changing the 
  4418.  current working directory.  If you enter CD and a directory name, the named 
  4419.  directory becomes the new current directory.  For example, to change to the 
  4420.  subdirectory C:\FINANCE\MYFILES: 
  4421.  
  4422.           [c:\] cd \finance\myfiles
  4423.           [c:\finance\myfiles]
  4424.  
  4425.  Every disk drive on the system has its own current directory. Specifying both 
  4426.  a drive and a directory in the CD command will change the current directory on 
  4427.  the specified drive, but will not change the default drive.  For example, to 
  4428.  change the default directory on drive A: 
  4429.  
  4430.           [c:\] cd a:\utility
  4431.           [c:\]
  4432.  
  4433.  Notice that this command does not change to drive A:.  Use the CDD command to 
  4434.  change the current drive and directory at the same time. 
  4435.  
  4436.  When you use CD to change to a directory on an HPFS drive, you must quote the 
  4437.  path name if it contains whitespace or special characters. 
  4438.  
  4439.  You can change to the parent directory with CD ..; you can also go up one 
  4440.  additional directory level with each additional [.]. For example, CD .... will 
  4441.  go up three levels in the directory tree (see Extended Parent Directory 
  4442.  Names).  You can move to a sibling directory -- one that branches from the 
  4443.  same parent directory as the current subdirectory -- with a command like CD 
  4444.  ..\newdir. 
  4445.  
  4446.  If you enter CD with no argument or with only a disk drive name, it will 
  4447.  display the current directory on the default or named drive. 
  4448.  
  4449.  If CD cannot change to the directory you have specified it will attempt to 
  4450.  search the CDPATH and the extended directory search database in order to find 
  4451.  a matching directory and switch to it.  You can use wildcards in the path to 
  4452.  force an extended directory search.  Read the section on Directory Navigation 
  4453.  for complete details on these and other directory navigation features.  To 
  4454.  disable extended directory searches for the current command (e.g. in a batch 
  4455.  file) see the /N option below. 
  4456.  
  4457.  CD saves the current directory before changing to a new directory. You can 
  4458.  switch back to the previous directory by entering CD -.  (There must be a 
  4459.  space between the CD command and the hyphen.)  You can switch back and forth 
  4460.  between two directories by repeatedly entering CD -.  The saved directory is 
  4461.  the same for both the CD and CDD commands.  Drive changes and automatic 
  4462.  directory changes also modify the saved directory, so you can use CD - to 
  4463.  return to a directory that you exited with an automatic directory change. 
  4464.  
  4465.  Directory changes made with CD are also recorded in the directory history list 
  4466.  and can be displayed in the directory history window, which allows you to 
  4467.  return quickly to a recently-used directory. 
  4468.  
  4469.  CD never changes the default drive.  If you change directories on one drive, 
  4470.  switch to another drive, and then enter CD -, the directory will be restored 
  4471.  on the first drive but the current drive will not be changed. 
  4472.  
  4473.  Option 
  4474.  
  4475.     /N:     (No extended search) This option prevents CD from searching the 
  4476.             extended directory search database or displaying the related popup 
  4477.             window.  If /N is used and the specified directory is not found via 
  4478.             other methods (i.e. without an extended search), CD will display an 
  4479.             error. This option is primarily intended for use in batch files 
  4480.             where you do not want CD to use "fuzzy" directory searching or 
  4481.             display an extended search popup window. 
  4482.  
  4483.  
  4484. ΓòÉΓòÉΓòÉ 3.3.9. CDD - Change drive and directory ΓòÉΓòÉΓòÉ
  4485.  
  4486.  Purpose:    Change the current disk drive and directory. 
  4487.  
  4488.  Format:     CDD [/A /N /S[drive ...]] [path | - ] 
  4489.  
  4490.              path :  The name of the directory (or drive and directory) to 
  4491.              change to. 
  4492.              drive :  A drive or list of drives to include in the extended 
  4493.              directory search database. 
  4494.  
  4495.              /A(ll drives)            /N(o extended search) 
  4496.              /S(earch tree) 
  4497.  
  4498.  See also:  CD, MD, PUSHD, RD, and Directory Navigation. 
  4499.  
  4500.  Usage: 
  4501.  
  4502.  CDD is similar to the CD command, except that it also changes the default disk 
  4503.  drive if one is specified.  CDD will change to the directory and drive you 
  4504.  name.  To change from the root directory on drive A to the subdirectory C:\WP: 
  4505.  
  4506.           [a:\] cdd c:\wp
  4507.           [c:\wp]
  4508.  
  4509.  You can change to the parent directory with CDD ..; you can also go up one 
  4510.  additional directory level with each additional [.]. For example, CDD .... 
  4511.  will go up three levels in the directory tree (see Extended Parent Directory 
  4512.  Names for details). 
  4513.  
  4514.  CDD can also change to a network drive and directory specified with a UNC 
  4515.  name. 
  4516.  
  4517.  When you use CDD to change to a directory on an NTFS drive, you must quote the 
  4518.  path name if it contains whitespace or special characters. 
  4519.  
  4520.  If CDD cannot change to the directory you have specified it will attempt to 
  4521.  search the CDPATH and the extended directory search database in order to find 
  4522.  a matching directory and switch to it.  You can also use wildcards in the path 
  4523.  to force an extended directory search.  Read the section on Directory 
  4524.  Navigation for complete details on these and other directory navigation 
  4525.  features.  To disable extended directory searches for the current command 
  4526.  (e.g. in a batch file) see the /N option below. 
  4527.  
  4528.  CDD saves the current drive and directory before changing to a new directory. 
  4529.  You can switch back to the previous drive and directory by entering CDD - 
  4530.  (there must be a space between the CDD command and the hyphen).  You can 
  4531.  switch back and forth between two drives and directories by repeatedly 
  4532.  entering CDD -.  The saved directory is the same for both the CD and CDD 
  4533.  commands.  Drive changes and automatic directory changes also modify the saved 
  4534.  directory, so you can use CDD - to return to a directory that you exited with 
  4535.  a drive change or an automatic directory change. 
  4536.  
  4537.  Directory changes made with CDD are also recorded in the directory history 
  4538.  list and can be displayed in the directory history window, which allows you to 
  4539.  return quickly to a recently-used directory. 
  4540.  
  4541.  Options: 
  4542.  
  4543.     /A      (All drives) When CDD is used with this option, it displays the 
  4544.             current directory on all drives from C: to the last drive in the 
  4545.             system.  You cannot move to a new drive and directory and use /A in 
  4546.             the same command. 
  4547.  
  4548.     /N:     (No extended search) This option prevents CD from searching the 
  4549.             extended directory search database or displaying the related popup 
  4550.             window.  If /N is used and the specified directory is not found via 
  4551.             other methods (i.e. without an extended search), CD will display an 
  4552.             error. This option is primarily intended for use in batch files 
  4553.             where you do not want CD to use "fuzzy" directory searching or 
  4554.             display an extended search popup window. 
  4555.  
  4556.     /S      (Search tree) Builds or rebuilds the Extended Directory Search 
  4557.             database, JPSTREE.IDX.  You cannot move to a new drive and 
  4558.             directory and use /S in the same command. 
  4559.  
  4560.             To include all local hard drives in the database, use the command: 
  4561.  
  4562.                                 cdd /s
  4563.  
  4564.             To limit or add to the list of drives included in the database, 
  4565.             list the drives and network volume names after the /S switch.  For 
  4566.             example, to include drives C, D, E, and the network volume 
  4567.             \\server\dir1 in the database, use this command: 
  4568.  
  4569.                                 cdd /s cde \\server\dir1
  4570.  
  4571.             All non-hidden directories on the listed drives will be indexed; 
  4572.             you cannot restrict the database to certain directories within a 
  4573.             drive.  Each time you use /S, everything in the previous directory 
  4574.             database is replaced by the new database that is created. 
  4575.  
  4576.  
  4577. ΓòÉΓòÉΓòÉ 3.3.10. CHCP - Change the current code page ΓòÉΓòÉΓòÉ
  4578.  
  4579.  Purpose:    Display or change the current system code page. 
  4580.  
  4581.  Format:     CHCP [n ] 
  4582.  
  4583.              n :  A system code page number. 
  4584.  
  4585.  Usage: 
  4586.  
  4587.  Code page switching allows you to select different character sets for language 
  4588.  support. 
  4589.  
  4590.  If you enter CHCP without a number, the current active code page is displayed, 
  4591.  along with a list of all active code pages : 
  4592.  
  4593.           [c:\] chcp
  4594.           Active code page: 437
  4595.           Prepared code pages:  273 274 277 278 280 282 284 285 297 437 500
  4596.           850 860 863 865 932 942 852 857 861 870 871 1026 1004
  4597.  
  4598.  If you enter CHCP plus a code page number, the system code page is changed. 
  4599.  For example, to set the code page to multilingual: 
  4600.  
  4601.           [c:\] chcp 850
  4602.  
  4603.  CHCP only affects the current Take Command for OS/2 session, and any new 
  4604.  programs started from within that session; the active code page in other 
  4605.  sessions remains unchanged. 
  4606.  
  4607.  CHCP accepts one of the prepared system code pages.  An error message is 
  4608.  displayed if a code page is selected that has not been prepared for the 
  4609.  system. 
  4610.  
  4611.  See your OS/2 documentation for more information on CHCP. 
  4612.  
  4613.  
  4614. ΓòÉΓòÉΓòÉ 3.3.11. CLS - Clear the screen ΓòÉΓòÉΓòÉ
  4615.  
  4616.  Purpose:    Clear the window and move the cursor to the upper left corner; 
  4617.              optionally change the default display colors. 
  4618.  
  4619.  Format:     CLS [/C] [[BRIght] fg ON [BRIght] bg] 
  4620.  
  4621.              fg :  The new foreground color 
  4622.              bg :  The new background color 
  4623.  
  4624.  /C  Clear scrollback buffer 
  4625.  
  4626.  Usage: 
  4627.  
  4628.  CLS can be used to clear the screen without changing colors, or to clear the 
  4629.  screen and change the screen colors simultaneously. These two examples show 
  4630.  how to clear the screen to the default colors, and to bright white letters on 
  4631.  a blue background: 
  4632.  
  4633.           [c:\] cls
  4634.           [c:\] cls bright white on blue
  4635.  
  4636.  CLS is often used in batch files to clear the screen before displaying text. 
  4637.  
  4638.  See Colors and Color Names for details about colors. 
  4639.  
  4640.  Option: 
  4641.  
  4642.     /C      (Clear buffer)  Clears the entire scrollback buffer.  If /C is not 
  4643.             used, only the visible portion of the Take Command screen is 
  4644.             cleared. 
  4645.  
  4646.  
  4647. ΓòÉΓòÉΓòÉ 3.3.12. COLOR - Change display colors ΓòÉΓòÉΓòÉ
  4648.  
  4649.  Purpose:    Change the default display colors. 
  4650.  
  4651.  Format:     COLOR [BRIght] fg ON [ BRIght] bg 
  4652.  
  4653.              fg :  The new foreground color 
  4654.              bg :  The new background color 
  4655.  
  4656.  See also:  CLS, and Colors and Color Names for details about using colors. 
  4657.  
  4658.  Usage: 
  4659.  
  4660.  COLOR is normally used in batch files before displaying text. For example, to 
  4661.  set screen colors to bright white on blue, you can use this command: 
  4662.  
  4663.           [c:\] color bright white on blue
  4664.  
  4665.  
  4666. ΓòÉΓòÉΓòÉ 3.3.13. COPY - Copy files ΓòÉΓòÉΓòÉ
  4667.  
  4668.  Purpose:    Copy data between disks, directories, files, or physical hardware 
  4669.              devices (such as your printer or serial port). 
  4670.  
  4671.  Format:     COPY [/A:[[-]rhsda] /C /E /F /H /K /M /N /P /Q /R /S /T /U /V /X 
  4672.              /Z] source [+] ... [/A /B] destination [/A /B] 
  4673.  
  4674.              source :  A file or list of files or a device to copy from. 
  4675.              destination :  A file, directory, or device to copy to. 
  4676.  
  4677.              /A(SCII)                    /P(rompt) 
  4678.              /A:(ttribute select)        /Q(uiet) 
  4679.              /B(inary)                   /R(eplace) 
  4680.              /C(hanged)                  /S(ubdirectories) 
  4681.              /E (No error messages)      /T(otals) 
  4682.              /F(ail on EA error)         /U(update) 
  4683.              /H(idden)                   /V(erify) 
  4684.              /K(eep attributes)          /X (clear archive) 
  4685.              /M(odified)                 /Z (overwrite) 
  4686.              /N(othing) 
  4687.  
  4688.  See also:  ATTRIB, MOVE, and REN. 
  4689.  
  4690.  File Selection: 
  4691.  
  4692.  Supports extended wildcards, ranges, multiple file names, and include lists, 
  4693.  and the clipboard device (CLIP:).  Date, time, size, or exclude ranges 
  4694.  anywhere on the line apply to all source files. 
  4695.  
  4696.  Usage: 
  4697.  
  4698.  The COPY command accepts all traditional syntax and options and adds several 
  4699.  new features. 
  4700.  
  4701.  The simplest use of COPY is to make a copy of a file, like this example which 
  4702.  makes a copy of a file called FILE1.ABC: 
  4703.  
  4704.           [c:\] copy file1.abc file2.def
  4705.  
  4706.  You can also copy a file to another drive and/or directory.  The following 
  4707.  command copies FILE1 to the \MYDIR directory on drive E: 
  4708.  
  4709.           [c:\] copy file1 e:\mydir
  4710.  
  4711.  When you COPY files to or from an HPFS drive, you must quote any file names 
  4712.  which contain whitespace or special characters. 
  4713.  
  4714.  Copying Files 
  4715.  
  4716.  You can copy several files at once by using wildcards: 
  4717.  
  4718.           [c:\] copy *.txt e:\mydir
  4719.  
  4720.  You can also list several source files in one command.  The following command 
  4721.  copies 3 files from the current directory to the \MYDIR directory on drive E: 
  4722.  
  4723.           [c:\] copy file1 file2 file3 e:\mydir
  4724.  
  4725.  COPY also understands include lists, so you can specify several different 
  4726.  kinds of files in the same command.  This command copies the .TXT, .DOC, and 
  4727.  .BAT files from the E:\MYDIR directory to the root directory of drive A: 
  4728.  
  4729.           [c:\] copy e:\mydir\*.txt;*.doc;*.bat a:\
  4730.  
  4731.  If there is only one argument on the line, COPY assumes it is the source, and 
  4732.  uses the current drive and directory as the destination.  For example, the 
  4733.  following command copies all the .DAT files on drive A to the current 
  4734.  directory on drive C: 
  4735.  
  4736.           [c:\data] copy a:*.dat
  4737.  
  4738.  If there are two or more arguments on the line, separated by spaces, then COPY 
  4739.  assumes that the last argument is the destination and copies all source files 
  4740.  to this new location.  If the destination is a drive, directory, or device 
  4741.  name then the source files are copied individually to the new location.  If 
  4742.  the destination is a file name, the first source file is copied to the 
  4743.  destination, and any additional source files are then appended to the new 
  4744.  destination file. 
  4745.  
  4746.  For example, the first of these commands copies the .DAT files from the 
  4747.  current directory on drive A individually to C:\MYDIR (which must already 
  4748.  exist as a directory); the second appends all the .DAT files together into one 
  4749.  large file called C:\DATA (assuming C:\DATA is not a directory): 
  4750.  
  4751.           [c:\] copy a:*.dat c:\mydir\
  4752.           [c:\] copy a:*.dat c:\data
  4753.  
  4754.  When you copy to a directory, if you add a backslash [\] to the end of the 
  4755.  name as shown in the first example above, COPY will display an error message 
  4756.  if the name does not refer to an existing directory.  You can use this feature 
  4757.  to keep COPY from treating a mistyped destination directory name as a file 
  4758.  name and attempting to append all your source files to a destination file, 
  4759.  when you really meant to copy them individually to a destination directory. 
  4760.  
  4761.  To copy a file to a device such as the printer, use the device name as the 
  4762.  destination, for example: 
  4763.  
  4764.           [c:\] copy schedule.txt prn
  4765.  
  4766.  To copy to or from the clipboard use CLIP: as the device name.  Using CLIP: 
  4767.  with non-text data will produce unpredictable results. 
  4768.  
  4769.  Appending Files 
  4770.  
  4771.  A plus [+] tells COPY to append two or more files to a single destination 
  4772.  file.  If you list several source files separated with [+] and don't specify a 
  4773.  destination, COPY will use the name of the first source file as the 
  4774.  destination, and append each subsequent file to the first file. 
  4775.  
  4776.  For example, the following command will append the contents of C:\MEMO2 and 
  4777.  C:\MEMO3 to C:\MEMO1 and leave the combined contents in the file named 
  4778.  C:\MEMO1: 
  4779.  
  4780.           [c:\] copy memo1+memo2+memo3
  4781.  
  4782.  To append the same three files but store the result in BIGMEMO: 
  4783.  
  4784.           [c:\] copy memo1+memo2+memo3 bigmemo
  4785.  
  4786.  If no destination is specified, the destination file will always be created in 
  4787.  the current directory even if the first source file is in another directory or 
  4788.  on another drive.  For example, this command will append C:\MEM\MEMO2 and 
  4789.  C:\MEM\MEMO3 to D:\DATA\MEMO1, and leave the result in C:\MEM\MEMO1: 
  4790.  
  4791.           [c:\mem] copy d:\data\memo1+memo2+memo3
  4792.  
  4793.  You cannot append files to a device (such as a printer); if you try to do so, 
  4794.  COPY will ignore the [+] signs and copy the files individually.  If you 
  4795.  attempt to append several source files to a destination directory or disk, 
  4796.  COPY will append the files and place the copy in the new location with the 
  4797.  same name as the first source file. 
  4798.  
  4799.  Advanced Features 
  4800.  
  4801.  If your destination has wildcards in it, COPY will attempt to match them with 
  4802.  the source names.  For example, this command copies the .DAT files from drive 
  4803.  A to C:\MYDIR and gives the new copies the extension .DX: 
  4804.  
  4805.           [c:\] copy a:*.dat c:\mydir\*.dx
  4806.  
  4807.  This feature can give you unexpected results if you use it with multiple 
  4808.  source file names.  For example, suppose that drive A contains XYZ.DAT and 
  4809.  XYZ.TXT.  The command: 
  4810.  
  4811.           [c:\] copy a:\*.dat a:\*.txt c:\mydir\*.dx
  4812.  
  4813.  will copy A:XYZ.DAT to C:\MYDIR\XYZ.DX. Then it will copy A:XYZ.TXT to 
  4814.  C:\MYDIR\XYZ.DX, overwriting the first file it copied. 
  4815.  
  4816.  You can use date, time, and size ranges to further define the files that you 
  4817.  want to copy.  This example copies every file in the E:\MYDIR directory, which 
  4818.  was created or modified yesterday, and which is also 10,000 bytes or smaller 
  4819.  in size, to the root directory of drive A: 
  4820.  
  4821.           [c:\] copy /[d-1] /[s0,10000] e:\mydir\*.* a:\
  4822.  
  4823.  You can also use file exclusion ranges to restrict the list of files that 
  4824.  would normally be selected with wildcards.  This example copies every file in 
  4825.  the E:\MYDIR directory except backup (.BAK or .BK!) files: 
  4826.  
  4827.           [c:\] copy /[!*.bak;*.bk!] e:\mydir\*.* a:\
  4828.  
  4829.  COPY will normally process source files which do not have the hidden or system 
  4830.  attribute, and will ignore the read-only and archive attributes.  It will 
  4831.  always set the archive attribute and clear the read-only attribute of 
  4832.  destination files.  In addition, if the destination is an existing file with 
  4833.  the read-only attribute, COPY will generate an "Access Denied" error and 
  4834.  refuse to overwrite the file.  You can alter some of these behaviors with 
  4835.  switches (see the individual switch descriptions below for complete details): 
  4836.  
  4837.         /A: Forces COPY to process source files with the attributes you 
  4838.             specify. 
  4839.  
  4840.         /H  Forces COPY to process hidden and system source files, and 
  4841.             preserves the hidden and system attributes when creating 
  4842.             destination files. 
  4843.  
  4844.         /K  Retains the read-only attribute from each source file when creating 
  4845.             the destination file. 
  4846.  
  4847.         /Z  Forces COPY to overwrite an existing read-only destination file. 
  4848.  
  4849.  Use caution with /A:, /H, or /K when both the source and destination 
  4850.  directories contain file descriptions.  If the source specification matches 
  4851.  the description file name (normally DESCRIPT.ION), and you use a switch which 
  4852.  tells COPY to process hidden files, the DESCRIPT.ION file itself will be 
  4853.  copied, overwriting any existing descriptions in the destination directory. 
  4854.  For example, if the \DATA directory contains file descriptions this command 
  4855.  would overwrite any existing descriptions in the \SAVE directory: 
  4856.  
  4857.          [c:\data] copy /h d*.* \save\
  4858.  
  4859.  If you copy a file from a FAT volume to an HPFS volume, and you do not give an 
  4860.  explicit destination name (i.e., you are moving the file to the current 
  4861.  directory, or your destination name is made up entirely of wildcards), COPY 
  4862.  will look for a .LONGNAME extended attribute for the source file.  If it finds 
  4863.  that attribute, it will use the long filename for the destination file; 
  4864.  otherwise, it will use the short name. 
  4865.  
  4866.  Similarly, if you COPY files with long filenames from an HPFS volume to a FAT 
  4867.  volume, Take Command will create the destination files with short, 
  4868.  FAT-compatible names and save the long filenames in the .LONGNAME extended 
  4869.  attribute.  The short name is created by replacing special characters with 
  4870.  underscores, adding numeric digits to the filename (if necessary) to make the 
  4871.  new name unique, and truncating the name to fit with in the "8.3" FAT name 
  4872.  structure. 
  4873.  
  4874.  Options: 
  4875.  
  4876.     The /A(SCII) and /B(inary) options apply to the preceding filename and to 
  4877.     all subsequent filenames on the command line until the file name preceding 
  4878.     the next /A or /B, if any. The other options (/A:, /C, /E, /H, /K, /M, /N, 
  4879.     /P, /Q, /R, /S, /T, /U, /V, /X, /Z) apply to all filenames on the command 
  4880.     line, no matter where you put them.  For example, either of the following 
  4881.     commands could be used to copy a font file to the printer in binary mode: 
  4882.  
  4883.                 [c:\] copy /b myfont.dat prn
  4884.                 [c:\] copy myfont.dat /b prn
  4885.  
  4886.     Some options do not make sense in certain contexts, in which case COPY will 
  4887.     ignore them.  For example, you cannot prompt before replacing an existing 
  4888.     file when the destination is a device such as the printer -- there's no 
  4889.     such thing as an "existing file" on the printer.  If you use conflicting 
  4890.     output options, like /Q and /P, COPY will generally take a "conservative" 
  4891.     approach and give priority to the option which generates more prompts or 
  4892.     more information. 
  4893.  
  4894.     /A      (ASCII) If you use /A with a source filename, the file will be 
  4895.             copied up to, but not including, the first Ctrl-Z (Control-Z or 
  4896.             ASCII 26) character in the file (some application programs use the 
  4897.             Ctrl-Z to mark the end of a file).  If you use /A with a 
  4898.             destination filename, a Ctrl-Z will be added to the end of the 
  4899.             file.  /A is the default when appending files, or when the 
  4900.             destination is a device like NUL or PRN, rather than a disk file. 
  4901.  
  4902.     /A:     (Attribute select):  Select only those files that have the 
  4903.             specified attribute(s) set.  Preceding the attribute character with 
  4904.             a hyphen [-] will select files that do not have that attribute set. 
  4905.             The colon [:] after /A is required.  The attributes are: 
  4906.  
  4907.                          R  Read-only 
  4908.                          H  Hidden 
  4909.                          S  System 
  4910.                          D  Subdirectory 
  4911.                          A  Archive 
  4912.  
  4913.             If no attributes are listed at all (e.g., COPY /A:), COPY will 
  4914.             select all files and subdirectories including hidden and system 
  4915.             files (this is equivalent to COPY /H).  If attributes are combined, 
  4916.             all the specified attributes must match for a file to be selected. 
  4917.             For example, /A:RHS will select only those files with all three 
  4918.             attributes set. 
  4919.  
  4920.             See the cautionary note under Advanced Features above before using 
  4921.             /A: when both source and destination directories contain file 
  4922.             descriptions. 
  4923.  
  4924.     /B      (Binary) If you use /B with a source filename, the entire file is 
  4925.             copied; Ctrl-Z characters in the file do not affect the copy 
  4926.             operation.  Using /B with a destination filename prevents addition 
  4927.             of a Ctrl-Z to the end of the destination file. /B is the default 
  4928.             for normal file copies. 
  4929.  
  4930.     /C      (Changed files) Copy files only if the destination file exists and 
  4931.             is older than the source (see also /U).  This option is useful for 
  4932.             updating the files in one directory from those in another without 
  4933.             copying any newly created files. 
  4934.  
  4935.     /E      (No error messages)  Suppress all non-fatal error messages, such as 
  4936.             "File not found."  Fatal error messages, such as "Drive not ready," 
  4937.             will still be displayed.  This option is most useful in batch files 
  4938.             and aliases. 
  4939.  
  4940.     /F      (Fail on EA error) Fail if the source file has extended attributes 
  4941.             and the destination file system doesn't support extended 
  4942.             attributes. 
  4943.  
  4944.     /H      (Hidden) Copy all matching files including those with the hidden 
  4945.             and/or system attribute set. 
  4946.  
  4947.             See the cautionary note under Advanced Features above before using 
  4948.             /H when both source and destination directories contain file 
  4949.             descriptions. 
  4950.  
  4951.     /K      (Keep attribute) To maintain compatibility with COMMAND.COM, 
  4952.             CMD.EXE, and Netware, COPY normally maintains the hidden and system 
  4953.             attributes, sets the archive attribute, and removes the read-only 
  4954.             attribute on the target file.  /K tells COPY to also maintain the 
  4955.             read-only attribute on the destination file. However, if the 
  4956.             destination is on a Novell Netware volume, this option will fail to 
  4957.             maintain the read-only attribute.  This is due to the way Netware 
  4958.             handles file attributes, and is not a problem in COPY. 
  4959.  
  4960.     /M      (Modified) Copy only those files with the archive attribute set, 
  4961.             i.e., those which have been modified since the last backup.  The 
  4962.             archive attribute of the source file will not be cleared after 
  4963.             copying; to clear it use the /X switch, or use ATTRIB. 
  4964.  
  4965.     /N      (Nothing) Do everything except actually perform the copy. This 
  4966.             option is useful for testing what the result of a complex COPY 
  4967.             command will be.  /N does not prevent creation of destination 
  4968.             subdirectories when it is used with /S. 
  4969.  
  4970.     /P      (Prompt) Ask the user to confirm each source file.  Your options at 
  4971.             the prompt are explained in detail under Page and File Prompts. 
  4972.  
  4973.     /Q      (Quiet) Don't display filenames or the total number of files 
  4974.             copied.  This option is most often used in batch files. 
  4975.  
  4976.     /R      (Replace) Prompt the user before overwriting an existing file. 
  4977.             Your options at the prompt are explained in detail under Page and 
  4978.             File Prompts. 
  4979.  
  4980.     /S      (Subdirectories) Copy the subdirectory tree starting with the files 
  4981.             in the source directory plus each subdirectory below that.  The 
  4982.             destination must be a directory; if it doesn't exist, COPY will 
  4983.             attempt to create it.  COPY will also attempt to create needed 
  4984.             subdirectories on the tree below the destination, including empty 
  4985.             source directories.  If COPY /S creates one or more destination 
  4986.             directories, they will be added automatically to the extended 
  4987.             directory search database. 
  4988.  
  4989.             If you attempt to use COPY /S to copy a subdirectory tree into part 
  4990.             of itself, COPY will detect the resulting infinite loop, display an 
  4991.             error message. and exit. 
  4992.  
  4993.     /T      (Totals) Turns off the display of filenames, like /Q, but does 
  4994.             display the total number of files copied. 
  4995.  
  4996.     /U      (Update) Copy each source file only if it is newer than a matching 
  4997.             destination file or if a matching destination file does not exist 
  4998.             (see also /C). This option is useful for keeping one directory 
  4999.             matched with another with a minimum of copying. 
  5000.  
  5001.     /V      (Verify) Verify each disk write.  This is the same as executing the 
  5002.             VERIFY ON command, but is only active during the COPY.  /V does not 
  5003.             read back the file and compare its contents with what was written; 
  5004.             it only verifies that the data written to disk is physically 
  5005.             readable. 
  5006.  
  5007.     /X      (Clear archive) Clears the archive attribute from the source file 
  5008.             after a successful copy.  This option is most useful if you are 
  5009.             using COPY to maintain a set of backup files. 
  5010.  
  5011.     /Z      (Overwrite)  Overwrites read-only destination files. Without this 
  5012.             option, COPY will fail with an "Access denied" error if the 
  5013.             destination file has its read-only attribute set.  This option 
  5014.             allows COPY to overwrite read-only files without generating any 
  5015.             errors. 
  5016.  
  5017.  
  5018. ΓòÉΓòÉΓòÉ 3.3.14. DATE - Set the date ΓòÉΓòÉΓòÉ
  5019.  
  5020.  Purpose:    Display and optionally change the system date. 
  5021.  
  5022.  Format:     DATE [mm-dd- yy] 
  5023.  
  5024.              mm :  The month (1 - 12). 
  5025.              dd :  The day (1 - 31). 
  5026.              yy :  The year (80 - 99 = 1980 - 1999, or a 4-digit year). 
  5027.  
  5028.  See also:  TIME. 
  5029.  
  5030.  Usage: 
  5031.  
  5032.  If you simply type DATE without any parameters, you will see the current 
  5033.  system date and time, and be prompted for a new date. Press Enter if you don't 
  5034.  wish to change the date.  If you type a new date, it will become the current 
  5035.  system date, which is included in the directory entry for each file as it is 
  5036.  created or altered: 
  5037.  
  5038.           [c:\] date
  5039.           Mon Dec 22, 1997  9:30:06
  5040.           Enter new date (mm-dd-yy):
  5041.  
  5042.  You can also enter a new system date by typing the DATE command plus the new 
  5043.  date on the command line: 
  5044.  
  5045.           [c:\] date 10-16-97
  5046.  
  5047.  You can use hyphens, slashes, or periods to separate the month, day, and year 
  5048.  entries.  The year can be entered as a 2-digit or 4-digit value.  Two-digit 
  5049.  years between 80 and 99 are interpreted as 1980 - 1999; values between 00 and 
  5050.  79 are interpreted as 2000 - 2079. 
  5051.  
  5052.  DATE adjusts the format it expects depending on your country settings.  When 
  5053.  entering the date, use the correct format for the country setting currently in 
  5054.  effect on your system. 
  5055.  
  5056.  
  5057. ΓòÉΓòÉΓòÉ 3.3.15. DEL - Delete files ΓòÉΓòÉΓòÉ
  5058.  
  5059.  Purpose:    Erase one file, a group of files, or entire subdirectories. 
  5060.  
  5061.  Format:     DEL [/A:[[-]rhsda] /E /F /N /P /Q /S /T /W /X /Y /Z] file... 
  5062.                 or 
  5063.              ERASE [/A:[[-]rhsda] /E /F /N /P /Q /S /T /W /X /Y /Z] file... 
  5064.  
  5065.              file :  The file, subdirectory, or list of files or subdirectories 
  5066.              to erase. 
  5067.  
  5068.              /A: (Attribute select)          /S(ubdirectories) 
  5069.              /E (No error messages)          /T(otal) 
  5070.              /F(orce delete)                 /W(ipe) 
  5071.              /N(othing)                      /X (remove empty subdirectories) 
  5072.              /P(rompt)                       /Y(es to all prompts) 
  5073.              /Q(uiet)                        /Z(ap hidden and read-only files) 
  5074.  
  5075.  File Selection: 
  5076.  
  5077.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  5078.  
  5079.  Usage: 
  5080.  
  5081.  DEL and ERASE are synonyms; you can use either one. 
  5082.  
  5083.  Use the DEL and ERASE commands with caution; the files and subdirectories that 
  5084.  you erase may be impossible to recover without specialized utilities and a lot 
  5085.  of work. 
  5086.  
  5087.  To erase a single file, simply enter the file name: 
  5088.  
  5089.           [c:\] del letters.txt
  5090.  
  5091.  You can also erase multiple files in a single command.  For example, to erase 
  5092.  all the files in the current directory with a .BAK or .PRN extension: 
  5093.  
  5094.           [c:\] del *.bak *.prn
  5095.  
  5096.  When you use DEL on an NTFS drive, you must quote any file names which contain 
  5097.  whitespace or special characters. 
  5098.  
  5099.  To exclude files from a DEL command, use a file exclusion range.  For example, 
  5100.  to delete all files in the current directory except those whose extension is 
  5101.  .TXT, use a command like this: 
  5102.  
  5103.           [c:\] del /[!*.TXT] *.*
  5104.  
  5105.  When using exclusion ranges or other more complex options you may want to use 
  5106.  the /N switch first, to preview the effects of the DEL without actually 
  5107.  deleting any files. 
  5108.  
  5109.  If you enter a subdirectory name, or a filename composed only of wildcards (* 
  5110.  and/or ?), DEL asks for confirmation (Y or N) unless you specified the /Y 
  5111.  option.  If you respond with a Y, DEL will delete all the files in that 
  5112.  subdirectory (hidden, system, and read-only files are only deleted if you use 
  5113.  the /Z option). 
  5114.  
  5115.  DEL displays the amount of disk space recovered, unless the /Q option is used 
  5116.  (see below).  It does so by comparing the amount of free disk space before and 
  5117.  after the DEL command is executed.  This amount may be incorrect if you are 
  5118.  using a deletion tracking system which stores deleted files in a hidden 
  5119.  directory, or if another program performs a file operation while the DEL 
  5120.  command is executing. 
  5121.  
  5122.  Remember that DEL removes file descriptions along with files.  Most deletion 
  5123.  tracking systems will not be able to save or recover a file's description, 
  5124.  even if they can save or recover the data in a file. 
  5125.  
  5126.  When a file is deleted, its disk space is returned to the operating system for 
  5127.  use by other files.  However, the contents of the file remain on the disk 
  5128.  until they are overwritten by another file.  If you wish to obliterate a file 
  5129.  or wipe its contents clean, use DEL /W, which overwrites the file with zeros 
  5130.  before deleting it.  Use this option with caution.  Once a file is 
  5131.  obliterated, it is impossible to recover. 
  5132.  
  5133.  DEL returns a non-zero exit code if no files are deleted, or if another error 
  5134.  occurs.  You can test this exit code with the %_? environment variable, and 
  5135.  use it with conditional commands (&& and ||). 
  5136.  
  5137.  Options: 
  5138.  
  5139.     /A:     (Attribute select):  Select only those files that have the 
  5140.             specified attribute(s) set.  Preceding the attribute character with 
  5141.             a hyphen [-] will select files that do not have that attribute set. 
  5142.             The colon [:] after /A is required.  The attributes are: 
  5143.  
  5144.                          R  Read-only 
  5145.                          H  Hidden 
  5146.                          S  System 
  5147.                          D  Subdirectory 
  5148.                          A  Archive 
  5149.  
  5150.             If no attributes are listed at all (e.g., DEL /A:), DEL will delete 
  5151.             all files and subdirectories including hidden and system files.  If 
  5152.             attributes are combined, all the specified attributes must match 
  5153.             for a file to be selected for deletion.  For example, /A:RHS will 
  5154.             select only those files with all three attributes set. 
  5155.  
  5156.     /E      (No error messages)  Suppress all non-fatal error messages, such as 
  5157.             "File Not Found."  Fatal error messages, such as "Drive not ready," 
  5158.             will still be displayed.  This option is most useful in batch files 
  5159.             and aliases. 
  5160.  
  5161.     /F      (Force delete) This option forces deletion of the file without 
  5162.             saving it to the DELDIR directory (if DELDIR is not in use, /F has 
  5163.             no effect). 
  5164.  
  5165.     /N      (Nothing) Do everything except actually delete the file(s).  This 
  5166.             is useful for testing what the result of a DEL would be. 
  5167.  
  5168.     /P      (Prompt) Prompt the user to confirm each erasure.  Your options at 
  5169.             the prompt are explained in detail under Page and File Prompts. 
  5170.  
  5171.     /Q      (Quiet) Don't display filenames as they are deleted, or the number 
  5172.             of files deleted or bytes freed.  See also /T. 
  5173.  
  5174.     /S      (Subdirectories) Delete the specified files in this directory and 
  5175.             all of its subdirectories.  This can be used to delete all the 
  5176.             files in a subdirectory tree or even a whole disk.  It should be 
  5177.             used with caution! 
  5178.  
  5179.     /T      (Total) Don't display filenames as they are deleted, but display 
  5180.             the total number of files deleted plus the amount of free disk 
  5181.             space recovered. 
  5182.  
  5183.     /W      (Wipe) Clear the file to zeros before deleting it.  Use this option 
  5184.             to completely obliterate a file's contents from your disk.  Once 
  5185.             you have used this option it is impossible to recover the file even 
  5186.             if you are using an undelete utility, because the contents of the 
  5187.             file are destroyed before it is deleted.  /W overwrites the file 
  5188.             only once; it does not adhere to security standards which require 
  5189.             multiple overwrites with varying data when destroying sensitive 
  5190.             information. 
  5191.  
  5192.     /X      (Remove empty subdirectories) Remove empty subdirectories after 
  5193.             deleting (only useful when used with /S).  If DEL deletes one or 
  5194.             more directories, they will be removed automatically from the 
  5195.             extended directory search database. 
  5196.  
  5197.     /Y      (Yes) The reverse of /P -- it assumes a Y response to everything, 
  5198.             including deleting an entire subdirectory tree. Take Command 
  5199.             normally prompts before deleting files when the name consists only 
  5200.             of wildcards or a subdirectory name ( see above); /Y overrides this 
  5201.             protection, and should be used with extreme caution! 
  5202.  
  5203.     /Z      (Zap) Delete read-only, hidden, and system files as well as normal 
  5204.             files.  Files with the read-only, hidden, or system attribute set 
  5205.             are normally protected from deletion; /Z overrides this protection, 
  5206.             and should be used with caution.  Because EXCEPT works by hiding 
  5207.             files, /Z will override an EXCEPT command.  However, files 
  5208.             specified in a file exclusion range will not be deleted by DEL /Z. 
  5209.  
  5210.             For example, to delete the entire subdirectory tree starting with 
  5211.             C:\UTIL, including hidden and read-only files, without prompting 
  5212.             (use this command with CAUTION!): 
  5213.  
  5214.                                 [c:\] del /sxyz c:\util\
  5215.  
  5216.  
  5217. ΓòÉΓòÉΓòÉ 3.3.16. DELAY - Pause for a specified time ΓòÉΓòÉΓòÉ
  5218.  
  5219.  Purpose:    Pause for a specified length of time. 
  5220.  
  5221.  Format:     DELAY [seconds ] 
  5222.  
  5223.              seconds :  The number of seconds to delay. 
  5224.  
  5225.  Usage: 
  5226.  
  5227.  DELAY is useful in batch file loops while waiting for something to occur.  To 
  5228.  wait for 10 seconds: 
  5229.  
  5230.           delay 10
  5231.  
  5232.  DELAY is most useful when you need to wait a specific amount of time for an 
  5233.  external event, or check a system condition periodically.  For example, this 
  5234.  batch file checks the battery status (as reported by your Advanced Power 
  5235.  Management drivers) every 15 seconds, and gives a warning when battery life 
  5236.  falls below 30%: 
  5237.  
  5238.           do forever
  5239.              iff %_apmlife lt 30 then
  5240.                 beep 440 4 880 4 440 4 880 4
  5241.                 echo Low Battery!!
  5242.              endiff
  5243.              delay 15
  5244.           enddo
  5245.  
  5246.  The seconds value can be as large as about 268 thousand seconds (8.5 years!). 
  5247.  
  5248.  For delays shorter than one second, use the BEEP command with an inaudible 
  5249.  frequency (below 20 Hz). 
  5250.  
  5251.  Take Command uses the minimum possible processor time during a DELAY, in order 
  5252.  to allow other applications full use of system resources. 
  5253.  
  5254.  You can cancel a delay by pressing Ctrl-C or Ctrl-Break. 
  5255.  
  5256.  
  5257. ΓòÉΓòÉΓòÉ 3.3.17. DESCRIBE - Create file description ΓòÉΓòÉΓòÉ
  5258.  
  5259.  Purpose:    Create, modify, or delete file and subdirectory descriptions. 
  5260.  
  5261.  Format:     DESCRIBE [/A:[[-]rhsda]] file [[/D]"description "] ... 
  5262.  
  5263.              file :  The file, directory, or list of files and directories to 
  5264.              operate on. 
  5265.              "description" :  The description to attach to the file. 
  5266.  
  5267.  /A: (Attribute select)/D(escription follows) 
  5268.  
  5269.  File Selection: 
  5270.  
  5271.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  5272.  
  5273.  Usage: 
  5274.  
  5275.  DESCRIBE adds descriptions to files and subdirectories. The descriptions are 
  5276.  displayed by DIR in single-column mode and by SELECT.  Descriptions let you 
  5277.  identify your files in much more meaningful ways than you can in an eight- 
  5278.  character filename. 
  5279.  
  5280.  You can also enter or modify descriptions with the Descriptions dialog.  The 
  5281.  dialog allows you to select a single file and modify its description using a 
  5282.  dialog box, rather than using the DESCRIBE command.  The information in this 
  5283.  section also applies to descriptions created via the dialog, unless otherwise 
  5284.  noted. 
  5285.  
  5286.  You enter a description on the command line by typing the DESCRIBE command, 
  5287.  the filename, and the description in quotation marks, like this: 
  5288.  
  5289.           [c:\] describe memo.txt "Memo to Bob about party"
  5290.  
  5291.  If you don't put a description on the command line, DESCRIBE will prompt you 
  5292.  for it: 
  5293.  
  5294.           [c:\] describe memo.txt
  5295.           Describe "memo.txt" : Memo to Bob about party
  5296.  
  5297.  If you use wildcards or multiple filenames with the DESCRIBE command and don't 
  5298.  include the description text, you will be prompted to enter a description for 
  5299.  each file.  If you do include the description on the command line, all 
  5300.  matching files will be given the same description. 
  5301.  
  5302.  If you use DESCRIBE on an HPFS drive, you must quote the file name if it 
  5303.  contains whitespace or special characters.  See File Names for additional 
  5304.  details. 
  5305.  
  5306.  If you enter a quoted description on the command line, and the text matches 
  5307.  the name of a file in the current directory, the command processor will treat 
  5308.  the string as a quoted file name, not as description text as you intended.  To 
  5309.  resolve this problem use the /D switch immediately prior to the quoted 
  5310.  description (with no intervening spaces).  For example, if the current 
  5311.  directory contains the files DATA.TST and "Test File", the first of these 
  5312.  commands will work as intended, but the second will not (in the second example 
  5313.  the string "test file" will be treated as a second file name, when it is 
  5314.  intended to be description text): 
  5315.  
  5316.           [c:\] describe data.tst /D"test file"
  5317.           [c:\] describe data.tst "test file"
  5318.  
  5319.  On HPFS drives you will not see file descriptions in a normal DIR display, 
  5320.  because DIR must leave space for the long filenames.  To view the 
  5321.  descriptions, use DIR /Z to display the directory in FAT format.  See the DIR 
  5322.  command for more details. 
  5323.  
  5324.  Each description can be up to 511 characters long.  You can change this limit 
  5325.  on the Options 1 page of the configuration notebook, or with the 
  5326.  DescriptionMax directive in TCMDOS2.INI.  In order to fit your descriptions on 
  5327.  a single line in a standard DIR display, keep them to 40 characters or less 
  5328.  (longer descriptions are wrapped in the DIR output).  DESCRIBE can edit 
  5329.  descriptions longer than DescriptionMax, but will not allow you to lengthen 
  5330.  the existing text. 
  5331.  
  5332.  The descriptions are stored in each directory in a hidden file called 
  5333.  DESCRIPT.ION.  Use the ATTRIB command to remove the hidden attribute from this 
  5334.  file if you need to copy or delete it.  (DESCRIPT.ION is always created as a 
  5335.  hidden file, but will not be re-hidden by Take Command if you remove the 
  5336.  hidden attribute.) 
  5337.  
  5338.  You can change the description file name with the INI_DescriptionName 
  5339.  directive in the TCMDOS2.INI file or the SETDOS command, and retrieve it with 
  5340.  the _DNAME internal variable.  Use caution when changing the description file 
  5341.  name, as changing the name from the default will make it difficult to transfer 
  5342.  file descriptions to another system. 
  5343.  
  5344.  The description file is modified appropriately whenever you perform an 
  5345.  internal command which affects it (such as COPY, MOVE, DEL, or RENAME), but 
  5346.  not if you use an external program (such as XCOPY or a visual shell).  You can 
  5347.  disable description processing on the Options 1 page of the configuration 
  5348.  notebook, with the Descriptions directive in the TCMDOS2.INI file, or with 
  5349.  SETDOS/D. 
  5350.  
  5351.  When you COPY or MOVE files between two directories, both of which have 
  5352.  descriptions, and you use switches which enable processing of hidden files (or 
  5353.  you have removed the hidden attribute from DESCRIPT.ION), you must use caution 
  5354.  to avoid overwriting existing file descriptions in the destination directory 
  5355.  with the DESCRIPT.ION file from the source directory.  See the notes under the 
  5356.  Advanced Features sections of COPY and MOVE for additional details. 
  5357.  
  5358.  Options: 
  5359.  
  5360.     /A:     (Attribute select):  Select only those files that have the 
  5361.             specified attribute(s) set.  Preceding the attribute character with 
  5362.             a hyphen [-] will select files that do not have that attribute set. 
  5363.             The colon [:] after /A is required.  The attributes are: 
  5364.  
  5365.                          R  Read-only 
  5366.                          H  Hidden 
  5367.                          S  System 
  5368.                          D  Subdirectory 
  5369.                          A  Archive 
  5370.  
  5371.             If no attributes are listed at all (e.g., /A:), DESCRIBE will 
  5372.             select all files and subdirectories including hidden and system 
  5373.             files.  If attributes are combined, all the specified attributes 
  5374.             must match for a file to be selected.  For example, /A:RHS will 
  5375.             select only those files with all three attributes set. 
  5376.  
  5377.     /D:     (Description follows) The quoted string immediately following this 
  5378.             switch is a description, not a file name. Use /D to avoid any 
  5379.             ambiguity in the meaning of quoted strings.  See the Usage section 
  5380.             above for details. 
  5381.  
  5382.  
  5383. ΓòÉΓòÉΓòÉ 3.3.18. DETACH - Start a program in "detached" mode ΓòÉΓòÉΓòÉ
  5384.  
  5385.  Purpose:    Start a DOS application or an OS/2 text-mode program in "detached" 
  5386.              mode. 
  5387.  
  5388.  Format:     DETACH command 
  5389.  
  5390.              command :  The name of a command to execute, including an optional 
  5391.              drive and path specification.  The name must be enclosed in 
  5392.              quotation marks if it contains whitespace or special characters. 
  5393.  
  5394.  See also:  START. 
  5395.  
  5396.  Usage: 
  5397.  
  5398.  When you start a program with DETACH, that program cannot use the keyboard, 
  5399.  mouse, or video display.  It is "detached" from the normal means of user input 
  5400.  and output.  However, you can redirect the program's standard I/O to other 
  5401.  devices if necessary, using redirection symbols.  In most cases, you should 
  5402.  only DETACH text-mode programs, since most graphical applications cannot run 
  5403.  without a screen or keyboard, or have their input and output redirected. 
  5404.  
  5405.  The command can be an internal command, external command, alias, or batch 
  5406.  file.  If it is not an external command, Take Command will detach a copy of 
  5407.  itself to execute the command. 
  5408.  
  5409.  For example, the following command will detach a copy of Take Command to run 
  5410.  the batch file XYZ.BTM: 
  5411.  
  5412.           [c:\] detach xyz.btm
  5413.  
  5414.  Once the program has started, Take Command returns to the prompt immediately. 
  5415.  It does not wait for a detached program to finish. 
  5416.  
  5417.  There is no standard way to stop a detached program.  If the program does not 
  5418.  terminate on its own you must reboot the system or use an appropriate task 
  5419.  manager or external utility to stop it. 
  5420.  
  5421.  Due to limitations in the way OS/2 starts detached processes, Take Command 
  5422.  cannot perform a true detach operation like that available from a 
  5423.  character-mode command processor such as 4OS2 or CMD.EXE.  Instead, it starts 
  5424.  the program in an invisible window.  If you require a true detached process 
  5425.  you must use a character-mode command processor to start it. 
  5426.  
  5427.  
  5428. ΓòÉΓòÉΓòÉ 3.3.19. DIR - Display directories ΓòÉΓòÉΓòÉ
  5429.  
  5430.  Purpose:    Display information about files and subdirectories. 
  5431.  
  5432.  Format:     DIR [/1 /2 /4 /A[[:][-]rhsda] /B /C /D /E /F /G /H /I"text" /J /K 
  5433.              /L /M /N /O[[:][-]adeginrsu] /P /R /S /T[:acw] /U /V /W /Z] 
  5434.              [file...] 
  5435.  
  5436.              file :  The file, directory, or list of files or directories to 
  5437.              display. 
  5438.  
  5439.              /1 (one column)                 /L(ower case) 
  5440.              /2 (two columns)                /M (suppress footer) 
  5441.              /4 (four columns)               /N(ew format) 
  5442.              /A(ttribute select)             /O(rder) 
  5443.              /B(are)                         /P(ause) 
  5444.              /D(isable color coding)         /R (disable wRap) 
  5445.              /E (use upper case)             /S(ubdirectories) 
  5446.              /F(ull path)                    /T (aTtribute) or (Time) 
  5447.              /G (allocated size)             /U (sUmmary information) 
  5448.              /H(ide dots)                    /V(ertical sort) 
  5449.              /I (match descriptions)         /W(ide) 
  5450.              /J(ustify names)                /Z (use FAT format) 
  5451.              /K (suppress header) 
  5452.  
  5453.  See also:  ATTRIB, DESCRIBE, SELECT, and SETDOS. 
  5454.  
  5455.  File Selection: 
  5456.  
  5457.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  5458.  
  5459.  Usage: 
  5460.  
  5461.  DIR can be used to display information about files from one or more of your 
  5462.  disk directories, in a wide range of formats.  Depending on the options 
  5463.  chosen, you can display the file name, attributes, and size; the time and date 
  5464.  of the last change to the file; and the file description. You can also display 
  5465.  information in 1, 2, 4, or 5 columns, sort the files several different ways, 
  5466.  use color to distinguish file types, and pause after each full screen. 
  5467.  
  5468.  The various DIR displays are controlled through options or switches.  The best 
  5469.  way to learn how to use the many options available with the DIR command is to 
  5470.  experiment.  You will soon know which options you want to use regularly.  You 
  5471.  can select those options permanently by using the ALIAS command. 
  5472.  
  5473.  For example, to display all the files in the current directory, in 2 columns, 
  5474.  sorted vertically (down one column then down the next), and with a pause at 
  5475.  the end of each page: 
  5476.  
  5477.           [c:\] dir /2/p/v
  5478.  
  5479.  To set up this format as the default, using an alias: 
  5480.  
  5481.           [c:\] alias dir=*dir /2/p/v
  5482.  
  5483.  When you use DIR on an NTFS drive, you must quote any file names which contain 
  5484.  whitespace or special characters. 
  5485.  
  5486.  The following sections group DIR's features together in several categories. 
  5487.  Many of the sections move from a general discussion to more technical 
  5488.  material.  If you find some of the information in a category too detailed for 
  5489.  your needs, feel free to skip to the beginning of the next section.  The 
  5490.  sections are: 
  5491.  
  5492.              Selecting Files 
  5493.              Default DIR Output Format 
  5494.              Switching Formats 
  5495.              Multiple Column Displays 
  5496.              Color-Coded Directories 
  5497.              Redirected Output 
  5498.              Other Notes 
  5499.              Options 
  5500.  
  5501.  Selecting Files 
  5502.  
  5503.  DIR can display information about a single file or about several, dozens, 
  5504.  hundreds, or thousands of files at once.  To display information about a 
  5505.  single file, just add the name of the file to the DIR command line: 
  5506.  
  5507.           [c:\] dir january.wks
  5508.  
  5509.  The simplest way to view information about several files at once is to use 
  5510.  wildcards.  DIR can work with traditional wildcard caracters (* and ?) and the 
  5511.  extended wildcards.  For example to display all of the .WKS files in the 
  5512.  current directory: 
  5513.  
  5514.           [c:\] dir *.wks
  5515.  
  5516.  To display all .TXT files whose names begin with A, B, or C: 
  5517.  
  5518.           [c:\] dir [abc]*.txt
  5519.  
  5520.  If you don't specify a filename, DIR defaults to *.* on traditional FAT 
  5521.  drives, and * NTFS drives.  This default displays all non-hidden files and 
  5522.  subdirectories in the current directory. 
  5523.  
  5524.  If you link two or more filenames together with spaces, DIR will display all 
  5525.  of the files that match the first name and then all of the files that match 
  5526.  the second name.  You may use a different drive and path for each filename. 
  5527.  This example lists all of the .WKS and then all of the .WK1 files in the 
  5528.  current directory: 
  5529.  
  5530.           [c:\] dir *.wks *.wk1
  5531.  
  5532.  If you use an include list to link multiple filenames, DIR will display the 
  5533.  matching filenames in a single listing.  Only the first filename in an include 
  5534.  list can have a path; the other files must be in the same path.  This example 
  5535.  displays the same files as the previous example, but the .WKS and .WK1 files 
  5536.  are intermixed: 
  5537.  
  5538.           [c:\] dir *.wks;*.wk1
  5539.  
  5540.  You can include files in the current or named directory plus all of its 
  5541.  subdirectories by using the /S option.  This example displays all of the .WKS 
  5542.  and .WK1 files in the D:\DATA directory and each of its subdirectories: 
  5543.  
  5544.           [c:\] dir /s d:\data\*.wks;*.wk1
  5545.  
  5546.  You can also select files by their attributes by using the /A option.  For 
  5547.  example, this command displays the names of all of the subdirectories of the 
  5548.  current directory: 
  5549.  
  5550.           [c:\] dir /a:d
  5551.  
  5552.  Finally, with the /I option, DIR can select files to display based on their 
  5553.  descriptions (see the DESCRIBE command for more information on file 
  5554.  descriptions).  DIR will display a file if its description matches the text 
  5555.  after the /I switch.  The search is not case sensitive.  You can use wildcards 
  5556.  and extended wildcards as part of the text.  For example, to display any file 
  5557.  described as a "Test File" you can use this command: 
  5558.  
  5559.           [c:\] dir /i"test file"
  5560.  
  5561.  If you want to display files that include the words "test file" anywhere in 
  5562.  their descriptions, use extended wildcards like this: 
  5563.  
  5564.           [c:\] dir /i"*test file*"
  5565.  
  5566.  To display only those files which do not have descriptions, use: 
  5567.  
  5568.           [c:\] dir /I"[]"
  5569.  
  5570.  In addition, you can use ranges to select or exclude specific sets of files. 
  5571.  For example, to display all files modified in the last week, all files except 
  5572.  those with a .BAK extension, and all files over 500 KB in size: 
  5573.  
  5574.           [c:\] dir /[d-7]
  5575.           [c:\] dir /[!*.bak]
  5576.           [c:\] dir /[s500K]
  5577.  
  5578.  You can, of course, mix any of these file selection techniques in whatever 
  5579.  ways suit your needs. 
  5580.  
  5581.  Default DIR Output Format 
  5582.  
  5583.  DIR's output varies based on the the type of volume or drive on which the 
  5584.  files are stored.  If the volume supports long file names (HPFS volumes), the 
  5585.  default DIR format contains 4 columns: the date of the last file modification 
  5586.  or write, the time of last write, the file size in bytes, and the file name. 
  5587.  The name is displayed as it is stored on the disk, in upper, lower, or mixed 
  5588.  case.  DIR will wrap filenames from one line to the next if they are too long 
  5589.  to fit the width of the display.  The standard output format is: 
  5590.  
  5591.      Volume in drive C is C - BOOTUP    Serial ...
  5592.      Directory of  C:\TCOS2201\*.*
  5593.  
  5594.      10-24-96  12:17         <DIR>    .
  5595.      10-24-96  12:17         <DIR>    ..
  5596.      10-28-96   7:57             967  tcmd 3.txt
  5597.      10-21-96  18:08         212,854  TCMDOS2.EXE
  5598.      11-02-96  10:08              45  TCMDOS2.INI
  5599.  
  5600.  (See Switching Formats below for information on changing the standard long 
  5601.  filename format to allow room for file descriptions.) 
  5602.  
  5603.  On FAT volumes which do not support long file names, the default DIR format 
  5604.  contains 5 columns: the file name, the file size in bytes, the date of the 
  5605.  last write, the time of the last write, and the file's description.  File 
  5606.  names are listed in lower-case; directory names in upper case: 
  5607.  
  5608.      Volume in drive C is C - BOOTUP    Serial ...
  5609.      Directory of  C:\4DOS60\*.*
  5610.  
  5611.      .            <DIR>     10-24-96  12:17
  5612.      ..           <DIR>     10-24-96  12:17
  5613.      TEST         <DIR>     11-01-96  16:21
  5614.      4dos6.pif         967  10-28-96   7:57 4DOS PIF file
  5615.      4dos.com       212854  10-21-96  18:08 4DOS exe ...
  5616.      4dos.ini           45  11-02-96  10:08 4DOS conf ...
  5617.  
  5618.  DIR's output is normally sorted by name, with directories listed first.  You 
  5619.  can change the sort order with the /O option.  For example, these two commands 
  5620.  sort the output by date ╨º the first command lists the oldest file first; the 
  5621.  second command lists the oldest file last: 
  5622.  
  5623.           [c:\] dir /o:d
  5624.           [c:\] dir /o:-d
  5625.  
  5626.  When displaying file descriptions, DIR wraps long lines to fit on the screen. 
  5627.  DIR displays a maximum of 40 characters of text in each line of a description, 
  5628.  unless your screen width allows a wider display.  If you disable description 
  5629.  wrapping with the /R option, the description is truncated at the right edge of 
  5630.  the screen, and a right arrow [] is added at the end of the line to alert you 
  5631.  to the existence of additional description text. 
  5632.  
  5633.  Regardless of the volume type, DIR's default output is sorted.  It displays 
  5634.  directory names first, with "<DIR>" inserted instead of a file size, and then 
  5635.  filenames.  DIR assumes that sequences of digits should be sorted numerically 
  5636.  (for example, the file DRAW2 is listed before DRAW03 because 2 is numerically 
  5637.  smaller than 03), rather than strictly alphabetically (where DRAW2 would come 
  5638.  second because "2" is after "0" in alphanumeric order). 
  5639.  
  5640.   You can change the sort order with the /O option.  When DIR displays file 
  5641.  names in a multi-column format, it sorts file names horizontally unless you 
  5642.  use the /V option to display vertically sorted output. 
  5643.  
  5644.  DIR's display can be modified in many ways to meet different needs.  Most of 
  5645.  the following sections describes the various ways you can change DIR's output 
  5646.  format. 
  5647.  
  5648.  Switching Formats 
  5649.  
  5650.  On HPFS volumes, which support long file names, you can force DIR to use a 
  5651.  FAT-like format (file name first, followed by file information) with the /Z 
  5652.  option.  With this option, DIR  truncates long file names, if necessary, and 
  5653.  adds a right arrow [] to show that the name contains additional characters. 
  5654.  
  5655.  The standard long file name output format does not provide enough space to 
  5656.  show descriptions along with file names.  Therefore, if you wish to view file 
  5657.  descriptions as part of the DIR listing on a volume which supports long file 
  5658.  names, you must use the /Z option. 
  5659.  
  5660.  If you use the /B option, DIR displays just file names and omits the file 
  5661.  size, time stamp, and description for each file, for example: 
  5662.  
  5663.           [c:\] dir w* /b
  5664.           WINDOWS
  5665.           WINNT
  5666.           win311
  5667.           WINALIAS
  5668.           WINENV.BTM
  5669.           .....
  5670.  
  5671.  There are several ways to modify the display produced by /B.  The /F option is 
  5672.  similar to /B, but displays the full path and name of each file, instead of 
  5673.  just its name.  To view the same information for a directory and its 
  5674.  subdirectories use /B /S or /F /S. 
  5675.  
  5676.  Multiple Column Displays 
  5677.  
  5678.  DIR has three options, /2, /4, and /W, that create multi-column displays. 
  5679.  
  5680.  The /2 option creates a 2-column display.  On HPFS drives, only the name of 
  5681.  each file is displayed, with directory names placed in square brackets to 
  5682.  distinguish them from file names.  On drives which do not support long 
  5683.  filenames, or when /Z or /X is used (see below), the display includes the 
  5684.  short name, file size, and time stamp for each file. 
  5685.  
  5686.  The /4 option is similar to /2, but displays directory information in 4 
  5687.  columns.  On drives which do not support long filenames, or when /Z or /X is 
  5688.  used (see below), the display shows the file name and the file size in 
  5689.  kilobytes (KB) or megabytes (MB), with "<D>" in the size column for 
  5690.  directories. 
  5691.  
  5692.  The /W option displays directory information in 5 or more columns, depending 
  5693.  on your screen width.  Each entry in a DIR /W display contains either the name 
  5694.  of a file or the name of a directory.  Directory names are placed in square 
  5695.  brackets to distinguish them from file names. 
  5696.  
  5697.  If you use one of these options on an HPFS drive, and do not select an 
  5698.  alternate display format with /Z or /X, the actual number of columns will be 
  5699.  based on the longest name to be displayed and your screen width, and may be 
  5700.  less than the number you requested (for example, you might see only three 
  5701.  columns even though you used /4).  If the longest name is too long to fit in 
  5702.  on a single line the display will be reduced to one column, and each name will 
  5703.  be wrapped, with "extra" blank lines added so that each name takes the same 
  5704.  number of lines. 
  5705.  
  5706.  Color-Coded Directories 
  5707.  
  5708.  The DIR command can display each file name and the associated file information 
  5709.  in a different color, depending on the file's extension. 
  5710.  
  5711.  To choose the display colors, you must either use the SET command to create an 
  5712.  environment variable called COLORDIR, use the Commands page of the 
  5713.  configuration notebook, or use the ColorDir directive in your TCMDOS2.INI 
  5714.  file.  If you do not use the COLORDIR variable or the ColorDir directive, DIR 
  5715.  will use the default screen colors for all files. 
  5716.  
  5717.  If you use both the COLORDIR variable and the ColorDir directive, the 
  5718.  environment variable will override the settings in your TCMDOS2.INI file.  You 
  5719.  may find it useful to use the COLORDIR variable for experimenting, then to set 
  5720.  permanent directory colors with the ColorDir directive. 
  5721.  
  5722.  The format for both the COLORDIR environment variable and the ColorDir 
  5723.  directive in the .INI file is: 
  5724.  
  5725.           ext ... :ColorName; ...
  5726.  
  5727.  where "ext" is a file extension (which may include wildcards) or one of the 
  5728.  following file types: 
  5729.  
  5730.         DIRS        Directories 
  5731.         RDONLY      Read-only files 
  5732.         HIDDEN      Hidden files 
  5733.         SYSTEM      System files 
  5734.         ARCHIVE     Files modified since the last backup 
  5735.  
  5736.  and "ColorName" is any valid color name (see Colors and Color Names). 
  5737.  
  5738.  Unlike most color specifications, the background portion of the color name may 
  5739.  be omitted for directory colors.  If you don't specify a background color, DIR 
  5740.  will use the current screen background color. 
  5741.  
  5742.  For example, to display the .COM and .EXE files in red on the current 
  5743.  background, the .C and .ASM files in bright cyan on the current background, 
  5744.  and the read-only files in green on white (this should be entered on one 
  5745.  line): 
  5746.  
  5747.           [c:\] set colordir=com exe:red; c asm:bright cyan;
  5748.                rdonly:green on white
  5749.  
  5750.  Extended wildcards can be used in directory color specifications.  For 
  5751.  example, to display .BAK, .BAX, and .BAC files in red: 
  5752.  
  5753.           [c:\] set colordir=BA[KXC]:red
  5754.  
  5755.  Redirected Output 
  5756.  
  5757.  The output of the DIR command, like that of most other internal commands, can 
  5758.  be redirected to a file, printer, serial port, or other device.  However, you 
  5759.  may need to take certain DIR options into account when you redirect DIR's 
  5760.  output. 
  5761.  
  5762.  DIR wraps both long file names and file descriptions at the width of your 
  5763.  display.  Its redirected output will also wrap at the screen width.  Use the 
  5764.  /R option if you wish to disable wrapping of long descriptions. 
  5765.  
  5766.  If you redirect a color-coded directory to a file, DIR will remove the color 
  5767.  data as it sends the directory information to a file.  It will usually do the 
  5768.  same if you redirect output to a character device such as a printer or serial 
  5769.  port.  However, it is not always possible for DIR to tell whether or not a 
  5770.  device is a character device.  If you notice that non-colored lines are being 
  5771.  sent to the output device and colored lines are appearing on your screen, you 
  5772.  can use the /D option to temporarily disable color-coding when you redirect 
  5773.  DIR's output. 
  5774.  
  5775.  To redirect DIR output to the clipboard, use CLIP: as the output device name, 
  5776.  for example: 
  5777.  
  5778.           [c:\] dir *.exe > clip:
  5779.  
  5780.  Other Notes 
  5781.  
  5782.  If you have selected a specific country code for your system, DIR will display 
  5783.  the date in the format for that country.  The default date format is U.S. (mm- 
  5784.  dd-yy).  The separator character in the file time will also be affected by the 
  5785.  country code.  Thousands and decimal separators in numeric displays are 
  5786.  affected by the country code, and by the ThousandsChar and DecimalChar 
  5787.  settings selected on the Options 1 page of the configuration notebook, or in 
  5788.  the TCMDOS2.INI file. 
  5789.  
  5790.  DOS networks with large server volumes (over 2 GB) may report incorrect free 
  5791.  disk space values at the end of the DIR display.  If this occurs, it is 
  5792.  because the network software does not report the proper values to Take 
  5793.  Command. 
  5794.  
  5795.  Options: 
  5796.  
  5797.  Options on the command line apply only to the filenames which follow the 
  5798.  option, and options at the end of the line apply to the preceding filename 
  5799.  only.  This allows you to specify different options for different groups of 
  5800.  files, yet retains compatibility with the traditional DIR command when a 
  5801.  single filename is specified. 
  5802.  
  5803.     /1      Single column display - display the filename, size, date, time; 
  5804.             also displays the description on drives which do not support long 
  5805.             filenames.  This is the default.  If /T is used the attributes are 
  5806.             displayed instead of the description.  This option is most useful 
  5807.             if you wish to override a default /2, /4, or /W setting stored in 
  5808.             an alias. 
  5809.  
  5810.     /2      Two column display - display just the name on HPFS drives, or 
  5811.             display the filename, size, date, and time on other drives.  See 
  5812.             Multiple Column Displays above for more details. 
  5813.  
  5814.     /4      Four column display - display just the name on HPFS drives the 
  5815.             filename and size, in K (kilobytes) or M (megabytes) on other 
  5816.             drives, with files between 1 and 9.9 megabytes in size displayed in 
  5817.             tenths (i.e., "2.4M").  See Multiple Column Displays above for more 
  5818.             details. 
  5819.  
  5820.     /A      (Attribute select):  Display only those files that have the 
  5821.             specified attribute(s) set.  Preceding the attribute character with 
  5822.             a hyphen [-] will select files that do not have that attribute set. 
  5823.             The colon [:] after /A is optional.  The attributes are: 
  5824.  
  5825.                          R  Read-only 
  5826.                          H  Hidden 
  5827.                          S  System 
  5828.                          D  Subdirectory 
  5829.                          A  Archive 
  5830.  
  5831.             If no attributes are listed at all (e.g., DIR /A), DIR will display 
  5832.             all files and subdirectories including hidden and system files. If 
  5833.             attributes are combined, all the specified attributes must match 
  5834.             for a file to be included in the listing.  For example, /A:RHS will 
  5835.             display only those files with all three attributes set. 
  5836.  
  5837.     /B      (Bare)  Suppress the header and summary lines, and display file or 
  5838.             subdirectory names only, in a single column. This option is most 
  5839.             useful when you want to redirect a list of names to a file or 
  5840.             another program.  If you use /B with /S, DIR will show the full 
  5841.             path of each file (the same display as /F) instead of simply its 
  5842.             name and extension. 
  5843.  
  5844.     /D      (Disable color coding)  Temporarily disable directory color coding. 
  5845.             May be required when color-coded directories are used and DIR 
  5846.             output is redirected to a character device like the printer (e.g., 
  5847.             PRN or LPT1) or serial port (e.g., COM1 or COM2).  /D is not 
  5848.             required when DIR output is redirected to a file. 
  5849.  
  5850.     /E      Display filenames in upper case; also see SETDOS /U and the 
  5851.             UpperCase directive in TCMDOS2.INI. 
  5852.  
  5853.     /F      (Full path)  Display each filename with its drive letter and path 
  5854.             in a single column, without other information. 
  5855.  
  5856.     /G      (Allocation size) Display the allocated disk space instead of the 
  5857.             actual size of each file. 
  5858.  
  5859.     /H      (Hide dots)  Suppress the display of the "." and ".." directories. 
  5860.  
  5861.     /I      Display filenames by matching text in their descriptions. The text 
  5862.             can include wildcards and extended wildcards.  The search text must 
  5863.             be enclosed in quotation marks.  You can select all filenames that 
  5864.             have a description with /I"[?]*" or all filenames that do not have 
  5865.             a description with /I"[]". The /I option may be used to select 
  5866.             files even if descriptions are not displayed (for example, if /2 is 
  5867.             used). 
  5868.  
  5869.     /J      (Justify names)  Justify (align) filename extensions and display 
  5870.             them in the traditional format. 
  5871.  
  5872.     /K      Suppress the header (disk and directory name) display. 
  5873.  
  5874.     /L      (Lower case)  Display file and directory names in lower case; also 
  5875.             see SETDOS /U and the UpperCase directive in TCMDOS2.INI. 
  5876.  
  5877.     /M      Suppress the footer (file and byte count totals) display. 
  5878.  
  5879.     /N      (New format) Use the long filename display format, even if the 
  5880.             files are stored on a volume which does not support long filenames. 
  5881.             See also /Z. 
  5882.  
  5883.     /O      (Order) Set the sorting order.  You may use any combination of the 
  5884.             following sorting options; if multiple options are used, the 
  5885.             listing will be sorted with the first sort option as the primary 
  5886.             key, the next as the secondary key, and so on: 
  5887.  
  5888.                      -  Reverse the sort order for the next option 
  5889.                      a  Sort in ASCII order, not numerically, when there are 
  5890.                      digits in the name 
  5891.                      d  Sort by date and time (oldest first); for HPFS drives 
  5892.                      also see /T 
  5893.                      e  Sort by extension 
  5894.                      g  Group subdirectories first, then files 
  5895.                      i  Sort by file description 
  5896.                      n  Sort by filename (this is the default) 
  5897.                      r  Reverse the sort order for all options 
  5898.                      s  Sort by size 
  5899.                      u  Unsorted 
  5900.  
  5901.     /P      (Pause)  Wait for a key to be pressed after each screen page before 
  5902.             continuing the display.  Your options at the prompt are explained 
  5903.             in detail under Page and File Prompts. 
  5904.  
  5905.     /R      (disable wRap)  Forces long descriptions to be displayed on a 
  5906.             single line, rather than wrapped onto two or more lines.  Use /R 
  5907.             when output is redirected to a character device, such as a serial 
  5908.             port or the printer; or when you want descriptions truncated, 
  5909.             rather than wrapped, in the on-screen display. 
  5910.  
  5911.     /S      (Subdirectories)  Display file information from the current 
  5912.             directory and all of its subdirectories.  DIR will only display 
  5913.             headers and summaries for those directories which contain files 
  5914.             that match the filename(s), ranges, and attributes that you specify 
  5915.             on the command line. 
  5916.  
  5917.     /T      (aTtribute display)  Display the filenames, attributes, and 
  5918.             descriptions.  The descriptions will be wrapped onto the next line, 
  5919.             if necessary, unless you also use the /R (truncate) option.  If you 
  5920.             use both /T and /R, descriptions are truncated after 34 characters 
  5921.             on an 80-column display.  The attributes are displayed in the 
  5922.             format RHSDA, with the following meanings: 
  5923.  
  5924.                          R  Read-only 
  5925.                          H  Hidden 
  5926.                          S  System 
  5927.                          D  Directory 
  5928.                          A  Archive 
  5929.  
  5930.             If you wish to add another option after /T, you must start the next 
  5931.             option with a forward slash.  If you don't, Take Command will 
  5932.             interpret the /T as the /T:acw time display switch (see below) and 
  5933.             the following character as a valid or invalid time selector.  For 
  5934.             example: 
  5935.  
  5936.                                 [c:\] dir /tz       incorrect, will display error
  5937.                                 [c:\] dir /t/z      correct
  5938.  
  5939.     /T:acw  (Time display)  Specify which of the date and time fields on an 
  5940.             HPFS drive should be displayed and used for sorting: 
  5941.  
  5942.                          a  Last access time 
  5943.                          c  Creation time 
  5944.                          w  Last write time (default) 
  5945.  
  5946.     /U      (sUmmary information)  Only display the number of files, the total 
  5947.             file size, and the total amount of disk space used. 
  5948.  
  5949.     /V      (Vertical sort)  Display the filenames sorted vertically rather 
  5950.             than horizontally (use with the /2, /4 or /W options). 
  5951.  
  5952.     /W      (Wide)  Display filenames only, horizontally across the screen.  On 
  5953.             drives which do not support long filenames, /W displays as many 
  5954.             columns as it can fit into the Take Command window, using 16 
  5955.             characters in each column.  Otherwise (i.e., when long filenames 
  5956.             are displayed) the number of columns depends on the width of the 
  5957.             longest name in the listing.  See Multiple Column Displays above 
  5958.             for more details. 
  5959.  
  5960.     /Z      Display a directory on an HPFS drive in the tradtional FAT format, 
  5961.             with the filename at the left and the description at the right. 
  5962.             Long names will be truncated to 12 characters unless /X is also 
  5963.             used; if the name is longer than 12 characters, it will be followed 
  5964.             by a right arrow [] to show that one or more characters have been 
  5965.             truncated. 
  5966.  
  5967.  
  5968. ΓòÉΓòÉΓòÉ 3.3.20. ┬áDIRHISTORY - Display the directory history list ΓòÉΓòÉΓòÉ
  5969.  
  5970.  Purpose:    Display, add to, clear, or read the directory history list. 
  5971.  
  5972.  Format:     DIRHISTORY [ /A directory /F /P /R filename ] 
  5973.  
  5974.              directory :  The name of a directory to add to the directory 
  5975.              history. 
  5976.              filename :  The name of a file containing entries to be added to 
  5977.              the directory history. 
  5978.  
  5979.              /A(dd): pd./P(ause) 
  5980.              /F(ree)                  /R(ead file) 
  5981.  
  5982.  Usage: 
  5983.  
  5984.  Every time you change to a new directory or drive, Take Command records the 
  5985.  current directory in an internal directory history list.  The directory 
  5986.  history window allows you to use the list to return to a previous directory. 
  5987.  For general information, also see Directory Navigation. 
  5988.  
  5989.  The DIRHISTORY command lets you view and manipulate the directory history list 
  5990.  directly.  If no parameters are entered, DIRHISTORY will display the current 
  5991.  directory history list: 
  5992.  
  5993.           [c:\] dirhistory
  5994.  
  5995.  With the options explained below, you can clear the list, add new directories 
  5996.  to the list without changing to them, save the list in a file, or read a new 
  5997.  list from a file. 
  5998.  
  5999.  The number of directories saved in the directory history list depends on the 
  6000.  length of each directory name.  The list size can be specified at startup from 
  6001.  256 to 32767 characters by using the DirHistory directive in the .INI file. 
  6002.  The default size is 256 characters. 
  6003.  
  6004.  Your directory history list can be stored either locally (a separate history 
  6005.  list for each copy of Take Command) or globally (all copies of Take Command 
  6006.  share the same list).  For full details see the discussion of local and global 
  6007.  directory history lists in Directory History Window. 
  6008.  
  6009.  You can save the directory history list by redirecting the output of 
  6010.  DIRHISTORY to a file.  This example saves the history to a file called DIRHIST 
  6011.  and reads it back again. 
  6012.  
  6013.           [c:\] dirhistory > dirhist
  6014.           .....
  6015.           [c:\] dirhistory /r dirhist
  6016.  
  6017.  Because the directory history stores each name only once, you don't have to 
  6018.  delete its contents before reading back the file unless you want to delete the 
  6019.  directories that were visited by the intervening commands. 
  6020.  
  6021.  If you need to save your directory history at the end of each day's work, you 
  6022.  might use the first of these commands in your TCSTART.BTM or other startup 
  6023.  file, and the second in TCEXIT.BTM: 
  6024.  
  6025.           if exist c:\dirhist dirhistory /r c:\dirhist
  6026.           dirhistory > c:\dirhist
  6027.  
  6028.  This restores the previous history list if it exists, and saves the history 
  6029.  when Take Command exits. Options: 
  6030.  
  6031.     /A      (Add) Add a directory to the directory history list. 
  6032.  
  6033.     /F      (Free):  Erase all entries in the directory history list. 
  6034.  
  6035.     /P      (Prompt):  Wait for a key after displaying each page of the list. 
  6036.             Your options at the prompt are explained in detail under Page and 
  6037.             File Prompts. 
  6038.  
  6039.     /R      (Read):  Read the directory history from the specified file and 
  6040.             append it to the list currently held in memory. 
  6041.  
  6042.  
  6043. ΓòÉΓòÉΓòÉ 3.3.21. DIRS - Display the directory stack ΓòÉΓòÉΓòÉ
  6044.  
  6045.  Purpose:    Display the current directory stack. 
  6046.  
  6047.  Format:     DIRS 
  6048.  
  6049.  See also:  PUSHD, POPD, and Directory Navigation. 
  6050.  
  6051.  Usage: 
  6052.  
  6053.  The PUSHD command adds the current default drive and directory to the 
  6054.  directory stack, a list that Take Command maintains in memory.  The POPD 
  6055.  command removes the top entry of the directory stack and makes that drive and 
  6056.  directory the new default.  The DIRS command displays the contents of the 
  6057.  directory stack, with the most recent entries on top (i.e., the next POPD will 
  6058.  retrieve the first entry that DIRS displays). 
  6059.  
  6060.  For example, to change directories and then display the directory stack: 
  6061.  
  6062.           [c:\] pushd c:\database
  6063.           [c:\database] pushd d:\wordp\memos
  6064.           [d:\wordp\memos] dirs
  6065.           c:\database
  6066.           c:\
  6067.  
  6068.  The directory stack holds 511 characters, enough for 20 to 40 typical drive 
  6069.  and directory entries. 
  6070.  
  6071.  
  6072. ΓòÉΓòÉΓòÉ 3.3.22. DO - Loop in batch files ΓòÉΓòÉΓòÉ
  6073.  
  6074. DO 
  6075.  
  6076.  Purpose:    Create loops in batch files. 
  6077.  
  6078.  Format:     DO [n | FOREVER] 
  6079.                 or 
  6080.              DO varname = start TO end [BY n ] 
  6081.                 or 
  6082.              DO [WHILE | UNTIL] condition 
  6083.                 or 
  6084.              DO varname IN [ @ ] set 
  6085.                 commands 
  6086.              [ITERATE] 
  6087.              [LEAVE] 
  6088.                 commands 
  6089.              ENDDO 
  6090.  
  6091.              varname : The environment variable that will hold the loop 
  6092.              counter, filename, or line from a file. 
  6093.              n, start, end :  Integers between 0 and 2,147,483,647 inclusive, 
  6094.              or an internal variable or variable function that evaluates to 
  6095.              such a value. 
  6096.              condition :  A test to determine if the loop should be executed. 
  6097.              set : A set of values for the variable. 
  6098.              commands : One or more commands to execute each time through the 
  6099.              loop.  If you use multiple commands, they must be separated by 
  6100.              command separators or be placed on separate lines. 
  6101.  File Selection: 
  6102.  
  6103.  Supports extended wildcards, ranges, and include lists for the set. 
  6104.  
  6105.  Usage: 
  6106.  
  6107.  DO can only be used in batch files. 
  6108.  
  6109.  DO can be used to create 4 different kinds of loops.  The first, introduced by 
  6110.  DO n, is a counted loop.  The batch file lines between DO and ENDDO are 
  6111.  repeated n times.  For example: 
  6112.  
  6113.           do 5
  6114.             beep
  6115.           enddo
  6116.  
  6117.  You can also specify "forever" for n if you wish to create an endless loop 
  6118.  (you can use LEAVE or GOTO to exit such a loop; see below for details). 
  6119.  
  6120.  The second type of loop is similar to a "for loop" in programming languages 
  6121.  like BASIC.  DO creates an environment variable, varname, and sets it equal to 
  6122.  the value start (if varname already exists in the environment, it will be 
  6123.  overwritten).  DO then begins the loop process by comparing the value of 
  6124.  varname with the value of end. If varname is less than or equal to end, DO 
  6125.  executes the batch file lines up to the ENDDO.  Next, DO adds 1 to the value 
  6126.  of varname, or adds the value n if BY n is specified, and repeats the compare 
  6127.  and execute process until varname is greater than end. This example displays 
  6128.  the even numbers from 2 through 20: 
  6129.  
  6130.           do i = 2 to 20 by 2
  6131.             echo %i
  6132.           enddo
  6133.  
  6134.  DO can also count down, rather than up.  If n is negative, varname will 
  6135.  decrease by n with each loop, and the loop will stop when varname is less than 
  6136.  end.  For example, to display the even numbers from 2 through 20 in reverse 
  6137.  order, replace the first line of the example above with: 
  6138.  
  6139.           do i = 20 to 2 by -2
  6140.  
  6141.  The third type of loop is called a "while loop" or "until loop." DO evaluates 
  6142.  the condition, which can be any of the tests supported by the IF command, and 
  6143.  executes the lines between DO and ENDDO as long as the condition is true.  The 
  6144.  loop ends when the condition becomes false. 
  6145.  
  6146.  WHILE tests the condition at the start of the loop.  Therefore, if the 
  6147.  condition is false when the loop starts, the statements within the loop will 
  6148.  never be executed, and the batch file will continue with the statement after 
  6149.  the ENDDO. 
  6150.  
  6151.  UNTIL tests the condition at the end of the loop.  Therefore, if the condition 
  6152.  is false when the loop starts, the statements within the loop will still be 
  6153.  executed at least once.
  6154.  
  6155.  The fourth type of loop executes the lines between DO and ENDDO once for every 
  6156.  member of a set (this is similar to the set used in the FOR command). 
  6157.  Normally, the set is a list of files specified with wildcards.  For example: 
  6158.  
  6159.           do x in *.txt
  6160.  
  6161.  will execute the loop once for every .TXT file in the current directory; each 
  6162.  time through the loop the variable x will be set to the name of the next file 
  6163.  that matches the file specification. 
  6164.  
  6165.  If, between DO and ENDDO, you create a new file that could be included in the 
  6166.  list of files, it may or may not appear in an iteration of the DO loop. 
  6167.  Whether the new file appears depends on its physical location in the directory 
  6168.  structure, a condition over which Take Command has no control. 
  6169.  
  6170.  You can also execute the loop once for each line of text in a file by placing 
  6171.  an [@] in front of the file name.  If you have a file called DRIVES.TXT that 
  6172.  contains a list of drives on your computer, one drive name per line, you can 
  6173.  execute the loop once for each drive this way: 
  6174.  
  6175.           do x in @drives.txt
  6176.  
  6177.  To execute the loop once for each line of text in the clipboard, use CLIP: as 
  6178.  the file name (e.g. DO X IN @CLIP:).  CLIP: will not return any data unless 
  6179.  the clipboard contains text. 
  6180.  
  6181.  Two special commands, ITERATE and LEAVE, can be used inside a DO / ENDDO loop. 
  6182.  ITERATE ignores the remaining lines inside the loop and returns to the 
  6183.  beginning of loop for another iteration (unless DO determines that the loop is 
  6184.  finished).  LEAVE exits from the current DO loop and continues with the line 
  6185.  following ENDDO. Both ITERATE and LEAVE are most often used in an IF or IFF 
  6186.  command: 
  6187.  
  6188.           do while "%var" != "%val1"
  6189.             ...
  6190.             if "%var" == "%val2" leave
  6191.           enddo
  6192.  
  6193.  You can nest DO loops up to 15 levels deep. 
  6194.  
  6195.  The DO and ENDDO commands must be on separate lines, and cannot be placed 
  6196.  within a command group, or on the same line as other commands (this is the 
  6197.  reason DO cannot be used in aliases).  However, commands within the DO loop 
  6198.  can use command groups or the command separator in the normal way. 
  6199.  
  6200.  You can exit from all DO / ENDDO loops by using GOTO to a line past the last 
  6201.  ENDDO.  However, be sure to read the cautionary notes about GOTO and DO under 
  6202.  the GOTO command before using a GOTO inside any DO loop. 
  6203.  
  6204.  
  6205. ΓòÉΓòÉΓòÉ 3.3.23. DPATH - Set data search path ΓòÉΓòÉΓòÉ
  6206.  
  6207.  Purpose:    Specify the subdirectories which applications will search to find 
  6208.              files that are not in the current directory. 
  6209.  
  6210.  Format:     DPATH [directory [;directory...]] 
  6211.  
  6212.              directory :  The full name of a directory to include in the DPATH 
  6213.              (data path) setting. 
  6214.  
  6215.  See also:  PATH, SET, and ESET. 
  6216.  
  6217.  Usage: 
  6218.  
  6219.  When most OS/2 applications try to open a data file, they look for the file in 
  6220.  the current directory first.  If they fail to find the file there, they search 
  6221.  each of the directories in the DPATH setting in the order that they are 
  6222.  included.  Internal commands like TYPE do not search the DPATH directories for 
  6223.  files. 
  6224.  
  6225.  For example, the following DPATH command directs applications to look for 
  6226.  files in this order:  the current directory, the INIT directory on C, and the 
  6227.  CONFIG directory on D: 
  6228.  
  6229.           [c:\] dpath c:\init;d:\config
  6230.  
  6231.  The listing of directories to be searched can be set or viewed with DPATH. The 
  6232.  list is stored as an environment string with the variable name DPATH, and can 
  6233.  also be set or viewed with the SET command and edited with the ESET command. 
  6234.  
  6235.  Directory names in the DPATH must be separated with semicolons [;]. Take 
  6236.  Command will not shift directory names in the DPATH to upper case as it does 
  6237.  with those in the PATH setting.  If you want the names in the DPATH to be in 
  6238.  upper case you must enter them that way. 
  6239.  
  6240.  If you enter DPATH with no parameters, Take Command displays the current DPATH 
  6241.  search list. 
  6242.  
  6243.  
  6244. ΓòÉΓòÉΓòÉ 3.3.24. DRAWBOX - Draw a box ΓòÉΓòÉΓòÉ
  6245.  
  6246.  Purpose:    Draw a box on the screen. 
  6247.  
  6248.  Format:     DRAWBOX ulrow ulcol lrrow lrcol style [BRIght] fg ON [BRIght] bg 
  6249.              [FILL [BRIght] bgfill] [ZOOm] [SHAdow] 
  6250.  
  6251.              ulrow:  Row for upper left corner 
  6252.              ulcol:  Column for upper left corner 
  6253.              lrrow:  Row for lower right corner 
  6254.              lrcol:  Column for lower right corner 
  6255.              style:  Box drawing style: 
  6256.               0  No lines (box is drawn with blanks) 
  6257.               1  Single line 
  6258.               2  Double line 
  6259.               3  Single line on top and bottom, double on sides 
  6260.               4  Double line on top and bottom, single on sides 
  6261.              fg:  Foreground character color 
  6262.              bg:  Background character color 
  6263.              bgfill:  Background fill color (for the inside of the box) 
  6264.  
  6265.  See also:  DRAWHLINE and DRAWVLINE. 
  6266.  
  6267.  Usage: 
  6268.  
  6269.  DRAWBOX is useful for creating attractive screen displays in batch files. 
  6270.  
  6271.  For example, to draw a box around the edge of an 80x25 window with bright 
  6272.  white lines on a blue background: 
  6273.  
  6274.           drawbox 0 0 24 79 1 bri whi on blu fill blu
  6275.  
  6276.  See Colors and Color Names for details about colors. 
  6277.  
  6278.  If you use ZOOM, the box appears to grow in steps to its final size.  The 
  6279.  speed of the zoom operation depends on the speed of your video system. 
  6280.  
  6281.  If you use SHADOW, a drop shadow is created by changing the characters in the 
  6282.  row under the box and the 2 columns to the right of the box to normal 
  6283.  intensity text with a black background (this will make characters displayed in 
  6284.  black disappear entirely). 
  6285.  
  6286.  The row and column values are zero-based, so on a standard 25 line by 80 
  6287.  column display, valid rows are 0 - 24 and valid columns are 0 - 79.  The 
  6288.  maximum row value is determined by the current height of the Take Command 
  6289.  window.  The maximum column value is determined by the current virtual screen 
  6290.  width. 
  6291.  
  6292.  DRAWBOX checks for valid row and column values, and displays a "Usage" error 
  6293.  message if any values are out of range. 
  6294.  
  6295.  Unlike DRAWHLINE and DRAWVLINE, DRAWBOX does not automatically connect boxes 
  6296.  to existing lines on the screen with the proper connector characters.  If you 
  6297.  want to draw lines inside a box and have the proper connectors drawn 
  6298.  automatically, draw the box first, then use DRAWHLINE and DRAWVLINE to draw 
  6299.  the lines. 
  6300.  
  6301.  DRAWBOX uses the standard line and box drawing characters in the U.S. English 
  6302.  extended ASCII character set.  These characters are included in the English 
  6303.  language versions of standard monospaced fonts typically available under OS/2 
  6304.  (e.g. Courier, System Monospaced, or System VIO).  However, if your system is 
  6305.  configured for a different font, character set (code page), or country, or you 
  6306.  have replaced or modified the OS/2 default fonts, the box may not appear on 
  6307.  your screen as you expect. 
  6308.  
  6309.  
  6310. ΓòÉΓòÉΓòÉ 3.3.25. DRAWHLINE - Draw horizontal line ΓòÉΓòÉΓòÉ
  6311.  
  6312.  Purpose:    Draw a horizontal line on the screen. 
  6313.  
  6314.  Format:     DRAWHLINE row column len style [BRIght] fg ON [BRIght] bg 
  6315.  
  6316.              row:  Starting row 
  6317.              column:  Starting column 
  6318.              len:  Length of line 
  6319.              style:  Line drawing style: 
  6320.               1  Single line 
  6321.               2  Double line 
  6322.              fg:  Foreground character color 
  6323.              bg:  Background character color 
  6324.  
  6325.  See Colors and Color Names for details about colors. 
  6326.  
  6327.  See also:  DRAWBOX and DRAWVLINE. 
  6328.  
  6329.  Usage: 
  6330.  
  6331.  DRAWHLINE is useful for creating attractive screen displays in batch files. It 
  6332.  detects other lines and boxes on the display, and creates the appropriate 
  6333.  connector characters when possible (not all types of lines can be connected 
  6334.  with the available characters). 
  6335.  
  6336.  For example, the following command draws a double line along the top row of 
  6337.  the display with green characters on a blue background: 
  6338.  
  6339.           drawhline 0 0 80 2 green on blue
  6340.  
  6341.  The row and column values are zero-based, so on a standard 25 line by 80 
  6342.  column display, valid rows are 0 - 24 and valid columns are 0 - 79.  The 
  6343.  maximum row value is determined by the current height of the Take Command 
  6344.  window.  The maximum column value is determined by the current virtual screen 
  6345.  width.  DRAWHLINE checks for a valid row and column, and displays a "Usage" 
  6346.  error message if either value is out of range. 
  6347.  
  6348.  See Colors and Color Names for details about colors. 
  6349.  
  6350.  DRAWHLINE uses the standard line and box drawing characters in the U.S. 
  6351.  English extended ASCII character set.  These characters are included in the 
  6352.  English language versions of standard monospaced fonts typically available 
  6353.  under OS/2 (e.g. Courier, System Monospaced, or System VIO).  However, if your 
  6354.  system is configured for a different font, character set (code page), or 
  6355.  country, or you have replaced or modified the OS/2 default fonts, the line may 
  6356.  not appear on your screen as you expect. 
  6357.  
  6358.  
  6359. ΓòÉΓòÉΓòÉ 3.3.26. DRAWVLINE - Draw a vertical line ΓòÉΓòÉΓòÉ
  6360.  
  6361.  Purpose:    Draw a vertical line on the screen. 
  6362.  
  6363.  Format:     DRAWVLINE row column len style [BRIght] fg ON [BRIght] bg 
  6364.  
  6365.              row:  Starting row 
  6366.              column:  Starting column 
  6367.              len:  Length of line 
  6368.              style:  Line drawing style: 
  6369.               1  Single line 
  6370.               2  Double line 
  6371.              fg:  Foreground character color 
  6372.              bg:  Background character color 
  6373.  
  6374.  See also:  DRAWBOX and DRAWHLINE. 
  6375.  
  6376.  Usage: 
  6377.  
  6378.  DRAWVLINE is useful for creating attractive screen displays in batch files. It 
  6379.  detects other lines and boxes on the display, and creates the appropriate 
  6380.  connector characters when possible (not all types of lines can be connected 
  6381.  with the available characters). 
  6382.  
  6383.  For example, to draw a double width line along the left margin of the display 
  6384.  with bright red characters on a black background: 
  6385.  
  6386.           drawvline 0 0 25 2 bright red on black
  6387.  
  6388.  The row and column values are zero-based, so on a standard 25 line by 80 
  6389.  column display, valid rows are 0 - 24 and valid columns are 0 - 79.  The 
  6390.  maximum row value is determined by the current height of the Take Command 
  6391.  window.  The maximum column value is determined by the current virtual screen 
  6392.  width. 
  6393.  
  6394.  DRAWVLINE checks for a valid row and column, and displays a "Usage" error 
  6395.  message if either value is out of range. 
  6396.  
  6397.  See Colors and Color Names for details about colors. 
  6398.  
  6399.  DRAWVLINE uses the standard line and box drawing characters in the U.S. 
  6400.  English extended ASCII character set.  These characters are included in the 
  6401.  English language versions of standard monospaced fonts typically available 
  6402.  under OS/2 (e.g. Courier, System Monospaced, or System VIO).  However, if your 
  6403.  system is configured for a different font, character set (code page), or 
  6404.  country, or you have replaced or modified the OS/2 default fonts, the line may 
  6405.  not appear on your screen as you expect. 
  6406.  
  6407.  
  6408. ΓòÉΓòÉΓòÉ 3.3.27. ECHO - Display a message ΓòÉΓòÉΓòÉ
  6409.  
  6410.  Purpose:    Display a message, enable or disable batch file or command-line 
  6411.              echoing, or display the echo status. 
  6412.  
  6413.  Format:     ECHO [ON | OFF | message ] 
  6414.              ECHOERR message 
  6415.              message :  Text to display. 
  6416.  
  6417.  See also:  ECHOS, SCREEN, SCRPUT, SETDOS and TEXT. 
  6418.  
  6419.  Usage: 
  6420.  
  6421.  Take Command has a separate echo capability for batch files and for the 
  6422.  command line.  The command-line ECHO state is independent of the batch file 
  6423.  ECHO state; changing ECHO in a batch file has no effect on the display at the 
  6424.  command prompt, and vice versa. 
  6425.  
  6426.  To see the current echo state, use the ECHO command with no arguments.  This 
  6427.  displays either the batch file or command-line echo state, depending on where 
  6428.  the ECHO command is performed. 
  6429.  
  6430.  In a batch file, if you turn ECHO on, each line of the file is displayed 
  6431.  before it is executed.  If you turn ECHO off, each line is executed without 
  6432.  being displayed.  ECHO can also be used in a batch file to display a message 
  6433.  on the screen.  Regardless of the ECHO state, a batch file line that begins 
  6434.  with the [@] character will not be displayed.  To turn off batch file echoing, 
  6435.  without displaying the ECHO command, use this line: 
  6436.  
  6437.           @echo off
  6438.  
  6439.  ECHO commands in a batch file will send messages to the screen while the batch 
  6440.  file executes, even if ECHO is set OFF.  For example, this line will display a 
  6441.  message in a batch file: 
  6442.  
  6443.           echo Processing your print files...
  6444.  
  6445.  If you want to echo a blank line from within a batch file, enter: 
  6446.  
  6447.           echo.
  6448.  
  6449.  You cannot use the command separator character [&], or the redirection symbols 
  6450.  [| > <] in an ECHO message, unless you enclose them in quotes (see Argument 
  6451.  Quoting) or precede them with the escape character. 
  6452.  
  6453.  ECHO defaults to ON in batch files.  The current ECHO state is inherited by 
  6454.  called batch files.  You can change the default setting to ECHO OFF with the 
  6455.  SETDOS /V0 command or with the BatchEcho directive in the TCMDOS2.INI file. 
  6456.  
  6457.  If you turn the command-line ECHO on, each command will be displayed before it 
  6458.  is executed.  This will let you see the command line after expansion of all 
  6459.  aliases and variables.  The command-line ECHO is most useful when you are 
  6460.  learning how to use advanced features.  This example will turn command-line 
  6461.  echoing on: 
  6462.  
  6463.           [c:\] echo on
  6464.  
  6465.  ECHO defaults to OFF at the command line. 
  6466.  
  6467.  ECHOERR acts like ECHO but sends its output to the standard error device 
  6468.  STDERR (usually the screen) instead of the standard output device.  If the 
  6469.  standard output of a batch file is redirected to a file or another device with 
  6470.  >, ECHOERR will still generate a screen message.  See Redirection and Piping 
  6471.  for more information about the standard output and standard error devices and 
  6472.  redirection. 
  6473.  
  6474.  
  6475. ΓòÉΓòÉΓòÉ 3.3.28. ECHOS - Display a message with no CR/LF ΓòÉΓòÉΓòÉ
  6476.  
  6477.  Purpose:    Display a message without a trailing carriage return and line 
  6478.              feed. 
  6479.  
  6480.  Format:     ECHOS message 
  6481.              ECHOSERR message 
  6482.  
  6483.  See also:  ECHO, SCREEN, SCRPUT, TEXT, and VSCRPUT. 
  6484.  
  6485.  Usage: 
  6486.  
  6487.  ECHOS is useful for text output when you don't want to add a carriage return / 
  6488.  linefeed pair at the end of the line.  For example, you can use ECHOS when you 
  6489.  need to redirect control sequences to your printer; this example sends the 
  6490.  sequence Esc P to the printer on LPT1 (%= is translated to the Take Command 
  6491.  escape character, and %=e to an ASCII Esc; see Escape Character and = for 
  6492.  additional details): 
  6493.  
  6494.           [c:\]  echos %=eP > lpt1:
  6495.  
  6496.  You cannot use the command separator character [&] or the redirection symbols 
  6497.  [| > <] in an ECHOS message, unless you enclose them in quotes (see Argument 
  6498.  Quoting) or precede them with the escape character. 
  6499.  
  6500.  ECHOS does not translate or modify the message text.  For example, carriage 
  6501.  return characters are not translated to CR/LF pairs. ECHOS sends only the 
  6502.  characters you enter (after escape character and back quote processing).  The 
  6503.  only character you cannot put into an ECHOS message is the NUL character 
  6504.  (ASCII 0). 
  6505.  
  6506.  ECHOSERR acts like ECHOS but sends its output to the standard error device 
  6507.  (usually the screen) instead of the standard output device.  If the standard 
  6508.  output of a batch file is redirected to a file or another device with >, 
  6509.  ECHOSERR will still generate a screen message.  See Redirection and Piping for 
  6510.  more information about the standard output and standard error devices and 
  6511.  redirection. 
  6512.  
  6513.  
  6514. ΓòÉΓòÉΓòÉ 3.3.29. ENDLOCAL - Restore saved environment ΓòÉΓòÉΓòÉ
  6515.  
  6516.  Purpose:    Restore the saved disk drive, directory, environment, and alias 
  6517.              list. 
  6518.  
  6519.  Format:     ENDLOCAL 
  6520.  
  6521.  See also: SETLOCAL. 
  6522.  
  6523.  Usage: 
  6524.  
  6525.  The SETLOCAL command in a batch file saves the current disk drive, default 
  6526.  directory, all environment variables, the alias list, and the command 
  6527.  separator, escape character, parameter character, decimal separator, and 
  6528.  thousands separator. ENDLOCAL restores everything that was saved by the 
  6529.  previous SETLOCAL command. 
  6530.  
  6531.  For example, this batch file fragment saves everything, removes all aliases so 
  6532.  that user aliases will not affect batch file commands, changes the disk and 
  6533.  directory, changes the command separator, runs a program, and then restores 
  6534.  the original values: 
  6535.  
  6536.           setlocal
  6537.           unalias *
  6538.           cdd d:\test
  6539.           setdos /c~
  6540.           program ~ echo Done!
  6541.           endlocal
  6542.  
  6543.  SETLOCAL and ENDLOCAL are not nestable within a batch file.  However, you can 
  6544.  have multiple, separate SETLOCAL / ENDLOCAL pairs within a batch file, and 
  6545.  nested batch files can each have their own SETLOCAL / ENDLOCAL.  You cannot 
  6546.  use SETLOCAL and ENDLOCAL in an alias or at the command line. 
  6547.  
  6548.  An ENDLOCAL is performed automatically at the end of a batch file if you 
  6549.  forget to do so.  If you invoke one batch file from another without using 
  6550.  CALL, the first batch file is terminated, and an automatic ENDLOCAL is 
  6551.  performed; the second batch file inherits the settings as they were prior to 
  6552.  any SETLOCAL. 
  6553.  
  6554.  
  6555. ΓòÉΓòÉΓòÉ 3.3.30. ESET - Edit variable or alias ΓòÉΓòÉΓòÉ
  6556.  
  6557.  Purpose:    Edit environment variables and aliases. 
  6558.  
  6559.  Format:     ESET [/A] variable name... 
  6560.  
  6561.              variable name :  The name of an environment variable or alias to 
  6562.              edit. 
  6563.  
  6564.              /A(lias) 
  6565.  
  6566.  See also:  ALIAS, UNALIAS, SET, and UNSET. 
  6567.  
  6568.  Usage: 
  6569.  
  6570.  ESET allows you to edit environment variables and aliases using line editing 
  6571.  commands (see Command-Line Editing). 
  6572.  
  6573.  For example, to edit the executable file search path: 
  6574.  
  6575.           [c:\] eset path
  6576.           path=c:\;c:\dos;c:\util
  6577.  
  6578.  To create and then edit an alias: 
  6579.  
  6580.           [c:\] alias d = dir /d/j/p
  6581.           [c:\] eset d
  6582.           d=dir /d/j/p
  6583.  
  6584.  ESET will search for environment variables first and then aliases. If you have 
  6585.  an environment variable and an alias with the same name, ESET will edit the 
  6586.  environment variable and ignore the alias unless you use the /A option. 
  6587.  
  6588.  Environment variable and alias names are normally limited to 80 characters, 
  6589.  and their contents to 1,023 characters.  However, if you use special 
  6590.  techniques to create a longer environment variable, ESET will edit it provided 
  6591.  the variable contains no more than 2,047 characters of text. 
  6592.  
  6593.  If you have enabled global aliases (see ALIAS), any changes made to an alias 
  6594.  with ESET will immediately affect all other copies of Take Command which are 
  6595.  using the same alias list. 
  6596.  
  6597.  Option: 
  6598.  
  6599.     /A      (Alias) Edit the named alias even if an environment variable of the 
  6600.             same name exists.  If you have an alias and an environment variable 
  6601.             with the same name, you must use this switch to be able to edit the 
  6602.             alias. 
  6603.  
  6604.  
  6605. ΓòÉΓòÉΓòÉ 3.3.31. EXCEPT - Exclude files from command ΓòÉΓòÉΓòÉ
  6606.  
  6607.  Purpose:    Perform a command on all available files except those specified. 
  6608.  
  6609.  Format:     EXCEPT (file ) command 
  6610.  
  6611.              file :  The file or files to exclude from the command. 
  6612.              command :  The command to execute, including all appropriate 
  6613.              arguments and switches. 
  6614.  
  6615.  See also:  ATTRIB and File Exclusion Ranges. 
  6616.  
  6617.  File Selection: 
  6618.  
  6619.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  6620.  Ranges must appear immediately after the EXCEPT keyword. 
  6621.  
  6622.  Usage: 
  6623.  
  6624.  EXCEPT provides a means of executing a command on a group of files and/or 
  6625.  subdirectories, and excluding a subgroup from the operation. The command can 
  6626.  be an internal command or alias, an external command, or a batch file. 
  6627.  
  6628.  You may use wildcards to specify the files to exclude from the command.  The 
  6629.  first example erases all the files in the current directory except those 
  6630.  beginning with MEMO, and those whose extension is .WKS. The second example 
  6631.  copies all the files and subdirectories on drive C to drive D except those in 
  6632.  C:\MSC and C:\DOS, using the COPY command: 
  6633.  
  6634.           [c:\] except (memo*.* *.wks) erase *.*
  6635.           [c:\] except (c:\msc c:\dos) copy c:\*.* d:\ /s
  6636.  
  6637.  When you use EXCEPT on a HPFS drive, you must quote any file names inside the 
  6638.  parentheses which contain whitespace or special characters. 
  6639.  
  6640.  EXCEPT prevents operations on the specified file(s) by setting the hidden 
  6641.  attribute, performing the command, and then clearing the hidden attribute.  If 
  6642.  the command is aborted in an unusual way, you may need to use the ATTRIB 
  6643.  command to remove the hidden attribute from the file(s). 
  6644.  
  6645.  Caution:  EXCEPT will not work with programs or commands that ignore the 
  6646.  hidden attribute or which work explicitly with hidden files, including DEL /Z, 
  6647.  and the /H (process hidden files) switch available in some Take Command file 
  6648.  processing commands. 
  6649.  
  6650.  File exclusion ranges provide a faster and more flexible method of excluding 
  6651.  files from internal commands, and do not manipulate file attributes, as EXCEPT 
  6652.  does.  However, exclusion ranges can only be used with internal commands; you 
  6653.  must use EXCEPT for external commands. Date, time,and size ranges can be used 
  6654.  immediately after the word EXCEPT to further qualify which files should be 
  6655.  excluded from the command.  If the command is an internal command that 
  6656.  supports ranges, an independent range can also be used in the command itself. 
  6657.  You can also use a file exclusion range within the EXCEPT command; however, 
  6658.  this will select files to be excluded from EXCEPT, and therefore included in 
  6659.  execution of the command.  You can use command grouping to execute multiple 
  6660.  commands with a single EXCEPT.  For example, the following command copies all 
  6661.  files in the current directory whose extensions begin with .DA, except the 
  6662.  .DAT files, to the D:\SAVE directory, then changes the first two characters of 
  6663.  the extension of the copied files to .SA: 
  6664.  
  6665.           [c:\data] except (*.dat) (copy *.da* d:\save & ren *.da* *.sa*)
  6666.  
  6667.  If you use filename completion to enter the filenames inside the parentheses, 
  6668.  type a space after the open parenthesis before entering a partial filename or 
  6669.  pressing Tab. Otherwise, the command-line editor will treat the open 
  6670.  parenthesis as the first character of the filename to be completed. 
  6671.  
  6672.  
  6673. ΓòÉΓòÉΓòÉ 3.3.32. EXIT - Exit Take Command ΓòÉΓòÉΓòÉ
  6674.  
  6675.  Purpose:    Exit the current Take Command session. 
  6676.  
  6677.  Format:     EXIT [value ] 
  6678.  
  6679.              value :  The exit code to return. 
  6680.  
  6681.  Usage: 
  6682.  
  6683.  EXIT terminates the current copy of Take Command. 
  6684.  
  6685.  To close the session, or to return to the application that started Take 
  6686.  Command, type: 
  6687.  
  6688.           [c:\] exit
  6689.  
  6690.  If you specify a value, EXIT will return that value to the program that 
  6691.  started Take Command.  For example: 
  6692.  
  6693.           [c:\] exit 255
  6694.  
  6695.  The value is a number you can use to inform the program of some result, such 
  6696.  as the success or failure of a batch file.  It can range from 0 - 
  6697.  4,294,967,295. 
  6698.  
  6699.  
  6700. ΓòÉΓòÉΓòÉ 3.3.33. FFIND - Search for files or text ΓòÉΓòÉΓòÉ
  6701.  
  6702.  Purpose:    Search for files by name or contents. 
  6703.  
  6704.  Format:     FFIND [/A:[[-]rhsda] /B /C /D[list] /E /I /K /L /M 
  6705.              /O[[:][-]adeginrsu] /P /R /S /[ T | X ]"xx" /V file... 
  6706.  
  6707.              list :  A list of disk drive letters (without colons). 
  6708.              file :  The file, directory, or list of files or directories to 
  6709.              display. 
  6710.  
  6711.              /A(ttribute select)             /M (no footers) 
  6712.              /B(are)                         /O(rder) 
  6713.              /C(ase sensitive)               /P(ause) 
  6714.              /D(rive)                        /R(everse) 
  6715.              /E (upper case display)         /S(ubdirectories) 
  6716.              /I(gnore wildcards)             /T(ext search string) 
  6717.              /K (no headers)                 /V(erbose) 
  6718.              /L(ine numbers)                 /X["xx"] (hex display/search 
  6719.                                              string) 
  6720.  
  6721.  File Selection: 
  6722.  
  6723.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  6724.  
  6725.  Usage: 
  6726.  
  6727.  FFIND is a flexible search command that looks for files based on their names 
  6728.  and their contents. Depending on the options you choose, FFIND can display 
  6729.  filenames, matching text, or a combination of both in a variety of formats. 
  6730.  
  6731.  Most of the functions provided by FFIND are also available in the Find Files / 
  6732.  Text dialog, accessible from the Utilities menu.  You can use the FFIND 
  6733.  command, the dialog, or both, depending on your needs. 
  6734.  
  6735.  If you want to search for files by name, FFIND works much like the DIR 
  6736.  command.  For example, to generate a list of all the .BTM files in the current 
  6737.  directory, you could use the command 
  6738.  
  6739.           [c:\] ffind *.btm
  6740.  
  6741.  The output from this command is a list of full pathnames, followed by the 
  6742.  number of files found. 
  6743.  
  6744.  If you want to limit the output to a list of *.BTM files which contain the 
  6745.  string color, you could use this command instead: 
  6746.  
  6747.           [c:\] ffind /t"color" *.btm
  6748.  
  6749.  The output from this command is a list of files that contain the string color 
  6750.  along with the first line in each file that contains that string.  By default, 
  6751.  FFIND uses a case-insensitive search, so the command above will include files 
  6752.  that contain COLOR, Color, color, or any other combination of upper-case and 
  6753.  lower-case letters. 
  6754.  
  6755.  If you would rather see the last line of each file that contains the search 
  6756.  string, use the /R option, which forces FFIND to search from the end of each 
  6757.  file to the beginning.  This option will also speed up searches somewhat if 
  6758.  you are looking for text that will normally be at the end of a file, such as a 
  6759.  signature line: 
  6760.  
  6761.           [c:\] ffind /r /t"Sincerely," *.txt
  6762.  
  6763.  You can use Take Command's extended wildcards in the search string to increase 
  6764.  the flexibility of FFIND's search.  For example, the following command will 
  6765.  find .TXT files which contain either the string June or July (it will also 
  6766.  find Juny and Jule).  The /C option makes the search case-sensitive: 
  6767.  
  6768.           [c:\] ffind /c/t"Ju[nl][ey]" *.txt
  6769.  
  6770.  If you want to search for text that contains wildcard characters (*, ?, [, or 
  6771.  ]), you can use the /I option to force FFIND to interpret these as normal 
  6772.  characters instead of wildcards.  The following command, for example, finds 
  6773.  all .TXT files that contain a question mark: 
  6774.  
  6775.           [c:\] ffind /i/t"?" *.txt
  6776.  
  6777.  At times, you may need to search for data that cannot be represented by ASCII 
  6778.  characters.  You can use FFIND's /X option to represent the search string in 
  6779.  hexadecimal format (this option also changes the output to show hexadecimal 
  6780.  offsets rather than text lines).  With /X, the search must be represented by 
  6781.  pairs of hexadecimal digits separated by spaces; a search of this type is 
  6782.  always case-sensitive (in the example below, 41 63 65 is the hex code for 
  6783.  "Ace"): 
  6784.  
  6785.           [c:\] ffind /b"41 63 65" *.txt
  6786.  
  6787.  You can use FFIND's other options to further specify the files for which you 
  6788.  are searching and to modify the way in which the output is displayed. 
  6789.  
  6790.  When you use FFIND on an HPFS drive, you must quote any file names which 
  6791.  contain whitespace or special characters. 
  6792.  
  6793.  Options: 
  6794.  
  6795.     /A:     (Attribute select) Select only those files that have the specified 
  6796.             attribute(s) set.  Preceding the attribute character with a hyphen 
  6797.             [-] will select files that do not have that attribute set. The 
  6798.             colon [:] after /A is required.  The attributes are: 
  6799.  
  6800.                          R  Read-only 
  6801.                          H  Hidden 
  6802.                          S  System 
  6803.                          D  Subdirectory 
  6804.                          A  Archive 
  6805.  
  6806.             If no attributes are listed at all (e.g., FFIND /A: ...), FFIND 
  6807.             will select all files and subdirectories including hidden and 
  6808.             system files.  If attributes are combined, all the specified 
  6809.             attributes must match for a file to be selected. For example, 
  6810.             /A:RHS will select only those files with all three attributes set. 
  6811.  
  6812.     /B      (Bare) Display file names only and omit the text that matches the 
  6813.             search.  This option is only useful in combination with /T or /X, 
  6814.             which normally force FFIND to display file names and matching text. 
  6815.  
  6816.     /C      (Case sensitive) Perform a case-sensitive search.  This option is 
  6817.             only valid with /T, which defaults to a case-insensitive search. 
  6818.             It is not needed with a /X hexadecimal search, which is always 
  6819.             case-sensitive. 
  6820.  
  6821.     /D      (Drive)  Search all files on one or more drives.  If you use /D 
  6822.             without a list of drives, FFIND will search the drives specified in 
  6823.             the list of files.  If no drive letters are listed, FFIND will 
  6824.             search all of the current drive.  You can include a list of drives 
  6825.             or a range of drives to search as part of the /D option.  For 
  6826.             example, to search drives C:, D:, E:, and G:, you can use either of 
  6827.             these commands: 
  6828.  
  6829.                                 [c:\] ffind /dcdeg ...
  6830.                                 [c:\] ffind /dc-eg ...
  6831.  
  6832.             Drive letters listed after /D will be ignored when processing file 
  6833.             names which also include a drive letter.  For example, this command 
  6834.             displays all the .BTM files on C: and E:, but only the .BAT files 
  6835.             on D: 
  6836.  
  6837.                                 [c:\] ffind /s /dce *.btm d:\*.bat
  6838.  
  6839.     /E      Display filenames in the traditional upper case; also see SETDOS /U 
  6840.             and the UpperCase directive in TCMDOS2.INI. 
  6841.  
  6842.     /I      (Ignore wildcards) Only meaningful when used in conjunction with 
  6843.             the /T "text" option.  Suppresses the recognition of wildcard 
  6844.             characters in the search text.  This option is useful if you need 
  6845.             to search for characters that would normally be interpreted as 
  6846.             wildcards: *, ?, [, and ]. 
  6847.  
  6848.     /K      (No headers) Suppress the display of the header or filename for 
  6849.             each matching text line. 
  6850.  
  6851.     /L:     (Line numbers) Include the line number for each text line 
  6852.             displayed.  FFIND numbers lines beginning with 1, unless 
  6853.             ListRowStart is set to 0 in TCMDOS2.INI.  A new line is counted for 
  6854.             every CR or LF character (FFIND determines automatically which 
  6855.             character is used for line breaks in each file), or when line 
  6856.             length reaches 511 characters, whichever comes first. 
  6857.  
  6858.     /M      (No footers) Suppress the footer (the number of files and number of 
  6859.             matches) at the end of FFIND's display. 
  6860.  
  6861.     /O      (Order) Set the sorting order.  You may use any combination of the 
  6862.             following sorting options; if multiple options are used, the 
  6863.             listing will be sorted with the first sort option as the primary 
  6864.             key, the next as the secondary key, and so on: 
  6865.  
  6866.                          -  Reverse the sort order for the next option 
  6867.                          a  Sort in ASCII order, not numerically, when there 
  6868.                          are digits in the name 
  6869.                          d  Sort by date and time (oldest first); for HPFS 
  6870.                          drives also see /T 
  6871.                          e  Sort by extension 
  6872.                          g  Group subdirectories first, then files 
  6873.                          i  Sort by file description (ignored if /C or /O:c is 
  6874.                          used) 
  6875.                          n  Sort by filename (this is the default) 
  6876.                          r  Reverse the sort order for all options 
  6877.                          s  Sort by size 
  6878.                          u  Unsorted 
  6879.  
  6880.     /P      (Pause) Wait for a key to be pressed after each screen page before 
  6881.             continuing the display.  Your options at the prompt are explained 
  6882.             in detail under Page and File Prompts. 
  6883.  
  6884.     /R      (Reverse search) Only meaningful when used in conjunction with the 
  6885.             /T "text" or /X options.  Searches each file from the end backwards 
  6886.             to the beginning.  This option is useful if you want to display the 
  6887.             last occurrence of the search string in each file instead of the 
  6888.             first (the default).  It may also speed up searches for information 
  6889.             that is normally at the end of a file, such as a signature. 
  6890.  
  6891.     /S      (Subdirectories) Display matches from the current directory and all 
  6892.             of its subdirectories. 
  6893.  
  6894.     /T"text"(Text search) Specify the text search string. /T must be followed 
  6895.             by a text string in double quotes (e.g., /t"color").  FFIND will 
  6896.             perform a case- insensitive search unless you also use the /C 
  6897.             option.  For a hexadecimal search and/or hexadecimal display of the 
  6898.             location where the search string is found, see /X.  You can specify 
  6899.             a search string with either /T or /X, but not both. 
  6900.  
  6901.     /V      (Verbose) Show every matching line.  FFIND's default behavior is to 
  6902.             show only the first matching line then and then go on to the next 
  6903.             file.  This option is only valid with /T or /X. 
  6904.  
  6905.     /X["xx"](Hexadecimal display / search) Specify hexadecimal display and an 
  6906.             optional hexadecimal search string. 
  6907.  
  6908.             If /X is followed by one or more pairs of hexadecimal digits in 
  6909.             quotes (e.g., /x"44 63 65"), FFIND will search for that exact 
  6910.             sequence of characters or data bytes without regard to the meaning 
  6911.             of those bytes as text.  If those bytes are found, the offset is 
  6912.             displayed (in both decimal and hexadecimal).  A search of this type 
  6913.             will always be case-sensitive. 
  6914.  
  6915.             If /X is not followed by a hexadecimal search string it must be 
  6916.             used in conjunction with /T, and will change the output format to 
  6917.             display offsets (in both decimal and hexadecimal) rather than 
  6918.             actual text lines when the search string is found.  For example, 
  6919.             this command uses /T to display the first line in each .BTM file 
  6920.             containing the word hello: 
  6921.  
  6922.                                 [c:\] ffind /t"hello" *.btm
  6923.                                 ---- c:\test.btm:
  6924.                                 echo hello
  6925.  
  6926.                                 1 line in 1 file
  6927.  
  6928.             If you use the same command with /X, the offset is displayed 
  6929.             instead of the text: 
  6930.  
  6931.                                 [c:\] ffind /t"hello" /x *.btm
  6932.                                 ---- c:\test.btm:
  6933.                                 Offset: 26 (1Ah)
  6934.  
  6935.                                 1 line in 1 file
  6936.  
  6937.             You can specify a search string with either /T or /X, but not both. 
  6938.  
  6939.  
  6940. ΓòÉΓòÉΓòÉ 3.3.34. FOR - Repeat a command ΓòÉΓòÉΓòÉ
  6941.  
  6942.  Purpose:    Repeat a command for several values of a variable. 
  6943.  
  6944.  Format:     FOR [/A:[[-]rhsda] /F["options"] /H /L /R [path]] %var IN ([@] set 
  6945.              | start, step, end) [DO] command ... 
  6946.  
  6947.              options :  Parsing options for a "file parsing" FOR. 
  6948.              path :  The starting directory for a "recursive" FOR. 
  6949.              %var :  The variable to be used in the command ("FOR variable"). 
  6950.              set :  A set of values for the variable. 
  6951.              start :  The starting value for a "counted" FOR. 
  6952.              step :  The increment value for a "counted" FOR. 
  6953.              end :  The limit value for a "counted" FOR. 
  6954.              command :  A command or group of commands to be executed for each 
  6955.              value of the variable. 
  6956.  
  6957.              /A: (Attribute select)      /L  (counted loop) 
  6958.              /F(ile parsing)             /R(ecursive) 
  6959.              /H(ide dots) 
  6960.  
  6961.  File Selection: 
  6962.  
  6963.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  6964.  Ranges must appear immediately after the FOR keyword. 
  6965.  
  6966.  Usage: 
  6967.  
  6968.  FOR begins by creating a set.  It then executes a command for every member of 
  6969.  the set.  The command can be an internal command, an alias, an external 
  6970.  command, or a batch file.  The members of the set can be a list of file names, 
  6971.  text strings, a group of numeric values, or text read from a list of files. 
  6972.  
  6973.  When the set is made up of text or several separate file names (not an include 
  6974.  list), the elements must be separated by spaces, tabs, commas, or the switch 
  6975.  character (normally a slash [/]). 
  6976.  
  6977.  FOR includes a large number of options, some of which duplicate functions 
  6978.  available in other commands, and / or do not follow conventions you may find 
  6979.  in our other commands.  Most of these extra options are included for 
  6980.  compatibility with Windows NT 4.0's CMD.EXE.  However, we make them available 
  6981.  in all three of our products so that aliases and batch files which use them 
  6982.  can work under all products. 
  6983.  
  6984.  The first three sections below (Working with Files, Working with Text, and 
  6985.  Retrieving Text from Files) describe the traditional FOR command and the 
  6986.  enhancements to it which are part of Take Command.  The sections on Parsing 
  6987.  Text from Files and Counted FOR Loops describe features added for 
  6988.  compatibility with Windows NT 4.0. The section entitled Other Notes contains 
  6989.  information you may need if you use any aspect of the FOR command extensively. 
  6990.  
  6991.  Working with Files 
  6992.  
  6993.  Normally, the set is a list of files specified with wildcards.  For example, 
  6994.  if you use this line in a batch file: 
  6995.  
  6996.           for %x in (*.txt) do list %x
  6997.  
  6998.  then LIST will be executed once for each file in the current directory with 
  6999.  the extension .TXT.  The FOR variable %x is set equal to each of the file 
  7000.  names in turn, then the LIST command is executed for each file. (You could do 
  7001.  the same thing more easily with a simple LIST *.TXT.  We used FOR here so you 
  7002.  could get a feel for how it operates, using a simple example. Many of the 
  7003.  examples in this section are constructed in the same way.) 
  7004.  
  7005.  The set can include multiple files or an include list, like this: 
  7006.  
  7007.           for %x in (d:\*.txt;*.doc;*.asc) do type %x
  7008.  
  7009.  FOR supports wildcards and extended wildcards, as well as extended parent 
  7010.  directory names (e.g., ...\*.txt to process all of the .TXT files that are 
  7011.  contained in the directory 2 levels above the current directory). 
  7012.  
  7013.  When you use FOR on a HPFS drive, you must quote any file names within the set 
  7014.  which contain whitespace or special characters.  The same restriction applies 
  7015.  to names returned in the FOR variable, if you pass them to internal commands, 
  7016.  or other commands which require quoting filenames with whitespace.  FOR does 
  7017.  not quote returned names automatically, even if you included quotes in the 
  7018.  set. 
  7019.  
  7020.  If the set includes filenames, the file list can be further refined by using 
  7021.  date, time,  size and file exclusion ranges.  The range or ranges must be 
  7022.  placed immediately after the word FOR.  Ranges will be ignored if no wildcards 
  7023.  are used inside the parentheses. For example, this set is made up of all of 
  7024.  the *.TXT files that were created or updated on October 4, 1997: 
  7025.  
  7026.           for /[d10-4-97,+0] %x in (*.txt) do ...
  7027.  
  7028.  If the command is an internal command that supports ranges, an independent 
  7029.  range can also be used in the command itself. 
  7030.  
  7031.  You can also refine the list by limiting it with the /A: option to select only 
  7032.  files that have specific attributes. 
  7033.  
  7034.  By default, FOR works only with files in the current directory or a specified 
  7035.  directory.  With the /R option, FOR will also search for files in 
  7036.  subdirectories.  For example, to work with all of the .TXT files in the 
  7037.  current directory and its subdirectories: 
  7038.  
  7039.           for /r %x in (*.txt) do ...
  7040.  
  7041.  If you specify a directory name immediately after /R, FOR will start in that 
  7042.  directory and then search each of its subdirectories.  This example works with 
  7043.  all of the .BAK files on drive D: 
  7044.  
  7045.           for /r d:\ %x in (*.bak) do ...
  7046.  
  7047.  When you use wildcards to specify the set, FOR scans the directory and finds 
  7048.  each file which matches the wildcard name(s) you specified.  If, during the 
  7049.  processing of the FOR command, you create a file that could be included in the 
  7050.  set, it may or may not appear in a future iteration of the same FOR command. 
  7051.  Whether the new file appears depends on its physical location in the directory 
  7052.  structure.  For example, if you use FOR to execute a command for all .TXT 
  7053.  files, and the command also creates one or more new .TXT files, those new 
  7054.  files may or may not be processed during the current FOR command, depending on 
  7055.  where they are placed in the physical structure of the directory.  This is an 
  7056.  operating system constraint over which Take Command has no control. Therefore, 
  7057.  in order to achieve consistent results you should construct FOR commands which 
  7058.  do not create files that could become part of the set for the current command. 
  7059.  
  7060.  Working with Text 
  7061.  
  7062.  The set can also be made up of text instead of file names.  For example, to 
  7063.  create three files named file1, file2, and file3, each containing a blank 
  7064.  line: 
  7065.  
  7066.           for %suffix in (1 2 3) do echo. > file%suffix
  7067.  
  7068.  You could also use the names of environment variables as the text.  This 
  7069.  example displays the name and content of several variables from the 
  7070.  environment (see Environment Variables and Functions for details on the use of 
  7071.  square brackets when expanding environment variables).  Enter this on one 
  7072.  line: 
  7073.  
  7074.           for %var in (path prompt comspec) do echo %var=%[%var]
  7075.  
  7076.  Retrieving Text from Files 
  7077.  
  7078.  FOR can extract text from files in two different ways.  The first method 
  7079.  extracts each line from each file in the set and places it in the variable. To 
  7080.  use this method, place an [@] at the beginning of the set, in front of the 
  7081.  file name or names. 
  7082.  
  7083.  For example, if you have a file called DRIVES.TXT that contains a list of 
  7084.  drives on your computer, one drive name per line (with a ":" after each drive 
  7085.  letter), you can print the free space on each drive this way: 
  7086.  
  7087.           for %d in (@drives.txt) do free %d > prn
  7088.  
  7089.  Because the [@] is also a valid filename character, FOR first checks to see if 
  7090.  the file exists with the [@] in its name (i.e., a file named @DRIVES.TXT).  If 
  7091.  so, the filename is treated as a normal argument.  If it doesn't exist, FOR 
  7092.  uses the filename (without the [@]) as the file from which to retrieve text. 
  7093.  
  7094.  If you use @CON as the filename, FOR will read from standard input (a 
  7095.  redirected input file) or from a pipe (see Redirection and Piping for more 
  7096.  information).  IF you use @CLIP: as the filename, FOR will read any text 
  7097.  available from the OS/2 clipboard. 
  7098.  
  7099.  Parsing Text from Files 
  7100.  
  7101.  The second method of working with text from files is to have FOR parse each 
  7102.  line of each file for you.  To begin a "file-parsing" FOR, you must use the /F 
  7103.  option and then include one or more file names in the set.  When you use this 
  7104.  form of FOR, the variable must be a single letter, for example, %a. 
  7105.  
  7106.  This method of parsing, included for compatibility with Windows NT 4.0's 
  7107.  CMD.EXE, can be cumbersome and inflexible.  For a more powerful method, use 
  7108.  FOR with @filename as the set to retrieve each line from the file, as 
  7109.  described in the previous section.  Then use variable functions like @INSTR, 
  7110.  @LEFT, @RIGHT, and @WORD to parse the line. 
  7111.  
  7112.  By default, FOR will extract the first word or token from each line and return 
  7113.  it in the variable.  For example, to display the first word on each line in 
  7114.  the file FLIST.TXT: 
  7115.  
  7116.           for /f %a in (flist.txt) do echo %a
  7117.  
  7118.  You can control the way FOR /F parses each line by specifying one or more 
  7119.  parsing options in a quoted string immediately after the /F.  The available 
  7120.  options are: 
  7121.  
  7122.         skip=n: FOR /F will skip "n" lines at the beginning of each file before 
  7123.                 parsing the remainder of the file. 
  7124.  
  7125.         tokens=n, m, ...:By default, FOR /F returns just the first word or 
  7126.                 "token" from each parsed line in the variable you named.  You 
  7127.                 can have it return more than one token in the variable, or 
  7128.                 return tokens in several variables, with this option. This 
  7129.                 option is followed by a list of numbers separated by commas. 
  7130.                 The first number tells FOR /F which token to return in the 
  7131.                 first variable, the second number tells it which to return in 
  7132.                 the second variable, etc.  The variables follow each other 
  7133.                 alphabetically starting with the variable you name on the FOR 
  7134.                 command line.  This example returns the first word of each line 
  7135.                 in each text file in %d, the second in %e, and the third in %f: 
  7136.  
  7137.                                         for /f "tokens=1,2,3" %d in (*.txt) do ...
  7138.  
  7139.                 You can also indicate a range of tokens by separating the 
  7140.                 numbers with a hyphen [-].  This example returns the first word 
  7141.                 of each line in %p, the second through fifth words in %q, and 
  7142.                 the eighth word in %r: 
  7143.  
  7144.                                         for /f "tokens=1,2-5,8" %p in (*.txt) do ...
  7145.  
  7146.                 To return the rest of the line in a variable, use a range that 
  7147.                 ends with a number higher than the last token in any line, such 
  7148.                 as 999.  This final example returns the first word of each line 
  7149.                 in %a and the remainder of each line (assuming that no line has 
  7150.                 more than 999 words!) in %b: 
  7151.  
  7152.                                         for /f "tokens=1,2-999" %a in (*.txt) do ...
  7153.  
  7154.         eol=c:  If FOR /F finds the character "c" in the line, it will assume 
  7155.                 that the character and any text following it are part of a 
  7156.                 comment and ignore the rest of the line. 
  7157.  
  7158.         delims=xxx..:By default, FOR /F sees spaces and tabs as word or token 
  7159.                 delimiters.  This option replaces those delimiters with all of 
  7160.                 the characters following the equal sign to the end of the 
  7161.                 string.  This option must therefore be the last one used in the 
  7162.                 quoted options string. 
  7163.  
  7164.  You can also use FOR /F to parse a single string instead of each line of a 
  7165.  file by using the string, in quotes, as the set.  For example, this command 
  7166.  will assign variable A to the string "this", B to "is", etc., then display 
  7167.  "this" (enter the command on one line): 
  7168.  
  7169.           for /f "tokens=1,2,3,4" %a in ("this is a test") do echo %a
  7170.  
  7171.  "Counted" FOR Loop 
  7172.  
  7173.  The "counted FOR" loop is included only for compatibility with Windows NT 
  7174.  4.0's CMD.EXE.  In most cases, you will find the DO command more useful for 
  7175.  performing counted loops. 
  7176.  
  7177.  In a counted FOR command, the set is made up of numeric values instead of text 
  7178.  or file names.  To begin a counted FOR command, you must use the /L option and 
  7179.  then include three values, separated by commas, in the set.  These are the 
  7180.  start, step, and end values.  During the first iteration of the FOR loop, the 
  7181.  variable is set equal to the start value.  Before each iteration, the variable 
  7182.  is increased by the step value.  The loop ends when the variable exceeds the 
  7183.  end value.  This example will print the numbers from 1 to 10: 
  7184.  
  7185.           for /l %val in (1,1,10) do echo %val
  7186.  
  7187.  This example will print the odd numbers from 1 to 10 (1, 3, 5, 7, and 9): 
  7188.  
  7189.           for /l %val in (1,2,10) do echo %val
  7190.  
  7191.  The step value can be negative.  If it is, the loop will end when the variable 
  7192.  is less than the end value. 
  7193.  
  7194.  Other Notes 
  7195.  
  7196.  You can use either % or %% in front of the variable name.  Either form will 
  7197.  work, whether the FOR command is typed from the command line or is part of an 
  7198.  alias or batch file (some traditional command processors require a single % if 
  7199.  FOR is used at the command line, but require %% if FOR is used in a batch 
  7200.  file).  The variable name can be up to 80 characters long.  The word DO is 
  7201.  optional. 
  7202.  
  7203.  If you use a single-character FOR variable name, that name is given priority 
  7204.  over any environment variable which starts with the same letter, in order to 
  7205.  maintain compatibility with the traditional FOR command.  For example, the 
  7206.  following command tries to add a: and b: to the end of the PATH, but will not 
  7207.  work as intended: 
  7208.  
  7209.           [c:\] for %p in (a: b:) do path %path;%p
  7210.  
  7211.  The "%p" in "%path" will be interpreted as the FOR variable %p followed by the 
  7212.  text "ath", which is not what was intended.  To get around this, use a 
  7213.  different letter or a longer name for the FOR variable, or use square brackets 
  7214.  around the variable name seeThe Environment. 
  7215.  
  7216.  The following example uses FOR with variable functions to delete the .BAK 
  7217.  files for which a corresponding .TXT file exists in the current directory: 
  7218.  
  7219.           [c:\docs] for %file in (*.txt) do del %@name[%file].bak
  7220.  
  7221.  The above command would not work properly on a HPFS drive, because the 
  7222.  returned FILE variable might contain whitespace.  To correct this problem, you 
  7223.  would need two sets of quotes, one for DEL and one for %@NAME: 
  7224.  
  7225.           [c:\docs] for %file in (*.txt) do del "%@name["%file"].bak"
  7226.  
  7227.  You can use command grouping to execute multiple commands for each element in 
  7228.  the set.  For example, the following command copies each .WKQ file in the 
  7229.  current directory to the D:\WKSAVE directory, then changes the extension of 
  7230.  each file in the current directory to .SAV: 
  7231.  
  7232.           [c:\text] for %file in (*.wkq) do (copy %file d:\wksave\
  7233.   & ren %file *.sav)
  7234.  
  7235.  In a batch file you can use GOSUB to execute a subroutine for every element in 
  7236.  the set.  Within the subroutine, the FOR variable can be used just like any 
  7237.  environment variable.  This is a convenient way to execute a complex sequence 
  7238.  of commands for every element in the set without CALLing another batch file. 
  7239.  
  7240.  One unusual use of FOR is to execute a collection of batch files or other 
  7241.  commands with the same parameter.  For example, you might want to have three 
  7242.  batch files all operate on the same data file.  The FOR command could look 
  7243.  like this: 
  7244.  
  7245.           [c:\] for %cmd in (filetest fileform fileprnt) do %cmd datafile
  7246.  
  7247.  This line will expand to three separate commands: 
  7248.  
  7249.           filetest datafile
  7250.           fileform datafile
  7251.           fileprnt datafile
  7252.  
  7253.  The variable that FOR uses (the %CMD in the example above) is created in the 
  7254.  environment and then erased when the FOR command is done.  For compatibility 
  7255.  with COMMAND.COM and CMD.EXE, a single- character FOR variable is created in a 
  7256.  special way that does not overwrite an existing environment variable with the 
  7257.  same name.  When using a multi- character variable name you must be careful 
  7258.  not to use the name of one of your environment variables as a FOR variable. 
  7259.  For example, a command that begins 
  7260.  
  7261.           [c:\] for %path in ...
  7262.  
  7263.  will write over your current path setting, then erase the path variable 
  7264.  completely when FOR is done. 
  7265.  
  7266.  FOR statements can be nested. 
  7267.  
  7268.  Options: 
  7269.  
  7270.     /A:     (Attribute select) Select only those files that have the specified 
  7271.             attribute(s) set.  /A: will be used only when processing wildcard 
  7272.             file names in the set.  It will be ignored for filenames without 
  7273.             wildcards or other items in the set.  Preceding the attribute 
  7274.             character with a hyphen [-] will select files that do not have that 
  7275.             attribute set.  The colon [:] after /A is required.  The attributes 
  7276.             are: 
  7277.  
  7278.                          R  Read-only 
  7279.                          H  Hidden 
  7280.                          S  System 
  7281.                          D  Subdirectory 
  7282.                          A  Archive 
  7283.  
  7284.             If no attributes are listed (e.g., FOR /A:...), FOR will process 
  7285.             all files including hidden and system files.  If attributes are 
  7286.             combined, all the specified attributes must match for a file to be 
  7287.             included.  For example, /A:RHS will include only those files with 
  7288.             all three attributes set. 
  7289.  
  7290.             For example, to process only those files with the archive attribute 
  7291.             set: 
  7292.  
  7293.                                 for /a:a %f in (*.*) echo %f needs a backup!
  7294.  
  7295.     /F      (File parsing)  Return one or more words or tokens from each line 
  7296.             of each file in the set.  The /F option can be followed by one or 
  7297.             more options in a quoted string which control how the parsing is 
  7298.             performed. See the details under Parsing Text From Files, above. 
  7299.     /H      (Hide dots) Suppress the assignment of the "." and ".." directories 
  7300.             to the FOR variable. 
  7301.     /L      (counted loop) Interpret the three values in the set as the start, 
  7302.             step, and end values of a counted loop.  See the details under 
  7303.             Counted FOR Loop, above. 
  7304.     /R      (Recursive)  Look in the current directory and all of its 
  7305.             subdirectories for files in the set.  If the /R is followed by a 
  7306.             directory name, look for files in that directory and all of its 
  7307.             subdirectories. 
  7308.  
  7309.  
  7310. ΓòÉΓòÉΓòÉ 3.3.35. FREE - Display total and free disk space ΓòÉΓòÉΓòÉ
  7311.  
  7312.  Purpose:    Display the total disk space, total bytes used, and total bytes 
  7313.              free on the specified (or default) drive(s). 
  7314.  
  7315.  Format:     FREE [drive: ... ] 
  7316.  
  7317.              drive :  One or more drives to include in the report. 
  7318.  
  7319.  See also:  MEMORY. 
  7320.  
  7321.  Usage: 
  7322.  
  7323.  FREE provides the same disk information as the external command CHKDSK, but 
  7324.  without the wait, since it does not check the integrity of the file and 
  7325.  directory structure of the disk. 
  7326.  
  7327.  A colon [:] is required after each drive letter. This example displays the 
  7328.  status of drives A and C: 
  7329.  
  7330.           [c:\] free a: c:
  7331.  
  7332.  If the volume serial number is available, it will appear after the drive label 
  7333.  or name. 
  7334.  
  7335.  
  7336. ΓòÉΓòÉΓòÉ 3.3.36. GLOBAL - Execute command in all subdirectories ΓòÉΓòÉΓòÉ
  7337.  
  7338.  Purpose:    Execute a command in the current directory and its subdirectories. 
  7339.  
  7340.  Format:     GLOBAL [/H /I /P /Q] command 
  7341.  
  7342.              command :  The command to execute, including arguments and 
  7343.              switches. 
  7344.  
  7345.              /H(idden directories) 
  7346.              /P(rompt) 
  7347.              /I(gnore exit codes) 
  7348.              /Q(uiet) 
  7349.  
  7350.  Usage: 
  7351.  
  7352.  GLOBAL performs the command first in the current directory and then in every 
  7353.  subdirectory under the current directory.  The command can be an internal 
  7354.  command, an alias, an external command, or a batch file. 
  7355.  
  7356.  This example copies the files in every directory on drive A to the directory 
  7357.  C:\TEMP: 
  7358.  
  7359.           [a:\] global copy *.* c:\temp
  7360.  
  7361.  If you use the /P option, GLOBAL will prompt for each subdirectory before 
  7362.  performing the command.  You can use this option if you want to perform the 
  7363.  command in most, but not all subdirectories of the current directory. 
  7364.  
  7365.  You can use command grouping to execute multiple commands in each 
  7366.  subdirectory.  For example, the following command copies each .TXT file in the 
  7367.  current directory and all of its subdirectories to drive A.  It then changes 
  7368.  the extension of each of the copied files to .SAV: 
  7369.  
  7370.           [c:\] global (copy *.txt a: & ren *.txt *.sav)
  7371.  
  7372.  Options: 
  7373.  
  7374.     /H      (Hidden directories) Forces GLOBAL to look for hidden directories. 
  7375.             If you don't use this switch, hidden directories are ignored. 
  7376.  
  7377.     /I      (Ignore exit codes) If this option is not specified, GLOBAL will 
  7378.             terminate if the command returns a non-zero exit code.  Use /I if 
  7379.             you want command to continue in additional subdirectories even if 
  7380.             it returns an error in one subdirectory.  Even if you use /I, 
  7381.             GLOBAL will normally halt execution if Take Command receives a 
  7382.             Ctrl-C or Ctrl-Break. 
  7383.  
  7384.     /P      (Prompt) Forces GLOBAL to prompt with each directory name before it 
  7385.             performs the command.  Your options at the prompt are explained in 
  7386.             detail under Page and File Prompts. 
  7387.  
  7388.     /Q      (Quiet) Do not display the directory names as each directory is 
  7389.             processed. 
  7390.  
  7391.  
  7392. ΓòÉΓòÉΓòÉ 3.3.37. GOSUB - Call subroutine ΓòÉΓòÉΓòÉ
  7393.  
  7394.  Purpose:    Execute a subroutine in the current batch file. 
  7395.  
  7396.  Format:     GOSUB label 
  7397.  
  7398.              label :  The batch file label at the beginning of the subroutine. 
  7399.  
  7400.  See also:  CALL, GOTO and RETURN. 
  7401.  
  7402.  Usage: 
  7403.  
  7404.  GOSUB can only be used in batch files. 
  7405.  
  7406.  Take Command allows subroutines in batch files.  A subroutine must start with 
  7407.  a label (a colon [:] followed by a label name) which appears on a line by 
  7408.  itself.  Case differences are ignored when matching labels.  Labels may be one 
  7409.  or more words long.  The subroutine must end with a RETURN statement. 
  7410.  
  7411.  The subroutine is invoked with a GOSUB command from another part of the batch 
  7412.  file.  After the RETURN, processing will continue with the command following 
  7413.  the GOSUB command.  For example, the following batch file fragment calls a 
  7414.  subroutine which displays the directory and returns: 
  7415.  
  7416.           echo Calling a subroutine
  7417.           gosub subr1
  7418.           echo Returned from the subroutine
  7419.           quit
  7420.           :subr1
  7421.           dir /a/w
  7422.           return
  7423.  
  7424.  GOSUB begins its search for the label on the next line of the batch file 
  7425.  (after the GOSUB command).  If the label is not found between the current 
  7426.  position and the end of the file, GOSUB will restart the search at the 
  7427.  beginning of the file.  If the label still is not found, the batch file is 
  7428.  terminated with the error message "Label not found." 
  7429.  
  7430.  GOSUB saves the IFF and DO states, so IFF and DO statements inside a 
  7431.  subroutine won't interfere with statements in the part of the batch file from 
  7432.  which the subroutine was called. 
  7433.  
  7434.  Subroutines can be nested. 
  7435.  
  7436.  
  7437. ΓòÉΓòÉΓòÉ 3.3.38. GOTO - Branch within batch file ΓòÉΓòÉΓòÉ
  7438.  
  7439.  Purpose:    Branch to a specified line inside the current batch file. 
  7440.  
  7441.  Format:     GOTO [/I] label 
  7442.  
  7443.              label :  The batch file label to branch to. 
  7444.  
  7445.              /I(FF and DO continue) 
  7446.  
  7447.  See also:  GOSUB. 
  7448.  
  7449.  Usage: 
  7450.  
  7451.  GOTO can only be used in batch files. 
  7452.  
  7453.  After a GOTO command in a batch file, the next line to be executed will be the 
  7454.  one immediately after the label.  The label must begin with a colon [:] and 
  7455.  appear on a line by itself. The colon is required on the line where the label 
  7456.  is defined, but is not required in the GOTO command itself.  Case differences 
  7457.  are ignored when matching labels. Labels may be one or more words long. 
  7458.  
  7459.  This batch file fragment checks for the existence of the file CONFIG.OS2.  If 
  7460.  the file exists, the batch file jumps to C_EXISTS and copies all the files 
  7461.  from the current directory to the root directory on A:.  Otherwise, it prints 
  7462.  an error message and exits. 
  7463.  
  7464.           if exist config.os2 goto C_EXISTS
  7465.           echo CONFIG.OS2 doesn't exist - exiting.
  7466.           quit
  7467.           :C_EXISTS
  7468.           copy *.* a:\
  7469.  
  7470.  GOTO begins its search for the label on the next line of the batch file (after 
  7471.  the GOTO command).  If the label is not found between the current position and 
  7472.  the end of the file, GOTO will restart the search at the beginning of the 
  7473.  file.  If the label still is not found, the batch file is terminated with the 
  7474.  error message "Label not found." 
  7475.  
  7476.  To avoid errors in the processing of nested statements and loops, GOTO cancels 
  7477.  all active IFF statements and DO / ENDDO loops unless you use /I. This means 
  7478.  that a normal GOTO (without /I) may not branch to any label that is between an 
  7479.  IFF and the corresponding ENDIFF or between a DO and the corresponding ENDDO. 
  7480.  
  7481.  For compatibility with Windows NT's CMD.EXE, the command 
  7482.  
  7483.           GOTO :EOF
  7484.  
  7485.  will end processing of the current batch file if the label :EOF does not 
  7486.  exist.  However, this is less efficient than using the QUIT or CANCEL command 
  7487.  to end a batch file. 
  7488.  
  7489.  Options: 
  7490.  
  7491.     /I      (IFF and DO continue) Prevents GOTO from canceling IFF statements 
  7492.             and DO loops.  Use this option only if you are absolutely certain 
  7493.             that your GOTO command is branching entirely within any current IFF 
  7494.             statement and any active DO / ENDDO block.  Using /I under any 
  7495.             other conditions will cause an error later in your batch file. 
  7496.  
  7497.             You cannot branch into another IFF statement, another DO loop, or a 
  7498.             different IFF or DO nesting level, whether you use the /I option or 
  7499.             not.  If you do, you will eventually receive an "unknown command" 
  7500.             error (or execution of the UNKNOWN_CMD alias) on a subsequent 
  7501.             ENDDO, ELSE, ELSEIFF, or ENDIFF statement. 
  7502.  
  7503.  
  7504. ΓòÉΓòÉΓòÉ 3.3.39. HELP - Call online help ΓòÉΓòÉΓòÉ
  7505.  
  7506.  Purpose:    Display help for internal commands, and optionally for external 
  7507.              commands. 
  7508.  
  7509.  Format:     HELP [topic ] 
  7510.  
  7511.              topic :  A help topic or internal command. 
  7512.  
  7513.  Usage: 
  7514.  
  7515.  Online help is available for Take Command.  The Take Command help system uses 
  7516.  the OS/2 help facility. 
  7517.  
  7518.  See The Take Command Help System for detailed information about getting help 
  7519.  at the command line and customizing Help for your system. 
  7520.  
  7521.  If you type the command HELP by itself (or press F1 when the command line is 
  7522.  empty), the table of contents is displayed.  If you type HELP plus a topic 
  7523.  name, that topic is displayed.  For example: 
  7524.  
  7525.           help copy
  7526.  
  7527.  displays information about the COPY command and its options. 
  7528.  
  7529.  You can configure the HELP command to display only the Take Command help (the 
  7530.  default), or to display other help "books" as well.  For details see the 
  7531.  HelpBook directive and your Introduction and Installation Guide. 
  7532.  
  7533.  For help on system errors enter the message number in the HELP command, for 
  7534.  example: 
  7535.  
  7536.           help 3
  7537.           help sys0003
  7538.  
  7539.  Take Command will invoke OS/2's HELPMSG program to process these requests, and 
  7540.  HELPMSG will display any available information on the message number given. 
  7541.  In order for HELPMSG to work properly with Take Command you must define it as 
  7542.  a 'TTY' application; see Starting Character-Mode Applications for details. 
  7543.  
  7544.  
  7545. ΓòÉΓòÉΓòÉ 3.3.40. HISTORY - Manage command history list ΓòÉΓòÉΓòÉ
  7546.  
  7547.  Purpose:    Display, add to, clear, or read the history list. 
  7548.  
  7549.  Format:     HISTORY [/A command /F /P /R filename ] 
  7550.  
  7551.              command :  A command to be added to the history list. 
  7552.              filename :  The name of a file containing entries to be added to 
  7553.              the history list. 
  7554.  
  7555.              /A(dd)                   /P(ause) 
  7556.              /F(ree)                  /R(ead) 
  7557.  
  7558.              See also:  DIRHISTORY and LOG. 
  7559.  
  7560.              Usage: 
  7561.  
  7562.              Take Command keeps a list of the commands you have entered on the 
  7563.              command line.  See Command History and Recall for additional 
  7564.              details. 
  7565.  
  7566.              The HISTORY command lets you view and manipulate the command 
  7567.              history list directly.  If no parameters are entered, HISTORY will 
  7568.              display the current command history list: 
  7569.  
  7570.                                   [c:\] history
  7571.  
  7572.              With the options explained below, you can clear the list, add new 
  7573.              commands to the list without executing them, save the list in a 
  7574.              file, or read a new list from a file. 
  7575.  
  7576.              The number of commands saved in the history list depends on the 
  7577.              length of each command line.  The history list size can be 
  7578.              specified at startup from 256 to 32767 characters (see the History 
  7579.              directive).  The default size is 1024 characters. 
  7580.  
  7581.              Your history list can be stored either locally (a separate history 
  7582.              list for each copy of Take Command) or globally (all copies of 
  7583.              Take Command share the same list).  For full details see the 
  7584.              discussion of local and global history lists under Command History 
  7585.              and Recall. 
  7586.  
  7587.              You can use the HISTORY command as an aid in writing batch files 
  7588.              by redirecting the HISTORY output to a file and then editing the 
  7589.              file appropriately.  However, it is easier to use the LOG /H 
  7590.              command for this purpose. 
  7591.  
  7592.              You can disable the history list or specify a minimum command-line 
  7593.              length to save from the Command Line 1 page of the configuration 
  7594.              notebook, or with the HistMin directive in the TCMDOS2.INI file. 
  7595.  
  7596.              You can save the history list by redirecting the output of HISTORY 
  7597.              to a file. This example saves the command history to a file called 
  7598.              HISTFILE and reads it back again immediately.  If you leave out 
  7599.              the HISTORY /F command on the second line, the contents of the 
  7600.              file will be appended to the current history list instead of 
  7601.              replacing it: 
  7602.  
  7603.                                   [c:\] history > histfile
  7604.                                   [c:\] history /f
  7605.                                   [c:\] history /r histfile
  7606.  
  7607.              If you need to save your command history at the end of each day's 
  7608.              work, you might use the first of these commands in your 
  7609.              TCSTART.BTM or other startup file, and the second in TCEXIT.BTM: 
  7610.  
  7611.                                   if exist c:\histfile history /r c:\histfile
  7612.                                   history > c:\histfile
  7613.  
  7614.              This restores the previous history list if it exists, and saves 
  7615.              the history when Take Command exits. 
  7616.  
  7617.              Options: 
  7618.  
  7619.     /A      (Add) Add a command to the history list.  This performs the same 
  7620.             function as the Ctrl-K key at the command line (see Command History 
  7621.             and Recall ). 
  7622.  
  7623.     /F      (Free) Erase all entries in the command history list. 
  7624.  
  7625.     /P      (Prompt) Wait for a key after displaying each page of the list. 
  7626.             Your options at the prompt are explained in detail under Page and 
  7627.             File Prompts. 
  7628.  
  7629.     /R      (Read) Read the command history from the specified file and append 
  7630.             it to the history list currently held in memory.  Each line in the 
  7631.             file must fit within the command-line length limit). 
  7632.  
  7633.             If you are creating a HISTORY /R file by hand, and need to create 
  7634.             an entry that spans multiple lines in the file, you can do so by 
  7635.             terminating each line, except the last, with an escape character. 
  7636.             However, you cannot use this method to exceed the command- line 
  7637.             length limit. 
  7638.  
  7639.  
  7640. ΓòÉΓòÉΓòÉ 3.3.41. IF - Test condition ΓòÉΓòÉΓòÉ
  7641.  
  7642.  Purpose:    Execute a command if a condition or set of conditions is true. 
  7643.  
  7644.  Format:     IF [NOT] condition [.AND. | .OR. | .XOR. [NOT] condition ...] 
  7645.              command 
  7646.  
  7647.              condition :  A test to determine if the command should be 
  7648.              executed. 
  7649.              command :  The command to execute if the condition is true. 
  7650.  
  7651.  See also:  IFF and @IF. 
  7652.  
  7653.  Usage: 
  7654.  
  7655.  IF is normally used only in aliases and batch files.  It is always followed by 
  7656.  one or more conditions and then a command. First, the conditions are 
  7657.  evaluated.  If they are true, the command is executed.  Otherwise, the command 
  7658.  is ignored. If you add a NOT before a condition, the command is executed only 
  7659.  when the condition is false. 
  7660.  
  7661.  You can link conditions with .AND., .OR., or .XOR., and you can group 
  7662.  conditions with parentheses (see Combining Tests below).  You can also nest IF 
  7663.  statements. 
  7664.  
  7665.  The conditions can test strings, numbers, the existence of a file or 
  7666.  subdirectory, the exit code returned by the preceding external command, and 
  7667.  the existence of aliases and internal commands. 
  7668.  
  7669.  The command can be an alias, an internal command, an external command, or a 
  7670.  batch file.  The entire IF statement, including all conditions and the 
  7671.  command, must fit on one line. 
  7672.  
  7673.  Some examples of IF conditions and commands are included below; additional 
  7674.  examples can be found in the EXAMPLES.BTM file which came with Take Command. 
  7675.  
  7676.  You can use command grouping to execute multiple commands if the condition is 
  7677.  true.  For example, the following command tests if any .TXT files exist.  If 
  7678.  they do, they are copied to drive A: and their extensions are changed to .TXO: 
  7679.  
  7680.           if exist *.txt (copy *.txt a: & ren *.txt *.txo)
  7681.  
  7682.  (Note that the IFF command provides a more structured method of executing 
  7683.  multiple commands if a condition or set of conditions is true.) 
  7684.  
  7685.  When an IF test fails, the remainder of the command is discarded, and the 
  7686.  command processor normally continues with the next command on the line, or the 
  7687.  next line.  This behavior is not compatible with CMD.EXE, which discards all 
  7688.  remaining commands on the line when an IF test fails, including those after a 
  7689.  command separator or pipe character.  To change the behavior so that IF 
  7690.  affects all commands on the line, as in CMD.EXE, set DuplicateBugs to Yes in 
  7691.  the TCMDOS2.INI file. 
  7692.  
  7693.  For example, if DuplicateBugs is set to Yes (the default), the following 
  7694.  command will display nothing, because the second ECHO command is discarded 
  7695.  along with the first when the condition fails.  If DuplicateBugs is set to No, 
  7696.  it will display "hello": 
  7697.  
  7698.           [c:\] if 1 == 2 echo Wrong! & echo hello
  7699.  
  7700.  Conditions 
  7701.  
  7702.  The conditional tests listed in the following sections are available in both 
  7703.  the IF and IFF commands.  They fit into two categories:  string and numeric 
  7704.  tests, and status tests.  The tests can use environment variables, internal 
  7705.  variables and variable functions, file names, literal text, and numeric values 
  7706.  as their arguments. 
  7707.  
  7708.  String and Numeric Tests 
  7709.  
  7710.  Six test conditions can be used to test character strings. The same conditions 
  7711.  are available for both numeric and normal text strings (see below for 
  7712.  details).  In each case you enter the test as: 
  7713.  
  7714.           string1 operator string2
  7715.  
  7716.  The operator defines the type of test (equal, greater than or equal, and so 
  7717.  on).  You should always use spaces on both sides of the operator.  The 
  7718.  operators are: 
  7719.  
  7720.         EQ or ==        string1 equal to string2 
  7721.         NE or !=        string1 not equal to string2 
  7722.         LT              string1 less than string2 
  7723.         LE              string1 less than or equal to string2 
  7724.         GE              string1 greater than or equal to string2 
  7725.         GT              string1 greater than string2 
  7726.  
  7727.  When IF compares two character strings, it will use either a numeric 
  7728.  comparison or a string comparison.  A numeric comparison treats the strings as 
  7729.  numeric values and tests them arithmetically. A string comparison treats the 
  7730.  strings as text. 
  7731.  
  7732.  The difference between numeric and string comparisons is best explained by 
  7733.  looking at the way two values are tested.  For example, consider comparing the 
  7734.  values 2 and 19.  Numerically, 2 is smaller, but as a string it is "larger" 
  7735.  because its first digit is larger than the first digit of 19.  So the first of 
  7736.  these conditions will be true, and the second will be false: 
  7737.  
  7738.           if 2 lt 19 ...
  7739.           if "2" lt "19" ...
  7740.  
  7741.  IF determines which kind of test to do by examining the first character of 
  7742.  each string.  If both strings begin with a numeric character (a digit, sign, 
  7743.  or decimal point), a numeric comparison is used.  (If a string begins with a 
  7744.  decimal separator it is not considered numeric unless the next character is a 
  7745.  digit, and there are no more decimal separators within the string.  For 
  7746.  example, ".07" is numeric, but ".a" and ".07.01" are not.)  If either value is 
  7747.  non-numeric, a string comparison is used. To force a string comparison when 
  7748.  both values are or may be numeric, use double quotes around the values you are 
  7749.  testing, as shown above.  Because the double quote is not a numeric character, 
  7750.  IF performs a string comparison. 
  7751.  
  7752.  Case differences are ignored in string comparisons.  If two strings begin with 
  7753.  the same text but one is shorter, the shorter string is considered to be "less 
  7754.  than" the longer one.  For example, "a" is less than "abc", and "hello_there" 
  7755.  is greater than "hello". 
  7756.  
  7757.  When you compare text strings, you should always enclose the arguments in 
  7758.  double quotes in order to avoid syntax errors which may occur if one of the 
  7759.  argument values is empty. 
  7760.  
  7761.  Numeric comparisons work with both integer and decimal values.  The values to 
  7762.  be compared must contain only numeric digits, decimal points, and an optional 
  7763.  sign (+ or -).  The number may may contain up to 16 digits to the left of the 
  7764.  decimal point, and 8 digits to the right. 
  7765.  
  7766.  Internal variables and variable functions are very powerful when combined with 
  7767.  string and numeric comparisons.  They allow you to test the state of your 
  7768.  system, the characteristics of a file, date and time information, or the 
  7769.  result of a calculation.  You may want to review the variables and variable 
  7770.  functions when determining the best way to set up an IF test. 
  7771.  
  7772.  This batch file fragment runs a program called WEEKLY if today is Monday: 
  7773.  
  7774.           if "%_dow" == "mon" weekly
  7775.  
  7776.  This batch file fragment tests for a string value: 
  7777.  
  7778.           input "Enter your selection : " %%cmd
  7779.           if "%cmd" == "WP" goto wordproc
  7780.           if "%cmd" NE "GRAPHICS" goto badentry
  7781.  
  7782.  This example calls GO.BTM if the first two characters in the file MYFILE are 
  7783.  "GO": 
  7784.  
  7785.           if "%@left[2,%@line[myfile,0]]" == "GO" call go.btm
  7786.  
  7787.  
  7788.  Status Tests 
  7789.  
  7790.  These conditions test the system or command processor status. You can use 
  7791.  internal variables and variable functions to test many other parts of the 
  7792.  system status. 
  7793.  
  7794.         ERRORLEVEL [operator] n
  7795.             This test retrieves the exit code of the preceding external 
  7796.             program.  By convention, programs return an exit code of 0 when 
  7797.             they are successful and a number between 1 and 255 to indicate an 
  7798.             error (depending on the program you are running, the maximum return 
  7799.             value may be larger).  The condition can be any of the operators 
  7800.             listed above (EQ, !=, GT, etc.).  If no operator is specified, the 
  7801.             default is GE.  The comparison is done numerically. 
  7802.  
  7803.             Not all programs return an explicit exit code.  For programs which 
  7804.             do not, the behavior of ERRORLEVEL is undefined. 
  7805.  
  7806.         EXIST filename
  7807.             If the file exists, the condition is true. You can use wildcards in 
  7808.             the filename, in which case the condition is true if any file 
  7809.             matching the wildcard name exists. 
  7810.  
  7811.         ISALIAS aliasname
  7812.             If the name is defined as an alias, the condition is true. 
  7813.  
  7814.         ISDIR | DIREXIST path
  7815.             If the subdirectory exists, the condition is true.  For 
  7816.             compatibility with Novell DOS / OpenDOS, DIREXIST may be used as a 
  7817.             synonym for ISDIR. 
  7818.  
  7819.         ISINTERNAL command
  7820.             If the specified command is an active internal command, the 
  7821.             condition is true.  Commands can be activated and deactivated with 
  7822.             the SETDOS /I command. 
  7823.  
  7824.         ISLABEL label
  7825.             If the specified batch file label exists, the condition is true. 
  7826.             Labels may be one or more words long. 
  7827.  
  7828.         ISWINDOW "title"
  7829.             If the window with the title exists, the condition is true.  Double 
  7830.             quotes must be used around the title, which may contain wildcards 
  7831.             and extended wildcards. 
  7832.  
  7833.  The first batch file fragment below tests for the existence of A:\JAN.DOC 
  7834.  before copying it to drive C (this avoids an error message if the file does 
  7835.  not exist): 
  7836.  
  7837.           if exist a:\jan.doc copy a:\jan.doc c:\
  7838.  
  7839.  This example tests the exit code of the previous program and stops all batch 
  7840.  file processing if an error occurred: 
  7841.  
  7842.           if errorlevel == 0 goto success
  7843.           echo "External Error -- Batch File Ends!"
  7844.           cancel
  7845.  
  7846.  Combining Tests 
  7847.  
  7848.  You can negate the result of any test with NOT, and combine tests of any type 
  7849.  with .AND., .OR., and .XOR. 
  7850.  
  7851.  When two tests are combined with .AND., the result is true if both individual 
  7852.  tests are true.  When two tests are combined with .OR., the result is true if 
  7853.  either (or both) individual tests are true.  When two tests are combined with 
  7854.  .XOR., the result is true only if one of the tests is true and the other is 
  7855.  false. 
  7856.  
  7857.  This example runs a program called DATALOAD if today is Monday or Tuesday: 
  7858.  
  7859.           if "%_dow" == "Mon" .or. "%_dow" == "Tue" dataload
  7860.  
  7861.  Test conditions are always scanned from left to right; there is no implied 
  7862.  order of precedence, as there is in some programming languages.  You can, 
  7863.  however, force a specific order of testing by grouping conditions with 
  7864.  parentheses, for example: 
  7865.  
  7866.           if (%a == 1 .or. (%b == 2 .and. %c == 3)) echo something
  7867.  
  7868.  Parentheses can only be used when the portion of the condition inside the 
  7869.  parentheses contains at least one ".and.", ".or.", or ".xor.".  Parentheses on 
  7870.  a simple condition which does not combine two or more tests will be taken as 
  7871.  part of the string to be tested, and will probably make the test fail.  For 
  7872.  example, the first of these IF tests would fail; the second would succeed: 
  7873.  
  7874.           if (a == a) ...
  7875.           if (a == a .and. b == b) ...
  7876.  
  7877.  Parentheses can be nested. 
  7878.  
  7879.  
  7880. ΓòÉΓòÉΓòÉ 3.3.42. IFF - IFF / THEN / ELSE conditional test ΓòÉΓòÉΓòÉ
  7881.  
  7882.  Purpose:    Perform IF / THEN / ELSE conditional execution of commands. 
  7883.  
  7884.  Format:     IFF [NOT] condition [.AND. | .OR. | .XOR. [NOT] condition ...] 
  7885.              THEN & commands 
  7886.              [ELSEIFF condition THEN & commands ] ... 
  7887.              [ELSE & commands ] 
  7888.              ENDIFF 
  7889.  
  7890.              condition :  A test to determine if the command(s) should be 
  7891.              executed. 
  7892.              commands :  One or more commands to execute if the condition(s) is 
  7893.              true.  If you use multiple commands, they must be separated by 
  7894.              command separators or be placed on separate lines of a batch file. 
  7895.  
  7896.  See also:  IF and @IF. 
  7897.  
  7898.  Usage: 
  7899.  
  7900.  IFF is similar to the IF command, except that it can perform one set of 
  7901.  commands when a condition or set of conditions is true and a different set of 
  7902.  commands when the conditions are false. 
  7903.  
  7904.  IFF can execute multiple commands when the conditions are true or false; IF 
  7905.  normally executes only one command.  IFF imposes no limit on the number of 
  7906.  commands and is generally a "cleaner" and more structured command than IF. 
  7907.  
  7908.  IFF is always followed by one or more conditions.  If they are true, the 
  7909.  commands that follow the word THEN are executed. Additional conditions can be 
  7910.  tested with ELSEIFF.  If none of these conditions are true, the commands that 
  7911.  follow the word ELSE are executed.  After the selected commands (if any) are 
  7912.  executed, processing continues after the word ENDIFF. 
  7913.  
  7914.  If you add a NOT before the condition, the THEN commands are executed only 
  7915.  when the condition is false and the ELSE commands are executed only when the 
  7916.  condition is true. 
  7917.  
  7918.  The commands may be separated by command separators, or may be on separate 
  7919.  lines of a batch file.  You should include a command separator or a line break 
  7920.  after a THEN, before an ELSEIFF, and before and after an ELSE. 
  7921.  
  7922.  You can link conditions with .AND., .OR., or .XOR., and you can group 
  7923.  conditions with parentheses.  You can nest IFF statements up to 15 levels 
  7924.  deep.  The conditions can test strings or numbers, the existence of a file or 
  7925.  subdirectory, the errorlevel returned from the preceding external command, and 
  7926.  the existence of aliases and internal commands. 
  7927.  
  7928.  See the IF command for a list of the possible conditions and details on using 
  7929.  .AND, .OR, .XOR, and parentheses. 
  7930.  
  7931.  The commands can include any internal command, alias, external command, or 
  7932.  batch file. 
  7933.  
  7934.  The alias in this example checks to see if the argument is a subdirectory.  If 
  7935.  so, the alias deletes the subdirectory's files and removes it: 
  7936.  
  7937.           [c:\] alias prune `iff isdir %1 then & del /sxz %1 &
  7938.   else & echo Not a directory! & endiff`
  7939.  
  7940.  Be sure to read the cautionary notes about GOTO and IFF under the GOTO command 
  7941.  before using a GOTO inside an IFF statement. 
  7942.  
  7943.  If you pipe data to an IFF, the data will be passed to the command(s) 
  7944.  following the IFF, not to IFF itself. 
  7945.  
  7946.  
  7947. ΓòÉΓòÉΓòÉ 3.3.43. INKEY - Input a character ΓòÉΓòÉΓòÉ
  7948.  
  7949.  Purpose:    Get a single keystroke from the user and store it in an 
  7950.              environment variable. 
  7951.  
  7952.  Format:     INKEY [/C /D /K"keys" /P /Wn /X] [prompt ] %%varname 
  7953.  
  7954.              prompt :  Optional text that is displayed as a prompt. 
  7955.              varname :  The variable that will hold the user's keystroke. 
  7956.  
  7957.              /C(lear buffer) 
  7958.              /D(igits only) 
  7959.              /K(valid keystrokes) 
  7960.              /P(assword) 
  7961.              /W(ait) 
  7962.              /X (no carriage return) 
  7963.  
  7964.  See also:  INPUT, KEYSTACK, MSGBOX, and QUERYBOX. 
  7965.  
  7966.  Usage: 
  7967.  
  7968.  INKEY optionally displays a prompt.  Then it waits for a specified time or 
  7969.  indefinitely for a keystroke, and places the keystroke into an environment 
  7970.  variable.  It is normally used in batch files and aliases to get a menu choice 
  7971.  or other single-key input.  Along with the INPUT command, INKEY allows great 
  7972.  flexibility in reading input from within a batch file or alias. 
  7973.  
  7974.  If prompt text is included in an INKEY command, it is displayed while INKEY 
  7975.  waits for input. 
  7976.  
  7977.  INKEY works within the command line window.  If you prefer to use a dialog for 
  7978.  user input, see the MSGBOX and QUERYBOX commands. 
  7979.  
  7980.  The following batch file fragment prompts for a character and stores it in the 
  7981.  variable NUM: 
  7982.  
  7983.           inkey Enter a number from 1 to 9:  %%num
  7984.  
  7985.  INKEY reads standard input for the keystroke, so it will accept keystrokes 
  7986.  from a redirected file or from the KEYSTACK. You can supply a list of valid 
  7987.  keystrokes with the /K option. 
  7988.  
  7989.  Standard keystrokes with ASCII values between 1 and 255 are stored directly in 
  7990.  the environment variable.  Extended keystrokes (for example, function keys and 
  7991.  cursor keys) are stored as a string in decimal format, with a leading @ (for 
  7992.  example, the F1 key is @59). The Enter key is stored as an extended keystroke, 
  7993.  with the code @28.  See the Key Code Tables for a list of extended key codes. 
  7994.  
  7995.  To test for a non-printing ASCII keystroke returned by INKEY use the @ASCII 
  7996.  function to get the numeric value of the key.  For example, to test for Esc, 
  7997.  which has an ASCII value of 27: 
  7998.  
  7999.           inkey Enter a key:  %%key
  8000.           if "%@ascii[%key]" == "27" echo Esc pressed
  8001.  
  8002.  If you press Ctrl-C or Ctrl-Break while INKEY is waiting for a key, execution 
  8003.  of an alias will be terminated, and execution of a batch file will be 
  8004.  suspended while you are asked whether to cancel the batch job.  A batch file 
  8005.  you can handle Ctrl-C and Ctrl-Break itself with the ON BREAK command. 
  8006.  
  8007.  Options: 
  8008.  
  8009.     /C      (Clear buffer) Clears the keyboard buffer before INKEY accepts 
  8010.             keystrokes.  If you use this option, INKEY will ignore any 
  8011.             keystrokes which you type, either accidentally or intentionally, 
  8012.             before it is ready to accept input. 
  8013.  
  8014.     /D      (Digits only):  Prevents INKEY from accepting any keystroke except 
  8015.             a digit from 0 to 9. 
  8016.  
  8017.     /K"keys"Specify the permissible keystrokes.  The list of valid keystrokes 
  8018.             should be enclosed in double quotes.  For alphabetic keys the 
  8019.             validity test is not case sensitive.  You can specify extended keys 
  8020.             by enclosing their names in square brackets (within the quotes). 
  8021.             Enter this example on one line: 
  8022.  
  8023.                                 inkey /k"ab[Ctrl-F9]" Enter A, B, or Ctrl-F9 %%var
  8024.  
  8025.             See Keys and Key Names for a complete listing of the key names you 
  8026.             can use within the square brackets, and a description of the key 
  8027.             name format. 
  8028.  
  8029.             If an invalid keystroke is entered, Take Command will echo the 
  8030.             keystroke if possible, beep, move the cursor back one character, 
  8031.             and wait for another keystroke. 
  8032.  
  8033.     /P      (Password) Prevents INKEY from echoing the character. 
  8034.  
  8035.     /W      (Wait) Time-out period, in seconds, to wait for a response. If no 
  8036.             keystroke is entered by the end of the time-out period, INKEY 
  8037.             returns with the variable unchanged.  This allows you to continue 
  8038.             the batch file if the user does not respond in a given period of 
  8039.             time.  You can specify /W0 to return immediately if there are no 
  8040.             keys waiting in the keyboard buffer. 
  8041.  
  8042.             For example, the following batch file fragment waits up to 10 
  8043.             seconds for a character, then tests to see if a "Y" was entered: 
  8044.  
  8045.                                 set netmon=N
  8046.                                 inkey /K"YN" /w10 Network monitor (Y/N)?  %%net
  8047.                                 iff "%netmon" == "Y" then
  8048.                                   rem Commands to load the monitor program
  8049.                                 endiff
  8050.  
  8051.     /X      (No carriage return) Prevents INKEY from displaying a carriage 
  8052.             return and line feed after the user's entry. 
  8053.  
  8054.  
  8055. ΓòÉΓòÉΓòÉ 3.3.44. INPUT - Input a string ΓòÉΓòÉΓòÉ
  8056.  
  8057.  Purpose:    Get a string from the keyboard and save it in an environment 
  8058.              variable. 
  8059.  
  8060.  Format:     INPUT [/C /D /E /Ln /N /P /Wn /X] [prompt ] %%varname 
  8061.  
  8062.              prompt :  Optional text that is displayed as a prompt. 
  8063.              varname :  The variable that will hold the user's input. 
  8064.  
  8065.              /C(lear buffer)                 /N(o colors) 
  8066.              /D(igits only)                  /P(assword) 
  8067.              /E(dit)                         /W(ait) 
  8068.              /L(ength)                       /X (no carriage return) 
  8069.  
  8070.  See also:  INKEY, KEYSTACK, MSGBOX, and QUERYBOX. 
  8071.  
  8072.  Usage: 
  8073.  
  8074.  INPUT optionally displays a prompt.  Then it waits for a specified time or 
  8075.  indefinitely for your entry.  It places any characters you type into an 
  8076.  environment variable.  INPUT is normally used in batch files and aliases to 
  8077.  get multi-character input (for single-keystroke input, see INKEY). 
  8078.  
  8079.  INPUT works within the command line window.  If you prefer to use a dialog for 
  8080.  user input, see the MSGBOX and QUERYBOX commands. 
  8081.  
  8082.  If prompt text is included in an INPUT command, it is displayed while INPUT 
  8083.  waits for input.  Standard command-line editing keys may be used to edit the 
  8084.  input string as it is entered.  If you use the /P password option, INPUT will 
  8085.  echo asterisks instead of the keys you type. 
  8086.  
  8087.  All characters entered up to, but not including, the carriage return are 
  8088.  stored in the variable. 
  8089.  
  8090.  The following batch file fragment prompts for a string and stores it in the 
  8091.  variable FNAME: 
  8092.  
  8093.           input Enter the file name:  %%fname
  8094.  
  8095.  INPUT reads standard input, so it will accept text from a re-directed file or 
  8096.  from the KEYSTACK. 
  8097.  
  8098.  If you press Ctrl-C or Ctrl-Break while INPUT is waiting for input, execution 
  8099.  of an alias will be terminated, and execution of a batch file will be 
  8100.  suspended while you are asked whether to cancel the batch job.  A batch file 
  8101.  you can handle Ctrl-C and Ctrl-Break itself with the ON BREAK  command. 
  8102.  
  8103.  Options: 
  8104.  
  8105.     /C      (Clear buffer) Discard any keystrokes pending in the keyboard 
  8106.             buffer before INPUT begins accepting characters. 
  8107.  
  8108.     /D      (Digits only): Prevents INPUT from accepting any keystrokes except 
  8109.             digits from 0 to 9. 
  8110.  
  8111.     /E      (Edit) Allows you to edit an existing value.  If there is no 
  8112.             existing value for varname, INPUT proceeds as if /E had not been 
  8113.             used, and allows you to enter a new value. 
  8114.  
  8115.     /Ln     (Length) Sets the maximum number of characters which INPUT will 
  8116.             accept to "n".  If you attempt to enter more than this number of 
  8117.             characters, INPUT will beep and prevent further input (you will 
  8118.             still be able to edit the characters typed before the limit was 
  8119.             reached). 
  8120.  
  8121.     /N      (No color) Disables the display colors set by InputColor in the 
  8122.             TCMDOS2.INI file.  With this option, INPUT will use the default 
  8123.             display colors instead. 
  8124.  
  8125.     /P      (Password) Tells INPUT to echo asterisks, instead of the characters 
  8126.             you type. 
  8127.  
  8128.     /W      (Wait) Time-out period, in seconds, to wait for a response. If no 
  8129.             keystroke is entered by the end of the time-out period, INPUT 
  8130.             returns with the variable unchanged. This allows you to continue 
  8131.             the batch file if the user does not respond in a given period of 
  8132.             time.  If you enter a key before the time-out period, INPUT will 
  8133.             wait indefinitely for the remainder of the line.  You can specify 
  8134.             /W0 to return immediately if there are no keys waiting in the 
  8135.             keyboard buffer. 
  8136.  
  8137.     /X      (No carriage return) Prevents INPUT from displaying a carriage 
  8138.             return and line feed after the user's entry. 
  8139.  
  8140.  
  8141. ΓòÉΓòÉΓòÉ 3.3.45. KEYBD - Set keyboard toggles ΓòÉΓòÉΓòÉ
  8142.  
  8143.  Purpose:    Set the state of the keyboard toggles:  Caps Lock, Num Lock, and 
  8144.              Scroll Lock. 
  8145.  
  8146.  Format:     KEYBD [/Cn /Nn /Sn] 
  8147.  
  8148.              n :  0 to turn off the toggle, or 1 to turn on the toggle. 
  8149.              /C(aps lock) 
  8150.              /S(croll lock) 
  8151.              /N(um lock) 
  8152.  
  8153.  Usage: 
  8154.  
  8155.  Most keyboards have 3 toggle keys, the Caps Lock, Num Lock, and Scroll Lock. 
  8156.  The toggle key status is usually displayed by three lights at the top right 
  8157.  corner of the keyboard. 
  8158.  
  8159.  This command lets you turn any toggle key on or off.  It is most useful in 
  8160.  batch files and aliases if you want the keys set a particular way before 
  8161.  collecting input from the user. 
  8162.  
  8163.  For example, to turn off the Num Lock and Caps Lock keys, you can use this 
  8164.  command: 
  8165.  
  8166.           [c:\] keybd /c0 /n0
  8167.  
  8168.  If you use the KEYBD command with no switches, it will display the present 
  8169.  state of the toggle keys. 
  8170.  
  8171.  The toggle key state is typically the same for all sessions and changes made 
  8172.  with KEYBD in one session will therefore affect all other sessions. 
  8173.  
  8174.  Options: 
  8175.  
  8176.     /C      (Caps lock) Turn the Caps Lock key on or off. 
  8177.  
  8178.     /N      (Num lock) Turn the Num Lock key on or off. 
  8179.  
  8180.     /S      (Scroll lock) Turn the Scroll Lock key on or off. 
  8181.  
  8182.  
  8183. ΓòÉΓòÉΓòÉ 3.3.46. KEYS - Enable/disable history list ΓòÉΓòÉΓòÉ
  8184.  
  8185.  Purpose:    Enable, disable, or display the history list. 
  8186.  
  8187.  Format:     KEYS [ON | OFF | LIST] 
  8188.  
  8189.  See also:  HISTORY. 
  8190.  
  8191.  Usage: 
  8192.  
  8193.  This command is provided for compatibility with KEYS command in CMD.EXE, which 
  8194.  controls the history list in OS/2. The same functions are available by setting 
  8195.  the HistMin directive in the .INI file, and by using the HISTORY command. 
  8196.  
  8197.  The history list collects the commands you type for later recall, editing, and 
  8198.  viewing.  You can view the contents of the list through the history list 
  8199.  window or by typing any of the following commands: 
  8200.  
  8201.           [c:\] history
  8202.           [c:\] history /p
  8203.           [c:\] keys list
  8204.  
  8205.  The first command displays the entire history list.  The second displays the 
  8206.  entire list and pauses at the end of each full screen. The third command 
  8207.  produces the same output as the first, except that each line is numbered. 
  8208.  
  8209.  You can disable the collection and storage of commands in the history list by 
  8210.  typing: 
  8211.  
  8212.           [c:\] keys off
  8213.  
  8214.  You can turn the history back on with the command: 
  8215.  
  8216.           [c:\] keys on
  8217.  
  8218.  If you issue the KEYS command without any parameters, Take Command will show 
  8219.  you the current status of the history list. 
  8220.  
  8221.  
  8222. ΓòÉΓòÉΓòÉ 3.3.47. KEYSTACK - Feed keystrokes to programs ΓòÉΓòÉΓòÉ
  8223.  
  8224.  Purpose:    Feed keystrokes to a program or command automatically. 
  8225.  
  8226.  
  8227.  Format:     KEYSTACK [!] [/Wn] ["abc"] [keyname[n]] ... .br 
  8228.              !  Signal to clear the Keystack and the keyboard buffer. 
  8229.              "abc":  Literal characters to be placed in the Keystack. 
  8230.              keyname:  Name for a key to be placed in the Keystack. 
  8231.              n:  Number of times to repeat the named key. 
  8232.  
  8233.              /W(ait) 
  8234.  
  8235.  See also:  Using the Keystack. 
  8236.  
  8237.  Usage: 
  8238.  
  8239.  KEYSTACK takes a series of keystrokes and feeds them to a program or command 
  8240.  as if they were typed at the keyboard.  When the program has used all of the 
  8241.  keystrokes sent by KEYSTACK, it will begin to read the keyboard for input, as 
  8242.  it normally would. 
  8243.  
  8244.  KEYSTACK will send the keystrokes to the current active window.  If you want 
  8245.  to send keystrokes to another program (rather than have them function with 
  8246.  Take Command itself), you must start the program or ACTIVATE its window so it 
  8247.  can receive the keystrokes. You must do this before executing the KEYSTACK 
  8248.  command. 
  8249.  
  8250.  KEYSTACK is most often used for programs started from batch files.  In order 
  8251.  for KEYSTACK to work in a batch file, you must start the program with the 
  8252.  START command, then use the KEYSTACK command.  If you start the program 
  8253.  directly ╨º without using START ╨º the batch file will wait for the application 
  8254.  to complete before continuing and running the KEYSTACK command, and the 
  8255.  keystrokes will be placed in the buffer too late. 
  8256.  
  8257.  If you use KEYSTACK in an alias executed from the prompt, the considerations 
  8258.  are essentially the same, but depend on whether ExecWait is set.  If ExecWait 
  8259.  is not set, you can use KEYSTACK immediately after an application is started. 
  8260.  However, if ExecWait is set, the KEYSTACK command will not be executed until 
  8261.  the program has finished, and the keystrokes will be placed in the buffer too 
  8262.  late. 
  8263.  
  8264.  You may not be able to use KEYSTACK effectively if you have programs running 
  8265.  in the background which change the active window (for example, by popping up a 
  8266.  dialog box).  If a window pops up in the midst of your KEYSTACK sequence, 
  8267.  keystrokes stored in the KEYSTACK buffer may go to that window, and not to the 
  8268.  application you intended. 
  8269.  
  8270.  KEYSTACK will only work if the file KEYSTACK.EXE is in the same directory as 
  8271.  TCOS2.EXE, or a directory listed in your PATH.  If KEYSTACK.EXE cannot be 
  8272.  found, the KEYSTACK command will display an error message.  KEYSTACK can send 
  8273.  keystrokes to Presentation Manager applications and to character-mode 
  8274.  applications running in a window.  It cannot send keystrokes to DOS 
  8275.  applications, nor to character-mode applications running in a full-screen 
  8276.  session.  Characters entered within double quotes ("abc") will be stored "as 
  8277.  is" in the buffer.  The only items allowed outside double quotes are key 
  8278.  names, the ! and /W options, and a repeat count. 
  8279.  
  8280.  See Keys and key names for a complete listing of key names and a description 
  8281.  of the key name and numeric key code format.  If you want to send the same key 
  8282.  name or numeric code several times, you can follow it with a repeat count in 
  8283.  square brackets.  For example, to send the Enter key 4 times, you can use this 
  8284.  command: 
  8285.  
  8286.           keystack enter [4]
  8287.  
  8288.  The repeat count works only with individual keystrokes, or numeric keystroke 
  8289.  or character values.  It cannot be used with quoted strings. 
  8290.  
  8291.  An exclamation mark [!] will clear all pending keystrokes in the KEYSTACK 
  8292.  buffer. 
  8293.  
  8294.  For example, to start a word processor called Word and select the second item 
  8295.  on the second menu n the menu bar, you could use the command: 
  8296.  
  8297.           [d:\doc] keystack F10 Right Down "1" ^ word
  8298.  
  8299.  This places the keystrokes for F10 (change to the menu bar), right arrow (move 
  8300.  to the File menu), down arrow (display the file menu), and "1" (open the most 
  8301.  recently used file) into the buffer, then runs Word.  When Word starts it 
  8302.  receives these keystrokes and performs the appropriate actions. 
  8303.  
  8304.  You can store a maximum of 1,023 characters in the KEYSTACK buffer.  A delay 
  8305.  takes two character "slots" in the buffer.  A repeated character takes one 
  8306.  character slot per repetition. 
  8307.  
  8308.  Each time the KEYSTACK command is executed, it will clear any remaining 
  8309.  keystrokes stored by a previous KEYSTACK command. 
  8310.  
  8311.  You may need to experiment with your programs and insert delays (see the /W 
  8312.  option) to find the window activation and keystroke sequence that works for a 
  8313.  particular program. 
  8314.  
  8315.  Options: 
  8316.  
  8317.     /W      (Wait):  Delay the next keystroke in the KEYSTACK buffer by a 
  8318.             specified number of clock "ticks".  A clock tick is approximately 
  8319.             1/18 second.  The number of clock ticks to delay should be placed 
  8320.             immediately after the W, and must be between 1 and 65535 (65535 
  8321.             ticks is about 1 hour).  You can use the /W option as many times as 
  8322.             desired and at any point in the string of keystrokes except within 
  8323.             double quotes.  Some programs may need the delays provided by /Win 
  8324.             order to receive keystrokes properly from KEYSTACK. The only way to 
  8325.             determine what delay is needed is to experiment. 
  8326.  
  8327.  
  8328. ΓòÉΓòÉΓòÉ 3.3.48. LIST - Display file ΓòÉΓòÉΓòÉ
  8329.  
  8330.  Purpose:    Display a file, with forward and backward paging and scrolling. 
  8331.  
  8332.  Format:     LIST [/A:[[-]rhsda] /H /I /R /S /T /W /X] file... 
  8333.  
  8334.              file :  A file or list of files to display. 
  8335.  
  8336.              /A: (Attribute select)      /S(tandard input) 
  8337.              /H(igh bit off)             /T  (search for Text) 
  8338.              /I(gnore wildcards)         /W(rap) 
  8339.              /R(everse)                  /X (heX display mode) 
  8340.  
  8341.  See also:  TYPE. 
  8342.  
  8343.  File Selection: 
  8344.  
  8345.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  8346.  
  8347.  Usage: 
  8348.  
  8349.  LIST provides a fast and flexible way to view a file, without the overhead of 
  8350.  loading and using a text editor. 
  8351.  
  8352.  For example, to display a file called MEMO.DOC: 
  8353.  
  8354.           [c:\] list memo.doc
  8355.  
  8356.  LIST is most often used for displaying ASCII text files.  It can be used for 
  8357.  other files which contain non-alphabetic characters, but you may need to use 
  8358.  hex mode (see below) to read these files. 
  8359.  
  8360.  LIST displays files in the Take Command window.  The standard tool bar and 
  8361.  scroll bars are replaced with the LIST tool bar and scroll bars.  Use the 
  8362.  scroll bars or cursor pad to scroll through the file.  You can select the LIST 
  8363.  commands either with the mouse (on the tool bar and scrollbars) or from the 
  8364.  keyboard.  LIST recognizes the following keys and buttons: 
  8365.  
  8366.         Home                Display the first page of the file. 
  8367.         End                 Display the last page of the file. 
  8368.         Esc (Cont)          Exit the current file. 
  8369.         Ctrl-C (Quit)       Quit LIST. 
  8370.         Ctrl-PgUp.          Display previous file. 
  8371.         Ctrl-PgDn.          Display next file. 
  8372.                            Scroll up one line. 
  8373.                            Scroll down one line. 
  8374.                             Scroll left 8 columns. 
  8375.                             Scroll right 8 columns. 
  8376.         Ctrl                Scroll left 40 columns. 
  8377.         Ctrl                Scroll right 40 columns. 
  8378.         F1                  Display online help 
  8379.         B (Back)            Go back one file to the previous file in the 
  8380.                             current group of files. 
  8381.         F (Find)            Prompt and search for a string or a sequence of 
  8382.                             hexadecimal values. 
  8383.         Ctrl-F              Prompt and search for a string, searching backward 
  8384.                             from the end of the file. 
  8385.         G (Goto)            Go to a specific line, or, in hex mode, to a 
  8386.                             specific hexadecimal offset. 
  8387.         H (High)            Toggle the "strip high bit" (/H) option. 
  8388.         I (Info)            Display information on the current file (the full 
  8389.                             name, size, date, and time). 
  8390.         N (Next)            Find next matching string. 
  8391.         Ctrl-N              Find the previous matching string in the file. 
  8392.         O (Open)            Open a new file 
  8393.         P (Print)           Print selected text, the current page, or the 
  8394.                             entire file. 
  8395.         W (Wrap)            Toggle the "line wrap" (/W) option. 
  8396.         X (heX)             Toggle the hex-mode display (/X) option. 
  8397.  
  8398.  Text searches performed with F, N, Ctrl-F, and Ctrl-N, or with the 
  8399.  corresponding buttons, are not case- sensitive unless you check the "Match 
  8400.  case" box in the search dialog.  LIST remembers the search strings you have 
  8401.  used in the current Take Command session; to select a previous string, use the 
  8402.  drop-down arrow to the right of the string entry field (the N key and the Next 
  8403.  button search for the top item in this drop-down list). 
  8404.  
  8405.  When the search string is found LIST displays the line containing the string 
  8406.  at the top of the window, and highlights the string it found.  Any additional 
  8407.  occurrences of the string on the same display page are also highlighted. 
  8408.  Highlighting is intended for use with text files; in binary files the search 
  8409.  string will be found, but may not be highlighted properly. 
  8410.  
  8411.  If you want to search for specific hexadecimal values check the "Hex search" 
  8412.  box, and enter the search string as a sequence of 2-digit hexadecimal numbers 
  8413.  separated by spaces, for example 41 63 65 (these are the ASCII values for the 
  8414.  string "Ace"; see the ASCII Table for a complete list of standard ASCII 
  8415.  codes).  Hexadecimal searches are case-sensitive, and search for exactly the 
  8416.  string you enter. 
  8417.  
  8418.  You can use extended wildcards in the search string.  For example, you can 
  8419.  search for the string "to*day" to find the next line which contains the word 
  8420.  "to" followed by the word "day" later on the same line, or search for the 
  8421.  numbers "101" or "401" with the search string "[14]01".  If you begin the 
  8422.  search string with a back-quote [`], or enclose it in back-quotes, wildcard 
  8423.  characters in the string will be treated as normal text with no special 
  8424.  wildcard meaning. 
  8425.  
  8426.  You can use the /T switch to specify search text for the first file.  When you 
  8427.  do so, LIST begins a search as soon as the file is loaded.  Use /I to ignore 
  8428.  wildcards in the initial search string, and /R to make the initial search go 
  8429.  backwards from the end of the file.  When you LIST multiple files with a 
  8430.  single LIST command, these switches affect only the first file; they are 
  8431.  ignored for the second and subsequent files. 
  8432.  
  8433.  You can use the G key to go to a specific line number in the file (or to a 
  8434.  specified hexadecimal offset in hex mode).  LIST numbers lines beginning with 
  8435.  1, unless ListRowStart is set to 0.  A new line is counted for every CR or LF 
  8436.  character (LIST determines automatically which character is used for line 
  8437.  breaks in each file), or when line length reaches 511 characters, whichever 
  8438.  comes first. 
  8439.  
  8440.  LIST normally allows long lines in the file to extend past the right edge of 
  8441.  the screen.  You can use the horizontal scrolling keys (see above) to view 
  8442.  text that extends beyond the screen width.  If you use the W command or /W 
  8443.  switch to wrap the display, each line is wrapped when it reaches the right 
  8444.  edge of the screen, and the horizontal scrolling keys are disabled. 
  8445.  
  8446.  To view text from the clipboard, use CLIP: as the file to be listed.  CLIP: 
  8447.  will not return any data unless the clipboard contains text. 
  8448.  
  8449.  If you print the file which LIST is displaying, the print format will match 
  8450.  the display format.  If you have switched to hexadecimal or wrapped mode, that 
  8451.  mode will be used for the printed output as well.  If you print in wrapped 
  8452.  mode, long lines will be wrapped at the width of the display.  If you print in 
  8453.  normal display mode without line wrap, long lines will be wrapped or truncated 
  8454.  by the printer, not by LIST.  Regardless of the display mode, LIST will bring 
  8455.  up a standard print dialog which allows you to print selected text, the 
  8456.  current page, or the entire file. 
  8457.  
  8458.  Advanced Features 
  8459.  
  8460.  If you specify a directory name instead of a filename as an argument, LIST 
  8461.  will display each of the files in that directory. 
  8462.  
  8463.  Most of the LIST keystrokes can be reassigned with TCMDOS2.INI file key 
  8464.  mapping  directives. 
  8465.  
  8466.  You can set the colors used by LIST with the ListColors directive in the 
  8467.  TCMDOS2.INI file, or the LIST Colors selection on the Commands page of the 
  8468.  configuration notebook.  If ListColors is not used, the LIST display will use 
  8469.  the current default colors. 
  8470.  
  8471.  By default, LIST sets tab stops every 8 columns.  You can change this behavior 
  8472.  with the TabStops directive in the TCMDOS2.INI file. 
  8473.  
  8474.  Options: 
  8475.  
  8476.     /A:     (Attribute select):  Select only those files that have the 
  8477.             specified attribute(s) set.  Preceding the attribute character with 
  8478.             a hyphen [-] will select files that do not have that attribute set. 
  8479.             The colon [:] after /A is required.  The attributes are: 
  8480.  
  8481.                            R  Read-only 
  8482.                            H  Hidden 
  8483.                            S  System 
  8484.                            D  Subdirectory 
  8485.                            A  Archive 
  8486.  
  8487.             If no attributes are listed at all (e.g., LIST /A:), LIST will 
  8488.             select all files and subdirectories including hidden and system 
  8489.             files.  If attributes are combined, all the specified attributes 
  8490.             must match for a file to be selected.  For example, /A:RHSwill 
  8491.             select only those files with all three attributes set. 
  8492.  
  8493.     /H      (High bit off) Strip the high bit from each character before 
  8494.             displaying.  This is useful when displaying files created by some 
  8495.             word processors that turn on the high bit for formatting purposes. 
  8496.             You can toggle this option on and off from within LIST with the H 
  8497.             key. 
  8498.  
  8499.     /I      (Ignore wildcards) Only meaningful when used in conjunction with 
  8500.             the /T" text" option.  Direct LIST to interpret characters such as 
  8501.             *, ?, [, and ] as literal characters instead of wildcard 
  8502.             characters.  /I affects only the initial search started by /T, not 
  8503.             subsequent searches started from within LIST. 
  8504.  
  8505.     /R      (Reverse) Only meaningful when used in conjuction with the /T 
  8506.             "text" option.  Directs LIST to search for text from the end of the 
  8507.             file instead of from the beginning of the file.  Using this switch 
  8508.             can speed up searches for text that is normally near the end of the 
  8509.             file, such as a signature.  /R affects only the initial search 
  8510.             started by /T, not subsequent searches started from within LIST. 
  8511.  
  8512.     /S      (Standard input) Read from standard input rather than a file.  This 
  8513.             allows you to redirect command output and view it with LIST. 
  8514.             Normally, LIST will detect input from a redirected command and 
  8515.             adjust automatically.  However, you may find circumstances when /S 
  8516.             is required.  For example, to use LIST to display the output of DIR 
  8517.             you could use either of these commands: 
  8518.  
  8519.                                 [c:\] dir | list
  8520.                                 [c:\] dir | list /s
  8521.  
  8522.     /T      (Text) Search for text in the first file. This option is the same 
  8523.             as pressing F, but it allows you to specify the search text on the 
  8524.             command line.  The text must be contained in quotation marks if it 
  8525.             contains spaces, punctuation, or wildcard characters.  For example, 
  8526.             to search for the string Take Command in the file README.DOC, you 
  8527.             can use this command: 
  8528.  
  8529.                                 [c:\] list /t"Take Command" readme.doc
  8530.  
  8531.             The search text may include wildcards and extended wildcards.  For 
  8532.             example, to search for the words Hello and John on the same line in 
  8533.             the file LETTER.DAT: 
  8534.  
  8535.                                 [c:\] list /t"Hello*John" letter.dat
  8536.  
  8537.             When you LIST multiple files with a single LIST command, /T only 
  8538.             initiates a search in the first file.  It is ignored for the second 
  8539.             and subsequent files.  Also see /I and /R. 
  8540.  
  8541.     /W      (Wrap) Wrap the text at the right edge of the screen. This option 
  8542.             is useful when displaying files that don't have a carriage return 
  8543.             at the end of each line.  The horizontal scrolling keys do not work 
  8544.             when the display is wrapped.  You can toggle this option on and off 
  8545.             from within LIST with the W key or the Wrap button on the tool bar. 
  8546.  
  8547.     /X      (hex mode):  Display the file in hexadecimal (hex) mode. This 
  8548.             option is useful when displaying executable files and other files 
  8549.             that contain non-text characters.  Each byte of the file is shown 
  8550.             as a pair of hex characters.  The corresponding text is displayed 
  8551.             to the right of each line of hexadecimal data.  You can toggle this 
  8552.             mode on and off from within LIST with the X key or the heX button 
  8553.             on the tool bar. 
  8554.  
  8555.  
  8556. ΓòÉΓòÉΓòÉ 3.3.49. LOADBTM - Switch batch file mode ΓòÉΓòÉΓòÉ
  8557.  
  8558.  Purpose:    Switch a batch file to or from BTM mode. 
  8559.  
  8560.  Format:     LOADBTM [ON | OFF] 
  8561.  
  8562.  Usage: 
  8563.  
  8564.  Take Command recognizes two kinds of batch files: .CMD and .BTM.  Batch files 
  8565.  executing in BTM mode run two to ten times faster than in CMD mode.  (However, 
  8566.  BTM mode should not be used for self-modifying batch files.)  Batch files 
  8567.  automatically start in the mode indicated by their extension. 
  8568.  
  8569.  The LOADBTM command turns BTM mode on and off.  It can be used to switch modes 
  8570.  in either a  .CMD or .BTM file. If you use LOADBTM with no argument, it will 
  8571.  display the current batch mode:  LOADBTM ON or LOADBTM OFF. 
  8572.  
  8573.  Using LOADBTM to repeatedly switch modes within a batch file is not efficient. 
  8574.  In most cases the speed gained by running some parts of the file in BTM mode 
  8575.  will be more than offset by the speed lost through repeated loading of the 
  8576.  file each time BTM mode is invoked. 
  8577.  
  8578.  LOADBTM can only be used within a batch file.  It is most often used to 
  8579.  convert a .CMD file to BTM mode without changing its extension. 
  8580.  
  8581.  
  8582. ΓòÉΓòÉΓòÉ 3.3.50. LOG - Log commands to file ΓòÉΓòÉΓòÉ
  8583.  
  8584.  Purpose:    Save a log of commands to a disk file. 
  8585.  
  8586.  Format:     LOG [/H /W file ] [ON | OFF | text ] 
  8587.  
  8588.              file :  The name of the file to hold the log. 
  8589.              text :  An optional message that will be added to the log. 
  8590.  
  8591.              /H(istory log) 
  8592.              /W(rite to) 
  8593.  
  8594.  See also:  HISTORY. 
  8595.  
  8596.  Usage: 
  8597.  
  8598.  LOG keeps a record of all internal and external commands you use, whether they 
  8599.  are executed from the prompt or from a batch file.  Each entry includes the 
  8600.  current system date and time, along with the actual command after any alias or 
  8601.  variable expansion.  You can use the log file as a record of your daily 
  8602.  activities. 
  8603.  
  8604.  LOG with the /H option keeps a similar record called a "history log".  The 
  8605.  history log records only commands entered at the prompt; it does not record 
  8606.  batch file commands.  In addition, the history log does not record the date 
  8607.  and time for each command, and it records commands before aliases and 
  8608.  variables are expanded. 
  8609.  
  8610.  The two logging options are independent.  You can have both a regular log and 
  8611.  a history log enabled simultaneously. 
  8612.  
  8613.  By default, LOG writes to the file OS2LOG in the root directory of the boot 
  8614.  drive.  The default file name for LOG /H is OS2HLOG.  You can set the default 
  8615.  log file names from the Options 2 page of the configuration notebook, or with 
  8616.  the LogName and HistLogName directives in the TCMDOS2.INI file. 
  8617.  
  8618.  Entering LOG or LOG /H with no parameters displays the name of the log file 
  8619.  and the log status (ON or OFF): 
  8620.  
  8621.           [c:\] log
  8622.           LOG (C:\COS2LOG) is OFF
  8623.  
  8624.  To enable or disable logging, add the word "ON" or "OFF" after the LOG 
  8625.  command: 
  8626.  
  8627.           [c:\] log on
  8628.  
  8629.  or 
  8630.  
  8631.           [c:\] log /h on
  8632.  
  8633.  Entering LOG or LOG /H with text writes a message to the log file, even if 
  8634.  logging is set OFF.  This allows you to enter headers in the log file: 
  8635.  
  8636.           [c:\] log "Started work on the database system"
  8637.  
  8638.  The LOG file format looks like this: 
  8639.  
  8640.           [mm-dd-yy  hh:mm:ss]  command
  8641.  
  8642.  The LOG /H output can be used as the basis for writing batch files.  Start LOG 
  8643.  /H, then execute the commands that you want the batch file to execute.  When 
  8644.  you are finished, turn LOG /H off.  The resulting file can be turned into a 
  8645.  batch file that performs the same commands with little or no editing. 
  8646.  
  8647.  Options: 
  8648.  
  8649.     /H      (History log) This option makes the other options on the command 
  8650.             line (after the /H) apply to the history log.  For example, to turn 
  8651.             on history logging and write to the file C:\LOG\HLOG: 
  8652.  
  8653.                                 [c:\] log /h /w c:\log\hlog
  8654.  
  8655.     /W      (Write) This switch specifies a different filename for the LOG or 
  8656.             LOG /H output.  It also automatically performs a LOG ON command. 
  8657.             For example, to turn logging on and write the log to 
  8658.             C:\LOG\LOGFILE: 
  8659.  
  8660.                                 [c:\] log /w c:\log\logfile
  8661.  
  8662.             Once you select a new file name with the LOG /W or LOG /H/W 
  8663.             command, LOG will use that file until you issue another LOG /W or 
  8664.             LOG /H/W command, or until you reboot your computer.  Turning LOG 
  8665.             or LOG /H off or on does not change the file name. 
  8666.  
  8667.  
  8668. ΓòÉΓòÉΓòÉ 3.3.51. MD - Create a subdirectory ΓòÉΓòÉΓòÉ
  8669.  
  8670.  Purpose:    Create a subdirectory. 
  8671.  
  8672.  Format:     MD [/N /S] path... 
  8673.                 or 
  8674.              MKDIR [/N /S] path... 
  8675.  
  8676.              path :  The name of one or more directories to create. 
  8677.  
  8678.              /N(o update) 
  8679.              /S(ubdirectories) 
  8680.  
  8681.  See also:  RD. 
  8682.  
  8683.  Usage: 
  8684.  
  8685.  MD and MKDIR are synonyms.  You can use either one. 
  8686.  
  8687.  MD creates a subdirectory anywhere in the directory tree.  To create a 
  8688.  subdirectory from the root, start the path with a backslash [\].  For example, 
  8689.  this command creates a subdirectory called MYDIR in the root directory: 
  8690.  
  8691.           [c:\] md \mydir
  8692.  
  8693.  If no path is given, the new subdirectory is created in the current directory. 
  8694.  This example creates a subdirectory called DIRTWO in the current directory: 
  8695.  
  8696.           [c:\mydir] md dirtwo
  8697.  
  8698.  To create a directory from the parent of the current directory (that is, to 
  8699.  create a sibling of the current directory), start the pathname with two 
  8700.  periods and a backslash [..\]. 
  8701.  
  8702.  When creating a directory on a HPFS drive, you must quote any path which 
  8703.  contains whitespace or special characters. 
  8704.  
  8705.  If MD creates one or more directories, they will be added automatically to the 
  8706.  extended directory search database unless the /N option is specified. 
  8707.  
  8708.  Option: 
  8709.     /N(No update)  Do not update the extended directory search database, 
  8710.     JPSTREE.IDX.  This is useful when creating a temporary directory which you 
  8711.     do not want to appear in the extended search database. /S(Subdirectories) 
  8712.     Allows you to create more than one directory at a time.  For example, if 
  8713.     you need to create the directory C:\ONE\TWO\THREE and none of the named 
  8714.     directories exist, you can use /S to have MD create all of the necessary 
  8715.     subdirectories in a single command (without the /S, this command will fail 
  8716.     because the parent directory C:\ONE\TWO does not exist): 
  8717.  
  8718.                 [c:\] md /s \one\two\three
  8719.  
  8720.  
  8721. ΓòÉΓòÉΓòÉ 3.3.52. MEMORY - Display memory status ΓòÉΓòÉΓòÉ
  8722.  
  8723.  Purpose:    Display the amount and status of Take Command and OS/2 memory. 
  8724.  
  8725.  Format:     MEMORY 
  8726.  
  8727.  Usage: 
  8728.  
  8729.  MEMORY lists the total physical and resident RAM, the largest free block in 
  8730.  RAM, the swap file size, the total and free environment and alias space, and 
  8731.  the total history space. 
  8732.  
  8733.  If the OS/2 swap file is not stored in the \OS2\SYSTEM directory of the boot 
  8734.  drive, you must use the SwapFilePath directive in TCMDOS2.INI or MEMORY will 
  8735.  not be able to display the swap file size. 
  8736.  
  8737.  
  8738. ΓòÉΓòÉΓòÉ 3.3.53. MOVE - Move files to another directory ΓòÉΓòÉΓòÉ
  8739.  
  8740.  Purpose:    Move files to a new directory and drive. 
  8741.  
  8742.  Format:     MOVE  [/A:[[-]rhsda] /C /D /E /F /H /M /N /P /Q /R /S /T /U /V] 
  8743.              source... destination 
  8744.  
  8745.              source :  A file or list of files to move. 
  8746.              destination :  The new location for the files. 
  8747.  
  8748.              /A:(ttribute select)            /P(rompt) 
  8749.              /C(hanged)                      /Q(uiet) 
  8750.              /D(irectory)                    /R(eplace) 
  8751.              /E (No error messages)          /S(ubdirectory tree) 
  8752.              /F(orce delete)                 /T(otal) 
  8753.              /H(idden and system)            /U(pdate) 
  8754.              /M(odified files)               /V(erify) 
  8755.              /N(othing) 
  8756.  
  8757.  See also:  COPY and RENAME. 
  8758.  
  8759.  File Selection: 
  8760.  
  8761.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  8762.  Ranges anywhere on the line apply to all source files. 
  8763.  
  8764.  Usage: 
  8765.  
  8766.  The MOVE command moves one or more files from one directory to another, 
  8767.  whether the directories are on the same drive or not.  It has the same effect 
  8768.  as copying the files to a new location and then deleting the originals.  Like 
  8769.  COPY and RENAME, MOVE works with single files, multiple files, and sets of 
  8770.  files specified with an include list. 
  8771.  
  8772.  The simplest MOVE command moves a single source file to a new location and, 
  8773.  optionally, gives it a new name.  These two examples both move one file from 
  8774.  drive C: to the root directory on drive A: 
  8775.  
  8776.           [c:\] move myfile.dat a:\
  8777.           [c:\] move myfile.dat a:\savefile.dat
  8778.  
  8779.  In both cases, MYFILE.DAT is removed from drive C: after it has been copied to 
  8780.  drive A:.  If a file called MYFILE.DAT in the first example, or SAVEFILE.DAT 
  8781.  in the second example, already existed on drive A:, it would be overwritten. 
  8782.  (This demonstrates the difference between MOVE and RENAME.  MOVE will move 
  8783.  files between drives and will overwrite the destination file if it exists; 
  8784.  RENAME will not.) 
  8785.  
  8786.  When you move a single file, the destination can be a directory name or a file 
  8787.  name.  If it is a directory name, and you add a backslash [\] to the end of 
  8788.  the name, MOVE will display an error message if the name does not refer to an 
  8789.  existing directory.  You can use this feature to keep MOVE from treating a 
  8790.  mistyped destination directory name as a file name, and attempting to move the 
  8791.  source file to that name. 
  8792.  
  8793.  If you MOVE multiple files, the destination must be a directory name.  MOVE 
  8794.  will move each file into the destination directory with its original name.  If 
  8795.  the destination is not a directory, MOVE will display an error message and 
  8796.  exit).  For example, if C:\FINANCE\MYFILES is not a directory, this command 
  8797.  will display an error; otherwise, the files will be moved to that directory:: 
  8798.  
  8799.           [c:\] move *.wks *.txt c:\finance\myfiles
  8800.  
  8801.  The /D option can be used for single or multiple file moves; it checks to see 
  8802.  whether the destination is a directory, and will prompt to see if you want to 
  8803.  create the destination directory if it doesn't exist. 
  8804.  
  8805.  If MOVE creates one or more destination directories, they will be added 
  8806.  automatically to the extended directory search database. 
  8807.  
  8808.  Be careful when you use MOVE with the SELECT command.  If you SELECT multiple 
  8809.  files and the target is not a directory (for example, because of a 
  8810.  misspelling), MOVE will assume it is a file name.  In this case each file will 
  8811.  be moved in turn to the target file, overwriting the previous file, and then 
  8812.  the original will be erased before the next file is moved.  At the end of the 
  8813.  command, all of the original files will have been erased and only the last 
  8814.  file will exist as the target file. 
  8815.  
  8816.  You can avoid this problem by using square brackets with SELECT instead of 
  8817.  parentheses (be sure that you don't allow the command line to get too long -- 
  8818.  watch the character count in the upper left corner while you're selecting 
  8819.  files).  MOVE will then receive one list of files to move instead of a series 
  8820.  of individual filenames, and it will detect the error and halt.  You can also 
  8821.  add a backslash [\] to the end of the destination name to ensure that it is 
  8822.  the name of a subdirectory (see above). 
  8823.  
  8824.  Advanced Features and Options 
  8825.  
  8826.  MOVE first attempts to rename the file(s), which is the fastest way to move 
  8827.  files between subdirectories on the same drive.  If that fails (e.g., because 
  8828.  the destination is on a different drive or already exists), MOVE will copy the 
  8829.  file(s) and then delete the originals. 
  8830.  
  8831.  If MOVE must physically copy the files and delete the originals, rather than 
  8832.  renaming them (see above), then some disk space may be freed on the source 
  8833.  drive.  The free space may be the result of moving the files to another drive, 
  8834.  or of overwriting a larger destination file with a smaller source file.  MOVE 
  8835.  displays the amount of disk space recovered unless the /Q option is used (see 
  8836.  below).  It does so by comparing the amount of free disk space before and 
  8837.  after the MOVE command is executed.  However, this amount may be incorrect if 
  8838.  you are using a deletion tracking system which retains deleted files for later 
  8839.  recovery, or if another program performs a file operation while the MOVE 
  8840.  command is executing. 
  8841.  
  8842.  When physically copying files, MOVE preserves the hidden, system, and read- 
  8843.  only attributes of the source files, and sets the archive attribute of the 
  8844.  destination files.  However, if the files can be renamed, and no copying is 
  8845.  required, then the source file attributes are not changed. 
  8846.  
  8847.  Use caution with the /A: and /H switches (both of which can allow MOVE to 
  8848.  process hidden files) when you are physically moving files and both the source 
  8849.  and destination directories contain file descriptions.  If the source file 
  8850.  specification matches the description file name (normally DESCRIPT.ION), and 
  8851.  you tell MOVE to process hidden files, the DESCRIPT.ION file itself will be 
  8852.  moved, overwriting any existing descriptions in the destination directory. 
  8853.  For example, if the C:\DATA directory contains file descriptions this command 
  8854.  would overwrite any existing descriptions in the D:\SAVE directory: 
  8855.  
  8856.          [c:\data] move /h d*.* d:\save\
  8857.  
  8858.  (If you remove the hidden attribute from the DESCRIPT.ION file the same 
  8859.  caution applies even if you do not use /A: or /H, as DESCRIPT.ION is then 
  8860.  treated like any other file.) 
  8861.  
  8862.  If you move a file from a FAT volume to an HPFS volume, and you do not give an 
  8863.  explicit destination name (i.e., you are moving the file to the current 
  8864.  directory, or your destination name is made up entirely of wildcards), MOVE 
  8865.  will look for a .LONGNAME extended attribute for the source file.  If it finds 
  8866.  that attribute, it will use the long filename for the destination file.  If it 
  8867.  does not, it will use the short name. 
  8868.  
  8869.  Similarly, if you MOVE files with long filenames from an HPFS volume to a FAT 
  8870.  volume, Take Command will create the destination files with short, 
  8871.  FAT-compatible names and save the long filenames in the .LONGNAME extended 
  8872.  attribute. The short name is created by replacing special characters with 
  8873.  underscores, adding numeric digits to the filename (if necessary) to make the 
  8874.  new name unique, and truncating the name to fit with in the "8.3" FAT name 
  8875.  structure. 
  8876.  
  8877.  Options: 
  8878.  
  8879.     /A:     (Attribute select) Select only those files that have the specified 
  8880.             attribute(s) set.  Preceding the attribute character with a hyphen 
  8881.             [-] will select files that do not have that attribute set.  The 
  8882.             colon [:] after /A is required.  The attributes are: 
  8883.  
  8884.                          R  Read-only 
  8885.                          H  Hidden 
  8886.                          S  System 
  8887.                          D  Subdirectory 
  8888.                          A  Archive 
  8889.  
  8890.             If no attributes are listed at all (e.g., MOVE /A: ...), MOVE will 
  8891.             select all files and subdirectories including hidden and system 
  8892.             files.  If attributes are combined, all the specified attributes 
  8893.             must match for a file to be selected.  For example, /A:RHS will 
  8894.             select only those files with all three attributes set. 
  8895.  
  8896.             See the cautionary note under Advanced Features and Options above 
  8897.             before using /A: when both source and destination directories 
  8898.             contain file descriptions. 
  8899.  
  8900.     /C      (Changed files) Move files only if the destination file exists and 
  8901.             is older than the source (see also /U).  This option is useful for 
  8902.             updating the files in one directory from those in another without 
  8903.             moving any newly-created files. 
  8904.  
  8905.     /D      (Directory) Requires that the destination be a directory.  If the 
  8906.             destination does not exist, MOVE will prompt to see if you want to 
  8907.             create it.  If the destination exists as a file, MOVE will fail 
  8908.             with an "Access denied" error.  Use this option to avoid having 
  8909.             MOVE accidentally interpret your destination name as a file name 
  8910.             when it's really a mistyped directory name. 
  8911.  
  8912.     /E      (No error messages) Suppress all non-fatal error messages, such as 
  8913.             "File Not Found."  Fatal error messages, such as "Drive not ready," 
  8914.             will still be displayed.  This option is most useful in batch files 
  8915.             and aliases. 
  8916.  
  8917.     /F      (Force delete) This option forces deletion of the source file 
  8918.             without saving it to the DELDIR directory (if DELDIR is not in use, 
  8919.             /F has no effect).  /F is only effective when MOVE must copy the 
  8920.             source file(s) and delete the originals (i.e., if the destination 
  8921.             is on a different drive or the destination file already exists). 
  8922.             If the files are simply renamed, /F has no effect. 
  8923.  
  8924.     /H      (Hidden) Move all files, including hidden and system files. 
  8925.  
  8926.             See the cautionary note under Advanced Features and Options above 
  8927.             before using /H when both source and destination directories 
  8928.             contain file descriptions. 
  8929.  
  8930.     /M      (Modified files) Move only files that have the archive bit set. 
  8931.             The archive bit will remain set after the MOVE; to clear it use 
  8932.             ATTRIB. 
  8933.  
  8934.     /N      (Nothing) Do everything except actually move the file(s). This 
  8935.             option is most useful for testing what a complex MOVE command will 
  8936.             do. /N does not prevent creation of destination subdirectories when 
  8937.             it is used with /S. 
  8938.  
  8939.     /P      (Prompt) Prompt the user to confirm each move.  Your options at the 
  8940.             prompt are explained in detail under Page and File Prompts. 
  8941.  
  8942.     /Q      (Quiet) Don't display filenames, the total number of files moved, 
  8943.             or the amount of disk space recovered, if any.  This option is most 
  8944.             often used in batch files.  See also /T. 
  8945.  
  8946.     /R      (Replace) Prompt for a Y or N response before overwriting an 
  8947.             existing destination file. 
  8948.  
  8949.     /S      (Subdirectories) Move an entire subdirectory tree to another 
  8950.             location.  MOVE will attempt to create the destination directories 
  8951.             if they don't exist, and will remove empty subdirectories after the 
  8952.             move.  When /D is used with /S, you will be prompted if the first 
  8953.             destination directory does not exist, but subdirectories below that 
  8954.             will be created automatically by MOVE.  If MOVE /S creates one or 
  8955.             more destination directories, they will be added automatically to 
  8956.             the extended directory search database. 
  8957.  
  8958.             If you attempt to use /S to move a subdirectory tree into part of 
  8959.             itself, MOVE will detect the resulting infinite loop, display an 
  8960.             error message and exit. 
  8961.  
  8962.     /T      (Total) Don't display filenames as they are moved, but display the 
  8963.             total number of files deleted and the amount of free disk space 
  8964.             recovered, if any. 
  8965.  
  8966.     /U      (Update) Move each source file only if it is newer than a matching 
  8967.             destination file or if a matching destination file does not exist 
  8968.             (also see /C).  This option is useful for moving new or changed 
  8969.             files from one directory to another. 
  8970.  
  8971.     /V      (Verify) Verify each disk write.  This is the same as executing the 
  8972.             VERIFY ON command, but is only active during the MOVE.  /V does not 
  8973.             read back the file and compare its contents with what was written; 
  8974.             it only verifies that the data written to disk is physically 
  8975.             readable. 
  8976.  
  8977.  
  8978. ΓòÉΓòÉΓòÉ 3.3.54. MSGBOX - Display a message box prompt ΓòÉΓòÉΓòÉ
  8979.  
  8980.  Purpose:    Display a message box and return the user's response. 
  8981.  
  8982.  Format:     MSGBOX OK | OKCANCEL | YESNO | YESNOCANCEL ["title"] prompt 
  8983.  
  8984.              title : Text for the title of the message box. 
  8985.              prompt : Text that will appear inside the message box. 
  8986.  
  8987.  See also:  INKEY, INPUT, and QUERYBOX. 
  8988.  
  8989.  Usage: 
  8990.  
  8991.  MSGBOX can display one of 4 kinds of message boxes and wait for the user's 
  8992.  response.  You can use title and prompt to display any text you wish.  If no 
  8993.  title is specified, the program name ("Take Command for OS/2") is used as the 
  8994.  title.  Take Command automatically sizes and locates the box on the screen. 
  8995.  
  8996.  The message box may have 1, 2, or 3 response buttons.  The command MSGBOX OK 
  8997.  creates a single-button box; the user must simply acknowledge the prompt text. 
  8998.  
  8999.  The OKCANCEL and YESNO forms have 2 buttons each.  The YESNOCANCEL form has 3 
  9000.  buttons.  The button the user chooses is returned in the Take Command variable 
  9001.  %_?.  Be sure to save the return value in another variable or test it 
  9002.  immediately, because the value of %_? changes with every internal command. 
  9003.  
  9004.  The following list shows the value returned for each selection: 
  9005.  
  9006.           Yes:    10
  9007.           No:     11
  9008.           OK:     10
  9009.           Cancel: 12
  9010.  
  9011.  If you exit the message box without selecting one of these options, MSGBOX 
  9012.  will set %_? to 0.  If there is an error in the MSGBOX command itself, %_? 
  9013.  will be set to 1 for a syntax error or 2 for any other error. 
  9014.  
  9015.  For example, to display a Yes or No message box and take action depending on 
  9016.  the result, you could use commands like this: 
  9017.  
  9018.           msgbox yesno "Copy" Copy all files to A:?
  9019.           if %_? == 10 copy *.* a:
  9020.  
  9021.  MSGBOX creates a popup dialog box.  If you prefer to retrieve input from 
  9022.  inside the command line window, see the INKEY and INPUT commands. 
  9023.  
  9024.  
  9025. ΓòÉΓòÉΓòÉ 3.3.55. ON - Trap errors in batch files ΓòÉΓòÉΓòÉ
  9026.  
  9027.  Purpose:    Execute a command in a batch file when a specific condition 
  9028.              occurs. 
  9029.  
  9030.  Format:     ON BREAK [command ] 
  9031.                 or 
  9032.              ON ERROR [command ] 
  9033.                 or 
  9034.              ON ERRORMSG [command ] 
  9035.  
  9036.  Usage: 
  9037.  
  9038.  ON can only by used in batch files. 
  9039.  
  9040.  ON sets a "watchdog" that remains in effect for the duration of the current 
  9041.  batch file.  Whenever a BREAK or ERROR condition occurs after ON has been 
  9042.  executed, the command is automatically executed. 
  9043.  
  9044.  ON sets a "watchdog" that remains in effect for the duration of the current 
  9045.  batch file.  Whenever a BREAK or ERROR condition occurs after ON has been 
  9046.  executed, the corresponding command is automatically executed. 
  9047.  
  9048.  ON BREAK will execute the command if the user presses Ctrl-C or Ctrl-Break. 
  9049.  
  9050.  ON ERROR and ON ERRORMSG will execute the command after any critical error, 
  9051.  operating system error (such as a disk write error, or a Take Command error 
  9052.  (such as a COPY command that fails to copy any files, or the use of an invalid 
  9053.  command option). 
  9054.  
  9055.  ON ERROR executes the command immediately after the error occurs, without 
  9056.  displaying any command processor error message (operating system errors may 
  9057.  still be displayed).  ON ERRORMSG displays the appropriate error message, then 
  9058.  executes the command.  If both are specified, ON ERROR will take precedence, 
  9059.  and ON ERRORMSG will be ignored.  The remainder of this section discusses both 
  9060.  settings, using the term "ON ERROR[MSG]". 
  9061.  
  9062.  ON BREAK and ON ERROR[MSG] are independent of each other.  You can use either 
  9063.  one, or both, in any batch file. 
  9064.  
  9065.  Each time ON BREAK or ON ERROR[MSG] is used, it defines a new command to be 
  9066.  executed for a break or error, and any old command is discarded.  If you use 
  9067.  ON BREAK or ON ERROR[MSG] with no following command, that type of error 
  9068.  handling is disabled. Error handling is also automatically disabled when the 
  9069.  batch file exits. 
  9070.  
  9071.  ON BREAK and ON ERROR[MSG] only affect the current batch file.  If you CALL 
  9072.  another batch file, the first batch file's error handling is suspended, and 
  9073.  the CALLed file must define its own error handling. When control returns to 
  9074.  the first batch file, its error handling is reactivated. 
  9075.  
  9076.  The command can be any command that can be used on a batch file line by 
  9077.  itself.  Frequently, it is a GOTO or GOSUB command.  For example, the 
  9078.  following fragment traps any user attempt to end the batch file by pressing 
  9079.  Ctrl-C or Ctrl-Break.  It scolds the user for trying to end the batch file, 
  9080.  then continues: 
  9081.  
  9082.           on break gosub gotabreak
  9083.           do i = 1 to 1000
  9084.             echo %i
  9085.           enddo
  9086.           quit
  9087.           :gotabreak
  9088.           echo Hey!  Stop that!!
  9089.           return
  9090.  
  9091.  You can use a command group as the command if you want to execute multiple 
  9092.  commands, for example: 
  9093.  
  9094.           on break (echo Oops, got a break! & quit)
  9095.  
  9096.  ON BREAK and ON ERROR[MSG] always assume that you want to continue executing 
  9097.  the batch file.  After the command is executed, control automatically returns 
  9098.  to the next command in the batch file (the command after the one that was 
  9099.  interrupted by the break or error).  To avoid continuing the batch file after 
  9100.  a break or error is for the command can transfer control with GOTO, end the 
  9101.  batch file with QUIT or CANCEL, or start another batch file (without CALLing 
  9102.  it). 
  9103.  
  9104.  When handling an error condition with ON ERROR[MSG], you may find it useful to 
  9105.  use internal variables, particularly %_? and %_SYSERR, to help determine the 
  9106.  cause of the error. 
  9107.  
  9108.  The ON ERROR[MSG] command will not be invoked if an error occurs while reading 
  9109.  or writing redirected input, output, or a pipe. 
  9110.  
  9111.  Caution:  If a break or error occurs while the command specified in ON BREAK 
  9112.  or ON ERROR[MSG] is executing, the command will be restarted. This means you 
  9113.  must use caution to avoid or handle any possible errors in the commands 
  9114.  invoked by ON ERROR[MSG], since such errors can cause an infinite loop. 
  9115.  
  9116.  
  9117. ΓòÉΓòÉΓòÉ 3.3.56. OPTION - Configure Take Command ΓòÉΓòÉΓòÉ
  9118.  
  9119.  Purpose:    Modify Take Command configuration. 
  9120.  
  9121.  Format:     OPTION [//optname=value ...] 
  9122.  
  9123.              optname :  An INI file directive to set or modify. 
  9124.              value :  A new value for that directive. 
  9125.  
  9126.  See also:  The TCMDOS2.INI file. 
  9127.  
  9128.  Usage: 
  9129.  
  9130.  OPTION displays a settings notebook which allows you to modify many of the 
  9131.  configuration options stored in the TCMDOS2.INI file. 
  9132.  
  9133.  When you exit from the notebook, you can select Save to save your changes in 
  9134.  the .INI file for use in the current session and all future sessions, select 
  9135.  OK to use your changes in the current session only, or select Cancel to 
  9136.  discard the changes. 
  9137.  
  9138.  OPTION does not preserve comments when saving modified settings in the .INI 
  9139.  file.  To be sure .INI file comments are preserved, put them on separate lines 
  9140.  in the file.  See TCMDOS2.INI for additional details. 
  9141.  
  9142.  Setting Individual Options 
  9143.  
  9144.  If you follow the OPTION command with one or more sequences of a double slash 
  9145.  mark [//] followed by an option=value setting, the OPTION notebook will not 
  9146.  appear.  Instead, the new settings will take effect immediately, and will be 
  9147.  in effect for the current session only.  This example turns off batch file 
  9148.  echo and changes the input colors to bright cyan on black: 
  9149.  
  9150.           [c:\] option //BatchEcho = No //InputColors = bri cya on bla
  9151.  
  9152.  Option names and values may contain whitespace.  However, you cannot enter an 
  9153.  option value which contains the "//" string. 
  9154.  
  9155.  This feature is most useful for testing settings quickly, and in aliases or 
  9156.  batch files which depend on certain options being in effect. 
  9157.  
  9158.  Changes made with // are temporary.  They will not be saved in the .INI file, 
  9159.  even if you subsequently load the option notebook and select Save. 
  9160.  
  9161.  
  9162. ΓòÉΓòÉΓòÉ 3.3.57. PATH - Set the executable search path ΓòÉΓòÉΓòÉ
  9163.  
  9164.  Purpose:    Display or alter the list of directories that Take Command will 
  9165.              search for executable files, batch files, and files with 
  9166.              executable extensions that are not in the current directory. 
  9167.  
  9168.  Format:     PATH [directory[;directory ...]] 
  9169.  
  9170.              directory :  The full name of a directory to include in the path 
  9171.              setting. 
  9172.  
  9173.  See also:  ESET and SET. 
  9174.  
  9175.  Usage: 
  9176.  
  9177.  When Take Command is asked to execute an external command, it first looks for 
  9178.  the file in the current directory.  If it fails to find an executable file in 
  9179.  the current directory, it then searches each of the directories specified in 
  9180.  the PATH setting. 
  9181.  
  9182.  For example, after the following PATH command, Take Command will search for an 
  9183.  executable file in four directories:  the current directory, then the root 
  9184.  directory on drive C, then the BIN subdirectory on C, and then the UTIL 
  9185.  subdirectory on C: 
  9186.  
  9187.           [c:\] path c:\;c:\bin;c:\util
  9188.  
  9189.  The list of directories to search is stored as an environment string, and can 
  9190.  also be set or viewed with SET, and edited with ESET. 
  9191.  
  9192.  Directory names in the path must be separated by semicolons [;]. Each 
  9193.  directory name is shifted to upper case to maintain compatibility with 
  9194.  programs which can only recognize upper case directory names in the path.  If 
  9195.  you modify your path with the SET or ESET command, you may include directory 
  9196.  names in lower case.  These may cause trouble with some programs, which assume 
  9197.  that all path entries have been shifted to upper case. 
  9198.  
  9199.  On HPFS drives, some directory names may include spaces or other special 
  9200.  characters.  Unlike other commands where quotes are required, such names 
  9201.  should not be quoted in the PATH. 
  9202.  
  9203.  If you enter PATH with no parameters, the current path is displayed: 
  9204.  
  9205.           [c:\] path
  9206.           PATH=C:\;C:\BIN;C:\UTIL
  9207.  
  9208.  Entering PATH and a semicolon clears the search path so that only the current 
  9209.  directory is searched for executable files (this is the default at system 
  9210.  startup). 
  9211.  
  9212.  Some applications also use the PATH to search for their data files. 
  9213.  
  9214.  Take Command normally searches the path for files with the extensions .COM, 
  9215.  .EXE, .BTM, .CMD, and .BAT  (in that order).  However, if you include an 
  9216.  explicit file extension on a command name (for example, WP.EXE), the search 
  9217.  will find files with that name and extension in the current directory and 
  9218.  every directory in the path.  It will not locate other executable files with 
  9219.  the same base name (e.g., WP.COM). 
  9220.  
  9221.  If you have an entry in the path which consists of a single period [.], the 
  9222.  current directory will not be searched first, but instead will be searched 
  9223.  when Take Command reaches the "." in the path. This allows you to delay the 
  9224.  search of the current directory for executable files and files with executable 
  9225.  extensions.  In rare cases, this feature may not be compatible with 
  9226.  applications which use the path to find their files; if you experience a 
  9227.  problem, you will have to remove the "." from the path while using any such 
  9228.  application. 
  9229.  
  9230.  To create a path longer than the command-line length limit, use PATH 
  9231.  repeatedly to append additional directories to the path: 
  9232.  
  9233.           path [first list of directories]
  9234.           path %path;[second list of directories]
  9235.           ...
  9236.  
  9237.  You cannot use this method to extend the path beyond 2,042 characters (the 
  9238.  internal buffer limit, with room for "PATH ").  It is usually more efficient 
  9239.  to use aliases to load application programs than to create a long PATH.  See 
  9240.  ALIAS for details. 
  9241.  
  9242.  If you specify an invalid directory in the path, it will be skipped and the 
  9243.  search will continue with the next directory in the path. 
  9244.  
  9245.  
  9246. ΓòÉΓòÉΓòÉ 3.3.58. PAUSE - Suspend batch file execution ΓòÉΓòÉΓòÉ
  9247.  
  9248.  Purpose:    Suspend batch file or alias execution. 
  9249.  
  9250.  Format:     PAUSE [text ] 
  9251.  
  9252.              text :  The message to be displayed as a user prompt. 
  9253.  
  9254.  Usage: 
  9255.  
  9256.  A PAUSE command will suspend execution of a batch file or alias, giving you 
  9257.  the opportunity to change disks, turn on the printer, etc. 
  9258.  
  9259.  PAUSE waits for any key to be pressed and then continues execution.  You can 
  9260.  specify the text that PAUSE displays while it waits for a keystroke, or let it 
  9261.  use the default message: 
  9262.  
  9263.           Press any key when ready...
  9264.  
  9265.  For example, the following batch file fragment prompts the user before erasing 
  9266.  files: 
  9267.  
  9268.           pause Press Ctrl-C to abort, any other key to erase all .LST files
  9269.           erase *.lst
  9270.  
  9271.  If you press Ctrl-C or Ctrl-Break while PAUSE is waiting for a key, execution 
  9272.  of an alias will be terminated, and execution of a batch file will be 
  9273.  suspended while you are asked whether to cancel the batch job.  A batch file 
  9274.  can handle Ctrl-C and Ctrl-Break itself with the ON BREAK  command. 
  9275.  
  9276.  
  9277. ΓòÉΓòÉΓòÉ 3.3.59. POPD - Restore previous directory ΓòÉΓòÉΓòÉ
  9278.  
  9279.  Purpose:    Return to the disk drive and directory at the top of the directory 
  9280.              stack. 
  9281.  
  9282.  Format:     POPD [*] 
  9283.  
  9284.  See also:  DIRS , PUSHD and Directory Navigation. 
  9285.  
  9286.  Usage: 
  9287.  
  9288.  Each time you use the PUSHD command, it saves the current disk drive and 
  9289.  directory on the internal directory stack.  POPD restores the last drive and 
  9290.  directory that was saved with PUSHD and removes that entry from the stack. You 
  9291.  can use these commands together to change directories, perform some work, and 
  9292.  return to the starting drive and directory. 
  9293.  
  9294.  Directory changes made with POPD are recorded in the directory history list 
  9295.  and can be displayed in the directory history window.  Read the section on 
  9296.  Directory Navigation for complete details on this and other directory 
  9297.  navigation features. 
  9298.  
  9299.  This example saves and changes the current disk drive and directory with 
  9300.  PUSHD, and then restores it.  The current directory is shown in the prompt: 
  9301.  
  9302.           [c:\] pushd d:\database\test
  9303.           [d:\database\test] pushd c:\wordp\memos
  9304.           [c:\wordp\memos] pushd a:\123
  9305.           [a:\123] popd
  9306.           [c:\wordp\memos] popd
  9307.           [d:\database\test] popd
  9308.           [c:\]
  9309.  
  9310.  You can use the DIRS command to see the complete list of saved drives and 
  9311.  directories (the directory stack). 
  9312.  
  9313.  The POPD command followed by an asterisk [*] clears the directory stack 
  9314.  without changing the current drive and directory. 
  9315.  
  9316.  If the directory on the top of the stack is not on the current drive, POPD 
  9317.  will switch to the drive and directory on the top of the stack without 
  9318.  changing the default directory on the current drive. 
  9319.  
  9320.  
  9321. ΓòÉΓòÉΓòÉ 3.3.60. PROMPT - Change command-line prompt ΓòÉΓòÉΓòÉ
  9322.  
  9323.  Purpose:    Change the command-line prompt. 
  9324.  
  9325.  Format:     PROMPT [text ] 
  9326.  
  9327.              text :  Text to be used as the new command-line prompt. 
  9328.  
  9329.  Usage: 
  9330.  
  9331.  You can change and customize the command-line prompt at any time. The prompt 
  9332.  can include normal text, and system information such as the current drive and 
  9333.  directory, the time and date, and the amount of memory available. You can 
  9334.  create an informal "Hello, Bob!" prompt or an official-looking prompt full of 
  9335.  impressive information. 
  9336.  
  9337.  The prompt text can contain special commands in the form $?, where ? is one of 
  9338.  the characters listed below: 
  9339.  
  9340.         b     The vertical bar character [|]. 
  9341.         c     The open parenthesis [(]. 
  9342.         d     Current date, in the format:  Fri  12-12- 97 (the month, day, and 
  9343.               year are formatted according to your current country settings). 
  9344.         D     Current date, in the format:  Fri  Dec 12, 1997. 
  9345.         e     The ASCII ESC character (decimal 27). 
  9346.         f     The close parenthesis [)]. 
  9347.         g     The > character. 
  9348.         h     Backspace over the previous character. 
  9349.         l     The < character. 
  9350.         m     Time in hours and minutes using 24-hour format. 
  9351.         M     Time in hours and minutes using the default country format. 
  9352.         n     Current drive letter. 
  9353.         p     Current directory on drive (lower case): (including drive 
  9354.               letter), in lower case. 
  9355.         P     Current directory on drive (upper case on drives which do not 
  9356.               support long file names, directory names shown in mixed case as 
  9357.               stored on HPFS drives).: (including drive letter), in upper case. 
  9358.         q     The = character. 
  9359.         r     The numeric exit code of the last external command. 
  9360.         s     The space character. 
  9361.         t     Current 24-hour time, in the format hh:mm:ss. 
  9362.         T     Current 12-hour time, in the format hh:mm:ss[a|p]. 
  9363.         v     Operating system version number, in the format 3.10. 
  9364.         xd:   Current directory on drive d:, in lower case, including the drive 
  9365.               letter. (Uses the actual case of the directory name as stored on 
  9366.               the disk for HPFS drives). 
  9367.         Xd:   Current directory on drive d:, in upper case, including the drive 
  9368.               letter. 
  9369.         z     Current shell nesting level.  The first copy of Take Command is 
  9370.               shell 0, and each subsequent copy increments the level by 1. 
  9371.         +     Display one + character for each directory on the PUSHD directory 
  9372.               stack. 
  9373.         $     The $ character. 
  9374.         _     CR/LF (go to beginning of a new line). 
  9375.  
  9376.  For example, to set the prompt to the current date and time, with a ">" at the 
  9377.  end: 
  9378.  
  9379.           [c:\] prompt $d $t $g
  9380.           Fri  Jun 6, 1997 10:29:19 >
  9381.  
  9382.  The Take Command prompt can be set in TCSTART, or in any batch file that runs 
  9383.  when Take Command starts.  The Take Command default prompt is [$n](drive name 
  9384.  in square brackets) on floppy drives, and [$p] (current drive and directory in 
  9385.  square brackets) on all other drives. 
  9386.  
  9387.  If you enter PROMPT with no arguments, the prompt will be reset to its default 
  9388.  value.  The PROMPT command sets the environment variable PROMPT, so to view 
  9389.  the current prompt setting use the command: 
  9390.  
  9391.           [c:\] set prompt
  9392.  
  9393.  (If the prompt is not set at all, the PROMPT environment variable will not be 
  9394.  used, in which case the SET command above will give a "Not in environment" 
  9395.  error.) 
  9396.  
  9397.  Along with literal text and special characters, you can include the text of 
  9398.  any environment variable, internal variable, or variable function in a prompt. 
  9399.  For example, if you want to include the size of the largest free memory block 
  9400.  in the command prompt, plus the current drive and directory, you could use 
  9401.  this command: 
  9402.  
  9403.           [c:\] prompt (%%@dosmem[K]K) [$p]
  9404.           (31043K) [c:\data]
  9405.  
  9406.  Notice that the @DOSMEM function is shown with two leading percent signs [%]. 
  9407.  If you used only one percent sign, the @DOSMEM function would be expanded once 
  9408.  when the PROMPT command was executed, instead of every time the prompt is 
  9409.  displayed.  As a result, the amount of memory would never change from the 
  9410.  value it had when you entered the PROMPT command.  You can also use back 
  9411.  quotes to delay expanding the variable function until the prompt is displayed: 
  9412.  
  9413.           [c:\] prompt `(%@dosmem[K]K) [$p]`
  9414.  
  9415.  You can use this feature along with the @EXEC variable function to create a 
  9416.  complex prompt which not only displays information but executes commands.  For 
  9417.  example, to execute an alias which checks battery status each time the prompt 
  9418.  is displayed (enter the alias on one line): 
  9419.  
  9420.           [c:\] alias cbatt `if %_apmlife lt 30 beep 440 4 880 4 440 4 880
  9421.   4`
  9422.           [c:\] prompt `%@exec[@cbatt]$p$g`
  9423.  
  9424.  You can include ANSI escape sequences in the PROMPT text using Take Command's 
  9425.  built-in ANSI support. This example uses ANSI sequences to set a prompt that 
  9426.  displays the shell level, date, time and path in color on the top line of the 
  9427.  screen (enter the command as one line): 
  9428.  
  9429.           [c:\] prompt $e[s$e[1;1f$e[41;1;37m$e[K[$z] $d
  9430.                 Time: $t$h$h$h  Path: $p$e[u$e[0;32m$n$g
  9431.  
  9432.  
  9433. ΓòÉΓòÉΓòÉ 3.3.61. PUSHD - Save current directory ΓòÉΓòÉΓòÉ
  9434.  
  9435.  Purpose:    Save the current disk drive and directory, optionally changing to 
  9436.              a new drive and directory. 
  9437.  
  9438.  Format:     PUSHD [path ] 
  9439.  
  9440.              path :  The name of the new default drive and directory. 
  9441.  
  9442.  See also:  CD, CDD, DIRS, POPD, and Directory Navigation. 
  9443.  
  9444.  Usage: 
  9445.  
  9446.  PUSHD saves the current drive and directory on a "last in, first out" 
  9447.  directory stack.  The POPD command returns to the last drive and directory 
  9448.  that was saved by PUSHD.  You can use these commands together to change 
  9449.  directories, perform some work, and return to the starting drive and 
  9450.  directory.  The DIRS command displays the contents of the directory stack. 
  9451.  
  9452.  To save the current drive and directory, without changing directories, use the 
  9453.  PUSHD command by itself, with no path. 
  9454.  
  9455.  If a path is specified as part of the PUSHD command, the current drive and 
  9456.  directory are saved and PUSHD changes to the specified drive and directory. 
  9457.  If the path includes a drive letter, PUSHD changes to the specified directory 
  9458.  on the new drive without changing the current directory on the original drive. 
  9459.  
  9460.  This example saves the current directory and changes to C:\WORDP\MEMOS, then 
  9461.  returns to the original directory: 
  9462.  
  9463.           [c:\] pushd \wordp\memos
  9464.           [c:\wordp\memos] popd
  9465.           [c:\]
  9466.  
  9467.  When you use PUSHD to change to a directory on an HPFS drive, you must quote 
  9468.  the path name if it contains whitespace or special characters. 
  9469.  
  9470.  PUSHD can also change to a network drive and directory specified with a UNC 
  9471.  name. 
  9472.  
  9473.  If PUSHD cannot change to the directory you have specified it will attempt to 
  9474.  search the CDPATH and the extended directory search database.  You can also 
  9475.  use wildcards in the path to force an extended directory search.  Read the 
  9476.  section on Directory Navigation for complete details on these and other 
  9477.  directory navigation features. 
  9478.  
  9479.  Directory changes made with PUSHD are also recorded in the directory history 
  9480.  list and can be displayed in the directory history window. 
  9481.  
  9482.  The directory stack can hold up to 511 characters, or between 20 and 40 
  9483.  typical entries (depending on the length of the names).  If you exceed this 
  9484.  limit, the oldest entry is removed before adding a new entry. 
  9485.  
  9486.  The /N option available in CD and CDD to disable extended directory searches 
  9487.  is not available in PUSHD.  To disable extended searches when using PUSHD, 
  9488.  save the current directory with PUSHD (without parameters) and then use CDD /N 
  9489.  to change directories, for example: 
  9490.  
  9491.        pushd
  9492.        cdd /n testdir
  9493.  
  9494.  
  9495. ΓòÉΓòÉΓòÉ 3.3.62. QUERYBOX - Popup dialog for input ΓòÉΓòÉΓòÉ
  9496.  
  9497.  Purpose:    Use a dialog box to get an input string from the user and save it 
  9498.              in an environment variable. 
  9499.  
  9500.  Format:     QUERYBOX /E /Ln ["title"] prompt %%varname 
  9501.  
  9502.              title: Text for the title bar of the dialog box. 
  9503.              prompt: Text that will appear inside the dialog box. box. 
  9504.              varname : Variable name where the input will be saved. 
  9505.  
  9506.              /E (dit existing value) 
  9507.              /L (maximum Length) 
  9508.  
  9509.  See also:  INKEY, INPUT, and MSGBOX. 
  9510.  
  9511.  Usage: 
  9512.  
  9513.  QUERYBOX displays a dialog box with a prompt, an optional title, and a string 
  9514.  input field.  Then it waits for your entry, and places any characters you type 
  9515.  into an environment variable.  QUERYBOX is normally used in batch files and 
  9516.  aliases to get string input. 
  9517.  
  9518.  QUERYBOX is similar to INPUT, except that it appears as a popup dialog box. If 
  9519.  you prefer to work within the command line window, see the INKEY and INPUT 
  9520.  commands. 
  9521.  
  9522.  Standard command-line editing keys may be used to edit the input string as it 
  9523.  is entered.  All characters entered up to, but not including, the carriage 
  9524.  return are stored in the variable. 
  9525.  
  9526.  This example prompts for a string and store it in the variable NAME: 
  9527.  
  9528.           querybox "File Name" Enter a name:  %%name
  9529.  
  9530.  If you press Ctrl-C or Ctrl-Break while QUERYBOX is waiting for input, 
  9531.  execution of an alias will be terminated, and execution of a batch file will 
  9532.  be suspended while you are asked whether to cancel the batch job.  A batch 
  9533.  file can handle Ctrl-C and Ctrl-Break itself with ON BREAK. 
  9534.  
  9535.  Options: 
  9536.  
  9537.     /E      (Edit existing value) Allows you to edit an existing value.  If 
  9538.             there is no existing value for varname, QUERYBOX allows you to 
  9539.             enter a new value. 
  9540.  
  9541.     /Ln     (Length) Sets the maximum number of characters which QUERYBOX will 
  9542.             accept to "n". 
  9543.  
  9544.  
  9545. ΓòÉΓòÉΓòÉ 3.3.63. QUIT - Exit batch file ΓòÉΓòÉΓòÉ
  9546.  
  9547.  Purpose:    Terminate the current batch file. 
  9548.  
  9549.  Format:     QUIT [value ] 
  9550.  
  9551.              value :  The numeric exit code to Take Command or to the previous 
  9552.              batch file. 
  9553.  
  9554.  See also:  CANCEL. 
  9555.  
  9556.  Usage: 
  9557.  
  9558.  QUIT provides a simple way to exit a batch file before reaching the end of the 
  9559.  file.  If you QUIT a batch file called from another batch file, you will be 
  9560.  returned to the previous file at the line following the original CALL. 
  9561.  
  9562.  This example batch file fragment checks to see if the user entered "quit" and 
  9563.  exits if true. 
  9564.  
  9565.           input  Enter your choice :  %%option
  9566.           if  "%option" == "quit"  quit
  9567.  
  9568.  QUIT only ends the current batch file.  To end all batch file processing, use 
  9569.  the CANCEL command. 
  9570.  
  9571.  If you specify a value, QUIT will set the ERRORLEVEL or exit code to that 
  9572.  value.  For information on exit codes see the IF command, and the %? variable. 
  9573.  
  9574.  You can also use QUIT to terminate an alias.  If you QUIT an alias while 
  9575.  inside a batch file, QUIT will end both the alias and the batch file and 
  9576.  return you to the command prompt or to the calling batch file. 
  9577.  
  9578.  
  9579. ΓòÉΓòÉΓòÉ 3.3.64. RD - Remove subdirectory ΓòÉΓòÉΓòÉ
  9580.  
  9581.  Purpose:    Remove one or more subdirectories. 
  9582.  
  9583.  Format:     RD path... 
  9584.                 or 
  9585.              RMDIR path... 
  9586.  
  9587.              path :  The name of one or more subdirectories to remove. 
  9588.  
  9589.  See also:  MD. 
  9590.  
  9591.  File Selection: 
  9592.  
  9593.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  9594.  
  9595.  Usage: 
  9596.  
  9597.  RD and RMDIR are synonyms.  You can use either one. 
  9598.  
  9599.  RD removes directories from the directory tree.  For example, to remove the 
  9600.  subdirectory MEMOS from the subdirectory WP, you can use this command: 
  9601.  
  9602.           [c:\] rd \wp\memos
  9603.  
  9604.  Before using RD, you must delete all files and subdirectories (and their 
  9605.  files) in the path you want to remove.  Remember to remove hidden and 
  9606.  read-only files as well as normal files (you can use DEL /Z to delete hidden 
  9607.  and read-only files). 
  9608.  
  9609.  You cannot use wildcards in the path. 
  9610.  
  9611.  When removing a directory on an HPFS drive, you must quote any path which 
  9612.  contains whitespace or special characters. 
  9613.  
  9614.  If RD deletes one or more directories, they will be deleted automatically from 
  9615.  the extended directory search database. 
  9616.  
  9617.  You cannot remove the root directory, the current directory (.), any directory 
  9618.  above the current directory in the directory tree, or any directory in use by 
  9619.  another process. 
  9620.  
  9621.  
  9622. ΓòÉΓòÉΓòÉ 3.3.65. REBOOT - Reboot or shutdown the computer ΓòÉΓòÉΓòÉ
  9623.  
  9624.  Purpose:    Do a system reboot. 
  9625.  
  9626.  Format:     REBOOT [/S /V] 
  9627.  
  9628.              /S(hutdown) 
  9629.              /V(erify) 
  9630.  
  9631.  Usage: 
  9632.  
  9633.  REBOOT will restart your computer.  It normally performs a warm reboot, which 
  9634.  is comparable to pressing Ctrl-Alt-Delete.  The following example prompts you 
  9635.  to verify the reboot, then does a warm boot: 
  9636.  
  9637.           [c:\] reboot /v
  9638.  
  9639.  REBOOT defaults to performing a warm boot, with no prompting. 
  9640.  
  9641.  REBOOT flushes the disk buffers, resets the drives, and waits one second 
  9642.  before rebooting, to allow disk caching programs to finish writing any cached 
  9643.  data.  Take Command issues the proper commands to shut down OS/2 before 
  9644.  rebooting. 
  9645.  
  9646.  Options: 
  9647.  
  9648.     /S      (Shutdown) Shut down the system, but do not reboot.  This option is 
  9649.             equivalent to clicking the "Shutdown" choice on the OS/2 Workplace 
  9650.             Shell popup menu. 
  9651.  
  9652.     /V      (Verify) Prompt for confirmation (Y or N) before rebooting or 
  9653.             taking the action specified by other REBOOT options. 
  9654.  
  9655.  
  9656. ΓòÉΓòÉΓòÉ 3.3.66. REM - Add comment to batch file ΓòÉΓòÉΓòÉ
  9657.  
  9658.  Purpose:    Put a comment in a batch file. 
  9659.  
  9660.  Format:     REM [comment ] 
  9661.  
  9662.              comment :  The text to include in the batch file. 
  9663.  
  9664.  Usage: 
  9665.  
  9666.  The REM command lets you place a remark or comment in a batch file.  Batch 
  9667.  file comments are useful for documenting the purpose of a batch file and the 
  9668.  procedures you have used.  For example: 
  9669.  
  9670.           rem This batch file provides a
  9671.           rem menu-based system for accessing
  9672.           rem word processing utilities.
  9673.           rem
  9674.           rem Clear the screen and get selection
  9675.           cls
  9676.  
  9677.  REM must be followed by a space or tab character and then your comment. 
  9678.  Comment lines can be up to 1,023 characters long.  Take Command will normally 
  9679.  ignore everything on the line after the REM command, including quote 
  9680.  characters, redirection symbols, and other commands (see below for the 
  9681.  exception to this rule). 
  9682.  
  9683.  If ECHO is ON, the comment is displayed.  Otherwise, it is ignored. If ECHO is 
  9684.  ON and you don't want to display the line, preface the REM command with an at 
  9685.  sign [@]. 
  9686.  
  9687.  You can also place a comment in a batch file by starting the comment line with 
  9688.  two colons [::].  In essence this creates a batch file "label" without a valid 
  9689.  label name.  Such comments are processed slightly faster than those entered 
  9690.  with REM, because they do not require the command processor to handle a 
  9691.  command. 
  9692.  
  9693.  When debugging a batch file, you may find it convenient to use REM to 
  9694.  temporarily disable certain commands.  Simply add "REM " at the start of any 
  9695.  command to convert it temporarily to a comment. 
  9696.  
  9697.  You can use REM to create a zero-byte file if you use a redirection symbol 
  9698.  immediately after the REM command.  For example, to create the zero-byte file 
  9699.  C:\FOO: 
  9700.  
  9701.           [c:\] rem>foo
  9702.  
  9703.  (This capability is included for compatibility with traditional command 
  9704.  processors.  A simpler method for creating a zero-byte file with Take Command 
  9705.  is to use >filename as a command, with no actual command before the [>] 
  9706.  redirection character.) 
  9707.  
  9708.  
  9709. ΓòÉΓòÉΓòÉ 3.3.67. REN - Rename files ΓòÉΓòÉΓòÉ
  9710.  
  9711.  Purpose:    Rename files or subdirectories. 
  9712.  
  9713.  Format:     REN [/A:[[-]rhsda] /E /N /P /Q /S /T] old_name... new_name 
  9714.                 or 
  9715.              RENAME [/A:[[-]rhsda] /E /N /P /Q /S /T] old_name... new_name 
  9716.  
  9717.              old_name :  Original name of the file(s) or subdirectory. 
  9718.              new_name :  New name to use, or new path on the same drive. 
  9719.  
  9720.              /A: (Attribute select)          /Q(uiet) 
  9721.              /E (No error messages)          /S(ubdirectory) 
  9722.              /N(othing)                      /T(otal) 
  9723.              /P(rompt) 
  9724.  
  9725.  See also:  COPY and MOVE. 
  9726.  
  9727.  File Selection: 
  9728.  
  9729.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  9730.  
  9731.  Usage: 
  9732.  
  9733.  REN and RENAME are synonyms.  You may use either one. 
  9734.  
  9735.  REN lets you change the name of a file or a subdirectory, or move one or more 
  9736.  files to a new subdirectory on the same drive.  (If you want to move files to 
  9737.  a different drive, use MOVE.) 
  9738.  
  9739.  In its simplest form, you simply give REN the old_name of an existing file or 
  9740.  subdirectory and then a new_name.  The new_name must not already exist -- you 
  9741.  can't give two files the same name (unless they are in different directories). 
  9742.  The first example renames the file MEMO.TXT to MEM.TXT.  The second example 
  9743.  changes the name of the \WORD directory to \WP: 
  9744.  
  9745.           [c:\] rename memo.txt mem.txt
  9746.           [c:\] rename \word \wp
  9747.  
  9748.  If you use REN to rename a directory, the extended directory search database 
  9749.  will be automatically updated to reflect the change. 
  9750.  
  9751.  When you rename files on an HPFS drive, you must quote any file names which 
  9752.  contain whitespace or special characters. 
  9753.  
  9754.  You can also use REN to rename a group of files that you specify with 
  9755.  wildcards, as multiple files, or in an include list.  When you do, the 
  9756.  new_name must use one or more wildcards to show what part of each filename to 
  9757.  change.  Both of the next two examples change the extensions of multiple files 
  9758.  to .SAV: 
  9759.  
  9760.           [c:\] ren config.sys autoexec.bat tcstart.btm *.sav
  9761.           [c:\] ren *.txt *.sav
  9762.  
  9763.  REN can move files to a different subdirectory on the same drive. When it is 
  9764.  used for this purpose, REN requires one or more filenames for the old_name and 
  9765.  a directory name for the new_name: 
  9766.  
  9767.           [c:\] ren memo.txt \wp\memos\
  9768.           [c:\] ren oct.dat nov.dat \data\save\
  9769.  
  9770.  The final backslash in the last two examples is optional.  If you use it, you 
  9771.  force REN to recognize the last argument as the name of a directory, not a 
  9772.  file.  The advantage of this approach is that if you accidentally mistype the 
  9773.  directory name, REN will report an error instead of renaming your files in a 
  9774.  way that you didn't intend. 
  9775.  
  9776.  Finally, REN can move files to a new directory and change their name at the 
  9777.  same time if you specify both a path and file name for new_name. In this 
  9778.  example, the files are renamed with an extension of .SAV as they are moved to 
  9779.  a new directory: 
  9780.  
  9781.           [c:\] ren *.dat \data\save\*.sav
  9782.  
  9783.  Also, you cannot rename a subdirectory to a new location on the directory 
  9784.  tree. 
  9785.  
  9786.  REN does not change a file's attributes.  The new_namefile(s) will have the 
  9787.  same attributes as old_name. 
  9788.  
  9789.  Options: 
  9790.  
  9791.     /A:     (Attribute select) Select only those files that have the specified 
  9792.             attribute(s) set.  Preceding the attribute character with a hyphen 
  9793.             [-] will select files that do not have that attribute set.  The 
  9794.             colon [:] after /A is required.  The attributes are: 
  9795.  
  9796.                          R  Read-only 
  9797.                          H  Hidden 
  9798.                          S  System 
  9799.                          D  Subdirectory 
  9800.                          A  Archive 
  9801.  
  9802.             If no attributes are listed at all (e.g., REN /A: ...), REN will 
  9803.             select all files and subdirectories including hidden and system 
  9804.             files.  If attributes are combined, all the specified attributes 
  9805.             must match for a file to be selected.  For example, /A:RHS will 
  9806.             select only those files with all three attributes set. 
  9807.  
  9808.     /E      (No error messages)  Suppress all non-fatal error messages, such as 
  9809.             "File Not Found."  Fatal error messages, such as "Drive not ready," 
  9810.             will still be displayed.  This option is most useful in batch 
  9811.             files. 
  9812.  
  9813.     /N      (Nothing) Do everything except actually rename the file(s).  This 
  9814.             option is useful for testing what a REN command will actually do. 
  9815.  
  9816.     /P      (Prompt) Prompt the user to confirm each rename operation.  Your 
  9817.             options at the prompt are explained in detail under Page and File 
  9818.             Prompts. 
  9819.  
  9820.     /Q      (Quiet) Don't display filenames  or the number of files renamed. 
  9821.             This option is most often used in batch files.  See also /T. 
  9822.  
  9823.     /S      (Subdirectory) Normally, you can rename a subdirectory only if you 
  9824.             do not use any wildcards in the new_name.  This prevents 
  9825.             subdirectories from being renamed inadvertently when a group of 
  9826.             files is being renamed with wildcards.  /S will let you rename a 
  9827.             subdirectory even when you use wildcards.  /S does not cause REN to 
  9828.             process files in the current directory and all subdirectories as it 
  9829.             does in some other file processing commands.  To rename files 
  9830.             throughout a directory tree, use a GLOBAL REN. 
  9831.  
  9832.     /T      (Total) Don't display filenames as they are renamed, but report the 
  9833.             number of files renamed.  See also /Q. 
  9834.  
  9835.  
  9836. ΓòÉΓòÉΓòÉ 3.3.68. RETURN - Return from GOSUB ΓòÉΓòÉΓòÉ
  9837.  
  9838.  Purpose:    Return from a GOSUB (subroutine) in a batch file. 
  9839.  
  9840.  Format:     RETURN [value] 
  9841.  
  9842.              value :  The exit code from 0 to 255 to return to the command 
  9843.              processor or to the previous batch file. 
  9844.  
  9845.  See also:  GOSUB. 
  9846.  
  9847.  Usage: 
  9848.  
  9849.  Take Command allows subroutines in batch files. 
  9850.  
  9851.  A subroutine begins with a label (a colon followed by one or more words) and 
  9852.  ends with a RETURN command. 
  9853.  
  9854.  The subroutine is invoked with a GOSUB command from another part of the batch 
  9855.  file.  When a RETURN command is encountered the subroutine terminates, and 
  9856.  execution of the batch file continues on the line following the original 
  9857.  GOSUB.  If RETURN is encountered without a GOSUB, Take Command will display a 
  9858.  "Missing GOSUB" error. 
  9859.  
  9860.  The following batch file fragment calls a subroutine which displays the files 
  9861.  in the current directory: 
  9862.  
  9863.           echo Calling a subroutine
  9864.           gosub subr1
  9865.           echo Returned from the subroutine
  9866.           quit
  9867.           :subr1
  9868.           dir /a/w
  9869.           return
  9870.  
  9871.  If you specify a value, RETURN will set the ERRORLEVEL or exit code to that 
  9872.  value.  For information on exit codes see the IF command, and the %? variable. 
  9873.  
  9874.  
  9875. ΓòÉΓòÉΓòÉ 3.3.69. SCREEN - Position cursor ΓòÉΓòÉΓòÉ
  9876.  
  9877.  Purpose:    Position the cursor on the screen and optionally display a 
  9878.              message. 
  9879.  
  9880.  Format:     SCREEN row column [text] 
  9881.  
  9882.              row :  The new row location for the cursor. 
  9883.              column :  The new column location for the cursor. 
  9884.              text :  Optional text to display at the new cursor location. 
  9885.  
  9886.  See also:  ECHO, SCRPUT, TEXT, and VSCRPUT. 
  9887.  
  9888.  Usage: 
  9889.  
  9890.  SCREEN allows you to create attractive screen displays in batch files.  You 
  9891.  use it to specify where a message will appear on the screen.  You can use 
  9892.  SCREEN to create menu and other similar displays, logos, etc. The following 
  9893.  batch file fragment displays a menu: 
  9894.  
  9895.           @echo off
  9896.           cls
  9897.           screen 3 10 Select a number from 1 to 4:
  9898.           screen 6 20  1 - Word Processing
  9899.           ...
  9900.  
  9901.  SCREEN does not change the screen colors.  To display text in specific colors, 
  9902.  use SCRPUT or VSCRPUT.  SCREEN always leaves the cursor at the end of the 
  9903.  displayed text. 
  9904.  
  9905.  The row and column values are zero-based, so on a 25 line by 80 column 
  9906.  display, valid rows are 0 - 24 and valid columns are 0 - 79.  The maximum row 
  9907.  value is determined by the current height of the Take Command window.  The 
  9908.  maximum column value is determined by the virtual screen width.  SCREEN checks 
  9909.  for a valid row and column, and displays a "Usage" error message if either 
  9910.  value is out of range.  You can also specify the row and column as offsets 
  9911.  from the current cursor position.  Begin the value with a plus sign [+] to 
  9912.  move the cursor down or to the right, or with a minus sign [-] to move the 
  9913.  cursor up or to the left. This example prints a string 3 lines above the 
  9914.  current position, in absolute column 10: 
  9915.  
  9916.           screen -3 10 Hello, World!
  9917.  
  9918.  If you specify 999 for the row, SCREEN will center the text vertically on the 
  9919.  display.  If you specify 999 for the column, SCREEN will center the text 
  9920.  horizontally.  This example prints a message at the center of the Take Command 
  9921.  window: 
  9922.  
  9923.           screen 999 999 Hello, World
  9924.  
  9925.  
  9926. ΓòÉΓòÉΓòÉ 3.3.70. SCRPUT - Display text in color ΓòÉΓòÉΓòÉ
  9927.  
  9928.  Purpose:    Position text on the screen and display it in color. 
  9929.  
  9930.  Format:     SCRPUT row col [BRIght] fg ON [BRIght] bg text 
  9931.  
  9932.              row:  Starting row 
  9933.              col:  Starting column 
  9934.              fg:  Foreground text color 
  9935.              bg:  Background text color 
  9936.              text:  The text to display 
  9937.  
  9938.  See also:  ECHO, SCREEN, TEXT, and VSCRPUT. 
  9939.  
  9940.  Usage: 
  9941.  
  9942.  SCRPUT allows you to create attractive screen displays in batch files.  You 
  9943.  use it to specify where a message will appear on the screen and what colors 
  9944.  will be used to display the message text.  You can use SCRPUT to create menu 
  9945.  displays, logos, etc. 
  9946.  
  9947.  SCRPUT works like SCREEN, but allows you to specify the display colors.  See 
  9948.  Colors and Color Names for details about colors.
  9949.  
  9950.  The row and column are zero-based, so on a 25 line by 80 column display, valid 
  9951.  rows are 0 - 24 and valid columns are 0 - 79.  The maximum row is determined 
  9952.  by the current height of the Take Command window; the maximum column is 
  9953.  determined by the current virtual screen width.  SCRPUT displays an error if 
  9954.  either the row or column is out of range. 
  9955.  
  9956.  You can also specify the row and column as offsets from the current cursor 
  9957.  position.  Begin the value with a plus sign [+] to move down the specified 
  9958.  number of rows or to the right the specified number of columns, or with a 
  9959.  minus sign [-] to move up or to the left. 
  9960.  
  9961.  If you specify 999 for the row, SCRPUT will center the text vertically in the 
  9962.  Take Command window.  If you specify 999 for the column, SCRPUT will center 
  9963.  the text horizontally. 
  9964.  
  9965.  SCRPUT does not move the cursor when it displays the text. 
  9966.  
  9967.  The following batch file fragment displays part of a menu, in color: 
  9968.  
  9969.           cls white on blue
  9970.           scrput 6 20 bri red on blu 1 - Word Processing
  9971.           scrput 7 20 bri yel on blu 2 - Spreadsheet
  9972.  
  9973.  
  9974. ΓòÉΓòÉΓòÉ 3.3.71. SELECT - Select files for a command ΓòÉΓòÉΓòÉ
  9975.  
  9976.  Purpose:    Interactively select files for a command. 
  9977.  
  9978.  Format:     SELECT [/A[[:][-]rhsda] /E /H /I"text" /J /L /O[:] [-]adeginrsu 
  9979.              /T:acw /Z] [command ] ... (files ...)... 
  9980.  
  9981.              command :  The command to execute with the selected files. 
  9982.              files :  The files from which to select.  File names may be 
  9983.              enclosed in either parentheses or square brackets.  The difference 
  9984.              is explained below. 
  9985.  
  9986.              /A(ttribute select)             /J(ustify names) 
  9987.              /D(isable color coding)         /L(ower case) 
  9988.              /E (use upper case)             /O(rder) 
  9989.              /H(ide dots)                    /T(ime) 
  9990.              /I (match descriptions)         /Z (use FAT format) 
  9991.  
  9992.  File Selection: 
  9993.  
  9994.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  9995.  Ranges must appear immediately after the SELECT keyword. 
  9996.  
  9997.  Usage: 
  9998.  
  9999.  SELECT allows you to select files for internal and external commands by using 
  10000.  a full-screen "point and shoot" display.  You can have SELECT execute a 
  10001.  command once for each file you select, or have it create a list of files for a 
  10002.  command to work with.  The command can be an internal command, an alias, an 
  10003.  external command, or a batch file. 
  10004.  
  10005.  If you use parentheses around the files, SELECT executes the command once for 
  10006.  each file you have selected.  During each execution, one of the selected files 
  10007.  is passed to the command as an argument.  If you use square brackets around 
  10008.  files, the SELECTed files are combined into a single list, separated by 
  10009.  spaces.  The command is then executed once with the entire list presented as 
  10010.  part of its command-line arguments. 
  10011.  
  10012.  Using the SELECT File List 
  10013.  
  10014.  When you execute the SELECT command, the file list is displayed in a full- 
  10015.  window format which includes a top-line status bar and shows the command to be 
  10016.  executed, the number of files marked, and the number of Kbytes in those files. 
  10017.  
  10018.  SELECT uses the cursor up, cursor down, PgUp, and PgDn keys to scroll through 
  10019.  the file list.  You can also use character matching to find specific files, 
  10020.  just as you can in any popup window.  While the file list is displayed you can 
  10021.  enter any of the following keys to select or unselect files, display files, 
  10022.  execute the command, or exit: 
  10023.  
  10024.         + or space      Select a file, or unselect a marked file. 
  10025.         -               Unselect a marked file. 
  10026.         *               Reverse all of the current marks (except those on 
  10027.                         subdirectories).  If no files have been marked you can 
  10028.                         use * to mark all of the files. 
  10029.         /               Unselect all files. 
  10030.         Enter           Execute the command with the marked files, or with the 
  10031.                         currently highlighted file if no files have been 
  10032.                         marked. 
  10033.         Esc             Skip the files in the current display and go on to the 
  10034.                         next file specification inside the parentheses or 
  10035.                         brackets (if any). 
  10036.         Ctrl-C          Cancel the current SELECT command entirely. 
  10037.          or Ctrl-Break 
  10038.  
  10039.  On FAT drives the file list is shown in standard FAT directory format, with 
  10040.  names at the left an descriptions at the right.  On HPFS drives the format is 
  10041.  similar but more space is allowed for the name, and the description is not 
  10042.  shown.  In this format long names are truncated if they do not fit in the 
  10043.  allowable space.  For a short-name format (including descriptions) on HPFS 
  10044.  drives, use the /Z switch. 
  10045.  
  10046.  When displaying descriptions in the short filename format, SELECT adds a right 
  10047.  arrow [] at the end of the line if the description is too long to fit on the 
  10048.  screen.  This symbol will alert you to the existence of additional description 
  10049.  text.  You can use the left and right arrow keys to scroll the description 
  10050.  area of the screen horizontally and view the additional text. 
  10051.  
  10052.  You can set the default colors used by SELECT on the Commands page of the 
  10053.  configuration notebook, or with the SelectColors directive in the TCMDOS2.INI 
  10054.  file.  If SelectColors is not used, the SELECT display will use the current 
  10055.  default colors. 
  10056.  
  10057.  Creating SELECT Commands 
  10058.  
  10059.  In the simplest form of SELECT, you merely specify the command and then the 
  10060.  list of files from which you will make your selection(s).  For example: 
  10061.  
  10062.           [c:\] select copy (*.com *.exe) a:\
  10063.  
  10064.  will let you select from among the .COM files on the current drive, and will 
  10065.  then invoke the COPY command to copy each file you select to drive A:.  After 
  10066.  the .COM files are done, the operations will be repeated for the .EXE files. 
  10067.  
  10068.  If you want to select from a list of all the .COM and .EXE files mixed 
  10069.  together, create an include list inside the parentheses by inserting a 
  10070.  semicolon: 
  10071.  
  10072.           [c:\] select copy (*.com;*.exe) a:\
  10073.  
  10074.  Finally, if you want the SELECT command to send a single list of files to 
  10075.  COPY, instead of invoking COPY once for each file you select, put the file 
  10076.  names in square brackets instead of parentheses: 
  10077.  
  10078.           [c:\] select copy [*.com;*.exe] a:\
  10079.  
  10080.  If you use brackets, you have to be sure that the resulting command (the word 
  10081.  COPY, the list of files, and the destination drive in this example) does not 
  10082.  exceed the command line length limit of 1,023 characters for all commands. The 
  10083.  current line length is displayed by SELECT while you are marking files to help 
  10084.  you to conform to these limits. 
  10085.  
  10086.  The parentheses or brackets enclosing the file name(s) can appear anywhere 
  10087.  within the command; SELECT assumes that the first set of parentheses or 
  10088.  brackets it finds is the one containing the list of files from which you wish 
  10089.  to make your selection. 
  10090.  
  10091.  When you use SELECT on an HPFS drive, you must quote any file names inside the 
  10092.  parentheses which contain whitespace or special characters.  For example, to 
  10093.  copy selected files from the "Program Files" directory to the E:\SAVE 
  10094.  directory: 
  10095.  
  10096.           [c:\] select copy ("Program Files\*.*") e:\save\
  10097.  
  10098.  File names passed to the command will be quoted automatically if they contain 
  10099.  whitespace or special characters. 
  10100.  
  10101.  The list of files from which you wish to select can be further refined by 
  10102.  using date, time, size, and file exclusion ranges.  The range(s) must be 
  10103.  placed immediately after the word SELECT.  If the command is an internal 
  10104.  command that supports ranges, an independent range can also be used in the 
  10105.  command itself. 
  10106.  
  10107.  You cannot use command grouping to make SELECT execute several commands, 
  10108.  because SELECT will assume that the parentheses are marking the list of files 
  10109.  from which to select, and will display an error message or give incorrect 
  10110.  results if you try to use parentheses for command grouping instead.  (You can 
  10111.  use a SELECT command inside command grouping parentheses, you just can't use 
  10112.  command grouping to specify a group of commands for SELECT to execute.) 
  10113.  
  10114.  Advanced Topics 
  10115.  
  10116.  If you don't specify a command, the selected filename(s) will become the 
  10117.  command.  For example, this command defines an alias called UTILS that selects 
  10118.  from the executable files in the directory C:\UTIL, and then executes them in 
  10119.  the order marked: 
  10120.  
  10121.           [c:\] alias utils select (c:\util\*.com;*.exe;*.btm;*.bat)
  10122.  
  10123.  If you want to use filename completion to enter the filenames inside the 
  10124.  parentheses, type a space after the opening parenthesis.  Otherwise, the 
  10125.  command-line editor will treat the open parenthesis as the first character of 
  10126.  the filename. 
  10127.  
  10128.  With the /I option, you can select files based on their descriptions.  SELECT 
  10129.  will display files if their description matches the text after the /I switch. 
  10130.  The search is not case sensitive.  You can use wildcards and extended 
  10131.  wildcards as part of the text. 
  10132.  
  10133.  When sorting file names and extensions for the SELECT display, Take Command 
  10134.  normally assumes that sequences of digits should be sorted numerically (for 
  10135.  example, the file DRAW2 would come before DRAW03 because 2 is numerically 
  10136.  smaller than 03), rather than strictly alphabetically (where DRAW2 would come 
  10137.  second because "2" comes after "0").  You can defeat this behavior and force a 
  10138.  strict alphabetic sort with the /O:a option. 
  10139.  
  10140.  Options: 
  10141.  
  10142.     /A      (Attribute select) Select only those files that have the specified 
  10143.             attribute(s) set.  Preceding the attribute character with a hyphen 
  10144.             [-] will select files that do not have that attribute set.  The 
  10145.             colon [:] after /A is optional.  The attributes are: 
  10146.  
  10147.                          R  Read-only 
  10148.                          H  Hidden 
  10149.                          S  System 
  10150.                          D  Subdirectory 
  10151.                          A  Archive 
  10152.  
  10153.             If no attributes are listed at all (e.g., SELECT /A ...), SELECT 
  10154.             will display all files and subdirectories including hidden and 
  10155.             system files.  If attributes are combined, all the specified 
  10156.             attributes must match for a file to be included in the listing. 
  10157.             For example, /A:RHS will display only those files with all three 
  10158.             attributes set. 
  10159.  
  10160.     /E      (use upper case)  Display filenames in upper case; also see SETDOS 
  10161.             /U and the UpperCase  directive in the TCDMOS2.INI file. 
  10162.  
  10163.     /H      (Hide dots)  Suppress the display of the "." and ".." directories 
  10164.  
  10165.     /I      (match descriptions)  Display filenames by matching text in their 
  10166.             descriptions.  The text can include wildcards and extended 
  10167.             wildcards.  The search text must be enclosed in quotation marks. 
  10168.             You can select all filenames that have a description with /I"[?]*", 
  10169.             or all filenames that do not have a description with /I"[]". 
  10170.  
  10171.     /J      (Justify names) Justify (align) filename extensions and display 
  10172.             them in the traditional format. 
  10173.  
  10174.     /L      (Lower case)  Display file and directory names in lower case; also 
  10175.             see SETDOS /U and the UpperCase directive in the TCMDOS2.INI file. 
  10176.  
  10177.     /O      (Order)  Set the sort order for the files.  The order can be any 
  10178.             combination of the following options: 
  10179.  
  10180.               -  Reverse the sort order for the next option 
  10181.               a  Sort in ASCII order, not numerically, when there are digits in 
  10182.             the name 
  10183.               d  Sort by date and time (oldest first); for HPFS drives also see 
  10184.             /T 
  10185.               e  Sort by extension 
  10186.               g  Group subdirectories first, then files 
  10187.               i  Sort by file description 
  10188.               n  Sort by filename (this is the default) 
  10189.               r  Reverse the sort order for all options 
  10190.               s  Sort by size 
  10191.               u  Unsorted 
  10192.  
  10193.     /T:acw  (Time display) Specify which of the date and time fields on an HPFS 
  10194.             drive should be displayed and used for sorting: 
  10195.               a  last access date and time 
  10196.               c  creation date and time 
  10197.               w  last write date and time (default) 
  10198.  
  10199.     /Z      Display HPFS filenames in the traditional FAT format, with the 
  10200.             filename at the left and the description at the right.  Long names 
  10201.             will be truncated to 12 characters; if the name is longer than 12 
  10202.             characters, it will be followed by a right arrow []. 
  10203.  
  10204.  
  10205. ΓòÉΓòÉΓòÉ 3.3.72. SET - Set environment variables ΓòÉΓòÉΓòÉ
  10206.  
  10207.  Purpose:    Display, create, modify, or delete environment variables. 
  10208.  
  10209.  Format:     SET [/P /R file...] [name [=][value]] 
  10210.  
  10211.              file :  One or more files containing variable definitions. 
  10212.              name :  The name of the environment variable to define or modify. 
  10213.              value :  The new value for the variable. 
  10214.  
  10215.              /R(ead from file)       /P(ause) 
  10216.  
  10217.  See also:  ESET and UNSET. 
  10218.  
  10219.  Usage: 
  10220.  
  10221.  Every program and command inherits an environment, which is a list of variable 
  10222.  names, each of which is followed by an equal sign and some text. Many programs 
  10223.  use entries in the environment to modify their own actions. Take Command 
  10224.  itself uses several environment variables. 
  10225.  
  10226.  You can also create or modify environment variables with the Environment 
  10227.  dialog.  The dialog allows you to enter the variable name and value into 
  10228.  separate fields in a dialog box, rather than using the SET command.  All of 
  10229.  the information in this section also applies to variables defined via the 
  10230.  dialog, unless otherwise noted. 
  10231.  
  10232.  If you simply type the SET command with no options or arguments, it will 
  10233.  display all the names and values currently stored in the environment. 
  10234.  Typically, you will see an entry called PATH, an entry called CMDLINE, and 
  10235.  whatever other environment variables you and your programs have established: 
  10236.  
  10237.           [c:\] set
  10238.           PATH=C:\;C:\OS2;C:\OS2\SYSTEM;C:\UTIL
  10239.           CMDLINE=C:\TCMD201\TCSTART.CMD
  10240.  
  10241.  To add a variable to the environment, type SET, a space, the variable name, an 
  10242.  equal sign, and the value: 
  10243.  
  10244.           [c:\] set mine=c:\finance\myfiles
  10245.  
  10246.  The variable name is converted to upper case by Take Command.  The text after 
  10247.  the equal sign will be left just as you entered it.  If the variable already 
  10248.  exists, its value will be replaced with the new text that you entered. 
  10249.  
  10250.  Normally you should not put a space on either side of the equal sign.  A space 
  10251.  before the equal sign will become part of the name ; a space after the equal 
  10252.  sign will become part of the value. 
  10253.  
  10254.  If you use SET to create a variable with the same name as one of the Take 
  10255.  Command internal variables, you will disable the internal variable.  If you 
  10256.  later execute a batch file or alias that depends on that internal variable, it 
  10257.  may not operate correctly. 
  10258.  
  10259.  To display the contents of a single variable, type SET plus the variable name: 
  10260.  
  10261.           [c:\] set mine
  10262.  
  10263.  You can edit environment variables with the ESET command.  To remove variables 
  10264.  from the environment, use UNSET, or type SET plus a variable name and an equal 
  10265.  sign: 
  10266.  
  10267.           [c:\] set mine=
  10268.  
  10269.  The variable name is limited to a maximum of 80 characters.  The name and 
  10270.  value together cannot be longer than 1,023 characters. 
  10271.  
  10272.  The size of the environment is set automatically and increased as necessary as 
  10273.  you add variables.  You do not need to specify the size as you do under 4DOS 
  10274.  or some traditional command processors. 
  10275.  
  10276.  Take Command for OS/2 supports the "pseudo-variables" BeginLIBPath and 
  10277.  EndLIBPath introduced in OS/2 Warp.  If you use either of these as a variable 
  10278.  name, Take Command will pass the commands on to the operating system, but the 
  10279.  variables will not appear in the environment.  See your OS/2 documentation for 
  10280.  more information about these variables. 
  10281.  
  10282.  Options: 
  10283.  
  10284.     /P      (Pause) Wait for a key to be pressed after each screen page before 
  10285.             continuing the display.  Your options at the prompt are explained 
  10286.             in detail under Page and File Prompts. 
  10287.  
  10288.     /R      (Read) Read environment variables from a file.  This is much faster 
  10289.             than loading variables from a batch file with multiple SET 
  10290.             commands.  Each entry in the file must fit within the 1,023-byte 
  10291.             command-line length limit for Take Command.  The file is in the 
  10292.             same format as the SET display (i.e., name=value), so SET /R can 
  10293.             accept as input a file generated by redirecting SET output.  For 
  10294.             example, the following commands will save the environment variables 
  10295.             to a file, and then reload them from that file: 
  10296.  
  10297.                                 set > varlist
  10298.                                 set /r varlist
  10299.  
  10300.             You can load variables from multiple files by listing the filenames 
  10301.             individually after the /R.  You can add comments to a variable file 
  10302.             by starting the comment line with a colon [:]. 
  10303.  
  10304.             If you are creating a SET /R file by hand, and need to create an 
  10305.             entry that spans multiple lines in the file, you can do so by 
  10306.             terminating each line, except the last, with an escape character. 
  10307.             However, you cannot use this method to exceed the command- line 
  10308.             length limit. 
  10309.  
  10310.  
  10311. ΓòÉΓòÉΓòÉ 3.3.73. SETDOS - Set the Take Command configuration ΓòÉΓòÉΓòÉ
  10312.  
  10313.  Purpose:    Display or set the Take Command configuration. 
  10314.  
  10315.  Format:     SETDOS [/A? /C? /D? /E? /Fn.n /G?? /I+|- command /M? /N? /P? /R? 
  10316.              S?:? /U? /V? /X[+|-]n /Y?] 
  10317.  
  10318.              /A(NSI)                       /N(o clobber) 
  10319.              /C(ompound)                   /P(arameter character) 
  10320.              /D(escriptions)               /S(hape of cursor) 
  10321.              /E(scape character)           /U(pper case) 
  10322.              /F(@EVAL format)              /V(erbose) 
  10323.              /G  (numeric separators)      /X (expansion) 
  10324.              /I(nternal commands)          /Y (debug batch file) 
  10325.              /M(ode for editing) 
  10326.  
  10327.  Usage: 
  10328.  
  10329.  SETDOS allows you to customize certain aspects of Take Command to suit your 
  10330.  personal tastes or the configuration of your system.  Each of these options is 
  10331.  described below. 
  10332.  
  10333.  You can display the value of all SETDOS options by entering the SETDOS command 
  10334.  with no parameters. 
  10335.  
  10336.  Most of the SETDOS options can be initialized when Take Command executes the 
  10337.  TCMDOS2.INI file, and can also be changed from the configuration notebook. The 
  10338.  name of the corresponding directive and the Configuration Notebook page is 
  10339.  listed in square brackets [ ] with each option below; if none is listed, that 
  10340.  option cannot be set from the TCMDOS2.INI file and / or the dialogs.  You can 
  10341.  also define the SETDOS options in your TCSTART or other startup file (see 
  10342.  Automatic Batch Files), in aliases, or at the command line. 
  10343.  
  10344.  Options: 
  10345.  
  10346.     /A      (ANSI) [ANSI, Display page]  The ANSI option determines whether 
  10347.             Take Command's ANSI support is enabled.  /A1 enables ANSI string 
  10348.             processing in the Take Command window; the default of /A0 disables 
  10349.             ANSI strings. 
  10350.  
  10351.     /C      (Compound character) [CommandSep, Options 1 page]  This option sets 
  10352.             the character used for separating multiple commands on the same 
  10353.             line.  The default is the ampersand [&]. You cannot use any of the 
  10354.             redirection characters (| > <), or the blank, tab, comma, or equal 
  10355.             sign as the command separator.  The command separator is saved by 
  10356.             SETLOCAL and restored by ENDLOCAL.  The following example changes 
  10357.             the separator to a tilde [~]: 
  10358.  
  10359.                                 [c:\] setdos /c~
  10360.  
  10361.             If you want to share batch files or aliases among several 4DOS, 
  10362.             4OS2, 4NT, and Take Command, see the %+ variable, which retrieves 
  10363.             the current command separator, and Special Character Compatibility 
  10364.             for details on using compatible command separators for all the 
  10365.             products you use. 
  10366.  
  10367.     /D      (Descriptions)  [Descriptions and DescriptionName, Options 1 page] 
  10368.             This option controls whether file processing commands like COPY, 
  10369.             DEL, MOVE, and REN process file descriptions along with the files 
  10370.             they belong to.  /D1 turns description processing on, which is the 
  10371.             default.  /D0 turns description processing off. 
  10372.  
  10373.             You can also use /D to set the name of the hidden file in each 
  10374.             directory that contains file descriptions.  To do so, follow /D 
  10375.             with the filename in quotes: 
  10376.  
  10377.                                 [c:\] setdos /d"files.bbs"
  10378.  
  10379.             Use this option with caution because changing the name of the 
  10380.             description file will make it difficult to transfer file 
  10381.             descriptions to another system.  This option is provided for 
  10382.             bulletin board system operators and others who have special needs. 
  10383.  
  10384.     /E      (Escape character) [EscapeChar, Options 1 page]  This option sets 
  10385.             the character used to suppress the normal meaning of the following 
  10386.             character.  Any character following the escape character will be 
  10387.             passed unmodified to the command.  The default escape character is 
  10388.             a caret [^].  You cannot use any of the redirection characters (| > 
  10389.             <) or the blank, tab, comma, or equal sign as the escape character. 
  10390.             The escape character is saved by SETLOCAL and restored by ENDLOCAL. 
  10391.             Certain characters (b, c, e, f, k, n, r, s, and t) have special 
  10392.             meanings when immediately preceded by the escape character. 
  10393.  
  10394.             If you want to share batch files or aliases among 4DOS, 4OS2, 4NT, 
  10395.             and Take command, see the %= variable, which retrieves the current 
  10396.             escape character, and Special Character Compatibility for details 
  10397.             on using compatible escape characters for all the products you use. 
  10398.  
  10399.     /F      (Format for @EVAL)  [EvalMax, EvalMin, Options 2 page]  This option 
  10400.             lets you set default decimal precision for the @EVAL variable 
  10401.             function.  The maximum precision is 16 digits to the left of the 
  10402.             decimal point and up to 8 digits to the right of the decimal point. 
  10403.  
  10404.             The general form of this option is /Fx.y, where the x value sets 
  10405.             the minimum number of digits to the right of the decimal place and 
  10406.             the y value sets the maximum number of digits.  You can use =x,y 
  10407.             instead of =x.y if the comma is your decimal separator.  Both 
  10408.             values can range from 0 to 8; if x is greater than y, it is 
  10409.             ignored.  You can specify either or both values: /F2.5, /F2, and 
  10410.             /F.5 are all valid entries.  See the @EVAL function if you want to 
  10411.             set the precision for a single computation. 
  10412.  
  10413.     /G      (Numeric separators) [DecimalChar, ThousandsChar, Options 1 page] 
  10414.             This option sets the decimal and thousands separator characters. 
  10415.             The format is /Gxy where x is the new decimal separator and y is 
  10416.             the new thousands separator.  Both characters must be included. 
  10417.             The only valid settings are /G., (period is the decimal separator, 
  10418.             comma is the thousands separator); /G,. (the reverse); or /G0 to 
  10419.             remove any custom setting and use the default separators associated 
  10420.             with your current country code (this is the default). 
  10421.  
  10422.             The decimal separator is used for @EVAL, numeric IF and IFF tests, 
  10423.             version numbers, and other similar uses.  The thousands separator 
  10424.             is used for numeric output, and is skipped when performing 
  10425.             calculations in @EVAL. 
  10426.  
  10427.     /I      (Internal) This option allows you to disable or enable internal 
  10428.             commands.  To disable a command, precede the command name with a 
  10429.             minus [-].  To re-enable a command, precede it with a plus [+]. 
  10430.             For example, to disable the internal LIST command to force Take 
  10431.             Command to use an external command: 
  10432.  
  10433.                                 [c:\] setdos /i-list
  10434.  
  10435.  
  10436.     /M      (Mode) [EditMode, Command Line 1 page]  This option controls the 
  10437.             initial line editing mode.  To start in overstrike mode at the 
  10438.             beginning of each command line, use /M0 (the default).  To start in 
  10439.             insert mode, use /M1. 
  10440.  
  10441.     /N      (No clobber) [NoClobber, Options 1 page] This option controls 
  10442.             output redirection).  /N0 means existing files will be overwritten 
  10443.             by output redirection (with >) and that appending (with >>) does 
  10444.             not require the file to exist already.  This is the default.  /N1 
  10445.             means existing files may not be overwritten by output redirection, 
  10446.             and that when appending the output file must exist.  A /N1 setting 
  10447.             can be overridden with the [!] character. 
  10448.  
  10449.     /P      (Parameter character) [ParameterChar, Options 1 page]  This option 
  10450.             sets the character used after a percent sign to specify all or all 
  10451.             remaining command-line arguments in a batch file or alias (e.g., %$ 
  10452.             or %n$). The default is the dollar sign [$].  If you want to share 
  10453.             batch files or aliases among 4DOS, 4OS2, 4NT, and Take Command, see 
  10454.             Special Character Compatibility for details on selecting compatible 
  10455.             parameter characters for all the products you use. 
  10456.  
  10457.     /S      (Shape) [CursorOver, CursorIns, Command Line 1 page]  The SHAPE 
  10458.             option sets the cursor width.  The format is /So:i where o is the 
  10459.             width for overstrike mode, and i is the width for insert mode.  The 
  10460.             width is entered as a percentage of the total character width.  The 
  10461.             default values are 100:15 (a 100% or block cursor for overstrike 
  10462.             mode, and a 15% or thin line cursor for insert mode).  Because of 
  10463.             the way video drivers remap the cursor shape, you may not get a 
  10464.             smooth progression in the cursor size from 0% - 100%.  You can 
  10465.             retrieve the current cursor shape values with the %_CI and %_CO 
  10466.             internal variables. 
  10467.  
  10468.     /U      (Upper) [UpperCase, Options 1 page]  This option controls the 
  10469.             default case (upper or lower) for filenames displayed by internal 
  10470.             commands like COPY and DIR.  /U0 displays file names in lower case 
  10471.             (the default). /U1 displays file names in the traditional upper 
  10472.             case. The /U setting is ignored for filenames on HPFS drives. 
  10473.             Names on such drives are always displayed in the case in which they 
  10474.             are stored. 
  10475.  
  10476.     /V      (Verbose) [BatchEcho, Options 1 page] The VERBOSE option controls 
  10477.             the default for command echoing in batch files.  /V0 disables 
  10478.             echoing of batch file commands unless ECHO is explicitly set ON. 
  10479.             /V1, the default setting, enables echoing of batch file commands 
  10480.             unless ECHO is explicitly set OFF. 
  10481.     /V2     forces echoing of all batch file commands, even if ECHO is set OFF 
  10482.             or the line begins with an "@".  This allows you to turn echoing on 
  10483.             for a batch file without editing the batch file and removing the 
  10484.             ECHO OFF command(s) within it.  /V2 is intended for debugging, and 
  10485.             can be set with SETDOS, but not with the BatchEcho directive in 
  10486.             TCMDOS2.INI.  See also Batch File Debugging and the /Y option 
  10487.             below. 
  10488.  
  10489.     /X[+|-]n(expansion and special characters)  This option enables and 
  10490.             disables alias and environment variable expansion, and controls 
  10491.             whether special characters have their usual meaning or are treated 
  10492.             as text.  It is most often used in batch files to process text 
  10493.             strings which may contain special characters.  See Batch File 
  10494.             String Processing for further details on string processing in batch 
  10495.             files, and Internal and External Commands for details on alias 
  10496.             expansion, variable expansion, and special characters. 
  10497.  
  10498.             The features enabled or disabled by /X are numbered.  All features 
  10499.             are enabled when Take Command starts, and you can re-enable all 
  10500.             features at any time by using /X0.  To disable a particular 
  10501.             feature, use /X-n, where n is the feature number from the list 
  10502.             below. To re-enable the feature, use /X+n.  To enable or disable 
  10503.             multiple individual features, list their numbers in sequence after 
  10504.             the  + or - (e.g., /X-345 to disable features 3, 4, and 5). 
  10505.  
  10506.             The features are: 
  10507.  
  10508.               1  All alias expansion. 
  10509.               2  Nested alias expansion only. 
  10510.               3  All variable expansion (environment variables and batch and 
  10511.             alias parameters) 
  10512.               4  Nested variable expansion only. 
  10513.               5  Multiple commands, conditional commands, and piping (affects 
  10514.             the command separator, ||, &&, |, and &). 
  10515.               6  Redirection (affects <, >, >&, >&>, etc.). 
  10516.               7  Quoting (double back-quotes [`] and double quotes ["]) and 
  10517.             square brackets. 
  10518.               8  Escape character. 
  10519.  
  10520.             If nested alias expansion is disabled, the first alias of a command 
  10521.             is expanded but any aliases it invokes are not expanded.  If nested 
  10522.             variable expansion is disabled, each variable is expanded once, but 
  10523.             variables containing the names of other variables are not expanded 
  10524.             further. 
  10525.  
  10526.             For example, to disable all features except alias expansion while 
  10527.             you are processing a text file containing special characters: 
  10528.  
  10529.                                 setdos /x-35678
  10530.                                 ... [perform text processing here]
  10531.                                 setdos /x0
  10532.  
  10533.     /Y      (debug batch file) /Y1 enables the built-in batch file debugger. 
  10534.             The debuggger allows you to "single-step" through a batch file line 
  10535.             by line, with the file displayed in a popup window as it executes. 
  10536.             For complete details on using the debugger see Batch File Debugging 
  10537.             (this topic also covers additional debugging techniques which do 
  10538.             not require stepping through each line individually). 
  10539.  
  10540.             To start the debugger, insert a SETDOS /Y1 command at the beginning 
  10541.             of the portion of the batch file you want to debug, and a SETDOS 
  10542.             /Y0 command at the end. 
  10543.  
  10544.             You cannot use the batch debugger with REXX files or EXTPROC files. 
  10545.             It can only be used with normal Take Command batch files. 
  10546.  
  10547.             You can also invoke SETDOS /Y1 from the prompt, but because the 
  10548.             debugger is automatically turned off whenever the command processor 
  10549.             returns to the prompt, you must enter the SETDOS command and the 
  10550.             batch file name on the same line, for example: 
  10551.  
  10552.                                 [c:\] setdos /y1 & mybatch.btm
  10553.  
  10554.  
  10555. ΓòÉΓòÉΓòÉ 3.3.74. SETLOCAL - Save the environment ΓòÉΓòÉΓòÉ
  10556.  
  10557.  Purpose:    Save a copy of the current disk drive, directory, environment, 
  10558.              alias list, and special characters. 
  10559.  
  10560.  Format:     SETLOCAL 
  10561.  
  10562.  See also:  ENDLOCAL. 
  10563.  
  10564.  Usage: 
  10565.  
  10566.  SETLOCAL is used in batch files to save the default disk drive and directory, 
  10567.  the environment, the alias list, and the command separator, escape character, 
  10568.  parameter character, decimal separator, and thousands separator.  You can then 
  10569.  change their values and later restore the original values with ENDLOCAL. 
  10570.  
  10571.  For example, this batch file fragment saves everything, removes all aliases so 
  10572.  that user aliases will not affect batch file commands, changes the disk, 
  10573.  changes the command separator, runs a program, and then restores the original 
  10574.  values: 
  10575.  
  10576.           setlocal
  10577.           unalias *
  10578.           cdd d:\test
  10579.           setdos /c~
  10580.           program ~ echo Done!
  10581.           endlocal
  10582.  
  10583.  SETLOCAL and ENDLOCAL are not nestable within a batch file. However, you can 
  10584.  have multiple SETLOCAL / ENDLOCAL pairs within a batch file, and nested batch 
  10585.  files can each have their own SETLOCAL / ENDLOCAL.  You cannot use SETLOCAL in 
  10586.  an alias or at the command line. 
  10587.  
  10588.  An ENDLOCAL is performed automatically at the end of a batch file if you 
  10589.  forget to do so.  If you invoke one batch file from another without using 
  10590.  CALL, the first batch file is terminated, and an automatic ENDLOCAL is 
  10591.  performed; the second batch file inherits the settings as they were prior to 
  10592.  any SETLOCAL. 
  10593.  
  10594.  
  10595. ΓòÉΓòÉΓòÉ 3.3.75. SHIFT - Shift batch parameters ΓòÉΓòÉΓòÉ
  10596.  
  10597.  Purpose:    Allows the use of more than 127 parameters in a batch file. 
  10598.  
  10599.  Format:     SHIFT [n | /n] 
  10600.  
  10601.              n :  Number of positions to shift. 
  10602.  
  10603.  Usage: 
  10604.  
  10605.  SHIFT is provided for compatibility with older batch files, where it was used 
  10606.  to access more than 10 parameters.  Take Command supports 128 parameters (%0 
  10607.  to %127), so you may not need to use SHIFT for batch files running exclusively 
  10608.  under JP Software command processors. 
  10609.  
  10610.  SHIFT moves each of the batch file parameters n positions to the left.  The 
  10611.  default value for n is 1.  SHIFT 1 moves the parameter in %1 to position %0, 
  10612.  the parameter in %2 becomes %1, etc.  You can reverse a SHIFT by giving a 
  10613.  negative value for n(i.e., after SHIFT -1, the former %0 is restored, %0 
  10614.  becomes %1, %1 becomes %2, etc.). 
  10615.  
  10616.  SHIFT also affects the parameters %n$ (command-line tail) and %# (number of 
  10617.  command arguments). 
  10618.  
  10619.  For example, create a batch file called TEST.BAT: 
  10620.  
  10621.           echo %1 %2 %3 %4
  10622.           shift
  10623.           echo %1 %2 %3 %4
  10624.           shift 2
  10625.           echo %1 %2 %3 %4
  10626.           shift -1
  10627.           echo %1 %2 %3 %4
  10628.  
  10629.  Executing TEST.BAT produces the following results: 
  10630.  
  10631.           [c:\] test one two three four five six seven
  10632.  
  10633.           one two three four
  10634.           two three four five
  10635.           four five six seven
  10636.           three four five six
  10637.  
  10638.  If you add a slash before the value n, the value determines the postion at 
  10639.  which to begin the shift.  For example: 
  10640.  
  10641.           shift /2
  10642.  
  10643.  leaves parameters %0 and %1 unchanged, and moves the value of %3 to postion 
  10644.  %2, %4 to %3, etc.  The value after the slash cannot be negative. and shifts 
  10645.  performed with the slash cannot be undone later in the batch file. 
  10646.  
  10647.  
  10648. ΓòÉΓòÉΓòÉ 3.3.76. SHRALIAS - Retain global lists ΓòÉΓòÉΓòÉ
  10649.  
  10650.  Purpose:    Retains global command history, directory history, and alias lists 
  10651.              in memory when the command processor is not running. 
  10652.  
  10653.  Format:     SHRALIAS [/U] 
  10654.  
  10655.              /U(nload) 
  10656.  
  10657.  Usage: 
  10658.  
  10659.  When you close all Take Command sessions, the memory for the global command 
  10660.  history, global directory history, and global alias list is released.  If you 
  10661.  want the lists to be retained in memory even when Take Command is not running, 
  10662.  you need to execute SHRALIAS. 
  10663.  
  10664.  The SHRALIAS command starts and initializes SHRALIAS.EXE, a small program 
  10665.  which remains active and retains global lists when Take Command is not 
  10666.  running.  In order to start the program, SHRALIAS must be able to find 
  10667.  SHRALIAS.EXE either in the same directory as Take Command, or in a directory 
  10668.  in your path.  You cannot run SHRALIAS.EXE directly, it must be run by the 
  10669.  SHRALIAS command. 
  10670.  
  10671.  Once SHRALIAS has been executed, the global lists will be retained in memory 
  10672.  until you use SHRALIAS /U to unload the lists, or until you shut down your 
  10673.  operating system. 
  10674.  
  10675.  SHRALIAS will not work unless you have at least one copy of Take Command 
  10676.  running with global alias, command history, and directory history lists 
  10677.  enabled.  If the required global lists are not found, SHRALIAS will display an 
  10678.  error. 
  10679.  
  10680.  If you start SHRALIAS from a temporary Take Command session which exits after 
  10681.  starting SHRALIAS, the Take Command session may terminate and discard the 
  10682.  shared lists before SHRALIAS can attach to them.  In this case SHRALIAS.EXE 
  10683.  will not be loaded.  If you experience this problem, add a short delay with 
  10684.  the DELAY command after SHRALIAS is loaded and before your session exits. 
  10685.  
  10686.  For more information about global history and alias lists, see the relevant 
  10687.  sections in Command History and Recall, Directory History Window, and the 
  10688.  ALIAS command. 
  10689.  
  10690.  Option: 
  10691.  
  10692.     /U      (Unload)  Shuts down SHRALIAS.EXE.  If SHRALIAS is not loaded 
  10693.             again, the memory used by global command history, directory 
  10694.             history, and alias lists will be released when the last copy of 
  10695.             Take Command exits. 
  10696.  
  10697.  
  10698. ΓòÉΓòÉΓòÉ 3.3.77. START - Start application in new session ΓòÉΓòÉΓòÉ
  10699.  
  10700.  Purpose:    Start a program in another session or window. 
  10701.  
  10702.  Format:     START ["program title"] [/B[G] /C /DOS[=optfile] /F[G] /FS /I 
  10703.              /ICON=iconfile /INV /K /L /LA /LD /LH /MAX /MIN /N /PGM progname 
  10704.              /PM /POS=row,col,width,height /TTY /WAIT /WIN /WIN3[=optfile] 
  10705.              /WIN3S[=optfile]] [command] 
  10706.  
  10707.              program title :  Title to appear on title bar. 
  10708.              optfile :  Option settings file. 
  10709.              iconfile :  Name of icon (.ICO ) file. 
  10710.              progname :  Program name (not the session name). 
  10711.              command :  Command to be executed. 
  10712.  
  10713.              /B[G] (background session)      /LH (local history list) 
  10714.              /C(lose when done)              /MAX(imized) 
  10715.              /DOS (DOS session)              /MIN(imized) 
  10716.              /F[G] (foreground session)      /N(o command processor) 
  10717.              /FS (full screen)               /PGM (program name) 
  10718.              /I(nherit environment)          /PM (PM application) 
  10719.              /ICON (.ICO file)               /POS(ition of window) 
  10720.              /INV(isible)                    /TTY (run in TCMD window) 
  10721.              /K(eep when done)               /WAIT(for session to finish) 
  10722.              /L(ocal lists)                  /WIN (dowed session) 
  10723.              /LA (local aliases)             /WIN3 (Windows enhanced mode) 
  10724.              /LD (local dir history)         /WIN3S (Windows standard mode) 
  10725.  
  10726.  See also:  DETACH. 
  10727.  
  10728.  Usage: 
  10729.  
  10730.  START is used to begin a new OS/2 session, and optionally run a program in 
  10731.  that session.  If you use START with no parameters, it will begin a new Take 
  10732.  Command session.  If you add a command, START will begin a new session or 
  10733.  window and execute that command. 
  10734.  
  10735.  START will return to the Take Command prompt immediately (or continue a batch 
  10736.  file), without waiting for the program to complete, unless you use /WAIT.  The 
  10737.  program title, if it is included, will appear on the title bar, and on the 
  10738.  OS/2 Window List.  The program title must be enclosed in quotation marks and 
  10739.  cannot exceed 60 characters.  If the program title is omitted, the program 
  10740.  name will be used as the title. 
  10741.  
  10742.  START always assumes that the first quoted string on the command line is the 
  10743.  program title; if there is a second quoted string it is assumed to be the 
  10744.  command.  As a result, if the name of the program you are starting is a long 
  10745.  filename containing whitespace (and must therefore be quoted), you cannot 
  10746.  simply place it on the command line.  If you do, as the first quoted string it 
  10747.  will be interpreted as the program title, not the command.  To address this, 
  10748.  use the /PGM switch to indicate explicitly that the quoted string is the 
  10749.  program name, or include a title before the program name.  For example, to 
  10750.  start the program "C:\Program Files\Proc.Exe" you could use either of the 
  10751.  first two commands below, but the third command would not work: 
  10752.  
  10753.           [c:\] start /PGM "C:\Program Files\Proc.Exe"
  10754.           [c:\] start "test" "C:\Program Files\Proc.Exe"
  10755.           [c:\] start "C:\Program Files\Proc.Exe"
  10756.  
  10757.  /MAX, /MIN, and /POS allow you to start a character-mode windowed session in a 
  10758.  maximized window, a minimized window, or a window with a specified position 
  10759.  and size.  The default is to let the operating environment choose the position 
  10760.  and size of the window. 
  10761.  
  10762.  /C allows you to close the session when the command is finished (the default 
  10763.  for graphical sessions); /K allows you to keep the session open and go to a 
  10764.  prompt (the default for character mode sessions). 
  10765.  
  10766.  Options: 
  10767.  
  10768.     /BG         (BackGround session) The session is started as a background 
  10769.                 session. /BG may be abbreviated to /B. 
  10770.  
  10771.     /C          (Close) The session or window is closed when the application 
  10772.                 ends. 
  10773.  
  10774.     /DOS[=filename] (DOS session) Start a DOS session. 
  10775.  
  10776.                 If you include the =filename, OS/2 will load DOS settings from 
  10777.                 the specified file.  You can also alter the DOS settings for a 
  10778.                 session with environment variables of the form 
  10779.                 DosSetting.name=value, without using a settings file. 
  10780.  
  10781.                 Starting a session with specific DOS settings is an 
  10782.                 undocumented feature which was implemented within OS/2 with 
  10783.                 little error checking.  It is included in START because it 
  10784.                 substantially eases a complex task, but you must experiment 
  10785.                 carefully to ensure that the settings you select will work 
  10786.                 properly on the systems on which you plan to use them. 
  10787.                 Incorrect settings may be ignored, but they may also hang your 
  10788.                 session or stop the entire system.  Be sure your experiments 
  10789.                 are not conducted while critical tasks are in process. 
  10790.  
  10791.                 Each line in the file must have a name, an equal sign [=], and 
  10792.                 a value.  The names are those shown in OS/2's DOS Settings 
  10793.                 dialog box.  Do not use spaces on either side of the equal 
  10794.                 sign. 
  10795.  
  10796.                 The names in the DOS Settings dialog box will vary depending on 
  10797.                 the device drivers and other settings in your CONFIG.SYS file, 
  10798.                 though many are available on all systems.  You must ensure that 
  10799.                 the names you use are valid for the systems on which you use 
  10800.                 them.  For example, if you replace IBM's COM.SYS and VCOM.SYS 
  10801.                 with different communications drivers, the COM_ settings will 
  10802.                 probably not be valid for the new drivers.  If you have a 
  10803.                 settings file which contains settings defined by a particular 
  10804.                 driver, and use it on a system where the corresponding driver 
  10805.                 is not loaded, the results are undefined. 
  10806.  
  10807.                 The values in your settings file must be numeric for settings 
  10808.                 which show a numeric value under DOS Settings (e.g., 
  10809.                 DOS_FILES=30), and must be text strings for settings shown with 
  10810.                 a string (e.g., DOS_SHELL=C:\4DOS.COM C:\4DOS /P).  Strings 
  10811.                 should be entered without trailing blanks.  For values shown as 
  10812.                 multiple choice on the DOS Settings page you must specify a 
  10813.                 numeric value, typically "0" for Off and "1" for On (e.g., 
  10814.                 DOS_HIGH=1).  Items with choices other than Off and On may use 
  10815.                 different values, or may not work at all; experimentation is 
  10816.                 usually required to find out what works.  Using strings for 
  10817.                 choice items (e.g., DOS_HIGH=ON) will not work, and can hang 
  10818.                 your system.  This is due to the internal operation of OS/2, 
  10819.                 and is not a problem in Take Command. 
  10820.  
  10821.                 A typical DOS settings file might look like this: 
  10822.  
  10823.                                         DOS_FILES=30
  10824.                                         DOS_HIGH=1
  10825.                                         DOS_SHELL=C:\4DOS\4DOS.COM C:\4DOS /P
  10826.                                         MOUSE_EXCLUSIVE_ACCESS=0
  10827.                                         VIDEO_FASTPASTE=1
  10828.  
  10829.                 You can include comments in a settings file by beginning any 
  10830.                 line with a colon [:]. 
  10831.  
  10832.     /FG         (ForeGround session) Start the session as the foreground 
  10833.                 session. /FG may be abbreviated to /F. 
  10834.  
  10835.     /FS         (Full Screen) Start the session as a full-screen session. 
  10836.  
  10837.     /I          (Inherit environment) Inherit the default environment specified 
  10838.                 in CONFIG.SYS, if any, rather than the current environment. 
  10839.  
  10840.     /ICON=filenameUse the specified icon file.  If you don't use /ICON, the 
  10841.                 displayed icon will be the one found or assigned by OS/2. 
  10842.  
  10843.     /INV        (Invisible) Start the session or window as invisible.  No icon 
  10844.                 will appear and the session will only be accessible through the 
  10845.                 Window List. 
  10846.  
  10847.     /K          (Keep session or window at end) Continue the session or window 
  10848.                 after the application program ends.  Use the EXIT command to 
  10849.                 end the session. 
  10850.  
  10851.     /L          (Local lists) Start Take Command with local alias, history, and 
  10852.                 directory history lists.  This option combines the effects of 
  10853.                 /LA, /LD, and /LH (below). 
  10854.  
  10855.     /LA         (Local Alias list) Start Take Command with a local alias list. 
  10856.                 See ALIAS for information on local and global aliases. 
  10857.  
  10858.     /LD         (Local Directory history) Start Take Command with a local 
  10859.                 directory history list.  See Directory History Window for more 
  10860.                 information. 
  10861.  
  10862.     /LH         (Local History list) Start Take Command with a local history 
  10863.                 list. See Command History and Recall for information on local 
  10864.                 and global history lists. 
  10865.  
  10866.     /MAX        (Maximized) Start the session or window maximized. 
  10867.  
  10868.     /MIN        (Minimized) Start the session or window minimized. 
  10869.  
  10870.     /N          (No command processor) Start an OS/2 program directly, without 
  10871.                 a command processor.  The command cannot be an internal command 
  10872.                 or batch file. This is the default for PM applications. 
  10873.  
  10874.     /PGM        (Program name) The string following this option is the program 
  10875.                 name.  Use /PGM to allow START to differentiate between a 
  10876.                 quoted long filename and a quoted title for the session. 
  10877.  
  10878.     /PM         (Presentation Manager) Start a program in the PM session. 
  10879.  
  10880.     /POS        (Position) Start the window at the specified screen position. 
  10881.                 The syntax is /POS=x, y, width, height where the values are 
  10882.                 specified in pixels or pels.  x and y refer to the position of 
  10883.                 the bottom left corner of the window relative to the bottom 
  10884.                 left corner of the screen. 
  10885.  
  10886.     /TTY        (TTY Application) Run a DOS or character-mode OS/2 program 
  10887.                 under Take Command's TTY Application support.  Use this option 
  10888.                 to force an application to run under Take Command's TTY 
  10889.                 application support, even if the program has not been 
  10890.                 specifically enabled as a TTY application.  For complete 
  10891.                 details on TTY applications see your Introduction and 
  10892.                 Installation Guide, and Starting Character-Mode Applications. 
  10893.  
  10894.     /WAIT       Wait for the new session or window to finish before continuing. 
  10895.                 This switch is ignored when starting DOS programs under 
  10896.                 WIN-OS/2, because there is no way for Take Command to determine 
  10897.                 when a DOS program run under WIN-OS/2 has finished. 
  10898.  
  10899.     /WIN        (Windowed) Start the session in a window. 
  10900.  
  10901.     /WIN3[=filename] (Windows enhanced mode) Run the program in an 
  10902.                 enhanced-mode Windows 3.x session.  The session will run 
  10903.                 seamless (on the OS/2 desktop).  (To start a Windows 
  10904.                 application in full-screen mode, use /FS rather than /WIN3.) 
  10905.                 You can include an equal sign and the name of an options file 
  10906.                 to set options for the specific session and application (see 
  10907.                 /DOS= above for details).  The setting names in the file should 
  10908.                 be taken from those shown in OS/2's WIN-OS/2 Settings dialog 
  10909.                 box. 
  10910.  
  10911.     /WIN3S[=filename] (Windows standard mode) Equivalent to /WIN3, but runs the 
  10912.                 program in standard mode rather than enhanced mode. 
  10913.  
  10914.  
  10915. ΓòÉΓòÉΓòÉ 3.3.78. SWITCH - Select commands to execute ΓòÉΓòÉΓòÉ
  10916.  
  10917.  Purpose:    Select commands to execute based on a value. 
  10918.  
  10919.  Format:     SWITCH expression 
  10920.              CASE value1 [.OR. value2] ... 
  10921.                commands 
  10922.              CASE value3 
  10923.                commands 
  10924.              [DEFAULT 
  10925.                commands] 
  10926.              ENDSWITCH 
  10927.  
  10928.              expression :  An environment variable, internal variable, variable 
  10929.              function, text string, or a combination of these elements, that is 
  10930.              used to select a group of commands. 
  10931.              value1, value2, etc. :  A value to test or multiple values 
  10932.              connected with .OR. 
  10933.              commands :  One or more commands to execute if the expression 
  10934.              matches the value.  If you use multiple commands, they must be 
  10935.              separated by command separators or placed on separate lines of a 
  10936.              batch file. 
  10937.  
  10938.  See also:  IF and IFF 
  10939.  
  10940.  Usage: 
  10941.  
  10942.  SWITCH can only be used in batch files.  It allows you to select a command or 
  10943.  group of commands to execute based on the possible values of a variable or a 
  10944.  combination of variables and text. 
  10945.  
  10946.  The SWITCH command is always followed by an expression created from 
  10947.  environment variables, internal variables, variable functions, and text 
  10948.  strings, and then by a sequence of CASE statements matching the possible 
  10949.  values of that expression.  If one of the values in a CASE statement matches 
  10950.  the expression, the commands following that CASE statement are executed, and 
  10951.  all subsequent CASE statements and the commands which follow them are ignored. 
  10952.  If no matches are found, the commands following the optional DEFAULT statement 
  10953.  are executed.  If there are no matches and there is no DEFAULT statement, no 
  10954.  commands are executed by SWITCH. 
  10955.  
  10956.  After all of the commands following the CASE or DEFAULT statement are 
  10957.  executed, the batch file continues with the commands that follow ENDSWITCH. 
  10958.  
  10959.  You must include a command separator or new line after the expression, before 
  10960.  each CASE or DEFAULT statement, before each command, and before ENDSWITCH. 
  10961.  You can link values in a CASE statement only with .OR. (but not with .AND. or 
  10962.  .XOR.). 
  10963.  
  10964.  For example, the following batch file fragment displays one message if the 
  10965.  user presses A, another if user presses B or C, and a third if the user 
  10966.  presses any other key: 
  10967.  
  10968.           inkey Enter a keystroke: %%key
  10969.           switch %key
  10970.           case A
  10971.              echo It's an A
  10972.           case B .or. C
  10973.              echo It's either B or C
  10974.           default
  10975.              echo It's not A, B, or C
  10976.           endswitch
  10977.  
  10978.  In the example above, the value of a single environment variable was used for 
  10979.  the expression.  You will probably find that this is the best method to use in 
  10980.  most situations.  However, you can use other kinds of expressions if 
  10981.  necessary.  The first example below selects a command to execute based on the 
  10982.  length of a variable, and the second bases the action on a quoted text string 
  10983.  stored in an environment variable: 
  10984.  
  10985.           switch %@len[%var1]
  10986.           case 0
  10987.               echo Missing var1
  10988.           case 1
  10989.               echo Single character
  10990.           ...
  10991.           endswitch
  10992.  
  10993.           switch "%string1"
  10994.           case "This is a test"
  10995.               echo Test string
  10996.           case "The quick brown fox"
  10997.               echo It's the fox
  10998.           ...
  10999.           endswitch
  11000.  
  11001.  The SWITCH and ENDSWITCH commands must be on separate lines, and cannot be 
  11002.  placed within a command group, or on the same line as other commands (this is 
  11003.  the reason SWITCH cannot be used in aliases).  However, commands within the 
  11004.  SWITCH block can use command groups or the command separator in the normal 
  11005.  way. 
  11006.  
  11007.  SWITCH commands can be nested. 
  11008.  
  11009.  You can exit from all SWITCH / ENDSWITCH processing by using GOTO to a line 
  11010.  past the last ENDSWITCH. 
  11011.  
  11012.  
  11013. ΓòÉΓòÉΓòÉ 3.3.79. TEE - "Tee" pipe fitting ΓòÉΓòÉΓòÉ
  11014.  
  11015.  Purpose:    Copy standard input to both standard output and a file. 
  11016.  
  11017.  Format:     TEE [/A] file... 
  11018.  
  11019.              file :  One or more files that will receive the "tee- d" output. 
  11020.  
  11021.              /A(ppend) 
  11022.  
  11023.  See also:  Y and the redirection options. 
  11024.  
  11025.  Usage: 
  11026.  
  11027.  TEE is normally used to "split" the output of a program so that you can see it 
  11028.  on the display and also save it in a file.  It can also be used to capture 
  11029.  intermediate output before the data is altered by another program or command. 
  11030.  
  11031.  TEE gets its input from standard input (usually the piped output of another 
  11032.  command or program), and sends out two copies:  one goes to standard output, 
  11033.  the other to the file or files that you specify. TEE is not likely to be 
  11034.  useful with programs which do not use standard output, because these programs 
  11035.  cannot send output through a pipe. 
  11036.  
  11037.  For example, to search the file DOC for any lines containing the string "Take 
  11038.  Command", make a copy of the matching lines in TC.DAT, sort the lines, and 
  11039.  write them to the output file TCS.DAT (enter this on one line): 
  11040.  
  11041.           [c:\] find "Take Command" doc | tee tc.dat |
  11042.   sort > tcs.dat
  11043.  
  11044.  If you are typing at the keyboard to produce the input for TEE, you must enter 
  11045.  a Ctrl-Z to terminate the input. 
  11046.  
  11047.  When using TEE with a pipe under Take Command, the programs on the two ends of 
  11048.  the pipe run simultaneously, not sequentially as in 4DOS. 
  11049.  
  11050.  See Piping for more information on pipes. 
  11051.  
  11052.  Option: 
  11053.  
  11054.     /A      (Append) Append the output to the file(s) rather than overwriting 
  11055.             them. 
  11056.  
  11057.  
  11058. ΓòÉΓòÉΓòÉ 3.3.80. TEXT - Display text in batch file ΓòÉΓòÉΓòÉ
  11059.  
  11060.  Purpose:    Display a block of text in a batch file. 
  11061.  
  11062.  Format:     TEXT 
  11063.                 . 
  11064.                 . 
  11065.                 . 
  11066.              ENDTEXT 
  11067.  
  11068.  See also:  ECHO, SCREEN, SCRPUT, and VSCRPUT. 
  11069.  
  11070.  Usage: 
  11071.  
  11072.  TEXT can only be used in batch files. 
  11073.  
  11074.  The TEXT command is useful for displaying menus or multi-line messages.  TEXT 
  11075.  will display all subsequent lines in the batch file until terminated by 
  11076.  ENDTEXT.  Both TEXT and ENDTEXT must be entered as the only command on the 
  11077.  line. 
  11078.  
  11079.  To redirect the entire block of text, use redirection on the TEXT command 
  11080.  itself, but not on the actual text lines or the ENDTEXT line.  No environment 
  11081.  variable expansion or other processing is performed on the lines between TEXT 
  11082.  and ENDTEXT; they are displayed exactly as they are stored in the batch file. 
  11083.  
  11084.  You can use a CLS or COLOR command to set the screen color before executing 
  11085.  the TEXT command. 
  11086.  
  11087.  The following batch file fragment displays a simple menu: 
  11088.  
  11089.           @echo off & cls
  11090.           screen 2 0
  11091.           text
  11092.           Enter one of the following:
  11093.           1 - Spreadsheet
  11094.           2 - Word Processing
  11095.           3 - Utilities
  11096.           4 - Exit
  11097.           endtext
  11098.           inkey /k"1234" Enter your selection:  %%key
  11099.  
  11100.  
  11101. ΓòÉΓòÉΓòÉ 3.3.81. TIME - Set the system time ΓòÉΓòÉΓòÉ
  11102.  
  11103.  Purpose:    Display or set the current system time. 
  11104.  
  11105.  Format:     TIME [hh [:mm[:ss]]] [AM | PM] 
  11106.  
  11107.              hh :  The hour (0 - 23). 
  11108.              mm :  The minute (0 - 59). 
  11109.              ss :  The second (0 - 59). 
  11110.  
  11111.  See also:  DATE. 
  11112.  
  11113.  Usage: 
  11114.  
  11115.  If you don't enter any parameters, TIME will display the current system time 
  11116.  and prompt you for a new time.  Press Enter if you don't wish to change the 
  11117.  time; otherwise, enter the new time:. 
  11118.  
  11119.           [c:\] time
  11120.           Mon  Dec 22, 1997  9:30:10
  11121.           New time (hh:mm:ss):
  11122.  
  11123.  TIME defaults to 24-hour format, but you can optionally enter the time in 12- 
  11124.  hour format by appending "a", "am", "p", or "pm" to the time you enter. 
  11125.  
  11126.  For example, to enter the time as 9:30 am: 
  11127.  
  11128.           [c:\] time 9:30 am
  11129.  
  11130.  OS/2 adds the system time and date to the directory entry for every file you 
  11131.  create or modify.  If you keep both the time and date accurate, you will have 
  11132.  a record of when you last updated each file. 
  11133.  
  11134.  
  11135. ΓòÉΓòÉΓòÉ 3.3.82. TIMER - Start or stop a stopwatch ΓòÉΓòÉΓòÉ
  11136.  
  11137.  Purpose:    TIMER is a system stopwatch. 
  11138.  
  11139.  Format:     TIMER [ON] [/1 /2 /3 /S] 
  11140.  
  11141.              ON:  Force the stopwatch to restart 
  11142.  
  11143.              /1 (stopwatch #1)           /3 (stopwatch #3) 
  11144.              /2 (stopwatch #2)           /S(plit) 
  11145.  
  11146.  Usage: 
  11147.  
  11148.  The TIMER command turns a system stopwatch on and off.  When you first run 
  11149.  TIMER, the stopwatch starts: 
  11150.  
  11151.           [c:\] timer
  11152.           Timer 1 on:  12:21:46
  11153.  
  11154.  When you run TIMER again, the stopwatch stops and the elapsed time is 
  11155.  displayed: 
  11156.  
  11157.           [c:\] timer
  11158.           Timer 1 off:  12:21:58
  11159.           Elapsed time: 0:00:12.06
  11160.  
  11161.  There are three stopwatches available (1, 2, and 3) so you can time multiple 
  11162.  overlapping events.  By default, TIMER uses stopwatch #1. 
  11163.  
  11164.  TIMER is particularly useful for timing events in batch files.  For example, 
  11165.  to time both an entire batch file, and an intermediate section of the same 
  11166.  file, you could use commands like this: 
  11167.  
  11168.           rem Turn on timer 1
  11169.           timer
  11170.           rem Do some work here
  11171.           rem Turn timer 2 on to time the next section
  11172.           timer /2
  11173.           rem Do some more work
  11174.           echo Intermediate section completed
  11175.           rem Display time taken in intermediate section
  11176.           timer /2
  11177.           rem Do some more work
  11178.           rem Now display the total time
  11179.           timer
  11180.  
  11181.  The smallest interval TIMER can measure depends on the operating system you 
  11182.  are using, your hardware, and the interaction between the two.  However, it 
  11183.  should never be greater than .06 second.  The largest interval is 23 hours, 59 
  11184.  minutes, 59.99 seconds. 
  11185.  
  11186.  Options: 
  11187.  
  11188.     /1      Use timer #1 (the default). 
  11189.     /2      Use timer #2. 
  11190.     /3      Use timer #3. 
  11191.     /S      (Split) Display a split time without stopping the timer. To display 
  11192.             the current elapsed time but leave the timer running: 
  11193.  
  11194.                                 [c:\] timer /s
  11195.                                 Timer 1 elapsed: 0:06:40.63
  11196.  
  11197.     ON:     Start the timer regardless of its previous state (on or off). 
  11198.             Otherwise the TIMER command toggles the timer state (unless /S is 
  11199.             used). 
  11200.  
  11201.  
  11202. ΓòÉΓòÉΓòÉ 3.3.83. TITLE - Set window title ΓòÉΓòÉΓòÉ
  11203.  
  11204.  Purpose:    Change the window title. 
  11205.  
  11206.  Format:     TITLE "title" 
  11207.  
  11208.              title: The new window title. 
  11209.  
  11210.  See also:  ACTIVATE and WINDOW. 
  11211.  
  11212.  Usage: 
  11213.  
  11214.  TITLE changes the text that appears in the caption bar at the top of the Take 
  11215.  Command window.  It is included for compatibility with traditional character- 
  11216.  mode command processors (like CMD.EXE). You can also change the window title 
  11217.  with the WINDOW command or the ACTIVATE command. 
  11218.  
  11219.  To change the title of the current window to "Take Command Test": 
  11220.  
  11221.           [c:\] title "Take Command Test"
  11222.  
  11223.  
  11224. ΓòÉΓòÉΓòÉ 3.3.84. TOUCH - Change date and time stamps ΓòÉΓòÉΓòÉ
  11225.  
  11226.  Purpose:    Change a file's date and time stamps. 
  11227.  
  11228.  Format:     TOUCH [/C /D[acw][mm-dd-yy] /E /F /Q /T[acw][hh:mm]] file... 
  11229.  
  11230.              file :  One or more files whose date and/or time stamps are to be 
  11231.              changed. 
  11232.  
  11233.              /C(reate file)                  /F(orce read-only files) 
  11234.              /D(ate)                         /Q(uiet) 
  11235.              /E (No error messages)          /T(ime) 
  11236.  
  11237.  File Selection: 
  11238.  
  11239.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  11240.  
  11241.  Usage: 
  11242.  
  11243.  TOUCH is used to change the date and / or time of a file.  You can use it to 
  11244.  be sure that particular files are included or excluded from an internal 
  11245.  command, backup program, compiler MAKE utility , or other program that selects 
  11246.  files based on their time and date stamps, or to set a group of files to the 
  11247.  same date and time for consistency. 
  11248.  
  11249.  TOUCH should be used with caution, and in most cases should only be used on 
  11250.  files you create.  Many programs depend on file dates and times to perform 
  11251.  their work properly.  In addition, many software manufacturers use file dates 
  11252.  and times to signify version numbers.  Indiscriminate changes to date and time 
  11253.  stamps can lead to confusion or incorrect behavior of other software. 
  11254.  
  11255.  TOUCH normally works with existing files, and will display an error if the 
  11256.  file you specify does not exist, or has the read-only attribute set.  To 
  11257.  create the file if it does not already exist, use the /C switch.  To force a 
  11258.  date and time change for read-only files, use the /F switch. 
  11259.  
  11260.  TOUCH displays the date, time, and full name of each file whose timestamp is 
  11261.  modified.  To disable this output, use /Q. 
  11262.  
  11263.  If you don't specify a date or a time, TOUCH will default to the current date 
  11264.  and time.  For example, to set the time stamp of all .C files in the current 
  11265.  directory to the current date and time: 
  11266.  
  11267.           [d:\] touch *.c
  11268.            6-12-97 11:13:58  D:\SOURCE\MAIN.C
  11269.            6-12-97 11:13:58  D:\SOURCE\INIT.C
  11270.            ...
  11271.  
  11272.  If you specify a date but not a time, the time will default to the current 
  11273.  time from your system clock.  Similarly, if you specify a time but not a date, 
  11274.  the date will be obtained from the system clock. 
  11275.  
  11276.  On HPFS volumes, TOUCH sets the "modified" or "last write" date and time by 
  11277.  default.  By adding an a, c, or w to the /D or /T switch, you can set the last 
  11278.  access, creation, or last write date and time stamps that are maintained for 
  11279.  each file;  see the Options section below for additional details. 
  11280.  
  11281.  Options: 
  11282.  
  11283.     /C      (Create file)  Create the file (as a zero-byte file) if it does not 
  11284.             already exist.  You cannot use wildcards with /C, but you can 
  11285.             create multiple files by listing them individually on the command 
  11286.             list. 
  11287.  
  11288.     /D      (Date)  Specify the date that will be set for the selected files. 
  11289.             If the date is not specified, TOUCH will use the current date.  For 
  11290.             HPFS files use /Da, /Dc, or /Dw, followed by the date, to specify 
  11291.             the last access, creation, or last write date stamp.  The date must 
  11292.             be entered using the proper format for your current country 
  11293.             settings. 
  11294.  
  11295.     /E      (No error messages)  Suppress all non-fatal error messages, such as 
  11296.             "File not found."  Fatal error messages, such as "Drive not ready," 
  11297.             will still be displayed.  This option is most useful in batch 
  11298.             files. 
  11299.  
  11300.     /F      (Force read-only files)  Remove the read-only attribute from each 
  11301.             file before changing the date and time, and restore it afterwards. 
  11302.             Without /F, attempting to change the date and time on a read-only 
  11303.             file will usually cause an error. 
  11304.  
  11305.     /Q      (Quiet)  Do not display the new date and time and the full name for 
  11306.             each file. 
  11307.  
  11308.     /T      (Time)  Specify the time that will be set for the selected files in 
  11309.             hh:mm format.  If the time is not specified, TOUCH will use the 
  11310.             current time.  For HPFS files, you can use /Ta, /Tc, or /Tw, 
  11311.             followed by the time, to specify the last access, creation, or last 
  11312.             write time stamp. 
  11313.  
  11314.  
  11315. ΓòÉΓòÉΓòÉ 3.3.85. TREE - Display directory tree ΓòÉΓòÉΓòÉ
  11316.  
  11317.  Purpose:    Display a graphical directory tree. 
  11318.  
  11319.  Format:     TREE [/A /B /F /H /P /S /T[:acw]] dir... 
  11320.  
  11321.              dir :  The directory to use as the start of the tree.  If more 
  11322.              than one directory is specified, TREE will display a directory 
  11323.              tree for each. 
  11324.  
  11325.              /A:(SCII)                       /P(ause) 
  11326.              /B(are)                         /S (file size) 
  11327.              /F(iles)                        /T(time and date) 
  11328.              /H(idden directories) 
  11329.  
  11330.  File Selection: 
  11331.  
  11332.  Supports extended wildcards, ranges, multiple directory names, and include 
  11333.  lists. 
  11334.  
  11335.  Usage: 
  11336.  
  11337.  The TREE command displays a graphical representation of the directory tree 
  11338.  using standard or extended ASCII characters.  For example, to display the 
  11339.  directory structure on drive C: 
  11340.  
  11341.           c:\ tree c:\
  11342.  
  11343.  TREE uses the standard line drawing characters in the U.S. English extended 
  11344.  ASCII character set.  If your system is configured for a different country or 
  11345.  language, or if you use a font which does not include these line drawing 
  11346.  characters, the connecting lines in the tree display may not appear correctly 
  11347.  on your screen.  To correct the problem, use /A, or configure Take Command to 
  11348.  use a font, such as System VIO, which contains standard extended ASCII 
  11349.  characters. 
  11350.  
  11351.  You can print the display, save it in a file, or view it with LIST by using 
  11352.  standard redirection symbols.  Be sure to review the /A option before 
  11353.  attempting to print the TREE output.  The options, discussed below, specify 
  11354.  the amount of information included in the display. 
  11355.  
  11356.  Options: 
  11357.  
  11358.     /A      (ASCII)  Display the tree using standard ASCII characters.  You can 
  11359.             use this option if you want to save the directory tree in a file 
  11360.             for further processing or print the tree on a printer which does 
  11361.             not support the graphical symbols that TREE normally uses. 
  11362.  
  11363.     /B      (Bare)  Display the full pathname of each directory, without any of 
  11364.             the line-drawing characters. 
  11365.  
  11366.     /F      (Files)  Display files as well as directories.  If you use this 
  11367.             option, the name of each file is displayed beneath the name of the 
  11368.             directory in which it resides. 
  11369.  
  11370.     /H      (Hidden)  Display hidden as well as normal directories. If you 
  11371.             combine /H and /F, hidden files are also displayed. 
  11372.  
  11373.     /P      (Pause)  Wait for a key to be pressed after each screen page before 
  11374.             continuing the display.  Your options at the prompt are explained 
  11375.             in detail under Page and File Prompts. 
  11376.  
  11377.     /S      (Size)  Display the size of each file.  This option is only useful 
  11378.             when combined with /F. 
  11379.  
  11380.     /T      (Time and date) Display the time and date for each directory.  If 
  11381.             you combine /T and /F, the time and date for each file will also be 
  11382.             displayed.  For HPFS files, the time and date of the last write 
  11383.             will be shown by default.  You can select a specific time and date 
  11384.             stamp by using the following variations of /T: 
  11385.  
  11386.             /T:a         last access date and time (access time is not saved on 
  11387.                          LFN volumes) 
  11388.             /T:c         creation date and time 
  11389.             /T:w         last write date and time (default) 
  11390.  
  11391.  
  11392. ΓòÉΓòÉΓòÉ 3.3.86. TYPE - Display a file ΓòÉΓòÉΓòÉ
  11393.  
  11394.  Purpose:    Display the contents of the specified file(s). 
  11395.  
  11396.  Format:     TYPE [/A:[[-]rhsda] /L /P] file... 
  11397.  
  11398.              file :  The file or list of files that you want to display. 
  11399.  
  11400.              /A: (Attribute select)          /P(ause) 
  11401.              /L(ine numbers) 
  11402.  
  11403.  See also:  LIST. 
  11404.  
  11405.  File Selection: 
  11406.  
  11407.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  11408.  
  11409.  Usage: 
  11410.  
  11411.  The TYPE command displays a file.  It is normally only useful for displaying 
  11412.  ASCII text files.  Executable files (.COM and .EXE ) and many data files may 
  11413.  be unreadable when displayed with TYPE because they include non-alphanumeric 
  11414.  characters. 
  11415.  
  11416.  To display the files MEMO1 and MEMO2: 
  11417.  
  11418.           [c:\] type /p memo1 memo2
  11419.  
  11420.  You can press Ctrl-S to pause TYPE's display and then any key to continue. 
  11421.  
  11422.  To display text from the clipboard use CLIP: as the file name.  CLIP: will not 
  11423.  return any data if the clipboard does not contain text. 
  11424.  
  11425.  You will probably find LIST to be more useful for displaying files on the 
  11426.  screen.  However, the TYPE /L command used with redirection is useful if you 
  11427.  want to add line numbers to a file, for example: 
  11428.  
  11429.           [c:\] type /l myfile > myfile.num
  11430.  
  11431.  Options: 
  11432.  
  11433.     /A:     (Attribute select) Select only those files that have the specified 
  11434.             attribute(s) set.  Preceding the attribute character with a hyphen 
  11435.             [-] will select files that do not have that attribute set.  The 
  11436.             colon [:] after /A is required.  The attributes are: 
  11437.  
  11438.                           R  Read-only 
  11439.                           H  Hidden 
  11440.                           S  System 
  11441.                           D  Subdirectory 
  11442.                           A  Archive 
  11443.  
  11444.             If no attributes are listed at all (e.g., TYPE /A: ...), TYPE will 
  11445.             select all files and subdirectories including hidden and system 
  11446.             files.  If attributes are combined, all the specified attributes 
  11447.             must match for a file to be selected.  For example, /A:RHS will 
  11448.             select only those files with all three attributes set. 
  11449.  
  11450.     /L      (Line numbers) Display a line number preceding each line of text. 
  11451.  
  11452.     /P      (Pause) Prompt after displaying each page.  Your options at the 
  11453.             prompt are explained in detail under Page and File Prompts. 
  11454.  
  11455.  
  11456. ΓòÉΓòÉΓòÉ 3.3.87. UNALIAS - Remove aliases ΓòÉΓòÉΓòÉ
  11457.  
  11458.  Purpose:    Remove aliases from the alias list. 
  11459.  
  11460.  Format:     UNALIAS [/Q /R file...] alias... 
  11461.                 or 
  11462.              UNALIAS * 
  11463.  
  11464.              alias :  One or more aliases to remove from memory. 
  11465.              file :  One or more files to read for alias definitions. 
  11466.  
  11467.              /Q(uiet)                        /R(ead file) 
  11468.  
  11469.  See also:  ALIAS and ESET. 
  11470.  
  11471.  Usage: 
  11472.  
  11473.  Take Command maintains a list of the aliases that you have defined.  The 
  11474.  UNALIAS command will remove aliases from that list.  You can remove one or 
  11475.  more aliases by name, or you can delete the entire alias list by using the 
  11476.  command UNALIAS *.  For example, to remove the alias DDIR: 
  11477.  
  11478.           [c:\] unalias ddir
  11479.  
  11480.  To remove all the aliases: 
  11481.  
  11482.           [c:\] unalias *
  11483.  
  11484.  If you keep aliases in a file that can be loaded with the ALIAS /R command, 
  11485.  you can remove the aliases by using the UNALIAS /R command with the same file 
  11486.  name: 
  11487.  
  11488.           [c:\] unalias /r alias.lst
  11489.  
  11490.  This is much faster than removing each alias individually in a batch file, and 
  11491.  can be more selective than using UNALIAS *. 
  11492.  
  11493.  You can also remove individual aliases with the Alias dialog.  Options: 
  11494.  
  11495.     /Q      (Quiet) Prevents UNALIAS from displaying an error message if one or 
  11496.             more of the aliases does not exist.  This option is most useful in 
  11497.             batch files, for removing a group of aliases when some of the 
  11498.             aliases may not have been defined. 
  11499.  
  11500.     /R      (Read)  Read the list of aliases to remove from a file. The file 
  11501.             format should be the same format as that used by the ALIAS /R 
  11502.             command.  You can use multiple files with one UNALIAS /R command by 
  11503.             placing the names on the command line, separated by spaces: 
  11504.  
  11505.                                 [c:\] unalias /r alias1.lst alias2.lst
  11506.  
  11507.  
  11508. ΓòÉΓòÉΓòÉ 3.3.88. UNSET - Remove environment variables ΓòÉΓòÉΓòÉ
  11509.  
  11510.  Purpose:    Remove variables from the environment. 
  11511.  
  11512.  Format:     UNSET  [/Q /R file...] name... 
  11513.                 or 
  11514.              UNSET * 
  11515.  
  11516.              file :  One or more files containing variable definitions. 
  11517.              name :  One or more variables to remove from the environment. 
  11518.  
  11519.              /Q(uiet)                        /R(ead from file) 
  11520.  
  11521.  See also:  ESET and SET. 
  11522.  
  11523.  Usage: 
  11524.  
  11525.  UNSET removes one or more variables from the environment.  For example, to 
  11526.  remove the environment variable CMDLINE: 
  11527.  
  11528.           [c:\] unset cmdline
  11529.  
  11530.  If you use the command UNSET *, all of the environment variables will be 
  11531.  deleted: 
  11532.  
  11533.           [c:\] unset *
  11534.  
  11535.  You can also remove individual variables from the environment with the 
  11536.  Environment dialog. 
  11537.  
  11538.   UNSET can be used in a batch file, in conjunction with the SETLOCAL and 
  11539.  ENDLOCAL commands, to clear the environment of variables that may cause 
  11540.  problems for applications run from that batch file. 
  11541.  
  11542.  For more information on environment variables, see the SET command and the 
  11543.  general discussion of the environment. 
  11544.  
  11545.  Use caution when removing environment variables, and especially when using 
  11546.  UNSET *.  Many programs will not work properly without certain environment 
  11547.  variables; for example, Take Command uses PATH and CDPATH. 
  11548.  
  11549.  Options: 
  11550.  
  11551.     /Q      (Quiet) Prevents UNSET from displaying an error message if one or 
  11552.             more of the variables does not exist.  This option is most useful 
  11553.             in batch files, for removing a group of variables when some of the 
  11554.             variables may not have been defined. 
  11555.  
  11556.     /R      (Read)  Read environment variables to UNSET from a file. This much 
  11557.             faster than using multiple UNSET commands in a batch file, and can 
  11558.             be more selective than UNSET *.  The file format should be the same 
  11559.             format as that used by the SET /R command. 
  11560.  
  11561.  
  11562. ΓòÉΓòÉΓòÉ 3.3.89. VER - Display version levels ΓòÉΓòÉΓòÉ
  11563.  
  11564.  Purpose:    Display the current command processor and operating system 
  11565.              versions. 
  11566.  
  11567.  Format:     VER [/R] 
  11568.  
  11569.              /R(evision level) 
  11570.  
  11571.  Usage: 
  11572.  
  11573.  Version numbers consist of a one-digit major version number, a period, and a 
  11574.  one- or two-digit minor version number.  VER uses the default decimal 
  11575.  separator defined by the current country information.  The VER command 
  11576.  displays both version numbers: 
  11577.  
  11578.           [c:\] ver
  11579.           Take Command for OS/2 2.03A   OS/2 Version is 4.00
  11580.  
  11581.  Option: 
  11582.  
  11583.     /R      (Revision level) Display the Take Command and OS/2 internal 
  11584.             revision levels, plus your Take Command serial number and 
  11585.             registered name. 
  11586.  
  11587.  
  11588. ΓòÉΓòÉΓòÉ 3.3.90. VERIFY - Disk write verification ΓòÉΓòÉΓòÉ
  11589.  
  11590.  Purpose:    Enable or disable disk write verification or display the 
  11591.              verification state. 
  11592.  
  11593.  Format:     VERIFY [ON | OFF] 
  11594.  
  11595.  Usage: 
  11596.  
  11597.  OS/2 maintains an internal verify flag.  When the flag is on, OS/2 attempts to 
  11598.  verify each disk write by making sure that the data written to the disk can be 
  11599.  read back successfully into the computer.  It does not compare the data in 
  11600.  memory with the data actually placed on disk to fully verify the disk write 
  11601.  process. 
  11602.  
  11603.  If used without any parameters, VERIFY will display the state of the verify 
  11604.  flag: 
  11605.  
  11606.           [c:\] verify
  11607.           VERIFY is OFF
  11608.  
  11609.  VERIFY is off when the system boots up.  Once it is turned on with the VERIFY 
  11610.  ON command, it stays on until you use the VERIFY OFF command or until you 
  11611.  reboot. 
  11612.  
  11613.  Verification will slow your disk write operations slightly (the effect is not 
  11614.  usually noticeable). 
  11615.  
  11616.  
  11617. ΓòÉΓòÉΓòÉ 3.3.91. VOL - Display drive label ΓòÉΓòÉΓòÉ
  11618.  
  11619.  Purpose:    Display disk volume label(s). 
  11620.  
  11621.  Format:     VOL [d :] ... 
  11622.  
  11623.              d:  The drive or drives to search for labels. 
  11624.  
  11625.  Usage: 
  11626.  
  11627.  Each disk may have a volume label, created when the disk is formatted or with 
  11628.  the external LABEL command.  Also, every floppy disk formatted with DOS 
  11629.  version 4.0 or above or with OS/2 has a volume serial number. 
  11630.  
  11631.  The VOL command will display the volume label and, if available, the volume 
  11632.  serial number of a disk volume.  If the disk doesn't have a volume label, VOL 
  11633.  will report that it is "unlabeled."  If you don't specify a drive, VOL 
  11634.  displays information about the current drive: 
  11635.  
  11636.           [c:\] vol
  11637.           Volume in drive C: is MYHARDDISK
  11638.  
  11639.  If available, the volume serial number will appear after the drive label or 
  11640.  name. 
  11641.  
  11642.  To display the disk labels for drives A and B: 
  11643.  
  11644.           [c:\] vol a: b:
  11645.           Volume in drive A: is unlabeled
  11646.           Volume in drive B: is BACKUP_2
  11647.  
  11648.  
  11649. ΓòÉΓòÉΓòÉ 3.3.92. VSCRPUT - Display text in color vertically ΓòÉΓòÉΓòÉ
  11650.  
  11651.  Purpose:    Display text vertically in the specified color. 
  11652.  
  11653.  Format:     VSCRPUT row col [BRIght] fg ON [BRIght] bg text 
  11654.  
  11655.              row :  Starting row. 
  11656.              col :  Starting column. 
  11657.              fg :  Foreground text color. 
  11658.              bg :  Background text color. 
  11659.              text :  The text to display. 
  11660.  
  11661.  See also:  SCRPUT. 
  11662.  
  11663.  Usage: 
  11664.  
  11665.  VSCRPUT writes text vertically on the screen rather than horizontally.  It can 
  11666.  be used for simple graphs and charts generated by batch files. 
  11667.  
  11668.  Like the SCRPUT command, VSCRPUT uses the colors you specify to write the 
  11669.  text.  See Colors and Color Names for details about colors and color names. 
  11670.  
  11671.  The row and column are zero-based, so on a 25 line by 80 column display, valid 
  11672.  rows are 0 - 24 and valid columns are 0 - 79.  The maximum row value is 
  11673.  determined by the current height of the Take Command window; the maximum 
  11674.  column value is determined by the current virtual screen width.  VSCRPUT 
  11675.  displays an error if either the the row or the column is out of range. 
  11676.  
  11677.  You can also specify the row and column as offsets from the current cursor 
  11678.  position.  Begin the value with a plus sign [+] to move down the specified 
  11679.  number of rows or to the right the specified number of columns before 
  11680.  displaying text, or with a minus sign [-] to move up or to the left. 
  11681.  
  11682.  If you specify 999 for the row, VSCRPUT will center the text vertically in the 
  11683.  Take Command window.  If you specify 999 for the column, VSCRPUT will center 
  11684.  the text horizontally. 
  11685.  
  11686.  VSCRPUT does not move the cursor when it displays the text. 
  11687.  
  11688.  The following batch file fragment displays an X and Y axis and labels them: 
  11689.  
  11690.           cls bright white on blue
  11691.           drawhline 20 10 40 1 bright white on blue
  11692.           drawvline 2 10 19 1 bright white on blue
  11693.           scrput 21 20 bright red on blue X axis
  11694.           vscrput 8 9 bright red on blue Y axis
  11695.  
  11696.  
  11697. ΓòÉΓòÉΓòÉ 3.3.93. WINDOW - Change the window state or title ΓòÉΓòÉΓòÉ
  11698.  
  11699.  Purpose:    Minimize or maximize the current window, restore the default 
  11700.              window size, or change the window title. 
  11701.  
  11702.  Format:     WINDOW [MIN | MAX | RESTORE | /POS=row,col,width,height | "title"] 
  11703.  
  11704.              title :  A new title for the window. 
  11705.  
  11706.              /POS(ition) 
  11707.  
  11708.  See also: ACTIVATE and TITLE. 
  11709.  
  11710.  Usage: 
  11711.  
  11712.  The WINDOW command is used to control the appearance and title of the current 
  11713.  window.  WINDOW can only be used to specify one change to the current window 
  11714.  at a time; to perform more than one operation, you must use multiple WINDOW 
  11715.  commands (see examples below). 
  11716.  
  11717.  WINDOW MIN reduces the window to an icon, WINDOW MAX enlarges it to its 
  11718.  maximum size, and WINDOW RESTORE returns the window to its default size and 
  11719.  location on the desktop. 
  11720.  
  11721.  You can use the /POS option to set the location and size of the window on the 
  11722.  desktop.  The row and column values of the /POS option select the window's 
  11723.  origin while the width and height values determine its size. 
  11724.  
  11725.  If you specify a new title, the title text must be enclosed in double quotes. 
  11726.  The quotes will not appear as part of the actual title. 
  11727.  
  11728.  For example, to maximize the current window and change it's title, you must 
  11729.  perform two WINDOW commands: 
  11730.  
  11731.           [c:\] window max
  11732.           [c:\] window "JP Software / Take Command"
  11733.  
  11734.  Option: 
  11735.  
  11736.     /POS    (Position) Set the window screen position and size. The syntax is 
  11737.             /POS=row, col, width, height, where the values are specified in 
  11738.             pixels or pels.  row and col refer to the position of the bottom 
  11739.             left corner of the window relative to the bottom left corner of the 
  11740.             screen. 
  11741.  
  11742.  
  11743. ΓòÉΓòÉΓòÉ 3.3.94. Y - "Y" pipe fitting ΓòÉΓòÉΓòÉ
  11744.  
  11745.  Purpose:    Copy standard input to standard output, and then copy the 
  11746.              specified file(s) to standard output. 
  11747.  
  11748.  Format:     Y file ... 
  11749.  
  11750.              file :  The file or list of files to send to standard output. 
  11751.  
  11752.  See also:  TEE. 
  11753.  
  11754.  Usage: 
  11755.  
  11756.  The Y command copies input from standard input (usually the keyboard) to 
  11757.  standard output (usually the screen).  Once the input ends, the named files 
  11758.  are appended to standard output. 
  11759.  
  11760.  For example, to get text from standard input, append the files MEMO1 and MEMO2 
  11761.  to it, and send the output to MEMOS: 
  11762.  
  11763.           [c:\] y memo1 memo2 > memos
  11764.  
  11765.  The Y command is most useful if you want to add redirected data to the 
  11766.  beginning of a file instead of appending it to the end.  For example, this 
  11767.  command copies the output of DIR, followed by the contents of the file DIREND, 
  11768.  to the file DIRALL: 
  11769.  
  11770.           [c:\] dir | y dirend > dirall
  11771.  
  11772.  If you are typing at the keyboard to produce input text for Y, you must enter 
  11773.  a Ctrl-Z to terminate the input. 
  11774.  
  11775.  When using Y with a pipe you must take into account that the programs on the 
  11776.  two ends of the pipe run simultaneously, not sequentially as they would under 
  11777.  4DOS. 
  11778.  
  11779.  See Piping for more information on pipes. 
  11780.  
  11781.  
  11782. ΓòÉΓòÉΓòÉ 4. Aliases ΓòÉΓòÉΓòÉ
  11783.  
  11784. Much of the power of Take Command comes together in aliases, which give you the 
  11785. ability to create your own commands.  An alias is a name that you select for a 
  11786. command or group of commands.  Simple aliases substitute a new name for an 
  11787. existing command.  More complex aliases can redefine the default settings of 
  11788. internal or external commands, operate as very fast in-memory batch files, and 
  11789. perform commands based on the results of other commands. 
  11790.  
  11791. This section shows you some examples of the power of aliases.  See the ALIAS 
  11792. command for complete details about writing your own aliases.  You can create 
  11793. aliases either from the command line, as described in this section, or with the 
  11794. Aliases dialog which is available from the Utilities menu. 
  11795.  
  11796. The simplest type of alias gives a new name to an existing command.  For 
  11797. example, you could create a command called R (for Root directory) to switch to 
  11798. the root directory this way: 
  11799.  
  11800.         [c:\] alias r = cd \
  11801.  
  11802. After the alias has been defined this way, every time you type the command R, 
  11803. you will actually execute the command CD \. 
  11804.  
  11805. Aliases can also create customized versions of commands.  For example, the DIR 
  11806. command can sort a directory in various ways.  You can create an alias called 
  11807. DE that means "sort the directory by filename extension, and pause after each 
  11808. page while displaying it" like this: 
  11809.  
  11810.         [c:\] alias de = dir /oe /p
  11811.  
  11812. Aliases can be used to execute sequences of commands as well.  The following 
  11813. command creates an alias called MUSIC which saves the current drive and 
  11814. directory, changes to the SOUNDS directory on drive C, runs the program 
  11815. E:\MUSIC\PLAYER.EXE, and, when the program terminates, returns to the original 
  11816. drive and directory (enter this on one line): 
  11817.  
  11818.         [c:\] alias music = `pushd c:\sounds &
  11819. e:\music\player.exe & popd`
  11820.  
  11821. This alias is enclosed in back-quotes because it contains multiple commands. 
  11822. You must use the back-quotes whenever an alias contains multiple commands, 
  11823. environment variables, parameters (see below), redirection, or piping.  See the 
  11824. ALIAS command for full details. 
  11825.  
  11826. When an alias contains multiple commands, the commands are executed one after 
  11827. the other.  However, if any of the commands runs an external OS/2 application 
  11828. (such as the fictitious PLAYER.EXE shown above), you must be sure the alias 
  11829. will wait for the application to finish before continuing with the other 
  11830. commands.  See Waiting for Applications to Finish under Starting Applications 
  11831. for additional details. 
  11832.  
  11833. Aliases can be nested; that is, one alias can invoke another.  For example, the 
  11834. alias above could also be written as: 
  11835.  
  11836.         [c:\] alias play = e:\music\player.exe
  11837.         [c:\] alias music = `pushd c:\sounds & play &
  11838. popd`
  11839.  
  11840. If you enter MUSIC as a command, Take Command will execute the PUSHD command, 
  11841. detect that the next command (PLAY) is another alias, and execute the program 
  11842. E:\MUSIC\PLAYER.EXE, and ╨º when the program exits ╨º return to the first alias, 
  11843. execute the POPD command, and return to the prompt. 
  11844.  
  11845. You can use aliases to change the default options for both internal commands 
  11846. and external commands.  Suppose that you always want the DEL command to prompt 
  11847. before it erases a file: 
  11848.  
  11849.         [c:\] alias del = *del /p
  11850.  
  11851. An asterisk [*] is used in front of the second "del" to show that it is the 
  11852. name of an internal command, not an alias.  See Temporarily Disabling Aliases 
  11853. for more information about this use of the asterisk. 
  11854.  
  11855. You may have a program on your system that has the same name as an internal 
  11856. command.  Normally, if you type the command name, you will start the internal 
  11857. command rather than the program you desire, unless you explicitly add the 
  11858. program's full path on the command line.  For example, if you have a program 
  11859. named DESCRIBE.COM in the C:\UTIL directory, you could run it with the command 
  11860. C:\UTIL\DESCRIBE.EXE.  However, if you simply type DESCRIBE, the internal 
  11861. DESCRIBE command will be invoked instead.  Aliases give you two ways to get 
  11862. around this problem. 
  11863.  
  11864. First, you could define an alias that runs the program in question, but with a 
  11865. different name: 
  11866.  
  11867.         [c:\] alias desc = c:\util\describe.exe
  11868.  
  11869. Another approach is to rename the internal command and use the original name 
  11870. for the external program.  The following example renames the DESCRIBE command 
  11871. as FILEDESC and then uses a second alias to run DESCRIBE.EXE whenever you type 
  11872. DESCRIBE: 
  11873.  
  11874.         [c:\] alias filedesc = *describe
  11875.         [c:\] alias describe = c:\winutil\describe.exe
  11876.  
  11877. You can also assign an alias to a key, so that every time you press the key, 
  11878. the command will be invoked.  You do so by naming the alias with an at sign [@] 
  11879. followed by a key name.  After you enter this next example, you will see a 
  11880. 2-column directory with paging whenever you press Shift-F5, then Enter: 
  11881.  
  11882.         [c:\] alias @Shift-F5 = *dir /2/p
  11883.  
  11884. This alias will put the DIR command on the command line when you press 
  11885. Shift-F5, then wait for you to enter file names or additional switches.  You 
  11886. must press Enter when you are ready to execute the command.  To execute the 
  11887. command immediately, without displaying it on the command line or waiting for 
  11888. you to press Enter, use two at signs at the start of the alias name: 
  11889.  
  11890.         [c:\] alias @@Shift-F5 = *dir /2/p
  11891.  
  11892. The next example clears the Take Command window whenever you press Ctrl- F1: 
  11893.  
  11894.         [c:\] alias @@Ctrl-F1 = cls
  11895.  
  11896. Aliases have many other capabilities as well.  This example creates a simple 
  11897. command-line calculator.  Once you have entered the example, you can type CALC 
  11898. 4*19, for example, and you will see the answer: 
  11899.  
  11900.         [c:\] alias calc = `echo The answer is:  %@eval[%$]`
  11901.  
  11902. Our last example in this section creates an alias called IN.  It will 
  11903. temporarily change directories, run an internal or external command, and then 
  11904. return to the current directory when the command is finished: 
  11905.  
  11906.         [c:\] alias in = `pushd %1 & %2& & popd`
  11907.  
  11908. Now if you type: 
  11909.  
  11910.         [c:\] in c:\sounds play furelise.wav
  11911.  
  11912. you will change to the C:\SOUNDS subdirectory, execute the command PLAY 
  11913. FURELISE.WAV, and then return to the current directory. 
  11914.  
  11915. The above example uses two parameters:  %1 means the first argument on the 
  11916. command line, and %2& means the second and all subsequent arguments. Parameters 
  11917. are explained in detail under the ALIAS command. 
  11918.  
  11919. Your copy of Take Command includes a sample alias file called ALIASES which 
  11920. contains several useful aliases and demonstrates many alias techniques.  Also, 
  11921. see the ALIAS and UNALIAS commands for more information and examples. 
  11922.  
  11923.  
  11924. ΓòÉΓòÉΓòÉ 5. Batch Files ΓòÉΓòÉΓòÉ
  11925.  
  11926. A batch file is a file that contains a list of commands to execute.  Take 
  11927. Command reads and interprets each line as if it had been typed at the keyboard. 
  11928. Like aliases, batch files are handy for automating computing tasks.  Unlike 
  11929. aliases, batch files can be as long as you wish.  Batch files take up separate 
  11930. disk space for each file, and can't usually execute quite as quickly as 
  11931. aliases, since they must be read from the disk. 
  11932.  
  11933. The topics included in this section are: 
  11934.  
  11935.     .BAT, .CMD, and .BTM Files 
  11936.     Echoing in Batch Files 
  11937.     Batch File Parameters 
  11938.     Using Environment Variables 
  11939.     Batch File Commands 
  11940.     Interrupting a Batch File 
  11941.     Automatic Batch Files 
  11942.     Detecting Take Command 
  11943.     Using Aliases in Batch Files 
  11944.     Debugging Batch Files 
  11945.     Batch File String Processing 
  11946.     Batch File Compression 
  11947.     Argument Quoting 
  11948.     Batch File Line Continuation 
  11949.     REXX Support 
  11950.     EXTPROC Support 
  11951.  
  11952. Also see Special Character Compatibility,  Using 4DOS and 4OS2 Batch Files, and 
  11953. The Environment, Internal Variables, and Variable Functions for related 
  11954. information. 
  11955.  
  11956.  
  11957. ΓòÉΓòÉΓòÉ 5.1. .BAT, .CMD, and .BTM Files ΓòÉΓòÉΓòÉ
  11958.  
  11959. A Take Command batch file can run in two different modes.  In the first, 
  11960. traditional mode, each line of the batch file is read and executed 
  11961. individually, and the file is opened and closed to read each line.  In the 
  11962. second mode the batch file is opened once, the entire file is read into memory, 
  11963. and the file is closed.  The second mode can be 5 to 10 times faster, 
  11964. especially if most of the commands in the batch file are internal commands. 
  11965. However, only the first mode can be used for self-modifying batch files. 
  11966.  
  11967. The batch file's extension determines its mode.  Files with a .BAT or .CMD 
  11968. extension are run in the slower, traditional mode.  Files with a .BTM extension 
  11969. are run in the faster, more efficient mode. You can change the execution mode 
  11970. inside a batch file with the LOADBTM command. 
  11971.  
  11972.  
  11973. ΓòÉΓòÉΓòÉ 5.2. Echoing in Batch Files ΓòÉΓòÉΓòÉ
  11974.  
  11975. By default, each line in a batch file is displayed or "echoed" as it is 
  11976. executed.  You can change this behavior, if you want, in several different 
  11977. ways: 
  11978.  
  11979.              Any batch file line that begins with an [@] symbol will not be 
  11980.              displayed. 
  11981.  
  11982.              The display can be turned off and on within a batch file with the 
  11983.              ECHO OFF and ECHO ON commands. 
  11984.  
  11985.              The default setting can be changed with the SETDOS /V command or 
  11986.              the BatchEcho directive in the TCMDOS2.INI file. 
  11987.  
  11988.  For example, the following line turns off echoing inside a batch file.  The 
  11989.  [@] symbol keeps the batch file from displaying the ECHO OFF command: 
  11990.  
  11991.           @echo off
  11992.  
  11993.  Take Command also has a command line echo that is unrelated to the batch file 
  11994.  echo setting.  See ECHO for details about both settings. 
  11995.  
  11996.  
  11997. ΓòÉΓòÉΓòÉ 5.3. Batch File Line Continuation ΓòÉΓòÉΓòÉ
  11998.  
  11999. Take Command will combine multiple lines in the batch file into a single line 
  12000. for processing when you include the escape character as the very last character 
  12001. of each line to be combined (except the last).  The default escape character is 
  12002. a caret [^].  For example: 
  12003.  
  12004.         [c:\] echo The quick brown fox jumped over the lazy^
  12005.         sleeping^
  12006.         dog. > alphabet
  12007.  
  12008. You cannot use this technique to extend a batch file line beyond the normal 
  12009. line length limit of 1,023 characters. 
  12010.  
  12011.  
  12012. ΓòÉΓòÉΓòÉ 5.4. Batch File Parameters ΓòÉΓòÉΓòÉ
  12013.  
  12014. Like aliases and application programs, batch files can examine the command line 
  12015. that is used to invoke them.  The command tail (everything on the command line 
  12016. after the batch file name) is separated into individual parameters (also called 
  12017. arguments or batch variables) by scanning for the spaces, tabs, and commas that 
  12018. separate the parameters.  A batch file can work with the individual parameters 
  12019. or with the command tail as a whole. 
  12020.  
  12021. These parameters are numbered from %1 to %127. %1 refers to the first parameter 
  12022. on the command line, %2 to the second, and so on.  It is up to the batch file 
  12023. to determine the meaning of each parameter.  You can use quotation marks to 
  12024. pass spaces, tabs, commas, and other special characters in a batch file 
  12025. parameter; see Argument Quoting for details. 
  12026.  
  12027. Parameters that are referred to in a batch file, but which are missing on the 
  12028. command line, appear as empty strings inside the batch file.  For example, if 
  12029. you start a batch file and put two parameters on the command line, any 
  12030. reference in the batch file to %3, or any higher-numbered parameter, will be 
  12031. interpreted as an empty string. 
  12032.  
  12033. A batch file can also work with three special parameters: %0 contains the name 
  12034. of the batch file as it was entered on the command line, %# contains the number 
  12035. of command line arguments, and %n$ contains the complete command-line tail 
  12036. starting with argument number n (for example,%3$ means the third parameter and 
  12037. all those after it).  The default value of n is 1, so %$ contains the entire 
  12038. command tail.  The values of these special parameters will change if you use 
  12039. the SHIFT command. 
  12040.  
  12041. For example, if your batch file interprets the first argument as a subdirectory 
  12042. name then the following line would move to the specified directory: 
  12043.  
  12044.         cd %1
  12045.  
  12046. A friendlier batch file would check to make sure the directory exists and take 
  12047. some special action if it doesn't: 
  12048.  
  12049.         iff isdir %1 then
  12050.            cd %1
  12051.         else
  12052.            echo Subdirectory %1 does not exist!
  12053.            quit
  12054.         endiff
  12055.  
  12056. (See the IF and IFF commands.) 
  12057.  
  12058. Batch files can also use environment variables, internal variables, and 
  12059. variable functions. 
  12060.  
  12061.  
  12062. ΓòÉΓòÉΓòÉ 5.5. Using Environment Variables ΓòÉΓòÉΓòÉ
  12063.  
  12064. Batch files can also use environment variables, internal variables, and 
  12065. variable functions.  You can use these variables and functions to determine 
  12066. system status (e.g., the type of CPU in the system), resource levels (e.g., the 
  12067. amount of free disk space), file information (e.g., the date and time a file 
  12068. was last modified), and other information (e.g., the current date and time). 
  12069. You can also perform arithmetic operations (including date and time 
  12070. arithmetic), manipulate strings and substrings, extract parts of a filename, 
  12071. and read and write files. 
  12072.  
  12073. To create temporary variables for use inside a batch file, just use the SET 
  12074. command to store the information you want in an environment variable.  Pick a 
  12075. variable name that isn't likely to be in use by some other program (for 
  12076. example, PATH would be a bad choice), and use the UNSET command to remove these 
  12077. variables from the environment at the end of your batch file.  You can use 
  12078. SETLOCAL and ENDLOCAL to create a "local" environment so that the original 
  12079. environment will be restored when your batch file is finished. 
  12080.  
  12081. Environment variables used in a batch file may contain either numbers or text. 
  12082. It is up to you to keep track of what's in each variable and use it 
  12083. appropriately; if you don't (for example, if you use %@EVAL to add a number to 
  12084. a text string), you'll get an error message. 
  12085.  
  12086.  
  12087. ΓòÉΓòÉΓòÉ 5.6. Batch File Commands ΓòÉΓòÉΓòÉ
  12088.  
  12089. Several commands are particularly suited to batch file processing.  Each 
  12090. command is explained in detail in the Command Reference.  Here is a list of 
  12091. some of the commands you might find most useful: 
  12092.  
  12093.             ACTIVATE activates another window. 
  12094.  
  12095.             BEEP produces a sound of any pitch and duration through the 
  12096.              computer's speaker. 
  12097.  
  12098.             CALL executes one batch file from within another. 
  12099.  
  12100.             CANCEL terminates all batch file processing. 
  12101.  
  12102.             CLS and COLOR set the Take Command display colors. 
  12103.  
  12104.             DO starts a loop.  The loop can be based on a counter, or on a 
  12105.              conditional test like those used in IF and IFF. 
  12106.  
  12107.             DRAWBOX draws a box on the screen. 
  12108.  
  12109.             DRAWHLINE and DRAWVLINE draw horizontal and vertical lines on the 
  12110.              screen. 
  12111.  
  12112.             ECHO and ECHOS print text on the screen (the text can also be 
  12113.              redirected to a file or device).  ECHOERR and ECHOSERR print text 
  12114.              to the standard error device. 
  12115.  
  12116.             GOSUB executes a subroutine inside a batch file.  The RETURN 
  12117.              command terminates the subroutine. 
  12118.  
  12119.             GOTO branches to a different location in the batch file. 
  12120.  
  12121.             FOR executes commands for each file that matches a set of 
  12122.              wildcards, or each entry in a list. 
  12123.  
  12124.             IF and IFF execute commands based on a test of string or numeric 
  12125.              values, program exit codes, or other conditions. 
  12126.  
  12127.             INKEY and INPUT collect keyboard input from the user and store it 
  12128.              in environment variables. 
  12129.  
  12130.             KEYSTACK sends keystrokes to applications. 
  12131.  
  12132.             LOADBTM changes the batch file operating mode. 
  12133.  
  12134.             MSGBOX displays a dialog box with standard buttons like Yes, No, 
  12135.              OK, and Cancel, and returns the user's selection. 
  12136.  
  12137.             ON initializes error handling for Ctrl- C / Ctrl-Break, or for 
  12138.              program and command errors. 
  12139.  
  12140.             PAUSE displays a message and waits for the user to press a key. 
  12141.  
  12142.             QUERYBOX displays a dialog box for text input. 
  12143.  
  12144.             QUIT ends the current batch file and optionally returns an exit 
  12145.              code. 
  12146.  
  12147.             REM places a remark in a batch file. 
  12148.  
  12149.             SCREEN positions the cursor on the screen and optionally prints a 
  12150.              message at the new location. 
  12151.  
  12152.             SCRPUT displays a message in color. 
  12153.  
  12154.             SETLOCAL saves the current disk drive, default directory, 
  12155.              environment, alias list, and special character settings.  ENDLOCAL 
  12156.              restores the settings that were saved. 
  12157.  
  12158.             SHIFT changes the numbering of the batch file parameters. 
  12159.  
  12160.             START starts another session or window. 
  12161.  
  12162.             SWITCH selects a group of statements to execute based on the value 
  12163.              of a variable. 
  12164.  
  12165.             TEXT displays a block of text.  ENDTEXT ends the block. 
  12166.  
  12167.             TIMER starts or reads a stopwatch. 
  12168.  
  12169.             TITLE changes the window title. 
  12170.  
  12171.             VSCRPUT displays a vertical message in color. 
  12172.  
  12173.  These commands, along with the internal variables and variable functions, make 
  12174.  the enhanced batch file language extremely powerful.  Your copy of Take 
  12175.  Command includes a sample batch file, in the file EXAMPLES.BTM, that 
  12176.  demonstrates some of the things you can do with batch files. 
  12177.  
  12178.  
  12179. ΓòÉΓòÉΓòÉ 5.7. Interrupting a Batch File ΓòÉΓòÉΓòÉ
  12180.  
  12181. You can usually interrupt a batch file by pressing Ctrl-C or Ctrl-Break. 
  12182. Whether and when these keystrokes are recognized will depend on whether Take 
  12183. Command or an application program is running, how the application (if any) was 
  12184. written, and whether the ON BREAK command is in use. 
  12185.  
  12186. If Take Command detects a Ctrl-C or Ctrl-Break (and ON BREAK is not in use), it 
  12187. will display a prompt, for example: 
  12188.  
  12189.         Cancel batch job C:\CHARGE.BTM ? (Y/N/A) :
  12190.  
  12191. Enter N to continue, Y to terminate the current batch file and continue with 
  12192. any batch file which called it, or A to end all batch file processing 
  12193. regardless of the batch file nesting level. Answering Y is similar to the QUIT 
  12194. command; answering A is similar to the CANCEL command. 
  12195.  
  12196.  
  12197. ΓòÉΓòÉΓòÉ 5.8. Automatic Batch Files (TCSTART & TCEXIT) ΓòÉΓòÉΓòÉ
  12198.  
  12199. Take Command supports two "automatic" batch files, files that run without your 
  12200. intervention, as long as Take Command can find them. 
  12201.  
  12202. Each time Take Command starts, it looks for an automatic batch file called 
  12203. TCSTART.BTM, TCSTART.CMD or TCSTART.BAT.  If the TCSTART batch file is not in 
  12204. the same directory as Take Command itself, you should use the Startup page of 
  12205. the configuration notebook, or the TCSTARTPath directive in your TCMDOS2.INI 
  12206. file to specify its location.  TCSTART is optional, so Take Command will not 
  12207. display an error message if it cannot find the file. 
  12208.  
  12209. TCSTART is a convenient place to change the color or content of the prompt for 
  12210. each session, LOG the start of a session, or execute other special startup or 
  12211. configuration commands.  It is also one way to set aliases and environment 
  12212. variables. 
  12213.  
  12214. With the exception of some initialization switches, the entire startup command 
  12215. line passed to Take Command is available to TCSTART via batch file parameters 
  12216. (%1, %2, etc.). This can be useful if you want to see the command line passed 
  12217. to Take Command. For example, to pause if any parameters are passed you could 
  12218. include this command in TCSTART: 
  12219.  
  12220.         if "%1" != "" pause Starting Take Command with parameters [%$]
  12221.  
  12222. Whenever a Take Command session ends, it runs a second automatic batch file 
  12223. called TCEXIT.BTM, TCEXIT.CMD or TCEXIT.BAT. This file, if you use it, should 
  12224. be in the same directory as your TCSTART batch file.  Like TCSTART, TCEXIT is 
  12225. optional.  It is not necessary in most circumstances, but it is a convenient 
  12226. place to put commands to save information such as a history list before Take 
  12227. Command ends, or LOG the end of the session. 
  12228.  
  12229. Pipes, Transient Sessions, and TCSTART 
  12230.  
  12231. When you set up the TCSTART file, remember that it is executed every time Take 
  12232. Command starts, including when running a pipe, or a transient copy of Take 
  12233. Command started with the /C startup option. 
  12234.  
  12235. For example, suppose you enter a command line like this, which uses a pipe: 
  12236.  
  12237.         [c:\data] myprog | sort > out.txt
  12238.  
  12239. Normally this command would create the output file C:\DATA\OUT.TXT.  However, 
  12240. if you have a TCSTART file which changes to a different directory, the output 
  12241. file will be written there -- not in C:\DATA. 
  12242.  
  12243. This is because Take Command starts a second command processor session to run 
  12244. the commands on the right hand side of the pipe, and that new copy runs 4START 
  12245. before processing the commands from the pipe.  If 4START changes directories, 
  12246. the command from the pipe will be executed in the new directory. 
  12247.  
  12248. The same problem can occur if you use a transient session started with /C to 
  12249. run an individual command, then exit -- the session will execute in the 
  12250. directory set by TCSTART, not the directory in which it was originally started. 
  12251. For example, suppose you set up a desktop object with a command line like this, 
  12252. which starts a transient session: 
  12253.  
  12254.         Command:            d:\tcmd\tcmd.exe /c list myfile.txt
  12255.         Working Directory:  c:\data
  12256.  
  12257. Normally this command would LIST the file C:\DATA\MYFILE.TXT.  However, if 
  12258. TCSTART changes to a different directory, Take Command will look for MYFILE.TXT 
  12259. there -- not in C:\DATA. 
  12260.  
  12261. Similarly, any changes to environment variables or other settings in TCSTART 
  12262. will affect all copies of Take Command, including those used for pipes and 
  12263. transient sessions. 
  12264.  
  12265. You can work around these potential problems with the IF or IFF command and the 
  12266. internal variables _PIPE and _TRANSIENT.  For example, to skip all TCSTART 
  12267. processing when running in a pipe or transient session, you could use a command 
  12268. like this at the beginning of TCSTART: 
  12269.  
  12270.         if %_pipe != 0 .or. %_transient != 0 quit
  12271.  
  12272.  
  12273. ΓòÉΓòÉΓòÉ 5.9. Detecting Take Command ΓòÉΓòÉΓòÉ
  12274.  
  12275. From a batch file, you can determine if Take Command, 4DOS, 4OS2, or 4NT is 
  12276. loaded by testing for the variable function @EVAL, with a test like this: 
  12277.  
  12278.         if "%@eval[2 + 2]%" == "4" echo TCMD is loaded!
  12279.  
  12280. This test can never succeed in COMMAND.COM or CMD.EXE. Other variable functions 
  12281. could also be used for the same purpose. 
  12282.  
  12283.  
  12284. ΓòÉΓòÉΓòÉ 5.10. Using Aliases in Batch Files ΓòÉΓòÉΓòÉ
  12285.  
  12286. One way to simplify batch file programming is to use aliases to hide 
  12287. unnecessary detail inside a batch file.  For example, suppose you want a batch 
  12288. file to check for certain errors, and display a message and exit if one is 
  12289. encountered.  This example shows one way to do so: 
  12290.  
  12291.         setlocal
  12292.         unalias *
  12293.         alias error `echo. & echo ERROR: %$ & goto dispmenu`
  12294.         alias fatalerror `echo. & echo FATAL ERROR: %$ & quit`
  12295.         alias in `pushd %1 & %2$ & popd`
  12296.         if not exist setup.btm fatalerror Missing setup file!
  12297.         call setup.btm
  12298.         cls
  12299.         :dispmenu
  12300.         text
  12301.  
  12302.  
  12303.                   1. Word Processing
  12304.                   2. Spreadsheet
  12305.                   3. Communications
  12306.                   4. Exit
  12307.         endtext
  12308.         echo.
  12309.         inkey Enter your choice:  %%userchoice
  12310.         switch %userchoice
  12311.         case 1
  12312.            input Enter the file name:  %%fname
  12313.            if not exist fname error File does not exist
  12314.            in d:\letters c:\wp60\wp.exe
  12315.         case 2
  12316.            in d:\finance c:\quattro\q.exe
  12317.         case 3
  12318.            in d:\comm c:\comsw\pcplus.exe
  12319.         case 4
  12320.            goto done
  12321.         default
  12322.           error Invalid choice, try again
  12323.         endswitch
  12324.         goto dispmenu
  12325.         :done
  12326.         endlocal
  12327.  
  12328. The first alias, ERROR, simply displays an error message and jumps to the label 
  12329. DISPMENU to redisplay the menu.  The "%$" in the second ECHO command displays 
  12330. all the text passed to ERROR as the content of the message.  The similar 
  12331. FATALERROR alias displays the message, then exits the batch file. 
  12332.  
  12333. The last alias, IN, expects 2 or more command-line arguments.  It uses the 
  12334. first as a new working directory and changes to that directory with a PUSHD 
  12335. command.  The rest of the command line is interpreted as another command plus 
  12336. possible command line parameters, which the alias executes.  This alias is used 
  12337. here to switch to a directory, run an application, and switch back.  It could 
  12338. also be used from the command line. 
  12339.  
  12340. The following 9 lines print a menu on the screen and then get a keystroke from 
  12341. the user and store the keystroke in an environment variable called userchoice. 
  12342. Then the SWITCH command is used to test the user's keystroke and to decide what 
  12343. action to take. 
  12344.  
  12345. There's another side to aliases in batch files.  If you're going to distribute 
  12346. your batch files to others, you need to remember that they may have aliases 
  12347. defined for the commands you're going to use.  For example, if the user has 
  12348. aliased CD to CDD and you aren't expecting this, your file may not work as you 
  12349. intended.  There are two ways to address this problem. 
  12350.  
  12351. The simplest method is to use SETLOCAL, ENDLOCAL, and UNALIAS to clear out 
  12352. aliases before your batch file starts, and restore them at the end, as we did 
  12353. in the previous example. Remember that SETLOCAL and ENDLOCAL will save and 
  12354. restore not only the aliases but also the environment, the current drive and 
  12355. directory, and various special characters. 
  12356.  
  12357. If this method isn't appropriate or necessary for the batch file you're working 
  12358. on, you can also use an asterisk [*] before the name of any command. The 
  12359. asterisk means the command that follows it should not be interpreted as an 
  12360. alias.  For example the following command redirects a list of file names to the 
  12361. file FILELIST: 
  12362.  
  12363.         dir /b > filelist
  12364.  
  12365. However, if the user has redefined DIR with an alias this command may not do 
  12366. what you want.  To get around this just use: 
  12367.  
  12368.         *dir /b > filelist
  12369.  
  12370. The same can be done for any command in your batch file.  If you use the 
  12371. asterisk, it will disable alias processing, and the rest of the command will be 
  12372. processed normally as an internal command, external command, or batch file. 
  12373. Using an asterisk before a command will work whether or not there is actually 
  12374. an alias defined with the same name as the command.  If there is no alias with 
  12375. that name, the asterisk will be ignored and the command will be processed as if 
  12376. the asterisk wasn't there. 
  12377.  
  12378.  
  12379. ΓòÉΓòÉΓòÉ 5.11. Debugging Batch Files ΓòÉΓòÉΓòÉ
  12380.  
  12381. Take Command includes a built-in batch file debugger, invoked with the SETDOS 
  12382. /Y1 command.  The debuggger allows you to "single-step" through a batch file 
  12383. line by line, with the file displayed in a popup window as it executes.  You 
  12384. can execute or skip the current line, continue execution with the debugger 
  12385. turned off, view the fully-expanded version of the command line, or exit the 
  12386. batch file.  The batch debugger can also pop up a separate window to view or 
  12387. edit current environment variables and aliases, and can pop up the LIST command 
  12388. to display the contents of any file. 
  12389.  
  12390. To start the debugger, insert a SETDOS /Y1 command at the beginning of the 
  12391. portion of the batch file you want to debug, and a SETDOS /Y0 command at the 
  12392. end.  You can also invoke SETDOS /Y1 from the prompt, but because the debugger 
  12393. is automatically turned off whenever Take Command returns to the prompt, you 
  12394. must enter the SETDOS command and the batch file name on the same line, for 
  12395. example: 
  12396.  
  12397.         [c:\] setdos /y1 & mybatch.btm
  12398.  
  12399. If you use the debugger regularly you may want to define a simple alias to 
  12400. invoke it, for example: 
  12401.  
  12402.         [c:\] alias trace `setdos /y1 & %$`
  12403.  
  12404. This alias simply enables the debugger, then runs whatever command is passed to 
  12405. it.  You can use the alias to debug a batch file with a command like this: 
  12406.  
  12407.         [c:\] trace mybatch.btm
  12408.  
  12409. When the debugger is running you can control its behavior with keystrokes. 
  12410. Debugging continues after each keystroke unless otherwise noted: 
  12411.  
  12412.         T(race), Enter, or F8 Execute the current command.  If it calls a 
  12413.             subroutine with GOSUB, or another batch file with CALL, single-step 
  12414.             into the called subroutine or batch file. 
  12415.  
  12416.         S(tep) or F10 Execute the current command, but execute any subroutine 
  12417.             or CALLed batch file without single-stepping. 
  12418.  
  12419.         J(ump) Skip the current command and proceed to the next command. 
  12420.  
  12421.         X (Expand) Display the next command to be executed, after expansion of 
  12422.             aliases and environment variables. 
  12423.  
  12424.         L(ist) Prompt for a file name and then view the file with the LIST 
  12425.             command. 
  12426.  
  12427.         V(ariables) Open a popup window to display the current environment, in 
  12428.             alphabetical order. 
  12429.  
  12430.         A(liases) Open a popup window to display the current aliases, in 
  12431.             alphabetical order. 
  12432.  
  12433.         O(ff) or Esc Turn off the debugger and continue with the remainder of 
  12434.             the batch file. 
  12435.  
  12436.         Q(uit) Quit the debugger and the current batch file, without executing 
  12437.             the remainder of the file. 
  12438.  
  12439.  The debugger highlights each line of the batch file as it is executed.  It 
  12440.  executes the commands on the line one at a time, so when a line contains more 
  12441.  than one command, the highlight will not move as each command is executed.  To 
  12442.  see the individual commands, use the X key to expand each command before it is 
  12443.  executed. 
  12444.  
  12445.  If you use a "prefix" command like EXCEPT, FOR, GLOBAL, or SELECT, the prefix 
  12446.  command is considered one command, and each command it invokes is another. 
  12447.  For example, this command line executes four commands ╨º the FOR and three ECHO 
  12448.  commands: 
  12449.  
  12450.           for %x in (a b c) do echo %x
  12451.  
  12452.  You cannot use the batch debugger with REXX files or EXTPROC files.  It can 
  12453.  only be used with normal Take Command batch files. 
  12454.  
  12455.  The debugger gives you a detailed, step-by-step view of batch file execution, 
  12456.  and will help solve particularly difficult batch file problems.  However, in 
  12457.  some cases you will find it easier to diagnose these problems with techniques 
  12458.  that allow you to review what is happening at specific points in the batch 
  12459.  file without stepping through each line individually. 
  12460.  
  12461.  There are several tricks you can use for this purpose..  Probably the simplest 
  12462.  is to turn ECHO on at the beginning of the file while you're testing it, or 
  12463.  use SETDOS /V2 to force ECHO on even if an ECHO OFF command is used in the 
  12464.  batch file.  This will give you a picture of what is happening as the file is 
  12465.  executed, without stopping at each line.  It will make your output look messy 
  12466.  of course, so just turn it off once things are working.  You can also turn 
  12467.  ECHO on at the beginning of a group of commands you want to "watch", and off 
  12468.  at the end, just by adding ECHO commands at the appropriate spots in your 
  12469.  file. 
  12470.  
  12471.  If an error occurs in a batch file, the error message will display the name of 
  12472.  the file, the number of the line that contained the error, and the error 
  12473.  itself.  For example: 
  12474.  
  12475.           e:\test.bat [3] Invalid parameter "/d"
  12476.  
  12477.  tells you that the file E:\TEST.BAT contains an error on line 3.  The first 
  12478.  line of the batch file is numbered 1. 
  12479.  
  12480.  Another trick, especially useful in a fast-moving batch file or one where the 
  12481.  screen is cleared before you can read messages, is to insert PAUSE commands 
  12482.  wherever you need them in order to be able to watch what's happening.  You can 
  12483.  also use an ON ERRORMSG command to pause if an error occurs, then continue 
  12484.  with the rest of the file (the first command below), or to quit if an error 
  12485.  occurs (the second command): 
  12486.  
  12487.           on errormsg pause
  12488.           on errormsg quit
  12489.  
  12490.  If you can't figure out how your aliases and variables are expanded, try 
  12491.  turning LOG on at the start of the batch file.  LOG keeps track of all 
  12492.  commands after alias and variable expansion are completed, and gives you a 
  12493.  record in a file that you can examine after the batch file is done.  You must 
  12494.  use a standard LOG command; LOG /H (the history log) does not work in batch 
  12495.  files. 
  12496.  
  12497.  You may also want to consider using redirection to capture your batch file 
  12498.  output.  Simply type the batch file name followed by the redirection symbols, 
  12499.  for example: 
  12500.  
  12501.           [c:\] mybatch >& testout
  12502.  
  12503.  This records all batch file output, including error messages, in the file 
  12504.  TESTOUT, so you can go back and examine it.  If you have ECHO ON in the batch 
  12505.  file you'll get the batch commands intermingled with the output, which can 
  12506.  provide a very useful trace of what's happening.  Of course, output from 
  12507.  full-screen commands and programs that don't write to the standard output 
  12508.  devices can't be recorded, but you can still gain a lot of useful information 
  12509.  if your batch file produces any output. 
  12510.  
  12511.  If you're using redirection to see the output, remember that any prompts for 
  12512.  input will probably go to the output file and not to the screen.  Therefore, 
  12513.  you will need to know in advance the sequence of keystrokes required to get 
  12514.  through the entire batch file, and enter them by hand or with KEYSTACK. 
  12515.  
  12516.  You can also use the TEE command to both view the output while the batch file 
  12517.  is running and save it in a file for later examination. 
  12518.  
  12519.  
  12520. ΓòÉΓòÉΓòÉ 5.12. Batch File String Processing ΓòÉΓòÉΓòÉ
  12521.  
  12522. As you gain experience with batch files, you're likely to find that you need to 
  12523. manipulate text strings.  You may need to prompt a user for a name or password, 
  12524. process a list of files, or find a name in a phone list.  All of these are 
  12525. examples of string processing -- the manipulation of lines of readable text. 
  12526.  
  12527. Take Command includes several features that make string processing easier. For 
  12528. example, you can use the INKEY, INPUT, MSGBOX, and QUERYBOX commands for user 
  12529. input; the ECHO, SCREEN, SCRPUT, and VSCRPUT commands for output; and the FOR 
  12530. command or the @FILEREAD function to scan through the lines of a file.  In 
  12531. addition, variable functions offer a wide range of string handling 
  12532. capabilities. 
  12533.  
  12534. For example, suppose you need a batch file that will prompt a user for a name, 
  12535. break the name into a first name and a last name, and then run a hypothetical 
  12536. LOGIN program.  LOGIN expects the syntax /F:first /L:last with both the first 
  12537. and last names in upper case and neither name longer than 8 characters.  Here 
  12538. is one way to write such a batch file: 
  12539.  
  12540.         @echo off
  12541.         setlocal
  12542.         unalias *
  12543.         querybox "Name" Enter your name (no initials):  %%name
  12544.  
  12545.         set first=%@word[0,%name]
  12546.         set flen=%@len[%first]
  12547.         set last=%@word[1,%name]
  12548.         set llen=%@len[%last]
  12549.  
  12550.         iff %flen gt 8 .or. %llen gt 8 then
  12551.            echo First or last name too long
  12552.            quit
  12553.         endiff
  12554.  
  12555.         login /F:%@upper[%first] /L:%@upper[%last]
  12556.         endlocal
  12557.  
  12558. The SETLOCAL command at the beginning of this batch file saves the environment 
  12559. and aliases.  Then the UNALIAS * command removes any existing aliases so they 
  12560. won't interfere with the behavior of the commands in the remainder of the batch 
  12561. file.  The first block of lines ends with a QUERYBOX command which asks the 
  12562. user to enter a name.  The user's input is stored in the environment variable 
  12563. NAME. 
  12564.  
  12565. The second block of lines extracts the user's first and last names from the 
  12566. NAME variable and calculates the length of each.  It stores the first and last 
  12567. name, along with the length of each, in additional environment variables. Note 
  12568. that the @WORD function numbers the first word as 0, not as 1. 
  12569.  
  12570. The IFF command in the third block of lines tests the length of both the first 
  12571. and last names.  If either is longer than 8 characters, the batch file displays 
  12572. an error message and ends. (QUERYBOX can limit the length of input text more 
  12573. simply with its /L switch. We used a slightly more cumbersome method above in 
  12574. order to demonstrate the use of string functions in batch files.) 
  12575.  
  12576. Finally, in the last block, the batch file executes the LOGIN program with the 
  12577. appropriate parameters, then uses the ENDLOCAL command to restore the original 
  12578. environment and alias list.  At the same time, ENDLOCAL discards the temporary 
  12579. variables that the batch file used (NAME, FIRST, FLEN, etc.). 
  12580.  
  12581. When you're processing strings, you also need to avoid some common traps.  The 
  12582. biggest one is handling special characters. 
  12583.  
  12584. Suppose you have a batch file with these two commands, which simply accept a 
  12585. string and display it: 
  12586.  
  12587.         input Enter a string:  %%str
  12588.         echo %str
  12589.  
  12590. Those lines look safe, but what happens if the user enters the string "some > 
  12591. none" (without the quotes).  After the string is placed in the variable STR, 
  12592. the second line becomes 
  12593.  
  12594.         echo some > none
  12595.  
  12596. The ">" is a redirection symbol, so the line echoes the string "some" and 
  12597. redirects it to a file called NONE -- probably not what you expected.  You 
  12598. could try using quotation marks to avoid this kind of problem, but that won't 
  12599. quite work.  If you use back-quotes (ECHO `%STR`), the command will echo the 
  12600. four-character string %STR. Environment variable names are not expanded when 
  12601. they are inside back-quotes. 
  12602.  
  12603. If you use double quotes (ECHO "%STR"), the string entered by the user will be 
  12604. displayed properly, and so will the quotation marks.  With double quotes, the 
  12605. output would look like this: 
  12606.  
  12607.         "some > none"
  12608.  
  12609. As you can imagine, this kind of problem becomes much more difficult if you try 
  12610. to process text from a file.  Special characters in the text can cause all 
  12611. kinds of confusion in your batch files.  Text containing back-quotes, double 
  12612. quotes, or redirection symbols can be virtually impossible to handle correctly. 
  12613.  
  12614. One way to overcome these potential problems is to use the SETDOS /X command to 
  12615. temporarily disable redirection symbols and other special characters.  The 
  12616. two-line batch file above would be a lot more likely to produce the expected 
  12617. results if it were rewritten this way: 
  12618.  
  12619.         setdos /x-15678
  12620.         input Enter a string:  %%str
  12621.         echo %str
  12622.         setdos /x0
  12623.  
  12624. The first line turns off alias processing and disables several special symbols, 
  12625. including the command separator and all redirection symbols.  Once the string 
  12626. has been processed, the last line re-enables the features that were turned off 
  12627. in the first line. 
  12628.  
  12629. If you need advanced string processing capabilities beyond those provided by 
  12630. Take Command, you may want to consider using the REXX language.  Our products 
  12631. support external REXX programs for this purpose. 
  12632.  
  12633.  
  12634. ΓòÉΓòÉΓòÉ 5.13. Batch File Compression ΓòÉΓòÉΓòÉ
  12635.  
  12636. You can compress your .BTM files with a program called BATCOMP.EXE, which is 
  12637. distributed with Take Command.  This program condenses batch files by about a 
  12638. third and makes them unreadable with the LIST command and similar utilities. 
  12639. Compressed batch files run at approximately the same speed as regular .BTM 
  12640. files. 
  12641.  
  12642. You may want to consider compressing batch files if you need to distribute them 
  12643. to others and keep your original code secret or prevent your users from 
  12644. altering them.  You may also want to consider compressing batch files to save 
  12645. some disk space on the systems where the compressed files are used. 
  12646.  
  12647. The full syntax for the batch compression program is 
  12648.  
  12649.         BATCOMP [/O] input file [output file ]
  12650.  
  12651. You must specify the full name of the input file, including its extension, on 
  12652. the BATCOMP command line.  If you do not specify the output file, BATCOMP will 
  12653. use the same base name as the input file and add a .BTM extension. BATCOMP will 
  12654. also add a .BTM extension if you specify a base name for the output file 
  12655. without an extension.  For example, to compress MYBATCH.CMD and save the result 
  12656. as MYBATCH.BTM, you can use any of these three commands: 
  12657.  
  12658.         [c:\] batcomp mybatch.cmd
  12659.         [c:\] batcomp mybatch.cmd mybatch
  12660.         [c:\] batcomp mybatch.cmd mybatch.btm
  12661.  
  12662. If the output file (MYBATCH.BTM in the examples above) already exists, BATCOMP 
  12663. will prompt you before overwriting the file.  You can disable the prompt by 
  12664. including /O on the BATCOMP command line immediately before the input file 
  12665. name.  Even if you use the /O option, BATCOMP will not compress a file into 
  12666. itself. 
  12667.  
  12668. JP Software does not provide a utility to decompress batch files.  If you use 
  12669. BATCOMP.EXE, make sure that you also keep a copy of the original batch file for 
  12670. future inspection or modification. 
  12671.  
  12672. BATCOMP is a DOS and OS/2 character-mode application designed to run in any 
  12673. environment where our command processors run.  Normally it can be run 
  12674. successfully from within Take Command without manually starting a separate DOS 
  12675. or OS/2 session.  Each of our command processors includes the same version of 
  12676. BATCOMP.EXE, and a batch file compressed with any copy of BATCOMP can be used 
  12677. with any current JP Software command processor. 
  12678.  
  12679. If you plan to distribute batch files to users of different platforms, see 
  12680. Special Character Compatibility. 
  12681.  
  12682.  
  12683. ΓòÉΓòÉΓòÉ 5.14. Argument Quoting ΓòÉΓòÉΓòÉ
  12684.  
  12685. As it parses the command line, Take Command looks for the ampersand [&] command 
  12686. separator, conditional commands (|| or &&), white space (spaces, tabs, and 
  12687. commas), percent signs [%] which indicate variables or batch file arguments to 
  12688. be expanded, and redirection and piping characters (>, <, or |). 
  12689.  
  12690. Normally, these special characters cannot be passed to a command as part of an 
  12691. argument.  However, you can include any of the special characters in an 
  12692. argument by enclosing the entire argument in single back quotes [`] or double 
  12693. quotes ["].  Although both back quotes and double quotes will let you build 
  12694. arguments that include special characters, they do not work the same way. 
  12695.  
  12696. No alias or variable expansion is performed on an argument enclosed in back 
  12697. quotes.  Redirection symbols inside the back quotes are ignored.  The back 
  12698. quotes are removed from the command line before the command is executed. 
  12699.  
  12700. No alias expansion is performed on expressions enclosed in double quotes. 
  12701. Redirection symbols inside double quotes are ignored.  However, variable 
  12702. expansion is performed on expressions inside double quotes.  The double quotes 
  12703. themselves will be passed to the command as part of the argument. 
  12704.  
  12705. For example, suppose you have a batch file CHKNAME.BTM which expects a name as 
  12706. its first parameter (%1).  Normally the name is a single word.  If you need to 
  12707. pass a two-word name with a space in it to this batch file you could use the 
  12708. command: 
  12709.  
  12710.         [c:\] chkname `MY NAME`
  12711.  
  12712. Inside the batch file, %1 will have the value MY NAME, including the space. The 
  12713. back quotes caused Take Command to pass the string to the batch file as a 
  12714. single argument.  The quotes keep characters together and reduce the number of 
  12715. arguments in the line. 
  12716.  
  12717. For a more complex example, suppose the batch file QUOTES.BAT contains the 
  12718. following commands: 
  12719.  
  12720.         @echo off
  12721.         echo Arg1 = %1
  12722.         echo Arg2 = %2
  12723.         echo Arg3 = %3
  12724.  
  12725. and that the environment variable FORVAR has been defined with this command: 
  12726.  
  12727.         [c:\] set FORVAR=for
  12728.  
  12729. Now, if you enter the command 
  12730.  
  12731.         [c:\] quotes `Now is the time %forvar` all good
  12732.  
  12733. the output from QUOTES.BAT will look like this: 
  12734.  
  12735.         Arg1 = Now is the time %forvar
  12736.         Arg2 = all
  12737.         Arg3 = good
  12738.  
  12739. But if you enter the command 
  12740.  
  12741.         [c:\] quotes "Now is the time %forvar" all good
  12742.  
  12743. the output from QUOTES.BAT will look like this: 
  12744.  
  12745.         Arg1 = "Now is the time for"
  12746.         Arg2 = all
  12747.         Arg3 = good
  12748.  
  12749. Notice that in both cases, the quotes keep characters together and reduce the 
  12750. number of arguments in the line. 
  12751.  
  12752. The following example has 7 command-line arguments, while the examples above 
  12753. only have 3: 
  12754.  
  12755.         [c:\] quotes Now is the time %%forvar all good
  12756.  
  12757. (The double percent signs are needed in each case because the argument is 
  12758. parsed twice, once when passed to the batch file and again in the ECHO 
  12759. command.) 
  12760.  
  12761. When an alias is defined in a batch file or from the command line, its argument 
  12762. can be enclosed in back quotes to prevent the expansion of replaceable 
  12763. parameters, variables, and multiple commands until the alias is invoked.  See 
  12764. ALIAS for details. 
  12765.  
  12766. You can disable and re-enable back quotes and double quotes with the SETDOS /X 
  12767. command. 
  12768.  
  12769.  
  12770. ΓòÉΓòÉΓòÉ 5.15. REXX Support ΓòÉΓòÉΓòÉ
  12771.  
  12772. REXX is a a powerful file and text processing language developed by IBM, and 
  12773. available on many PC and other platforms.  REXX is an ideal extension to the 
  12774. Take Command batch language, especially if you need advanced string processing 
  12775. capabilities. 
  12776.  
  12777. The REXX language is not built into Take Command, and must be obtained 
  12778. separately.  REXX support is built in to IBM OS/2.  You can also purchase 
  12779. add-on REXX software such as Enterprise Alternatives' Enterprise REXX, 
  12780. available for Windows 3.x, Windows 95, and Windows NT; or Quercus's Personal 
  12781. REXX, available for OS/2, Windows 3.x, Windows 95, and Windows NT.  (If you 
  12782. want to learn about or purchase one of these REXX packages, contact JP 
  12783. Software's sales department for more information.) 
  12784.  
  12785. Take Command for OS/2 supports REXX programs stored in .CMD files.  Take 
  12786. Command checks to see if the first two characters on the first line of a .CMD 
  12787. file are [/*], the beginning of a REXX comment.  If so, it passes the file to 
  12788. OS/2's built-in REXX facility for processing.  If Personal REXX for OS/2 is 
  12789. installed, it automatically replaces OS/2's built-in REXX, and handles all REXX 
  12790. commands passed by Take Command for OS/2. 
  12791.  
  12792. Take Command's REXX support will also work with other REXX  processors such as 
  12793. PMREXX and VX-REXX.  It does not work with IBM's VREXX, because the internal 
  12794. design of VREXX does not permit reliable execution of REXX scripts from 
  12795. Presentation Manager programs like Take Command. 
  12796.  
  12797. When working with a REXX processor, Take Command automatically handles all 
  12798. input and output for the REXX program, and any standard REXX processor window 
  12799. for input and output is not displayed.  If you need to run a REXX program 
  12800. inside your REXX processor's window, and not under Take Command, you should 
  12801. start the REXX processor s executable file explicitly, then load and run the 
  12802. REXX program from there. 
  12803.  
  12804. All of the REXX processors described above (Enterprise REXX, Personal REXX, and 
  12805. OS/2's built-in REXX) extend the interface between REXX and the command 
  12806. processor by allowing you to invoke Take Command commands from within a REXX 
  12807. program. 
  12808.  
  12809. When you send a command from a REXX program back to the command processor to be 
  12810. executed (for example, if you execute a DIR command within a REXX script), the 
  12811. REXX software must use the correctaddre for the command processor.  In most 
  12812. cases it is best to use the default address of CMD, which is set up 
  12813. automatically by Take Command.  If you choose to use an explicit address via 
  12814. the REXX ADDRESS command, you can use either CMD or TCMD. 
  12815.  
  12816. For details on communication between REXX and the command processor, or for 
  12817. more information on any aspect of REXX, see your REXX documentation. 
  12818.  
  12819.  
  12820. ΓòÉΓòÉΓòÉ 5.16. EXTPROC Support ΓòÉΓòÉΓòÉ
  12821.  
  12822. For compatibility with CMD.EXE, Take Command offers an external processor 
  12823. (EXTPROC) option for batch files that lets you define an external program to 
  12824. process a particular .CMD file. To identify a .CMD file to be used with an 
  12825. external processor, place the string "EXTPROC" as the first word on the first 
  12826. line of the file, followed by the name of the external program that should be 
  12827. called.  Take Command will start the program and pass it the name of the .CMD 
  12828. file and any command- line arguments that were entered. 
  12829.  
  12830. For example, suppose GETDATA.CMD contains the following lines: 
  12831.  
  12832.         EXTPROC D:\DATAACQ\DATALOAD.EXE
  12833.         OPEN PORT1
  12834.         READ 4000
  12835.         DISKWRITE D:\DATAACQ\PORT1\RAW
  12836.  
  12837. Then if you entered the command: 
  12838.  
  12839.         [d:\dataacq] getdata /p17
  12840.  
  12841. Take Command would read the GETDATA.CMD file, determine that it began with an 
  12842. EXTPROC command, read the name of the processor program, and then execute the 
  12843. command: 
  12844.  
  12845.         D:\DATAACQ\DATALOAD.EXE D:\DATAACQ\GETDATA.CMD /p17
  12846.  
  12847. The hypothetical DATALOAD.EXE program would then be responsible for reopening 
  12848. the GETDATA.CMD file, ignoring the EXTPROC line at the start, and interpreting 
  12849. the other instructions in the file. It would also have to respond appropriately 
  12850. to the command-line parameter entered (/p17). 
  12851.  
  12852. Do not try to use Take Command or 4OS2 as the external processor named on the 
  12853. EXTPROC line in the .CMD file.  It will interpret the EXTPROC line as a command 
  12854. to re-open itself.  The result will be an infinite loop that will continue 
  12855. until the computer runs out of resources and locks up. 
  12856.  
  12857.  
  12858. ΓòÉΓòÉΓòÉ 6. Environment Variables and Functions ΓòÉΓòÉΓòÉ
  12859.  
  12860. The environment is a collection of information about your computer that every 
  12861. program receives.  Each entry in the environment consists of a variable name, 
  12862. followed by an equal sign and a string of text.  You can automatically 
  12863. substitute the text for the variable name in any command. To create the 
  12864. substitution, include a percent sign [%] and a variable name on the command 
  12865. line or in an alias or batch file. 
  12866.  
  12867. You can create, alter, view, and delete environment variables with the 
  12868. Environment dialog (available from the Utilities menu) as well as with the SET, 
  12869. ESET, and UNSET commands. 
  12870.  
  12871. The following environment variables have special meanings in Take Command: 
  12872.  
  12873.     CDPATH 
  12874.     CMDLINE 
  12875.     COLORDIR 
  12876.     COMSPEC 
  12877.     FILECOMPLETION 
  12878.     PATH 
  12879.     PATHEXT 
  12880.     PROMPT 
  12881.  
  12882. Also see 
  12883.     COPYCMD 
  12884.     DIRCMD 
  12885.  
  12886. Take Command also supports two special types of variables.  Internal variables 
  12887. are similar to environment variables, but are stored internally within Take 
  12888. Command, and are not visible in the environment.  They provide information 
  12889. about your system for use in batch files and aliases.  Variable functions are 
  12890. referenced like environment variables, but perform additional functions like 
  12891. file handling, string manipulation and arithmetic calculations. 
  12892.  
  12893. The SET command is used to create environment variables. For example, you can 
  12894. create a variable named BACKUP like this: 
  12895.  
  12896.         [c:\] set BACKUP=*.bak;*.bk!;*.bk
  12897.  
  12898. If you then type 
  12899.  
  12900.         [c:\] del %BACKUP
  12901.  
  12902. it is equivalent to the following command: 
  12903.  
  12904.         del *.bak;*.bk!;*.bk
  12905.  
  12906. The variable names you use this way may contain any alphabetic or numeric 
  12907. characters, the underscore character [_], and the dollar sign [$].  You can 
  12908. force acceptance of other characters by including the full variable name in 
  12909. square brackets, like this: %[AB##2]. You can also "nest" environment variables 
  12910. using square brackets.  For example, %[%var1] means "the contents of the 
  12911. variable whose name is stored in VAR1".  A variable referenced with this 
  12912. technique cannot contain more than 255 characters of information.  Nested 
  12913. variable expansion can be disabled with the SETDOS /X command. 
  12914.  
  12915. In Take Command the size of the environment is set automatically, and increased 
  12916. as needed when you add variables.  You do not need to specify the size as you 
  12917. do under 4DOS or some traditional command processors. 
  12918.  
  12919. The trailing percent sign that was traditionally required for environment 
  12920. variable names is not usually required in Take Command, which accepts any 
  12921. character that cannot be part of a variable name as the terminator.  However, 
  12922. the trailing percent can be used to maintain compatibility. 
  12923.  
  12924. The trailing percent sign is needed if you want to join two variable values. 
  12925. The following examples show the possible interactions between variables and 
  12926. literal strings.  First, create two environment variables called ONE and TWO 
  12927. this way: 
  12928.  
  12929.         [c:\] set ONE=abcd
  12930.         [c:\] set TWO=efgh
  12931.  
  12932. Now the following combinations produce the output text shown: 
  12933.  
  12934.         %ONE%TWOabcdTWO      ("%ONE%" + "TWO")
  12935.         %ONE%TWO%abcdTWO     ("%ONE%" + "TWO%")
  12936.         %ONE%%TWOabcdefgh    ("%ONE%" + "%TWO")
  12937.         %ONE%%TWO%abcdefgh   ("%ONE%" + "%TWO%")
  12938.         %ONE%[TWO]abcd[TWO]  ("%ONE%" + "[TWO]")
  12939.         %ONE%[TWO]%abcd[TWO] ("%ONE%" + "[TWO]%")
  12940.         %[ONE]%TWOabcdefgh   ("%[ONE]" + "%TWO")
  12941.         %[ONE]%TWO%abcdefgh  ("%[ONE]" + "%TWO%")
  12942.  
  12943. If you want to pass a percent sign to a command, or a string which includes a 
  12944. percent sign, you must use two percent signs in a row. Otherwise, the single 
  12945. percent sign will be seen as the beginning of a variable name and will not be 
  12946. passed on to the command.  For example, to display the string "We're with you 
  12947. 100%" you would use the command: 
  12948.  
  12949.         echo We're with you 100%%
  12950.  
  12951. You can also use back quotes around the text, rather than a double percent 
  12952. sign.  See Argument Quoting for details. 
  12953.  
  12954. Environment variables may contain alias names.  Take Command will substitute 
  12955. the variable value for the name, then check for any alias name which may have 
  12956. been included within the value.  For example, the following commands would 
  12957. generate a 2-column directory of the .TXT files: 
  12958.  
  12959.         [c:\] alias d2 dir /2
  12960.         [c:\] set cmd=d2
  12961.         [c:\] %cmd *.txt
  12962.  
  12963.  
  12964. ΓòÉΓòÉΓòÉ 6.1. CDPATH ΓòÉΓòÉΓòÉ
  12965.  
  12966. CDPATH tells Take Command where to search for directories specified by the CD, 
  12967. CDD, and PUSHD commands and in automatic directory changes.  (_CDPATH can be 
  12968. used as an alternative to CDPATH if you are using Microsoft Bookshelf, which 
  12969. uses a CDPATH variable for its own purposes.) 
  12970.  
  12971. CDPATH is composed of a list of directories, separated by semicolons [;].  See 
  12972. CDPATH for more information about using this variable. 
  12973.  
  12974.  
  12975. ΓòÉΓòÉΓòÉ 6.2. CMDLINE ΓòÉΓòÉΓòÉ
  12976.  
  12977. CMDLINE is the fully expanded text of the currently executing command line. 
  12978. CMDLINE is set just before invoking any .COM, .EXE, .BTM, .BAT, or .CMD file. 
  12979. If a command line is prefaced with an "@" to prevent echoing, it will not be 
  12980. put in CMDLINE, and any previous CMDLINE variable will be removed from the 
  12981. environment. 
  12982.  
  12983.  
  12984. ΓòÉΓòÉΓòÉ 6.3. COLORDIR ΓòÉΓòÉΓòÉ
  12985.  
  12986. COLORDIR controls directory display colors used by DIR.  See the Color-Coded 
  12987. Directories section of the DIR command for a complete description of the format 
  12988. of this variable. 
  12989.  
  12990.  
  12991. ΓòÉΓòÉΓòÉ 6.4. COMSPEC ΓòÉΓòÉΓòÉ
  12992.  
  12993. COMSPEC contains the full path and name of the character-mode command 
  12994. processor.  Take Command uses it to start character-mode OS/2 sessions. 
  12995.  
  12996.  
  12997. ΓòÉΓòÉΓòÉ 6.5. COPYCMD ΓòÉΓòÉΓòÉ
  12998.  
  12999. COPYCMD is used by some versions of COMMAND.COM and CMD.EXE to hold default 
  13000. options for the COPY command.  Take Command does not support this variable, but 
  13001. you can achieve the same effect with an alias.  For example, if you want the 
  13002. COPY command to default to prompting you before overwriting an existing file, 
  13003. you could use this alias: 
  13004.  
  13005.         [c:\] alias copy = `*copy /r`
  13006.  
  13007. If you wish to use COPYCMD for compatibility with systems that do not use Take 
  13008. Command, you can define the alias this way: 
  13009.  
  13010.         [c:\] alias copy = `*copy %copycmd`
  13011.  
  13012.  
  13013. ΓòÉΓòÉΓòÉ 6.6. ┬áDIRCMD ΓòÉΓòÉΓòÉ
  13014.  
  13015. DIRCMD is used by some versions of COMMAND.COM and CMD.EXE to hold default 
  13016. options for the DIR command.  Take Command does not support this variable, but 
  13017. you can achieve the same effect with an alias.  For example, if you want the 
  13018. DIR command to default to a 2-column display with a vertical sort and a pause 
  13019. at the end of each page, you could use this alias: 
  13020.  
  13021.         [c:\] alias dir = `*dir /2/p/v`
  13022.  
  13023. If you wish to use DIRCMD for compatibility with systems that do not use Take 
  13024. Command, you can define the alias this way: 
  13025.  
  13026.         [c:\] alias dir = `*dir %dircmd`
  13027.  
  13028.  
  13029. ΓòÉΓòÉΓòÉ 6.7. FILECOMPLETION (variable) ΓòÉΓòÉΓòÉ
  13030.  
  13031. FILECOMPLETION sets the files made available during filename completion for 
  13032. selected commands.  See Customizing Filename Completion for a complete 
  13033. description of the format of this variable. 
  13034.  
  13035.  
  13036. ΓòÉΓòÉΓòÉ 6.8. PATH (variable) ΓòÉΓòÉΓòÉ
  13037.  
  13038. PATH is a list of directories that Take Command will search for executable 
  13039. files that aren't in the current directory.  PATH may also be used by some 
  13040. application programs to find their own files.  See the PATH command for a full 
  13041. description of this variable. 
  13042.  
  13043.  
  13044. ΓòÉΓòÉΓòÉ 6.9. PATHEXT ΓòÉΓòÉΓòÉ
  13045.  
  13046. PATHEXT can be used to select the extensions to look for when searching the 
  13047. PATH for an executable file.  It consists of a list of extensions, separated by 
  13048. semicolons. For example, to replicate the default extension list used by Take 
  13049. Command: 
  13050.  
  13051.      set pathext=.com;.exe;.btm;.cmd;.bat
  13052.  
  13053. PATHEXT is ignored unless the PathExt setting is set to Yes in TCMDOS2.INI. 
  13054. Once PATHEXT is enabled the standard path search for .COM, .EXE, .BTM, .CMD, 
  13055. and .BAT files is replaced by a search for files with the extensions listed in 
  13056. PATHEXT, in the order listed there. 
  13057.  
  13058. Enabling PATHEXT affects only the standard path search, it does not affect the 
  13059. subsequent searches for files with executable extensions.  PATHEXT is supported 
  13060. for compatibility reasons but should not generally be used as a substitute for 
  13061. executable extensions, which are much more flexible.  For more details on path 
  13062. searches, see the PATH command. 
  13063.  
  13064. CAUTION:  If you set PathExt = Yes in TCMDOS2.INI and then fail to set the 
  13065. PATHEXT variable, path searches will fail as there will be no extensions for 
  13066. which to search! 
  13067.  
  13068.  
  13069. ΓòÉΓòÉΓòÉ 6.10. PROMPT (variable) ΓòÉΓòÉΓòÉ
  13070.  
  13071. PROMPT defines the command-line prompt.  It can be set or changed with the 
  13072. PROMPT command. 
  13073.  
  13074.  
  13075. ΓòÉΓòÉΓòÉ 6.11. Internal Variables ΓòÉΓòÉΓòÉ
  13076.  
  13077. Internal variables are special environment variables built into Take Command to 
  13078. provide information about your system.  They are not actually stored in the 
  13079. environment, but can be used in commands, aliases, and batch files just like 
  13080. any environment variable. 
  13081.  
  13082. The values of these variables are stored internally in Take Command, and cannot 
  13083. be changed with the SET, UNSET, or ESET command.  However, you can override any 
  13084. of these variables by defining a new variable with the same name. 
  13085.  
  13086. These internal variables are often used in batch files and aliases to examine 
  13087. system resources and adjust to the current computer settings.  You can examine 
  13088. the contents of any internal variable (except %= and %+) from the command line 
  13089. with a command like this: 
  13090.  
  13091.         [c:\] echo %variablename
  13092.  
  13093. On disk volumes which do not support long filenames, variables which return a 
  13094. path or file name will return their result in upper or lower case depending on 
  13095. the value of the SETDOS /U switch or the UpperCase directive in the TCMDOS2.INI 
  13096. file.  On volumes which do support long filenames, these variables will return 
  13097. names as they are stored on the disk and no case shifting will be performed. 
  13098. Returned filename values which include long filenames are not quoted 
  13099. automatically; you must add quotes yourself if they are required for your use 
  13100. of the variable value. 
  13101.  
  13102. Some variables return values based on information provided by your operating 
  13103. system.  These variables will only return correct information if the operating 
  13104. system provides it.  For example, _APMBATT will not return accurate results if 
  13105. OS/2 and your Advanced Power Management drivers do not provide correct 
  13106. information on battery status to Take Command. 
  13107.  
  13108. Internal Variable Categories 
  13109.  
  13110. The list below gives a one-line description of each variable, and a cross- 
  13111. reference which selects a short help topic on that variable.  Most of the 
  13112. variables are simple enough that the one-line description is sufficient. 
  13113. However, for those variables marked with an asterisk [*], the cross-reference 
  13114. topic contains some additional information you may wish to review.  You can 
  13115. also obtain help on any variable with a HELP variable name command at the 
  13116. prompt (this is why each variable has its own topic, in addition to its 
  13117. appearance in the list below). 
  13118.  
  13119. See the discussion after the variable list for some additional information, and 
  13120. examples of how these variables can be used.  For a more comprehensive set of 
  13121. examples see the EXAMPLES.BTM file which came with your copy of Take Command. 
  13122.  
  13123. Hardware status 
  13124.  
  13125.         _APMAC          Advanced Power Management AC Line status (on-line or 
  13126.                         off-line) 
  13127.         _APMBATT        APM battery status (high, low, critical, charging, 
  13128.                         unknown) 
  13129.         _APMLIFE        APM remaining battery life (0 - 100 or unknown) 
  13130.         _CPU            CPU type (86, 186, 200, 386, 486, 586) 
  13131.         _KBHIT          Returns 1 if a keyboard input character is waiting. 
  13132.         _NDP            Coprocessor type (0, 87, 287, 387) 
  13133.  
  13134.  Operating system and software status 
  13135.  
  13136.         _ANSI           ANSI status (1 if enabled, 0 if not) 
  13137.         _BOOT           Boot drive letter, without a colon 
  13138.         _CODEPAGE       Current code page number 
  13139.         _COUNTRY        Current country code 
  13140.         _DOS            * Operating system (OS2, PM, DOS, etc.) 
  13141.         _DOSVER         * Operating system version (2.1, 3.0, etc.) 
  13142.         _MOUSE          Mouse driver flag (always 1) 
  13143.         _WINTITLE       Current window title 
  13144.  
  13145.  Command processor status 
  13146.  
  13147.         _4VER           Take Command for OS/2 version (2.02, 2.03, etc.) 
  13148.         _BATCH          Batch nesting level 
  13149.         _BATCHLINE      Current line number in current batch file 
  13150.         _BATCHNAME      Name of current batch file 
  13151.         _CMDPROC        Command processor name 
  13152.         _DNAME          Name of file used to store file descriptions 
  13153.         _HLOGFILE       Current history log file name 
  13154.         _LOGFILE        Current log file name 
  13155.         _PID            Take Command for OS/2 process ID (numeric) 
  13156.         _PIPE           Whether running in a pipe (0 or 1) 
  13157.         _PPID           Parent process ID (numeric) 
  13158.         _PTYPE          OS/2 process type (PM) 
  13159.         _SHELL          Shell level (0, 1, 2, ...) 
  13160.         _SID            Current OS/2 session ID 
  13161.         _TRANSIENT      * Transient shell flag (0 or 1) 
  13162.  
  13163.  Screen, color, and cursor 
  13164.  
  13165.         _BG             Background color 
  13166.         _CI             Current cursor shape in insert mode 
  13167.         _CO             Current cursor shape in overstrike mode 
  13168.         _COLUMN         Current cursor column 
  13169.         _COLUMNS        Screen width 
  13170.         _FG             Foreground color 
  13171.         _ROW            Current cursor row 
  13172.         _ROWS           Screen height 
  13173.         _SELECTED       First line of highliged text. 
  13174.         _XPIXELS        Physical screen horizontal size in pixels. 
  13175.         _YPIXELS        Physical screen vertical size in pixels. 
  13176.  
  13177.  Drives and directories 
  13178.  
  13179.         _CWD            Current drive and directory (d:\path) 
  13180.         _CWDS           Current drive and directory with trailing \ (d:\path\) 
  13181.         _CWP            Current directory (\path) 
  13182.         _CWPS           Current directory with trailing \ (\path\) 
  13183.         _DISK           Current drive (C, D, etc.) 
  13184.         _LASTDISK       Last possible drive (E, F, etc.) 
  13185.  
  13186.  Dates and times 
  13187.  
  13188.         _DATE           * Current date (mm-dd-yy) 
  13189.         _DAY            Day of the month (1 - 31) 
  13190.         _DOW            Day of the week (Mon, Tue, Wed, etc.) 
  13191.         _DOWI           Day of the week as an integer (1=Sunday, 2-Monday, 
  13192.                         etc.) 
  13193.         _DOY            Day of the year (1 - 366) 
  13194.         _HOUR           Hour (0 - 23) 
  13195.         _MINUTE         Minute (0 - 59) 
  13196.         _MONTH          Month of the year (1 - 12) 
  13197.         _SECOND         Second (0 - 59) 
  13198.         _TIME           * Current time (hh:mm:ss) 
  13199.         _YEAR           Year (1980 - 2099) 
  13200.  
  13201.  Error codes 
  13202.  
  13203.         ?               * Exit code, last external program 
  13204.         _?              * Exit code, last internal command 
  13205.         _SYSERR         * Last OS/2 error code 
  13206.  
  13207.  Compatibility 
  13208.  
  13209.         =               * Substitutes escape character 
  13210.         +               * Substitutes command separator 
  13211.  
  13212.  Examples 
  13213.  
  13214.  You can use these variables in a wide variety of ways depending on your needs. 
  13215.  Here are just a couple of examples; for a more comprehensive set see the 
  13216.  EXAMPLES.BTM file which came with your copy of Take Command. 
  13217.  
  13218.  Store the current date and time in a file, then save the output of a DIR 
  13219.  command in the same file: 
  13220.  
  13221.           echo Directory as of %_date %_time > dirsave
  13222.           dir >> dirsave
  13223.  
  13224.  Use the IFF command to check whether there are enough resources free before 
  13225.  running an application: 
  13226.  
  13227.           iff %_GDIFREE lt 40 then
  13228.              echo Not enough GDI resources!
  13229.              quit
  13230.           else
  13231.              d:\mydir\myapp
  13232.           endiff
  13233.  
  13234.  Call another batch file if today is Monday: 
  13235.  
  13236.           if "%_DOW" == "Mon" call c:\cleanup\weekly.bat
  13237.  
  13238.  
  13239. ΓòÉΓòÉΓòÉ 6.11.1. ┬á? - Exit code, last external program ΓòÉΓòÉΓòÉ
  13240.  
  13241. ? contains the exit code of the last external command.  Many programs return a 
  13242. "0" to indicate success and a non-zero value to signal an error.  However, not 
  13243. all programs return an exit code.  If no explicit exit code is returned, the 
  13244. value of %? is undefined. 
  13245.  
  13246.  
  13247. ΓòÉΓòÉΓòÉ 6.11.2. _? - Exit code, last internal command ΓòÉΓòÉΓòÉ
  13248.  
  13249. _? contains the exit code of the last internal command.  It is set to "0" if 
  13250. the command was successful, "1" if a usage error occurred, "2" if another 
  13251. command processor error or an operating system error occurred, or "3" if the 
  13252. command was interrupted by Ctrl-C or Ctrl-Break. You must use or save this 
  13253. value immediately, because it is set by every internal command. 
  13254.  
  13255.  
  13256. ΓòÉΓòÉΓòÉ 6.11.3. = - Substitutes escape character ΓòÉΓòÉΓòÉ
  13257.  
  13258. = returns the current escape character.  Use this variable, instead of the 
  13259. actual escape character, if you want your batch files and aliases to work 
  13260. regardless of how the escape character is defined.  For example, if the escape 
  13261. character is a caret [^] (the default in Take Command for OS/2) both of the 
  13262. commands below will send a form feed to the printer. However, if the escape 
  13263. character has been changed,  the first command will send the string "^f" to the 
  13264. printer, while the second command will continue to work as intended. 
  13265.  
  13266.         echos ^f > prn
  13267.         echos %=f > prn
  13268.  
  13269.  
  13270. ΓòÉΓòÉΓòÉ 6.11.4. + - Substitutes command separator ΓòÉΓòÉΓòÉ
  13271.  
  13272. + returns the current command separator.  Use this variable, instead of the 
  13273. actual command separator, if you want your batch files and aliases to work 
  13274. regardless of how the command separator is defined.  For example, if the 
  13275. command separator is an ampersand [&] (the default in Take Command for OS/2) 
  13276. both of the commands below will display "Hello" on one line and "world" on the 
  13277. next.  However, if the command separator has been changed the first command 
  13278. will display "Hello & echo world", while the second command will continue to 
  13279. work as intended. 
  13280.  
  13281.         echo Hello & echo world
  13282.         echo Hello %+ echo world
  13283.  
  13284.  
  13285. ΓòÉΓòÉΓòÉ 6.11.5. _4VER - Take Command for OS/2 version (for example, 3.0) ΓòÉΓòÉΓòÉ
  13286.  
  13287. _4VER is the current Take Command for OS/2 version (for example, "3.0").  The 
  13288. version number is in decimal and uses the appropriate decimal separator for 
  13289. your country (to allow numeric comparisons with IF and IFF) 
  13290.  
  13291.  
  13292. ΓòÉΓòÉΓòÉ 6.11.6. _ANSI - ANSI status ΓòÉΓòÉΓòÉ
  13293.  
  13294. _ANSI returns "1" if Take Command's ANSI support is enabled, or "0" if it is 
  13295. disabled.  For more details on ANSI support see SETDOS /A,  the ANSI directive 
  13296. in TCMDOS2.INI, or the ANSI Support topic. 
  13297.  
  13298.  
  13299. ΓòÉΓòÉΓòÉ 6.11.7. _APMAC - AC Line Status ΓòÉΓòÉΓòÉ
  13300.  
  13301. _APMAC is the Advanced Power Management AC line status ("on-line", "off-line", 
  13302. or "unknown").  An empty string is returned if APM is not installed on your 
  13303. system. 
  13304.  
  13305.  
  13306. ΓòÉΓòÉΓòÉ 6.11.8. _APMBATT - Battery Status ΓòÉΓòÉΓòÉ
  13307.  
  13308. _APMBATT is the Advanced Power Management battery status ("high", "low", 
  13309. "critical", "charging", or "unknown").  An empty string is returned if APM is 
  13310. not installed. 
  13311.  
  13312.  
  13313. ΓòÉΓòÉΓòÉ 6.11.9. _APMLIFE - Remaining Battery Life ΓòÉΓòÉΓòÉ
  13314.  
  13315. _APMLIFE is the Advanced Power Management remaining battery life (0 - 100 or 
  13316. "unknown").  An empty string is returned if APM is not installed. 
  13317.  
  13318.  
  13319. ΓòÉΓòÉΓòÉ 6.11.10. _BATCH - Batch nesting level ΓòÉΓòÉΓòÉ
  13320.  
  13321. _BATCH is the current batch nesting level.  It is "0" if no batch file is 
  13322. currently being processed. 
  13323.  
  13324.  
  13325. ΓòÉΓòÉΓòÉ 6.11.11. _BATCHLINE - Current line number in current batch file ΓòÉΓòÉΓòÉ
  13326.  
  13327. _BATCHLINE is the current line number in the current batch file. It is "-1" if 
  13328. no batch file is currently being processed. 
  13329.  
  13330.  
  13331. ΓòÉΓòÉΓòÉ 6.11.12. _BATCHNAME - Name of current batch file ΓòÉΓòÉΓòÉ
  13332.  
  13333. _BATCHNAME is the full pathname of the current batch file.  It is an empty 
  13334. string if no batch file is currently being processed. 
  13335.  
  13336.  
  13337. ΓòÉΓòÉΓòÉ 6.11.13. _BG - Background color ΓòÉΓòÉΓòÉ
  13338.  
  13339. _BG is a string containing the first three letters of the current background 
  13340. screen output color (for example, "Bla"). 
  13341.  
  13342.  
  13343. ΓòÉΓòÉΓòÉ 6.11.14. _BOOT - Boot drive letter, without a colon ΓòÉΓòÉΓòÉ
  13344.  
  13345. _BOOT is the boot drive letter, without a colon (for example, "C"). 
  13346.  
  13347.  
  13348. ΓòÉΓòÉΓòÉ 6.11.15. _CI - Current cursor shape in insert mode ΓòÉΓòÉΓòÉ
  13349.  
  13350. _CI is the current shape of the cursor in insert mode, as a percentage (see 
  13351. SETDOS /S and CursorIns). 
  13352.  
  13353.  
  13354. ΓòÉΓòÉΓòÉ 6.11.16. _CMDPROC - Command processor name ΓòÉΓòÉΓòÉ
  13355.  
  13356. _CMDPROC is the name of the current command processor.  Each JP Software 
  13357. command processor returns a different value, as follows: 
  13358.  
  13359.         Product                         Returns 
  13360.  
  13361.         4DOS                            "4DOS" 
  13362.         4OS2                            "4OS2" 
  13363.         4NT                             "4NT" 
  13364.         Take Command/16                 "TCMD" 
  13365.         Take Command/32                 "TCMD32" 
  13366.         Take Command for OS/2           "TCMDOS2" 
  13367.  
  13368.  This variable is useful if you have batch files running in more than one 
  13369.  environment, and need to take different actions depending on the underlying 
  13370.  command processor.  If you also need to determine the operating system, see 
  13371.  _DOS. 
  13372.  
  13373.  
  13374. ΓòÉΓòÉΓòÉ 6.11.17. _CO - Current cursor shape in overstrike mode ΓòÉΓòÉΓòÉ
  13375.  
  13376. _CO is the current shape of the cursor in overstrike mode, as a percentage (see 
  13377. SETDOS /S and CursorOver). 
  13378.  
  13379.  
  13380. ΓòÉΓòÉΓòÉ 6.11.18. _CODEPAGE - Current code page number ΓòÉΓòÉΓòÉ
  13381.  
  13382. _CODEPAGE is the current code page number (see CHCP). 
  13383.  
  13384.  
  13385. ΓòÉΓòÉΓòÉ 6.11.19. _COLUMN - Current cursor column ΓòÉΓòÉΓòÉ
  13386.  
  13387. _COLUMN is the current cursor column (for example, "0" for the left side of the 
  13388. screen). 
  13389.  
  13390.  
  13391. ΓòÉΓòÉΓòÉ 6.11.20. _COLUMNS - Screen width ΓòÉΓòÉΓòÉ
  13392.  
  13393. _COLUMNS is the current number of screen columns (for example, "80").  See 
  13394. Resizing the Take Command Window for additional details on screen size. 
  13395.  
  13396.  
  13397. ΓòÉΓòÉΓòÉ 6.11.21. _COUNTRY - Current country code ΓòÉΓòÉΓòÉ
  13398.  
  13399. _COUNTRY is the current country code. 
  13400.  
  13401.  
  13402. ΓòÉΓòÉΓòÉ 6.11.22. _CPU - CPU type (386, 486, 586) ΓòÉΓòÉΓòÉ
  13403.  
  13404. _CPU is the CPU type: 
  13405.  
  13406.         386     i386 
  13407.         486     i486 
  13408.         586     Pentium 
  13409.  
  13410.  
  13411. ΓòÉΓòÉΓòÉ 6.11.23. _CWD - Current drive and directory (d:\path) ΓòÉΓòÉΓòÉ
  13412.  
  13413. _CWD is the current working directory in the format d:\pathname. 
  13414.  
  13415.  
  13416. ΓòÉΓòÉΓòÉ 6.11.24. _CWDS - Current drive and directory with trailing backslash ΓòÉΓòÉΓòÉ
  13417.  
  13418. (d:\path\) 
  13419.  
  13420. _CWDS has the same value as _CWD, except it ends the pathname with a backslash 
  13421. [\]. 
  13422.  
  13423.  
  13424. ΓòÉΓòÉΓòÉ 6.11.25. _CWP - Current directory (\path) ΓòÉΓòÉΓòÉ
  13425.  
  13426. _CWP is the current working directory in the format \pathname. 
  13427.  
  13428.  
  13429. ΓòÉΓòÉΓòÉ 6.11.26. _CWPS - Current directory with trailing backslash (\path\) ΓòÉΓòÉΓòÉ
  13430.  
  13431. _CWPS has the same value as _CWP, except it ends the pathname with a backslash 
  13432. [\]. 
  13433.  
  13434.  
  13435. ΓòÉΓòÉΓòÉ 6.11.27. _DATE - Current date (mm-dd-yy) ΓòÉΓòÉΓòÉ
  13436.  
  13437. _DATE contains the current system date, in the format mm-dd-yy (U.S.), dd-mm-yy 
  13438. (Europe), or yy-mm-dd (Japan). 
  13439.  
  13440.  
  13441. ΓòÉΓòÉΓòÉ 6.11.28. _DAY - Day of the month (1 - 31) ΓòÉΓòÉΓòÉ
  13442.  
  13443. _DAY is the day of the month (1 to 31). 
  13444.  
  13445.  
  13446. ΓòÉΓòÉΓòÉ 6.11.29. _DISK - Current drive (C, D, etc.) ΓòÉΓòÉΓòÉ
  13447.  
  13448. _DISK is the current disk drive, without a colon (for example, "C"). 
  13449.  
  13450.  
  13451. ΓòÉΓòÉΓòÉ 6.11.30. _DNAME - Name of file used to store file descriptions ΓòÉΓòÉΓòÉ
  13452.  
  13453. _DNAME is the name of the file used to store file descriptions.  It can be 
  13454. changed with the DescriptionName directive in TCMDOS2.INI or the SETDOS /D 
  13455. command. 
  13456.  
  13457.  
  13458. ΓòÉΓòÉΓòÉ 6.11.31. _DOS - Operating system (OS2, PM, DOS, etc.) ΓòÉΓòÉΓòÉ
  13459.  
  13460. _DOS is the operating system and command processor type.  Each JP Software 
  13461. command processor returns a different value depending on the operating system, 
  13462. as follows: 
  13463.  
  13464.         ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  13465.         Γöé                     ΓöéDOSΓöéOS/2ΓöéWindowsΓöéWindowsΓöéWindowsΓöéWindowsΓöé
  13466.         Γöé                     Γöé   Γöé    Γöé3.x    Γöé95     Γöé98     ΓöéNT     Γöé
  13467.         Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  13468.         Γöé4DOS                 ΓöéDOSΓöéDOS ΓöéDOS    ΓöéDOS    ΓöéDOS    Γöé       Γöé
  13469.         Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  13470.         Γöé4OS2                 Γöé   ΓöéOS2 Γöé       Γöé       Γöé       Γöé       Γöé
  13471.         Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  13472.         Γöé4NT                  Γöé   Γöé    Γöé       ΓöéWIN95C ΓöéWIN98C ΓöéNT     Γöé
  13473.         Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  13474.         ΓöéTake Command/16      Γöé   ΓöéWIN ΓöéWIN    Γöé       Γöé       Γöé       Γöé
  13475.         Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  13476.         ΓöéTake Command/32      Γöé   Γöé    Γöé       ΓöéWIN95  ΓöéWIN98  ΓöéWIN32  Γöé
  13477.         Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  13478.         ΓöéTake Command for OS/2Γöé   ΓöéPM  Γöé       Γöé       Γöé       Γöé       Γöé
  13479.         ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  13480.  
  13481.  This variable is useful if you have batch files running in more than one 
  13482.  environment, and need to take different actions depending on the underlying 
  13483.  operating environment or command processor.  If you want the current command 
  13484.  processor name, use _CMDPROC. 
  13485.  
  13486.  
  13487. ΓòÉΓòÉΓòÉ 6.11.32. _DOSVER - Operating system version (2.1, 3.0, etc.) ΓòÉΓòÉΓòÉ
  13488.  
  13489. _DOSVER is the current operating system version (for example, "4.0").  The 
  13490. version number is in decimal and uses the appropriate decimal separator for 
  13491. your country (to allow numeric comparisons with the IF and IFF commands.) 
  13492.  
  13493.  
  13494. ΓòÉΓòÉΓòÉ 6.11.33. _DOW - Day of the week (Mon, Tue, Wed, etc.) ΓòÉΓòÉΓòÉ
  13495.  
  13496. _DOW is the first three characters of the current day of the week ("Mon", 
  13497. "Tue", "Wed", etc.). 
  13498.  
  13499.  
  13500. ΓòÉΓòÉΓòÉ 6.11.34. _DOWI - Day of the week as an integer ΓòÉΓòÉΓòÉ
  13501.  
  13502. _DOW is the current day of the week as an integer (1=Sunday, 2=Monday, etc.). 
  13503.  
  13504.  
  13505. ΓòÉΓòÉΓòÉ 6.11.35. _DOY - Day of the year (1 - 366) ΓòÉΓòÉΓòÉ
  13506.  
  13507. _DOY is the day of the year (1 to 366). 
  13508.  
  13509.  
  13510. ΓòÉΓòÉΓòÉ 6.11.36. _FG - Foreground color ΓòÉΓòÉΓòÉ
  13511.  
  13512. _FG is a string containing the first three letters of the current foreground 
  13513. screen output color (for example, "Whi"). 
  13514.  
  13515.  
  13516. ΓòÉΓòÉΓòÉ 6.11.37. _HLOGFILE - Current history log file name ΓòÉΓòÉΓòÉ
  13517.  
  13518. _HLOGFILE  returns the name of the current history log file (or an empty string 
  13519. if LOG /H is OFF).  See LOG for details on logging. 
  13520.  
  13521.  
  13522. ΓòÉΓòÉΓòÉ 6.11.38. _HOUR - Hour (0 - 23) ΓòÉΓòÉΓòÉ
  13523.  
  13524. _HOUR is the current hour (0 - 23). 
  13525.  
  13526.  
  13527. ΓòÉΓòÉΓòÉ 6.11.39. _KBHIT - Keystroke waiting in buffer (0 or 1) ΓòÉΓòÉΓòÉ
  13528.  
  13529. _KBHIT returns 1 if one or more keystrokes are waiting in the keyboard buffer, 
  13530. or 0 if the keyboard buffer is empty. 
  13531.  
  13532.  
  13533. ΓòÉΓòÉΓòÉ 6.11.40. _LASTDISK - Last possible drive (E, F, etc.) ΓòÉΓòÉΓòÉ
  13534.  
  13535. _LASTDISK is the last valid drive letter, without a colon. 
  13536.  
  13537.  
  13538. ΓòÉΓòÉΓòÉ 6.11.41. _LOGFILE - Current log file name ΓòÉΓòÉΓòÉ
  13539.  
  13540. _LOGFILE  returns the name of the current log file (or an empty string if LOG 
  13541. is OFF).  See LOG for details on logging. 
  13542.  
  13543.  
  13544. ΓòÉΓòÉΓòÉ 6.11.42. _MINUTE - Minute (0 - 59) ΓòÉΓòÉΓòÉ
  13545.  
  13546. _MINUTE is the current minute (0 - 59). 
  13547.  
  13548.  
  13549. ΓòÉΓòÉΓòÉ 6.11.43. _MONTH - Month of the year (1 - 12) ΓòÉΓòÉΓòÉ
  13550.  
  13551. _MONTH is the month of the year (1 to 12). 
  13552.  
  13553.  
  13554. ΓòÉΓòÉΓòÉ 6.11.44. _MOUSE - Mouse driver flag (always 1 in Take Command for OS/2) ΓòÉΓòÉΓòÉ
  13555.  
  13556. _MOUSE always returns "1" in Take Command for OS/2. 
  13557.  
  13558.  
  13559. ΓòÉΓòÉΓòÉ 6.11.45. _NDP - Coprocessor type (0, 387) ΓòÉΓòÉΓòÉ
  13560.  
  13561. _NDP is the coprocessor type: 
  13562.  
  13563.         0       no coprocessor is installed 
  13564.         387     80387, 80486DX, 80487, Pentium, or Pentium Pro 
  13565.  
  13566.  
  13567. ΓòÉΓòÉΓòÉ 6.11.46. _PID - Take Command for OS/2 process ID (numeric) ΓòÉΓòÉΓòÉ
  13568.  
  13569. _PID is the current process ID number. 
  13570.  
  13571.  
  13572. ΓòÉΓòÉΓòÉ 6.11.47. _PIPE - Whether running in a pipe (0 or 1) ΓòÉΓòÉΓòÉ
  13573.  
  13574. _PIPE returns 1 if the current process is running inside a pipe or 0 otherwise. 
  13575.  
  13576.  
  13577. ΓòÉΓòÉΓòÉ 6.11.48. _PPID - Parent process ID (numeric) ΓòÉΓòÉΓòÉ
  13578.  
  13579. _PPID is the process ID number of the parent process. 
  13580.  
  13581.  
  13582. ΓòÉΓòÉΓòÉ 6.11.49. _PTYPE - OS/2 process type (PM) ΓòÉΓòÉΓòÉ
  13583.  
  13584. _PTYPE is the current OS/2 process type.  It is included for compatibility with 
  13585. 4OS2, but will always return PM in Take Command for OS/2. 
  13586.  
  13587.  
  13588. ΓòÉΓòÉΓòÉ 6.11.50. _ROW - Current cursor row ΓòÉΓòÉΓòÉ
  13589.  
  13590. _ROW is the current cursor row (for example, "0" for the top of the screen). 
  13591.  
  13592.  
  13593. ΓòÉΓòÉΓòÉ 6.11.51. _ROWS - Screen height ΓòÉΓòÉΓòÉ
  13594.  
  13595. _ROWS is the current number of screen rows (for example, "25"). See Resizing 
  13596. the Take Command Window for additional details on screen size. 
  13597.  
  13598.  
  13599. ΓòÉΓòÉΓòÉ 6.11.52. _SECOND - Second (0 - 59) ΓòÉΓòÉΓòÉ
  13600.  
  13601. _SECOND is the current second (0 - 59). 
  13602.  
  13603.  
  13604. ΓòÉΓòÉΓòÉ 6.11.53. _SELECTED - Highlighed Text ΓòÉΓòÉΓòÉ
  13605.  
  13606. _SELECTED returns the first line of text highlighted in the Take Command 
  13607. window.  If no text has been highlighted, _SELECTED returns an empty string. 
  13608.  
  13609.  
  13610. ΓòÉΓòÉΓòÉ 6.11.54. _SHELL - Shell level (0, 1, 2, ...) ΓòÉΓòÉΓòÉ
  13611.  
  13612. _SHELL is the current shell nesting level.  The primary shell is level "0", and 
  13613. each subsequent secondary shell increments the level by 1. 
  13614.  
  13615.  
  13616. ΓòÉΓòÉΓòÉ 6.11.55. _SID - Current OS/2 session ID ΓòÉΓòÉΓòÉ
  13617.  
  13618. _SID is the session ID number. 
  13619.  
  13620.  
  13621. ΓòÉΓòÉΓòÉ 6.11.56. _SYSERR - Last OS/2 error code ΓòÉΓòÉΓòÉ
  13622.  
  13623. _SYSERR is the error code of the last operating system error.  You will need a 
  13624. technical or programmer's manual to understand these error values. 
  13625.  
  13626.  
  13627. ΓòÉΓòÉΓòÉ 6.11.57. _TIME - Current time (hh:mm:ss) ΓòÉΓòÉΓòÉ
  13628.  
  13629. _TIME contains the current system time in the format hh:mm:ss.  The separator 
  13630. character may vary depending upon your country information. 
  13631.  
  13632.  
  13633. ΓòÉΓòÉΓòÉ 6.11.58. _TRANSIENT - Transient shell flag (0 or 1) ΓòÉΓòÉΓòÉ
  13634.  
  13635. _TRANSIENT is "1" if the current shell is transient (started with a /C, see 
  13636. Startup Options for details), or "0" otherwise. 
  13637.  
  13638.  
  13639. ΓòÉΓòÉΓòÉ 6.11.59. _WINTITLE - Current window title ΓòÉΓòÉΓòÉ
  13640.  
  13641. _WINTITLE returns the title of the current window. 
  13642.  
  13643.  
  13644. ΓòÉΓòÉΓòÉ 6.11.60. _XPIXELS - Horizontal screen size in pixels ΓòÉΓòÉΓòÉ
  13645.  
  13646. _XPIXELS is the physical screen horizontal size in pixels. 
  13647.  
  13648.  
  13649. ΓòÉΓòÉΓòÉ 6.11.61. _YEAR - Year (1980 - 2099) ΓòÉΓòÉΓòÉ
  13650.  
  13651. _YEAR is the current year (1980 to 2099). 
  13652.  
  13653.  
  13654. ΓòÉΓòÉΓòÉ 6.11.62. _YPIXELS - Vertical screen size in pixels ΓòÉΓòÉΓòÉ
  13655.  
  13656. _YPIXELS is the physical screen vertical size in pixels. 
  13657.  
  13658.  
  13659. ΓòÉΓòÉΓòÉ 6.12. Variable Functions ΓòÉΓòÉΓòÉ
  13660.  
  13661. Variable functions are like internal variables, but they take one or more 
  13662. arguments (which can be environment variables or even other variable functions) 
  13663. and they return a value. 
  13664.  
  13665. Like all environment variables, these variable functions must be preceded by a 
  13666. percent sign in normal use (%@EVAL, %@LEN, etc.).  All variable functions must 
  13667. have square brackets enclosing their argument(s).  The argument(s) to a 
  13668. variable function cannot exceed 255 characters in length for all arguments 
  13669. taken as a group. 
  13670.  
  13671. The variable functions are useful in aliases and batch files to check on 
  13672. available system resources, manipulate strings and numbers, and work with files 
  13673. and filenames. 
  13674.  
  13675. The list below gives a one-line description of each function, and a cross- 
  13676. reference which selects a separate help topic on that function.  A few of the 
  13677. variables are simple enough that the one-line description is sufficient, but in 
  13678. most cases you should check for any additional information in the cross- 
  13679. referenced explanation if you are not already familiar with a function.  You 
  13680. can also obtain help on any function with a HELP @functionname command at the 
  13681. prompt. 
  13682.  
  13683. Many functions return values based on information provided by your operating 
  13684. system.  Such functions will only return correct information if the operating 
  13685. system provides it.  For example, @READY will not return accurate results if 
  13686. your operating system does not provide correct disk drive status information to 
  13687. Take Command. 
  13688.  
  13689. Several functions return filenames or parts of filenames.  On HPFS drives the 
  13690. strings returned by these functions may contain whitespace or other special 
  13691. characters.  To avoid problems which could be caused by these characters, quote 
  13692. the returned name before you pass it to other commands, for example (either of 
  13693. these methods would work): 
  13694.  
  13695.         set fname="%@findfirst[pro*.*]"
  13696.         echo First PRO file contains:
  13697.         type %fname
  13698.         .....
  13699.  
  13700.         set fname=%@findfirst[pro*.*]
  13701.         echo First PRO file contains:
  13702.         type "%fname"
  13703.         .....
  13704.  
  13705. If you don't use the quotes in the SET or TYPE command in this example, TYPE 
  13706. will not interpret any whitespace or special characters in the name properly. 
  13707.  
  13708. See the discussion after the function list for some additional information, and 
  13709. examples of how these functions can be used.  For a more comprehensive set of 
  13710. examples see the EXAMPLES.BTM file which came with your copy of Take Command. 
  13711.  
  13712. The variable functions are: 
  13713.  
  13714. System status 
  13715.  
  13716.         @DOSMEM[b|k|m]                      Size of largest free memory block 
  13717.         @READSCR[row,col,len]               Read characters from the screen 
  13718.  
  13719.  Drives and devices 
  13720.  
  13721.         @CDROM[d:]                          CD-ROM drive detection (0 or 1) 
  13722.         @DEVICE[name]                       Character device detection 
  13723.         @DISKFREE[d:, b|k|m]                Free disk space 
  13724.         @DISKTOTAL[d:,b|k|m]                To tal disk space 
  13725.         @ DISKUSED[d:,b|k|m]                Used disk space 
  13726.         @FSTYPE[d:]                         File system type (FAT, HPFS, CDFS, 
  13727.                                             etc.) 
  13728.         @LABEL[d:]                          Volume label 
  13729.         @READY[d:]                          Drive ready status (0 or 1) 
  13730.         @REMOTE[d:]                         Remote (network) drive detection (0 
  13731.                                             or 1) 
  13732.         @REMOVABLE[d:]                      Removable drive detection (0 or 1) 
  13733.  
  13734.  Files 
  13735.  
  13736.         @ATTRIB[filename,[nrhsda]]          File attribute test (0 or 1) 
  13737.         @DESCRIPT[filename]                 File description 
  13738.         @EAREAD[filename,EAname]            Reads extended attribute 
  13739.         @EAWRITE[filename,EAname,[value]]   Writes extended attribute 
  13740.         @EXETYPE[filename]                  Executable file type (DOS, PM, WIN, 
  13741.                                             etc.) 
  13742.         @FILEAGE[filename[,acw]]            File age (date and time) 
  13743.         @FILECLOSE[n]                       Close a file 
  13744.         @FILEDATE[filename[,acw]]           File date 
  13745.         @FILEOPEN[filename,mode[,type]]     Open a file 
  13746.         @FILEREAD[n [,length]]              Read next line from a file 
  13747.         @FILES[filename[,-nrhsda]]          Count files matching a wildcard 
  13748.         @FILESEEK[n,offset,start]           Move a file pointer 
  13749.         @FILESEEKL[n,line]                  Move a file pointer to a specified 
  13750.                                             line 
  13751.         @FILESIZE[filename,b|k|m]           Size of files matching a wildcard 
  13752.         @FILETIME[filename[,acw]]           File time 
  13753.         @FILEWRITE[n,text]                  Write next line to a file 
  13754.         @FILEWRITEB[n,length,text]          Write data to a file 
  13755.         @FINDCLOSE[filename]                Terminate an @FINDFIRST / @FINDNEXT 
  13756.                                             scan 
  13757.         @FINDFIRST[filename,nrhsda]         Find first matching file 
  13758.         @FINDNEXT[filename,nrhsda]          Find next matching file 
  13759.         @LINE[filename,n]                   Read a random line from a file 
  13760.         @LINES[filename]                    Count lines in a file 
  13761.         @SEARCH[filename]                   Path search 
  13762.         @UNIQUE[d:\path]                    Create file with unique name 
  13763.  
  13764.  File names 
  13765.  
  13766.         @EXPAND[filename,nrhsda]            Returns all names that match 
  13767.                                             filename. 
  13768.         @EXT[filename]                      File extension 
  13769.         @FILENAME[filename]                 File name and extension 
  13770.         @FULL[filename]                     Full file name with path 
  13771.         @NAME[filename]                     File name without path or extension 
  13772.         @PATH[filename]                     File path without name 
  13773.  
  13774.  Strings and characters 
  13775.  
  13776.         @ASCII[c]                           Numeric ASCII value for a character 
  13777.         @CHAR[n]                            Character value for numeric ASCII 
  13778.         @FORMAT[[- ][x][.y],string]         Reformat a string 
  13779.         @INDEX[string1,string2]             Position of one string in another 
  13780.         @INSERT[n,string1,string2]          Inserts string1 into string2 
  13781.         @INSTR[start,length,string]         Extract a substring 
  13782.         @LEFT[n,string]                     Leftmost n characters of string 
  13783.         @LEN[string]                        Length of a string 
  13784.         @LOWER[string]                      Convert string to lower case 
  13785.         @REPEAT[c,n]                        Repeat a character 
  13786.         @REPLACE[str1,str2,text]            Replace str1 with str2 in text. 
  13787.         @RIGHT[n,string]                    Rightmost n characters of substring 
  13788.         @STRIP[chars,string]                Strips all chars from string. 
  13789.         @SUBSTR[string,start,length]        Extract a substring 
  13790.         @TRIM[string]                       Remove blanks from a string 
  13791.         @UPPER[string]                      Convert string to upper case 
  13792.         @WILD[str1,str2]                    Compares strings using wildcards. 
  13793.         @WORD[["sep",]n,string]             Extract a word from a string 
  13794.         @WORDS[["sep",]string]              Counts words in a string 
  13795.  
  13796.  Numbers and arithmetic 
  13797.  
  13798.         @COMMA[n]                           Inserts commas in a number 
  13799.         @CONVERT[input,output,value]        Convert from input base to output 
  13800.                                             base. 
  13801.         @DEC[%var]                          Decremented value of a variable 
  13802.         @EVAL[expression]                   Arithmetic calculations 
  13803.         @INC[%var]                          Incremented value of a variable 
  13804.         @INT[n]                             Integer part of a number 
  13805.         @NUMERIC[string]                    Test if a string is numeric 
  13806.         @RANDOM[min,max]                    Generate a random integer 
  13807.  
  13808.  Dates and times 
  13809.  
  13810.         @DAY[mm-dd-yy]                      Returns day of the month for date. 
  13811.         @DATE[mm-dd-yy]                     Convert date to number of days 
  13812.         @DOW[mm-dd-yy]                      Returns day of the week for date 
  13813.         @DOWI[mm-dd-yy]                     Returns day of the week as integer 
  13814.         @DOY[mm-dd-yy]                      Returns day of the year for date 
  13815.         @MAKEAGE[n]                         Convert date to file timestamp 
  13816.                                             format 
  13817.         @MAKEDATE[n]                        Convert number of days to date 
  13818.         @MAKETIME[n]                        Convert number of seconds to time 
  13819.         @MONTH[mm-dd-yy]                    Returns month for date 
  13820.         @TIME[hh:mm:ss]                     Convert time to number of seconds 
  13821.         @YEAR[mm-dd-yy]                     Returns year for date 
  13822.  
  13823.  Utility 
  13824.  
  13825.         @ALIAS[name]                        Value of an alias 
  13826.         @CLIP[n]                            Returns line n from clipboard 
  13827.         @EXEC[command]                      Execute a command 
  13828.         @EXECSTR[command]                   Execute, return string 
  13829.         @IF[condition,true,false]           Evaluates an expression 
  13830.         @REXX[expr]                         Execute a REXX expression 
  13831.         @SELECT[file,t,l,b,r,title]         Menu selection 
  13832.         @TIMER[n]                           Elapsed time of specified timer 
  13833.  
  13834.  Examples 
  13835.  
  13836.  You can use variable functions in a wide variety of ways depending on your 
  13837.  needs.  We've included a few examples below to give you an idea of what's 
  13838.  possible.  For a more comprehensive set of examples see the EXAMPLES.BTM file 
  13839.  which came with your copy of Take Command. 
  13840.  
  13841.  To set the prompt to show the amount of free memory (see PROMPT for details on 
  13842.  including variable functions in your prompt): 
  13843.  
  13844.           [c:\] prompt (%%@dosmem[K]K) $p$g
  13845.  
  13846.  Set up a simple command-line calculator.  The calculator is used with a 
  13847.  command like CALC 3 * (4 + 5): 
  13848.  
  13849.           [c:\] alias calc `echo The answer is:  %@eval[%&]`
  13850.  
  13851.  The following batch file uses variable functions to implement a "once a day" 
  13852.  execution of a group of commands.    It works by constructing a 6-digit number 
  13853.  "yymmdd" from today's date, and comparing that to a number of the same type 
  13854.  stored in the file C:\ONCEADAY.DAT.  If today's date is numerically larger 
  13855.  than the saved date, and the time is after 6:00 AM, then the "once a day" 
  13856.  commands are run, and today's date is saved in the file as the new date for 
  13857.  comparison.  Otherwise, no action is taken.  You can make this file simpler 
  13858.  using the %@DATE and %@TIME functions instead of using %@INSTR to extract 
  13859.  substrings of the %_DATE and %_TIME variables; we used the approach shown to 
  13860.  demonstrate the use of %@INSTR. 
  13861.  
  13862.           rem  Temporary variables used to shorten example lines:
  13863.           rem    DD is _date, DY is yymmdd date, TM is _time
  13864.           set dd=%_date
  13865.           set dy=%@instr[6,2,%dd]%@instr[0,2,%dd]%@instr[3,2,%dd]
  13866.           set lastdate=0
  13867.           iff exist c:\onceaday.dat then
  13868.             set lastdate=%@line[onceaday.dat,0]
  13869.           endiff
  13870.           iff %dy gt %lastdate then
  13871.             set tm=%_time
  13872.             iff "%@instr[0,2,%tm]%@instr[3,2,%tm]" gt "0600" then
  13873.               rem Commands to be executed once a day go here
  13874.               echo %dy > c:\onceaday.dat
  13875.             endiff
  13876.           endiff
  13877.  
  13878.  
  13879. ΓòÉΓòÉΓòÉ 6.12.1. @ALIAS - Value of an alias ΓòÉΓòÉΓòÉ
  13880.  
  13881. @ALIAS[name]  Returns the contents of the specified alias as a string, or a 
  13882. null string if the alias doesn't exist.  When manipulating strings returned by 
  13883. @ALIAS you may need to disable certain special characters with the SETDOS /X 
  13884. command. Otherwise, command separators, redirection characters, and other 
  13885. similar "punctuation" in the alias may be interpreted as part of the current 
  13886. command, rather than part of a simple text string. 
  13887.  
  13888.  
  13889. ΓòÉΓòÉΓòÉ 6.12.2. @ASCII - Numeric ASCII value for a character ΓòÉΓòÉΓòÉ
  13890.  
  13891. @ASCII[c]:  Returns the numeric value of the specified ASCII character as a 
  13892. string.  For example %@ASCII[A] returns 65.  You can put an escape character 
  13893. [^] before the actual character to process. This allows quotes and other 
  13894. special characters as the argument (e.g., %@ASCII[^`]). 
  13895.  
  13896.  
  13897. ΓòÉΓòÉΓòÉ 6.12.3. @ATTRIB - File attribute test (0 or 1) ΓòÉΓòÉΓòÉ
  13898.  
  13899. @ATTRIB[filename[,-nrhsda[,p]]]:  Returns a "1" if the specified file has the 
  13900. matching attribute(s); otherwise returns a "0".  The attributes are: 
  13901.  
  13902.         N   Normal (no attributes set) 
  13903.         R   Read-only 
  13904.         H   Hidden 
  13905.         S   System 
  13906.         D   Directory 
  13907.         A   Archive 
  13908.  
  13909.  The attributes (other than N) can be combined (for example 
  13910.  %@ATTRIB[MYFILE,HS]).  Normally ATTRIB will only return a "1" if all of the 
  13911.  attributes match.  However, if a final ,p is included (for partial match), 
  13912.  then @ATTRIB will return a "1" if any of the attributes match.  For example, 
  13913.  %@ATTRIB[MYFILE,HS,p] will return a "1" if MYFILE has the hidden, system, or 
  13914.  both attributes.  Without ,p the function will return a "1" only if MYFILE has 
  13915.  both attributes. 
  13916.  
  13917.  You can prefix an attribute with "-" to mean "this attribute must be off". For 
  13918.  example, %@ATTRIB[MYFILE,H-R] will return a "1" if MYFILE has the hidden 
  13919.  attribute but not the read-only attribute. 
  13920.  
  13921.  If you do not specify any attributes, @ATTRIB will return the attributes of 
  13922.  the specified file in the format RHSAD, rather than a "0" or "1". Attributes 
  13923.  which are not set will be replaced with an underscore.  For example. if 
  13924.  SECURE.DAT has the read-only, hidden, and archive attributes set, 
  13925.  %@ATTRIB[SECURE.DAT] would return "RH_A_" (without the quotes).  If the file 
  13926.  does not exist, @ATTRIB will return an empty string. 
  13927.  
  13928.  The filename must be in quotes if it contains whitespace or special 
  13929.  characters. 
  13930.  
  13931.  
  13932. ΓòÉΓòÉΓòÉ 6.12.4. @CDROM - CD-ROM drive detection (0 or 1) ΓòÉΓòÉΓòÉ
  13933.  
  13934. @CDROM[d:]:  Returns "1" if the drive is a CD-ROM or "0" otherwise.  The drive 
  13935. letter must be followed by a colon. 
  13936.  
  13937.  
  13938. ΓòÉΓòÉΓòÉ 6.12.5. @CHAR - Character value for numeric ASCII ΓòÉΓòÉΓòÉ
  13939.  
  13940. @CHAR[n]:  Returns the character corresponding to an ASCII numeric value.  For 
  13941. example %@CHAR[65] returns A. 
  13942.  
  13943.  
  13944. ΓòÉΓòÉΓòÉ 6.12.6. @CLIP - Returns line from the clipboard ΓòÉΓòÉΓòÉ
  13945.  
  13946. @CLIP[n]:  Returns line n from the clipboard.  The first line is numbered 0. 
  13947. "**EOC**" is returned for all line numbers beyond the end of the clipboard. 
  13948.  
  13949.  
  13950. ΓòÉΓòÉΓòÉ 6.12.7. @COMMA - Inserts commas in a number ΓòÉΓòÉΓòÉ
  13951.  
  13952. @COMMA[n]:  Returns the number n with commas (or the appropriate thousands 
  13953. separator for your current country setting) inserted where appropriate. 
  13954.  
  13955.  
  13956. ΓòÉΓòÉΓòÉ 6.12.8. @CONVERT - Converts between number bases ΓòÉΓòÉΓòÉ
  13957.  
  13958. @CONVERT[input,output,value]:  Converts a numeric string (value) from one 
  13959. number base (input) to another (output).  Valid bases range from 2 to 36.  The 
  13960. value must be between 0 and 2**32-1 (2,147,483,647).  No error is returned if 
  13961. value is outside that range.  For example, to convert "1010101" from binary to 
  13962. decimal, use this command: 
  13963.  
  13964.         %@convert[2,10,1010101]
  13965.  
  13966.  
  13967. ΓòÉΓòÉΓòÉ 6.12.9. @DATE - Convert date to number of days ΓòÉΓòÉΓòÉ
  13968.  
  13969. @DATE[mm-dd-yy]:  Returns the number of days since January 1, 1980 for the 
  13970. specified date.  DATE uses the date format and separators mandated by your 
  13971. country code (for example dd.mm.yy in Germany, or yy-mm-dd in Japan).  The year 
  13972. can be entered as a 4-digit or 2-digit value.  Two-digit years between 80 and 
  13973. 99 are interpreted as 1980-1999; values between 00 and 79 are interpreted as 
  13974. 2000 - 2079. 
  13975.  
  13976.  
  13977. ΓòÉΓòÉΓòÉ 6.12.10. @DAY - Convert date to number of days ΓòÉΓòÉΓòÉ
  13978.  
  13979. @DATE[mm-dd-yy]:  Returns the numeric day of the month for the specified date. 
  13980. DAY uses the date format and separators mandated by your country code (for 
  13981. example dd.mm.yy in Germany, or yy-mm-dd in Japan).  The year can be entered as 
  13982. a 4-digit or 2-digit value.  Two-digit years between 80 and 99 are interpreted 
  13983. as 1980-1999; values between 00 and 79 are interpreted as 2000 - 2079. 
  13984.  
  13985.  
  13986. ΓòÉΓòÉΓòÉ 6.12.11. @DEC - Decremented value of a variable ΓòÉΓòÉΓòÉ
  13987.  
  13988. @DEC[%var]:  Returns the same value as @EVAL[%var-1].  That is, it retrieves 
  13989. and decrements the value of a variable.  The variable itself is not changed; to 
  13990. do so, use a command like this: 
  13991.  
  13992.         set var=%@dec[%var]
  13993.  
  13994.  
  13995. ΓòÉΓòÉΓòÉ 6.12.12. @DESCRIPT - File description ΓòÉΓòÉΓòÉ
  13996.  
  13997. @DESCRIPT[filename]  Returns the file description for the specified filename 
  13998. (see DESCRIBE). The filename must be in quotes if it contains whitespace or 
  13999. special characters. 
  14000.  
  14001.  
  14002. ΓòÉΓòÉΓòÉ 6.12.13. @DEVICE - Character device detection ΓòÉΓòÉΓòÉ
  14003.  
  14004. @DEVICE[name]:  Returns "1" if the specified name is a character device (such 
  14005. as a printer or serial port), or "0" if not. 
  14006.  
  14007.  
  14008. ΓòÉΓòÉΓòÉ 6.12.14. @DISKFREE - Free disk space ΓòÉΓòÉΓòÉ
  14009.  
  14010. @DISKFREE[d:,b|k|m]: Returns the amount of free disk space on the specified 
  14011. drive.  The drive letter must be followed by a colon.  DOS networks with large 
  14012. server disk drives (over 2 GB) may report disk space values that are too small 
  14013. when @DISKFREE is used.  If this occurs, it is because the network software 
  14014. does not report the propoer value to Take Command. 
  14015.  
  14016. The "b|k|m" argument specified the format of the returned value: 
  14017.  
  14018.         b   return the number of bytes 
  14019.         K   return the number of kilobytes (bytes / 1,024) 
  14020.         k   return the number of thousands of bytes (bytes / 1,000) 
  14021.         M   return the number of megabytes (bytes / 1,048,576) 
  14022.         m   return the number of millions of bytes (bytes / 1,000,000) 
  14023.  
  14024.  You can include commas in the results from a "b|k|m" function by appending a 
  14025.  "c" to the argument.  For example, to add commas to a "b" or number of bytes 
  14026.  result, enter "bc" as the argument. 
  14027.  
  14028.  
  14029. ΓòÉΓòÉΓòÉ 6.12.15. @DISKTOTAL - Total disk space ΓòÉΓòÉΓòÉ
  14030.  
  14031. @DISKTOTAL[d:,b|k|m]:  Returns the total disk space on the specified drive. 
  14032. The drive letter must be followed by a colon. 
  14033.  
  14034. The "b|k|m" argument specified the format of the returned value: 
  14035.  
  14036.         b   return the number of bytes 
  14037.         K   return the number of kilobytes (bytes / 1,024) 
  14038.         k   return the number of thousands of bytes (bytes / 1,000) 
  14039.         M   return the number of megabytes (bytes / 1,048,576) 
  14040.         m   return the number of millions of bytes (bytes / 1,000,000) 
  14041.  
  14042.  You can include commas in the results from a "b|k|m" function by appending a 
  14043.  "c" to the argument.  For example, to add commas to a "b" or number of bytes 
  14044.  result, enter "bc" as the argument. 
  14045.  
  14046.  
  14047. ΓòÉΓòÉΓòÉ 6.12.16. @DISKUSED - Used disk space ΓòÉΓòÉΓòÉ
  14048.  
  14049. @DISKUSED[d:,b|k|m]:  Returns the amount of disk space in use by files and 
  14050. directories on the specified drive. The drive letter must be followed by a 
  14051. colon. 
  14052.  
  14053. The "b|k|m" argument specified the format of the returned value: 
  14054.  
  14055.         b   return the number of bytes 
  14056.         K   return the number of kilobytes (bytes / 1,024) 
  14057.         k   return the number of thousands of bytes (bytes / 1,000) 
  14058.         M   return the number of megabytes (bytes / 1,048,576) 
  14059.         m   return the number of millions of bytes (bytes / 1,000,000) 
  14060.  
  14061.  You can include commas in the results from a "b|k|m" function by appending a 
  14062.  "c" to the argument.  For example, to add commas to a "b" or number of bytes 
  14063.  result, enter "bc" as the argument. 
  14064.  
  14065.  
  14066. ΓòÉΓòÉΓòÉ 6.12.17. @DOSMEM - Size of largest free memory block ΓòÉΓòÉΓòÉ
  14067.  
  14068. @DOSMEM[b|k|m]:  Returns the size of the largest free memory block (either in 
  14069. physical or virtual memory). 
  14070.  
  14071. The "b|k|m" argument specified the format of the returned value: 
  14072.  
  14073.         b   return the number of bytes 
  14074.         K   return the number of kilobytes (bytes / 1,024) 
  14075.         k   return the number of thousands of bytes (bytes / 1,000) 
  14076.         M   return the number of megabytes (bytes / 1,048,576) 
  14077.         m   return the number of millions of bytes (bytes / 1,000,000) 
  14078.  
  14079.  You can include commas in the results from a "b|k|m" function by appending a 
  14080.  "c" to the argument.  For example, to add commas to a "b" or number of bytes 
  14081.  result, enter "bc" as the argument. 
  14082.  
  14083.  
  14084. ΓòÉΓòÉΓòÉ 6.12.18. @DOW - Day of the week ΓòÉΓòÉΓòÉ
  14085.  
  14086. @DOW[mm-dd-yy]:  Returns the first three characters of the day of the week for 
  14087. the specified date ("Mon", "Tue", "Wed", etc.).  DOW uses the date format and 
  14088. separators mandated by your country code (for example dd.mm.yy in Germany, or 
  14089. yy-mm-dd in Japan).  The year can be entered as a 4- digit or 2-digit value. 
  14090. Two-digit years between 80 and 99 are interpreted as 1980-1999; values between 
  14091. 00 and 79 are interpreted as 2000 - 2079. 
  14092.  
  14093.  
  14094. ΓòÉΓòÉΓòÉ 6.12.19. @DOWI - Day of the week as an integer ΓòÉΓòÉΓòÉ
  14095.  
  14096. @DOWI[mm-dd-yy]:  Returns the day of the week for the specified date as an 
  14097. integer (1 = Sunday, 2 = Monday, etc.).  DOWI uses the date format and 
  14098. separators mandated by your country code (for example dd.mm.yy in Germany, or 
  14099. yy-mm-dd in Japan).  The year can be entered as a 4-digit or 2- digit value. 
  14100. Two-digit years between 80 and 99 are interpreted as 1980-1999; values between 
  14101. 00 and 79 are interpreted as 2000 - 2079. 
  14102.  
  14103.  
  14104. ΓòÉΓòÉΓòÉ 6.12.20. @DOY - Day of the year ΓòÉΓòÉΓòÉ
  14105.  
  14106. @DOY[mm-dd-yy]:  Returns the day of the year for the specified date (1 - 366). 
  14107. DOY uses the date format and separators mandated by your country code (for 
  14108. example dd.mm.yy in Germany, or yy-mm-dd in Japan). The year can be entered as 
  14109. a 4-digit or 2-digit value.  Two-digit years between 80 and 99 are interpreted 
  14110. as 1980-1999; values between 00 and 79 are interpreted as 2000 - 2079. 
  14111.  
  14112.  
  14113. ΓòÉΓòÉΓòÉ 6.12.21. @EAREAD - Reads Extended Attribute ΓòÉΓòÉΓòÉ
  14114.  
  14115. @EAREAD[filename,EAname]:  Returns the specified extended attribute (EAname) 
  14116. for a file, or an empty string if the extended attribute does not exist.  This 
  14117. function can only read EAs stored as text; it cannot read binary EAs. 
  14118. Wildcards cannot be used in the filename. The filename must be in quotes if it 
  14119. contains whitespace or special characters.  For example, to read the .SUBJECT 
  14120. extended attribute for README.TXT: 
  14121.  
  14122.         set subject=%@earead[readme.txt,.subject]
  14123.  
  14124.  
  14125. ΓòÉΓòÉΓòÉ 6.12.22. @EAWRITE - Writes Extended Attribute ΓòÉΓòÉΓòÉ
  14126.  
  14127. @EAWRITE[filename, EAname, [value]]:  Creates or updates the extended attribute 
  14128. named EAname for the specified file.  If the value is not included, the 
  14129. extended attribute is deleted.  Returns "0" for success or "-1" for failure. 
  14130. This function can only write EAs stored as text; it cannot write binary EAs. 
  14131.  
  14132. Wildcards cannot be used in the file name and the filename must be in quotes if 
  14133. it contains whitespace or special characters. 
  14134.  
  14135. For example, to set the .SUBJECT extended attribute for README.TXT (enter this 
  14136. on one line): 
  14137.  
  14138.         if %@eawrite[readme.txt,.subject,Installation notes for
  14139.         latest version] != 0 echo EAWRITE failed!
  14140.  
  14141.  
  14142. ΓòÉΓòÉΓòÉ 6.12.23. @EVAL - Arithmetic calculations ΓòÉΓòÉΓòÉ
  14143.  
  14144. @EVAL[expression]:  Evaluates an arithmetic expression. @EVAL supports addition 
  14145. (+), subtraction (-), multiplication (*), division (/), integer division (\, 
  14146. returns the integer part of the quotient), modulo (%%), and integer 
  14147. exponentiation (**).  The expression can contain environment variables and 
  14148. other variable functions.  @EVAL also supports parentheses, commas, and 
  14149. decimals. Parentheses can be nested. @EVAL will strip leading and trailing 
  14150. zeros from the result.  When evaluating expressions, **, *, /, and %% take 
  14151. precedence over + and -.  For example, 3 + 4 * 2 will be interpreted as 3 + 8, 
  14152. not as 7 * 2.  To change this order of evaluation, use parentheses to specify 
  14153. the order you want. 
  14154.  
  14155. To insure that your @EVAL expressions are interpreted correctly, spaces should 
  14156. be placed on both sides of an operator, for example: 
  14157.  
  14158.         %@eval[(20 %% 3) + 4]
  14159.  
  14160. The maximum precision is 16 digits to the left of the decimal point and 0 to 8 
  14161. digits to the right of the decimal point.  You can alter the default precision 
  14162. to the right of the decimal point from the Options 2 page of the configuration 
  14163. notebook, with the EvalMax and EvalMin directives in TCMDOS2.INI, and with the 
  14164. SETDOS /F command.  You can alter the decimal character with the configuration 
  14165. notebook, the DecimalChar directive, or the SETDOS /G command. 
  14166.  
  14167. You can alter the precision for a single evaluation with the construct 
  14168. @EVAL[expression=x.y].  The x value specifies the the minimum decimal precision 
  14169. (the minimum number of decimal places displayed); the y value sets the maximum 
  14170. decimal (rounding) precision.  If x is greater than y, it is ignored.  You can 
  14171. specify either or both arguments.  For example: 
  14172.  
  14173.         @EVAL[3 / 7=.4]   returns 0.4286
  14174.         @EVAL[3 / 7=2]    returns 0.42857143
  14175.         @EVAL[3 / 7=2.4]  returns 0.50
  14176.  
  14177. Also see @DEC and @INC. 
  14178.  
  14179.  
  14180. ΓòÉΓòÉΓòÉ 6.12.24. @EXEC - Execute a command ΓòÉΓòÉΓòÉ
  14181.  
  14182. @EXEC[command]:  Execute the command and return the numeric exit code.  The 
  14183. command can be an alias, internal command, external command, .BTM file, .CMD 
  14184. file, or .BAT file.  If you preface the command name with an '@' then @EXEC 
  14185. will return an empty string. 
  14186.  
  14187. @EXEC is primarily intended for running a program from within the PROMPT.  It 
  14188. is a "back door" entry into command processing and should be used with extreme 
  14189. caution.  Incorrect or recursive use of @EXEC may hang your system. 
  14190.  
  14191. By default, @EXEC returns the result code from the command; if you preface the 
  14192. command name with an '@' then @EXEC will return an empty string. 
  14193.  
  14194.  
  14195. ΓòÉΓòÉΓòÉ 6.12.25. @EXECSTR - Execute a command and return output ΓòÉΓòÉΓòÉ
  14196.  
  14197. @EXECSTR[command]:  Runs the specified command and returns the first line 
  14198. written to STDOUT by that command.  @EXECSTR is a "back door" entry into 
  14199. command processing and should be used with extreme caution.  Incorrect or 
  14200. recursive use of @EXECSTR may hang your system. 
  14201.  
  14202. @EXECSTR is useful for retrieving a result from an external utility -- for 
  14203. example, if you have an external utility called NETTIME.EXE which retireves the 
  14204. time of day from your network server and writes it to standard output, you 
  14205. could save it in an environment variable using a command like this: 
  14206.  
  14207.         set server_time=%@execstr[d:\path\nettime.exe]
  14208.  
  14209. If the same utility reurned a result properly formatted for the TIME command 
  14210. you could also use it to set the time on your system: 
  14211.  
  14212.         [c:\] time %@execstr[d:\path\nettime.exe]
  14213.  
  14214.  
  14215. ΓòÉΓòÉΓòÉ 6.12.26. @EXETYPE - Executable file type (DOS, PM, WIN, etc.) ΓòÉΓòÉΓòÉ
  14216.  
  14217. @EXETYPE[filename]:  Returns the application type as a string: 
  14218.  
  14219.         DOS         DOS .COM, .EXE, or .BAT file 
  14220.         AVIO        OS/2 Character mode, windowed 
  14221.         FS          OS/2 Character mode, full-screen 
  14222.         PM          OS/2 Presentation Manager 
  14223.         WIN         Windows 3 
  14224.         UNKNOWN     Any other file 
  14225.  
  14226.  
  14227. ΓòÉΓòÉΓòÉ 6.12.27. @EXPAND - All files that match wildcard ΓòÉΓòÉΓòÉ
  14228.  
  14229. @EXPAND[filename[-nrhsda]]:  Returns, on a single line, the names of all files 
  14230. and directories that match the filename, which may contain wildcards and 
  14231. include lists.  Returns an empty string if no files match.  If the file list is 
  14232. longer than the allowed command line length, it will be truncated without an 
  14233. error message. 
  14234.  
  14235. The second argument, if included, defines the attributes of the files that will 
  14236. be included in the search.  The attributes are: 
  14237.  
  14238.         N   Normal (no attributes set) 
  14239.         R   Read-only 
  14240.         H   Hidden 
  14241.         S   System 
  14242.         D   Directory 
  14243.         A   Archive 
  14244.  
  14245.  The attributes (other than N) can be combined.  You can prefix an attribute 
  14246.  with "-" to mean "this attribute must be off". 
  14247.  
  14248.  If the attribute argument is not used, hidden files, system files, and 
  14249.  directories will be excluded from the returned list; all other files which 
  14250.  match the filename will be included. 
  14251.  
  14252.  The filename must be in quotes if it contains whitespace or special 
  14253.  characters.  On an HPFS drive, the returned filenames may contain whitespace 
  14254.  or special characters.  To avoid problems which could be caused by these 
  14255.  characters, quote the returned names before you pass them to other commands. 
  14256.  
  14257.  
  14258. ΓòÉΓòÉΓòÉ 6.12.28. @EXT - File extension ΓòÉΓòÉΓòÉ
  14259.  
  14260. @EXT[filename]:  Returns the extension from a file name, without a leading 
  14261. period.  On volumes which support long file names, the extension can be up to 
  14262. 64 characters long.  On traditional FAT drives it can be up to 3 characters 
  14263. long.  The filename must be in quotes if it contains whitespace or special 
  14264. characters. 
  14265.  
  14266. On an HPFS drive, the returned extension may contain whitespace or special 
  14267. characters.  To avoid problems which could be caused by these characters, quote 
  14268. the returned extension before you pass it to other commands. 
  14269.  
  14270.  
  14271. ΓòÉΓòÉΓòÉ 6.12.29. @FILEAGE - File age (date and time) ΓòÉΓòÉΓòÉ
  14272.  
  14273. @FILEAGE[filename[,acw]]:  Returns the date and time of the file as a single 
  14274. numeric value.  The number can be used to compare the relative ages of two or 
  14275. more files, but can not be used for date and time calculations as it is not 
  14276. returned in identifiable units.  The optional second argument selects which 
  14277. date field is returned for files on an HPFS drive: a means the last access 
  14278. date, c means the creation date, and w means the last modification (write) 
  14279. date, which is the default.  Also see @MAKEAGE. 
  14280.  
  14281.  
  14282. ΓòÉΓòÉΓòÉ 6.12.30. @FILECLOSE - Close a file ΓòÉΓòÉΓòÉ
  14283.  
  14284. @FILECLOSE[n]:  Closes the file whose handle is n. You cannot close handles 0, 
  14285. 1 or 2.  Returns "0" if the file closed OK or "-1" if an error occurred. 
  14286.  
  14287. This function should only be used with file handles returned by @FILEOPEN!  If 
  14288. you use it with any other number you may damage other files opened by Take 
  14289. Command (or by the program which started Take Command), or hang your system. 
  14290.  
  14291.  
  14292. ΓòÉΓòÉΓòÉ 6.12.31. @FILEDATE - File date ΓòÉΓòÉΓòÉ
  14293.  
  14294. @FILEDATE[filename[,acw]]:  Returns the date a file was last modified, in the 
  14295. default country format (mm-dd-yy for the US).  The filename must be in quotes 
  14296. if it contains whitespace or special characters.  The optional second argument 
  14297. selects which date field is returned for files on an HPFS drive:  a means the 
  14298. last access date, c means the creation date, and w means the last modification 
  14299. (write) date, which is the default. 
  14300.  
  14301.  
  14302. ΓòÉΓòÉΓòÉ 6.12.32. @FILENAME - File name and extension ΓòÉΓòÉΓòÉ
  14303.  
  14304. @FILENAME[filename]:  Returns the name and extension of a file, without a path. 
  14305.  
  14306. The filename must be in quotes if it contains whitespace or special characters. 
  14307. On HPFS drives, the returned filename may contain whitespace or other special 
  14308. characters.  To avoid problems which could be caused by these characters, quote 
  14309. the returned name before you pass it to other commands. 
  14310.  
  14311.  
  14312. ΓòÉΓòÉΓòÉ 6.12.33. @FILEOPEN - Open a file ΓòÉΓòÉΓòÉ
  14313.  
  14314. @FILEOPEN[filename, read | write | append[,b|t]]:  Opens the file in the 
  14315. specified mode and returns the file handle as an integer.  The optional third 
  14316. parameter controls whether the file is opened in binary or text mode.  Text 
  14317. mode (the default) should be used to read text using @FILEREAD without a 
  14318. "length", and to write text using @FILEWRITE.  Binary mode should be used to 
  14319. read binary data with @FILEREAD with a "length", and to write binary data with 
  14320. @FILEWRITEB.  Returns "-1" if the file cannot be opened. 
  14321.  
  14322. The filename must be in quotes if it contains whitespace or special characters. 
  14323.  
  14324. @FILEOPEN can also open named pipes.  The pipe name must begin with \\.\pipe\. 
  14325. @FILEOPEN first tries to open an existing pipe; if that fails it tries to 
  14326. create a new pipe.  Pipes are opened in blocking mode, duplex access, byte- 
  14327. read mode, and inheritable.  For more information on named pipes see your OS/2 
  14328. documentation. 
  14329.  
  14330.  
  14331. ΓòÉΓòÉΓòÉ 6.12.34. @FILEREAD - Read data from a file ΓòÉΓòÉΓòÉ
  14332.  
  14333. @FILEREAD[n[,length]]:  Reads data from the file whose handle is n.  Returns 
  14334. "**EOF**" if you attempt to read past the end of the file.  If length is not 
  14335. specified, @FILEREAD reads up to the next CR or LF character.  If length is 
  14336. specified, @FILEREAD reads the specified number of bytes regardless of any end 
  14337. of line characters. 
  14338.  
  14339. This function should only be used with file handles returned by @FILEOPEN!  If 
  14340. you use it with any other number you may damage other files opened by Take 
  14341. Command (or by the program which started Take Command), or hang your system. 
  14342.  
  14343.  
  14344. ΓòÉΓòÉΓòÉ 6.12.35. @FILES - Count files matching a wildcard ΓòÉΓòÉΓòÉ
  14345.  
  14346. @FILES[filename[,-nrhsda]]:  Returns the number of files that match the 
  14347. filename, which may contain wildcards and include lists.  The filename must 
  14348. refer to a single directory; to check several directories, use @FILES once for 
  14349. each directory, and add the results together with @EVAL. 
  14350.  
  14351. The filename must be in quotes if it contains whitespace or special characters. 
  14352.  
  14353. The second argument, if included, defines the attributes of the files that will 
  14354. be included in the search.  The attributes are: 
  14355.  
  14356.         N   Normal (no attributes set) 
  14357.         R   Read-only 
  14358.         H   Hidden 
  14359.         S   System 
  14360.         D   Directory 
  14361.         A   Archive 
  14362.  
  14363.  The attributes (other than N) can be combined.  You can prefix an attribute 
  14364.  with "-" to mean "everything except files with this attribute." 
  14365.  
  14366.  
  14367. ΓòÉΓòÉΓòÉ 6.12.36. @FILESEEK - Move a file pointer to an offset ΓòÉΓòÉΓòÉ
  14368.  
  14369. @FILESEEK[n,offset,start]:  Moves the file pointer offset bytes in the file 
  14370. whose handle is n.  Returns the new position of the pointer, in bytes from the 
  14371. start of the file.  Set start to 0 to seek relative to the beginning of the 
  14372. file, 1 to seek relative to the current file pointer, or 2 to seek relative to 
  14373. the end of the file.  The offset value may be negative (seek backward), 
  14374. positive (seek forward), or zero (return current position, but do not change 
  14375. it). 
  14376.  
  14377. This function should only be used with file handles returned by @FILEOPEN!  If 
  14378. you use it with any other number you may damage other files opened by Take 
  14379. Command (or by the program which started Take Command), or hang your system. 
  14380.  
  14381.  
  14382. ΓòÉΓòÉΓòÉ 6.12.37. @FILESEEKL - Move a file pointer to a line number ΓòÉΓòÉΓòÉ
  14383.  
  14384. @FILESEEKL[n,line]:  Moves the file pointer to the specified line in the file 
  14385. whose handle is n. The first line in the file is numbered 0.  Returns the new 
  14386. position of the pointer, in bytes from the start of the file.  @FILESEEKL must 
  14387. read each line of the file up to the target line in order to position the 
  14388. pointer, and will therefore cause significant delays if used in a long loop or 
  14389. on a large file. 
  14390.  
  14391. This function should only be used with file handles returned by @FILEOPEN!  If 
  14392. you use it with any other number you may damage other files opened by Take 
  14393. Command (or by the program which started Take Command), or hang your system. 
  14394.  
  14395.  
  14396. ΓòÉΓòÉΓòÉ 6.12.38. @FILESIZE - Size of files matching a wildcard ΓòÉΓòÉΓòÉ
  14397.  
  14398. @FILESIZE[filename,b|k|m[,a]]:  Returns the size of a file, or "-1" if the file 
  14399. does not exist.  If the filename includes wildcards or an include list, returns 
  14400. the combined size of all matching files.  The filename must be in quotes if it 
  14401. contains whitespace or special characters. 
  14402.  
  14403. The optional third argument a (allocated), if used, instructs @FILESIZE to 
  14404. return the amount of space allocated for the file(s) on the disk, rather than 
  14405. the amount of data in the file.  Network drives and compressed drives may not 
  14406. always report allocated sizes accurately, depending on the way the network or 
  14407. disk compression software is implemented. 
  14408.  
  14409. The "b|k|m" argument specified the format of the returned value: 
  14410.  
  14411.         b   return the number of bytes 
  14412.         K   return the number of kilobytes (bytes / 1,024) 
  14413.         k   return the number of thousands of bytes (bytes / 1,000) 
  14414.         M   return the number of megabytes (bytes / 1,048,576) 
  14415.         m   return the number of millions of bytes (bytes / 1,000,000) 
  14416.  
  14417.  You can include commas in the results from a "b|k|m" function by appending a 
  14418.  "c" to the argument.  For example, to add commas to a "b" or number of bytes 
  14419.  result, enter "bc" as the argument. 
  14420.  
  14421.  
  14422. ΓòÉΓòÉΓòÉ 6.12.39. @FILETIME - File time ΓòÉΓòÉΓòÉ
  14423.  
  14424. @FILETIME[filename[,acw]]:  Returns the time a file was last modified, in hh:mm 
  14425. format.  The filename must be in quotes if it contains whitespace or special 
  14426. characters.  The optional second argument selects which time field is returned 
  14427. for files on HPFS drive: a means the last access time, c means the creation 
  14428. time, and w means the last modification (write) time, which is the default. 
  14429.  
  14430.  
  14431. ΓòÉΓòÉΓòÉ 6.12.40. @FILEWRITE - Write next line to a file ΓòÉΓòÉΓòÉ
  14432.  
  14433. @FILEWRITE[n,text]:  Writes a line to the file whose handle is n.  Returns the 
  14434. number of bytes written, or "-1" if an error occurred.  n must be a handle 
  14435. returned by @FILEOPEN; or 1 (for standard output) or 2 (for standard error). 
  14436.  
  14437. This function should only be used with file handles returned by @FILEOPEN!  If 
  14438. you use it with any other number you may damage other files opened by Take 
  14439. Command (or by the program which started Take Command), or hang your system. 
  14440.  
  14441.  
  14442. ΓòÉΓòÉΓòÉ 6.12.41. @FILEWRITEB - Write bytes from a string to a file ΓòÉΓòÉΓòÉ
  14443.  
  14444. @FILEWRITEB[n,length,string]:  Writes the specified number of bytes from the 
  14445. string to the file whose handle is n. Returns the number of bytes written, or 
  14446. "-1" if an error occurred. 
  14447.  
  14448. This function should only be used with file handles returned by @FILEOPEN!  If 
  14449. you use it with any other number you may damage other files opened by Take 
  14450. Command (or by the program which started Take Command), or hang your system. 
  14451.  
  14452.  
  14453. ΓòÉΓòÉΓòÉ 6.12.42. @FINDCLOSE - Terminate a find first / find next scan ΓòÉΓòÉΓòÉ
  14454.  
  14455. @FINDCLOSE[filename]:  Signals the end of a @FINDFIRST / @FINDNEXT sequence. 
  14456. You must use this function to release the directory search handle. 
  14457.  
  14458.  
  14459. ΓòÉΓòÉΓòÉ 6.12.43. @FINDFIRST - Find first matching file ΓòÉΓòÉΓòÉ
  14460.  
  14461. @FINDFIRST[filename [,[-]nrhsda]]:  Returns the name of the first file that 
  14462. matches the filename, which may include wildcards and/or an include list. 
  14463. Returns an empty string if no files match. The second argument, if included, 
  14464. defines the attributes of the files that will be included in the search.  The 
  14465. attributes are: 
  14466.  
  14467.         N   Normal (no attributes set) 
  14468.         R   Read-only 
  14469.         H   Hidden 
  14470.         S   System 
  14471.         D   Directory 
  14472.         A   Archive 
  14473.  
  14474.  The attributes (other than N) can be combined.  @FINDFIRST will only find a 
  14475.  file if all of the attributes match.  You can prefix an attribute with "-" to 
  14476.  mean "everything except files with this attribute." 
  14477.  
  14478.  After @FINDFIRST or the last @FINDNEXT, you must use @FINDCLOSE to avoid 
  14479.  running out of directory search handles. 
  14480.  
  14481.  
  14482. ΓòÉΓòÉΓòÉ 6.12.44. @FINDNEXT - Find next matching file ΓòÉΓòÉΓòÉ
  14483.  
  14484. @FINDNEXT[[filename [,[-]nrhsda]]]:  Returns the name of the next file that 
  14485. matches the filename(s) in the previous @FINDFIRST call. Returns an empty 
  14486. string when no more files match.  @FINDNEXT should only be used after a 
  14487. successful call to @FINDFIRST.  You do not need to include the filename 
  14488. parameter, because it must be the same as the previous @FINDFIRST call, unless 
  14489. you also want to specify file attributes for @FINDNEXT. 
  14490.  
  14491. The second argument, if included, defines the attributes of the files that will 
  14492. be included in the search.  The attributes are: 
  14493.  
  14494.         N   Normal (no attributes set) 
  14495.         R   Read-only 
  14496.         H   Hidden 
  14497.         S   System 
  14498.         D   Directory 
  14499.         A   Archive 
  14500.  
  14501.  The attributes (other than N) can be combined.  @FINDFIRST will only find a 
  14502.  file if all of the attributes match.  You can prefix an attribute with "-" to 
  14503.  mean "everything except files with this attribute." 
  14504.  
  14505.  After the last @FINDNEXT, you must use @FINDCLOSE to avoid running out of 
  14506.  directory search handles. 
  14507.  
  14508.  
  14509. ΓòÉΓòÉΓòÉ 6.12.45. @FORMAT - Formats (justifies) a string ΓòÉΓòÉΓòÉ
  14510.  
  14511. @FORMAT[[-][x][.y],string]:  Reformats a string, truncating it or padding it 
  14512. with spaces as necessary.  If you use the minus [- ], the string is 
  14513. left-justified; otherwise, it is right-justified.  The x value is the minimum 
  14514. number of characters in the result.  The y value is the maximum number of 
  14515. characters in the result.  You can combine the options as necessary.  For 
  14516. example, Echo %@format[7,Hello] displays "  Hello" while Echo 
  14517. %@format[.3,Hello] displays "Hel". 
  14518.  
  14519.  
  14520. ΓòÉΓòÉΓòÉ 6.12.46. @FSTYPE - File system type (FAT, HPFS, CDFS, etc.) ΓòÉΓòÉΓòÉ
  14521.  
  14522. @FSTYPE[d:]:  Returns the file system type for the specified drive.  @FSTYPE 
  14523. will return "FAT" for a DOS-compatible drive with a file allocation table, 
  14524. "HPFS" for a drive that uses the OS/2 high performance file system, or "CDFS" 
  14525. for a CD-ROM drive.  It may return other values if additional file systems have 
  14526. been installed. 
  14527.  
  14528.  
  14529. ΓòÉΓòÉΓòÉ 6.12.47. @FULL - Full file name with path ΓòÉΓòÉΓòÉ
  14530.  
  14531. @FULL[filename]:  Returns the fully qualified path name of a file.  The 
  14532. filename must be in quotes if it contains whitespace or special characters.  On 
  14533. an HPFS drive, the returned filename may contain whitespace or other special 
  14534. characters.  To avoid problems which could be caused by these characters, quote 
  14535. the returned name before you pass it to other commands. 
  14536.  
  14537.  
  14538. ΓòÉΓòÉΓòÉ 6.12.48. @IF - Evaluates a test condition ΓòÉΓòÉΓòÉ
  14539.  
  14540. @IF[condition,true,false]:  Evaluates the condition and returns a string based 
  14541. on the result.  The condition can include any of the tests allowed in the IF 
  14542. command.  If the condition is true, @IF returns the first result string; if it 
  14543. is false, @IF returns the second string.  For example, %IF[2==2,Correct!,Oops!] 
  14544. returns "Correct!" 
  14545.  
  14546.  
  14547. ΓòÉΓòÉΓòÉ 6.12.49. @INC - Incremented value of a variable ΓòÉΓòÉΓòÉ
  14548.  
  14549. @INC[%var]:  Returns the same value as %@EVAL[%var + 1]. That is, it retrieves 
  14550. and increments the value of a variable.  The variable itself is not changed; to 
  14551. do so, use a command like this: 
  14552.  
  14553.         set var=%@inc[%var]
  14554.  
  14555.  
  14556. ΓòÉΓòÉΓòÉ 6.12.50. @INDEX - Position of one string in another ΓòÉΓòÉΓòÉ
  14557.  
  14558. @INDEX[string1,string2]  Returns the position of string2 within string1, or 
  14559. "-1" if string2 is not found.  The first position in string1 is numbered 0. 
  14560.  
  14561.  
  14562. ΓòÉΓòÉΓòÉ 6.12.51. @INSERT - Insert one string into another ΓòÉΓòÉΓòÉ
  14563.  
  14564. @INSERT[n, string1, string2]:  Inserts string1 into string2 starting at 
  14565. position n.  The first position in the string is postion 0.  For example, 
  14566. %@insert[1,arm,wing] returns the string "warming." 
  14567.  
  14568.  
  14569. ΓòÉΓòÉΓòÉ 6.12.52. @INSTR - Extract a substring ΓòÉΓòÉΓòÉ
  14570.  
  14571. @INSTR[start, length, string]:  Returns a substring, starting at the position 
  14572. start and continuing for length characters.  If the length is omitted, it will 
  14573. default to the remainder of the string.  If the length is negative, the start 
  14574. is relative to the right side of the string.  The first character in the string 
  14575. is numbered 0; if the length is negative, the last character is numbered 0. 
  14576.  
  14577. For example, %@INSTR[0,2,%_TIME] gets the current time and extracts the hour; 
  14578. %@INSTR[1,-2,%_TIME] extracts the seconds.  If the string includes commas, it 
  14579. must be quoted with double quotes ["] or back-quotes [`].  The quotes do count 
  14580. in calculating the position of the substring.  @SUBSTR is an older version of 
  14581. the same function. 
  14582.  
  14583.  
  14584. ΓòÉΓòÉΓòÉ 6.12.53. @INT - Integer part of a number ΓòÉΓòÉΓòÉ
  14585.  
  14586. @INT[n]:  Returns the integer part of the number n. 
  14587.  
  14588.  
  14589. ΓòÉΓòÉΓòÉ 6.12.54. @LABEL - Volume label ΓòÉΓòÉΓòÉ
  14590.  
  14591. @LABEL[d:]:  Returns the volume label of the specified disk drive.  The drive 
  14592. letter must be followed by a colon. 
  14593.  
  14594.  
  14595. ΓòÉΓòÉΓòÉ 6.12.55. @LEFT - Returns leftmost characters of a string ΓòÉΓòÉΓòÉ
  14596.  
  14597. @LEFT[n,string]:  Returns the leftmost n characters from the string.  If n is 
  14598. greater than the length of the string, returns the entire string.  For example, 
  14599. %@LEFT[2,jpsoft] returns the string "jp." 
  14600.  
  14601.  
  14602. ΓòÉΓòÉΓòÉ 6.12.56. @LEN - Length of a string ΓòÉΓòÉΓòÉ
  14603.  
  14604. @LEN[string]:  Returns the length of a string. 
  14605.  
  14606.  
  14607. ΓòÉΓòÉΓòÉ 6.12.57. @LINE - Read a line from a file ΓòÉΓòÉΓòÉ
  14608.  
  14609. @LINE[filename,n]:  Returns line n from the specified file. The filename must 
  14610. be in quotes if it contains whitespace or special characters.  The first line 
  14611. in the file is numbered 0. "**EOF**" is returned for all line numbers beyond 
  14612. the end of the file. 
  14613.  
  14614. @LINE works with files having lines of no more than 1023 characters; longer 
  14615. lines will not be counted accurately. 
  14616.  
  14617. The @LINE function must read each line of the file to find the line you 
  14618. request, and will therefore cause significant delays if used in a long loop or 
  14619. on a large file.  For a more efficient method of processing each line of a file 
  14620. in sequence use the FOR command, or @FILEOPEN and a sequence of @FILEREADs. 
  14621.  
  14622. You can retrieve input from standard input if you specify CON as the filename. 
  14623. If you are redirecting input to @LINE using this feature, you must use command 
  14624. grouping or the redirection will not work properly (you can pipe to @LINE 
  14625. without a command group; this restriction applies only to input redirection). 
  14626. For example: 
  14627.  
  14628.         (echo %@line[con,0]) < myfile.dat
  14629.  
  14630.  
  14631. ΓòÉΓòÉΓòÉ 6.12.58. @LINES - Count lines in a file ΓòÉΓòÉΓòÉ
  14632.  
  14633. @LINES[filename]  Returns the line number of the last line in the file, or "-1" 
  14634. if the file is empty.  The first line in the file is numbered 0, so (for 
  14635. example) @LINES will return 0 for a file containing one line.  To get the 
  14636. actual number of lines, use %@INC[%@LINES[filename]].  @LINES must read each 
  14637. line of the file in order to count it, and will therefore cause significant 
  14638. delays if used in a long loop or on a large file. 
  14639.  
  14640. @LINES works with files having lines of no more than 1023 characters; longer 
  14641. lines will not be counted accurately. 
  14642.  
  14643. The filename must be in quotes if it contains whitespace or special characters. 
  14644.  
  14645.  
  14646. ΓòÉΓòÉΓòÉ 6.12.59. @LOWER - Convert string to lower case ΓòÉΓòÉΓòÉ
  14647.  
  14648. @LOWER[string]:  Returns the string converted to lower case. 
  14649.  
  14650.  
  14651. ΓòÉΓòÉΓòÉ 6.12.60. @MAKEAGE - Convert date/time to file date/time ΓòÉΓòÉΓòÉ
  14652.  
  14653. @MAKEAGE[date[,time]]:  Returns the date and time (if included) as a single 
  14654. value in the same format as @FILEAGE.  @MAKEAGE can be used to compare the time 
  14655. stamp of a file with a specific date and time, for example: 
  14656.  
  14657.         if %@fileage[myfile] lt %@makeage[1/1/85] echo OLD!
  14658.  
  14659. The value returned by @MAKEAGE can be used for comparisons, but can not be used 
  14660. for date and time calculations because it is not in identifiable units. 
  14661.  
  14662.  
  14663. ΓòÉΓòÉΓòÉ 6.12.61. @MAKEDATE - Convert number of days to date ΓòÉΓòÉΓòÉ
  14664.  
  14665. @MAKEDATE[n]:  Returns a date (formatted according to the current country 
  14666. settings).  n is the number of days since 1/1/80. This is the inverse of @DATE. 
  14667.  
  14668.  
  14669. ΓòÉΓòÉΓòÉ 6.12.62. @MAKETIME - Convert number of seconds to time ΓòÉΓòÉΓòÉ
  14670.  
  14671. @MAKETIME[n]:  Returns a time (formatted according to the current country 
  14672. settings).  n is the number of seconds since midnight.  This is the inverse of 
  14673. @TIME. 
  14674.  
  14675.  
  14676. ΓòÉΓòÉΓòÉ 6.12.63. @MONTH - Month for specified date ΓòÉΓòÉΓòÉ
  14677.  
  14678. @MONTH[mm-dd-yy]:  Returns the month number for the specified date (1-12). 
  14679. @MONTH uses the date format and separators mandated by your country code (for 
  14680. example dd.mm.yy in Germany, or yy-mm-dd in Japan).  The year can be entered as 
  14681. a 4-digit or 2-digit value.  Two-digit years between 80 and 99 are interpeted 
  14682. as 1980-1999; values between 00 and 79 are interpreted as 2000 - 2079. 
  14683.  
  14684.  
  14685. ΓòÉΓòÉΓòÉ 6.12.64. @NAME - File name without path or extension ΓòÉΓòÉΓòÉ
  14686.  
  14687. @NAME[filename]:  Returns the base name of a file, without the path or 
  14688. extension.  The filename must be in quotes if it contains whitespace or special 
  14689. characters.  On HPFS drives, the returned name may contain whitespace or other 
  14690. special characters.  To avoid problems which could be caused by these 
  14691. characters, quote the returned name before you pass it to other commands. 
  14692.  
  14693.  
  14694. ΓòÉΓòÉΓòÉ 6.12.65. @NUMERIC - Test if a string is numeric ΓòÉΓòÉΓòÉ
  14695.  
  14696. @NUMERIC[string]:  Returns "1" if the string is composed entirely of digits (0 
  14697. to 9), signs (+ or -), and the thousands and decimal separators.  Otherwise, 
  14698. returns "0". 
  14699.  
  14700.  
  14701. ΓòÉΓòÉΓòÉ 6.12.66. @PATH - File path without name ΓòÉΓòÉΓòÉ
  14702.  
  14703. @PATH[filename]:  Returns the path from a filename, including the drive letter 
  14704. and a trailing backslash but not including the base name or extension.  The 
  14705. filename must be in quotes if it contains whitespace or special characters.  On 
  14706. HPFS drives, the returned path may contain whitespace or other special 
  14707. characters.  To avoid problems which could be caused by these characters, quote 
  14708. the returned path before you pass it to other commands. 
  14709.  
  14710.  
  14711. ΓòÉΓòÉΓòÉ 6.12.67. @RANDOM - Generate a random integer ΓòÉΓòÉΓòÉ
  14712.  
  14713. @RANDOM[min, max]:  Returns a random value between min and max, inclusive. 
  14714. Min, max, and the returned value are all integers.  The random number generator 
  14715. is initialized from the system clock the first time it is used after the 
  14716. command processor starts, so it will produce a different sequence of random 
  14717. numbers each time you use it. 
  14718.  
  14719.  
  14720. ΓòÉΓòÉΓòÉ 6.12.68. @READSCR - Read characters from the screen ΓòÉΓòÉΓòÉ
  14721.  
  14722. @READSCR[row,col,length]:  Returns the text displayed in the Take Command 
  14723. window at the specified location.  The upper left corner of the screen is 
  14724. location 0,0.  The row and column can be specified as an offset from the 
  14725. current cursor location by preceding either value with a [+] or [-].  For 
  14726. example: 
  14727.  
  14728.         %@readscr[-2,+2,10]
  14729.  
  14730. returns 10 characters from the screen, starting 2 rows above and 2 columns to 
  14731. the right of the current cursor position. 
  14732.  
  14733. You can also specify the row and column as offsets from the current cursor 
  14734. position.  Begin the value with a plus sign [+] to read the screen the 
  14735. specified number of rows below (or columns to the right of) the current 
  14736. position, or with a minus sign [-] to read the screen above (or to the left of) 
  14737. the current position. 
  14738.  
  14739.  
  14740. ΓòÉΓòÉΓòÉ 6.12.69. @READY - Drive ready status ΓòÉΓòÉΓòÉ
  14741.  
  14742. @READY[d:]:  Returns "1" if the specified drive is ready; otherwise returns 
  14743. "0".  The drive letter must be followed by a colon. 
  14744.  
  14745.  
  14746. ΓòÉΓòÉΓòÉ 6.12.70. @REMOTE - Remote (network) drive detection ΓòÉΓòÉΓòÉ
  14747.  
  14748. @REMOTE[d:]:  Returns "1" if the specified drive is a remote (network) drive; 
  14749. otherwise returns "0".  The drive letter must be followed by a colon. 
  14750.  
  14751.  
  14752. ΓòÉΓòÉΓòÉ 6.12.71. @REMOVABLE - Removable drive detection ΓòÉΓòÉΓòÉ
  14753.  
  14754. @REMOVABLE[d:]:  Returns "1" if the specified drive is removable (i.e., a 
  14755. floppy disk or removable hard disk); otherwise returns "0".  The drive letter 
  14756. must be followed by a colon. 
  14757.  
  14758.  
  14759. ΓòÉΓòÉΓòÉ 6.12.72. @REPEAT - Repeat a character ΓòÉΓòÉΓòÉ
  14760.  
  14761. @REPEAT[c,n]:  Returns the character c repeated n times. 
  14762.  
  14763.  
  14764. ΓòÉΓòÉΓòÉ 6.12.73. @REPLACE - Replaces parts of a string ΓòÉΓòÉΓòÉ
  14765.  
  14766. @REPLACE[str1, str2, text]:  Replaces all occurrences of str1 in the text 
  14767. string with str2.  For example, %@replace[w,ch,warming] returns the string 
  14768. "charming."  The search is case-sensitive. 
  14769.  
  14770.  
  14771. ΓòÉΓòÉΓòÉ 6.12.74. @REXX - Execute a REXX expression ΓòÉΓòÉΓòÉ
  14772.  
  14773. @REXX[expr]:  Calls the REXX interpreter to execute the expression.  Returns 
  14774. the result string from REXX; if the REXX expression does not return a string, 
  14775. @REXX returns the REXX numeric result code. 
  14776.  
  14777. See REXX for more information. 
  14778.  
  14779.  
  14780. ΓòÉΓòÉΓòÉ 6.12.75. @RIGHT - Returns rightmost characters of a string ΓòÉΓòÉΓòÉ
  14781.  
  14782. @RIGHT[n,string]:  Returns the rightmost n characters from the string.  If n is 
  14783. greater than the length of the string, returns the entire string.  For example, 
  14784. %@right[4,jpsoft] returns the string "soft." 
  14785.  
  14786.  
  14787. ΓòÉΓòÉΓòÉ 6.12.76. @SEARCH - Path search ΓòÉΓòÉΓòÉ
  14788.  
  14789. @SEARCH[filename[,path]]:  Searches for the filename using the PATH environment 
  14790. variable or the specified path, appending an extension if one isn't specified. 
  14791. (See Executable Files and File Searches for details on the default extensions 
  14792. used when searching the PATH and the order in which the search proceeds.) 
  14793. Returns the fully-expanded name of the file including drive, path, base name, 
  14794. and extension, or an empty string if a matching file is not found.  If 
  14795. wildcards are used in the filename, @SEARCH will search for the first file that 
  14796. matches the wildcard specification, and return the drive and path for that file 
  14797. plus the wildcard filename (e.g., E:\UTIL\*.COM). 
  14798.  
  14799. The filename and path must be in quotes if they contain whitespace or special 
  14800. characters.  On HPFS drives, the returned path may contain whitespace or other 
  14801. special characters.  To avoid problems which could be caused by these 
  14802. characters, quote the returned path before you pass it to other commands. 
  14803.  
  14804.  
  14805. ΓòÉΓòÉΓòÉ 6.12.77. @SELECT - Menu selection ΓòÉΓòÉΓòÉ
  14806.  
  14807. @SELECT[filename,top,left,bottom,right,title[,1]]:  Pops up a selection window 
  14808. with the lines from the specified file, allowing you to display menus or other 
  14809. selection lists from within a batch file.  You can move through the selection 
  14810. window with standard popup window navigation keystrokes, including character 
  14811. matching. 
  14812.  
  14813. @SELECT returns the text of the line the scrollbar is on if you press Enter, or 
  14814. an empty string if you press Esc.  The filename must be in quotes if it 
  14815. contains whitespace or special characters.  The file size is limited only by 
  14816. available memory.  To select from lines passed through input redirection or a 
  14817. pipe, use CON as the filename.  If you use the optional 1 argument after the 
  14818. window title, the list will be sorted alphabetically. 
  14819.  
  14820.  
  14821. ΓòÉΓòÉΓòÉ 6.12.78. @STRIP - Remove characters from a string ΓòÉΓòÉΓòÉ
  14822.  
  14823. @STRIP[chars,string]:  Removes the characters in chars from the string and 
  14824. returns the result.  For example, %@STRIP[AaEe,All Good Men] returns "ll Good 
  14825. Mn".  The test is case sensitive.  To include a comma in the chars string, 
  14826. enclose the entire first argument in quotes.  @STRIP will remove the quotes 
  14827. before processing the string. 
  14828.  
  14829.  
  14830. ΓòÉΓòÉΓòÉ 6.12.79. @SUBSTR - Extract a substring ΓòÉΓòÉΓòÉ
  14831.  
  14832. @SUBSTR[string,start,length]:  An older version of @INSTR.  The string 
  14833. parameter is at the start of the @SUBSTR argument list, and therefore cannot 
  14834. contain commas (because any commas in the string would be taken as argument 
  14835. separators). @INSTR, which has the string argument last, does not have this 
  14836. restriction. 
  14837.  
  14838.  
  14839. ΓòÉΓòÉΓòÉ 6.12.80. @TIME - Convert time to number of seconds ΓòÉΓòÉΓòÉ
  14840.  
  14841. @TIME[hh:mm:ss]:  Returns the number of seconds since midnight for the 
  14842. specified time.  The time must be in 24-hour format; "am" and "pm" cannot be 
  14843. used. 
  14844.  
  14845.  
  14846. ΓòÉΓòÉΓòÉ 6.12.81. @TIMER - Elapsed time of specified timer ΓòÉΓòÉΓòÉ
  14847.  
  14848. @TIMER[n]:  Returns the current split time for a stopwatch started with the 
  14849. TIMER command.  The value of n specifies the timer to read and can be 1, 2, or 
  14850. 3. 
  14851.  
  14852.  
  14853. ΓòÉΓòÉΓòÉ 6.12.82. @TRIM - Remove blanks from a string ΓòÉΓòÉΓòÉ
  14854.  
  14855. @TRIM[string]:  Returns the string with the leading and trailing white space 
  14856. (space and tab characters) removed. 
  14857.  
  14858.  
  14859. ΓòÉΓòÉΓòÉ 6.12.83. @UNIQUE - Create file with unique name ΓòÉΓòÉΓòÉ
  14860.  
  14861. @UNIQUE[d:\path]:  Creates a zero-length file with a unique name in the 
  14862. specified directory, and returns the full name and path. If no path is 
  14863. specified, the file will be created in the current directory.  The file name 
  14864. will be FAT-compatible (8 character name and 3- character extension) regardless 
  14865. of the type of drive on which the file is created.  This function allows you to 
  14866. create a  temporary file without overwriting an existing file.  The path must 
  14867. be in quotes if it contains whitespace or special characters. 
  14868.  
  14869.  
  14870. ΓòÉΓòÉΓòÉ 6.12.84. @UPPER - Convert string to upper case ΓòÉΓòÉΓòÉ
  14871.  
  14872. @UPPER[string]:  Returns the string converted to upper case. 
  14873.  
  14874.  
  14875. ΓòÉΓòÉΓòÉ 6.12.85. @WILD - Compare strings using wildcards ΓòÉΓòÉΓòÉ
  14876.  
  14877. @WILD[str1,str2]:  Performs a comparison of the two strings, and returns "1" if 
  14878. they match or "0" if they don't match.  The second argument, str2, may contain 
  14879. wildcards or extended wildcards; the first argument, str1, may not.  The test 
  14880. is not case sensitive.  The following example tests whether the \UTIL directory 
  14881. (or any directory that begins with the characters UTIL) is included in the 
  14882. PATH: 
  14883.  
  14884.         if %@wild[%path,*\UTIL*] == 1 command
  14885.  
  14886.  
  14887. ΓòÉΓòÉΓòÉ 6.12.86. @WORD - Extract a word from a string ΓòÉΓòÉΓòÉ
  14888.  
  14889. @WORD[["xxx",]n,string]:  Returns the nth word in a string.  The first word is 
  14890. numbered 0.  If n is negative, words are returned from the end of the string. 
  14891. You can use the first argument, "xxx" to specify the separators that you wish 
  14892. to use.  If you want to use a double quote as a separator, prefix it with an 
  14893. escape character.  If you don't specify a list of separators, @WORD will 
  14894. consider only spaces, tabs, and commas as word separators.  For example: 
  14895.  
  14896.         %@WORD[2,NOW IS THE TIME]    returns "THE"
  14897.         %@WORD[-0,NOW IS THE TIME]   returns "TIME"
  14898.         %@WORD[-2,NOW IS THE TIME]   returns "IS"
  14899.         %@WORD["=",1,2 + 2=4]        returns "4"
  14900.  
  14901.  
  14902. ΓòÉΓòÉΓòÉ 6.12.87. @WORDS - Count words in a string ΓòÉΓòÉΓòÉ
  14903.  
  14904. @WORDS[["xxx"],string]  Returns the number of words in the string. You can use 
  14905. the first argument, "xxx" to specify the separators that you wish to use.  If 
  14906. you want to use a double quote as a separator, prefix it with an escape 
  14907. character.  If you don't specify a list of separators, @WORD will consider only 
  14908. spaces, tabs, and commas as word separators.  If the string argument is 
  14909. enclosed in quotation marks, you must enter a list of delimiters as well. 
  14910.  
  14911.  
  14912. ΓòÉΓòÉΓòÉ 6.12.88. @YEAR - Return the year for a date. ΓòÉΓòÉΓòÉ
  14913.  
  14914. @YEAR[mm-dd-yy]:  Returns the year for the specified date.  The year can be 
  14915. specified as two digits or four digits; @YEAR returns the same number of digits 
  14916. included in its argument. 
  14917.  
  14918. @YEAR uses the date format and separators mandated by your country code (for 
  14919. example dd.mm.yy in Germany, or yy-mm-dd in Japan).  The year can be entered as 
  14920. a 4-digit or 2-digit value.  Two-digit years between 80 and 99 are interpeted 
  14921. as 1980-1999; values between 00 and 79 are interpreted as 2000 - 2079. 
  14922.  
  14923.  
  14924. ΓòÉΓòÉΓòÉ 7. Configuring Take Command ΓòÉΓòÉΓòÉ
  14925.  
  14926. You can alter Take Command to match your style of computing.  Most of the 
  14927. configuration of Take Command is controlled through a file of initialization 
  14928. information called TCMDOS2.INI. 
  14929.  
  14930. The information in this file can be controlled in two ways: with the 
  14931. configuration notebook and by editing the TCMDOS2.INI file with any ASCII 
  14932. editor.  Both methods are discussed in this section. 
  14933.  
  14934. We also discuss many ways of configuring Take Command in other parts of the 
  14935. online help: 
  14936.  
  14937.          With aliases you can set default options for internal commands and 
  14938.          create new commands (see Aliases and the ALIAS command.). 
  14939.  
  14940.          With executable extensions you can associate data files with the 
  14941.          applications you use to open them. 
  14942.  
  14943.          With the FILECOMPLETION environment variable and the FileCompletion 
  14944.          .INI directive you can customize filename completion to match the 
  14945.          command you are working with. 
  14946.  
  14947.          With the COLORDIR environment variable and the ColorDir .INI directive 
  14948.          you can set the colors used by the DIR command. 
  14949.  
  14950.          With the SETDOS command you can change some aspects of Take Command's 
  14951.          operation "on the fly." 
  14952.  
  14953.          With command-line options you can specify where Take Command looks for 
  14954.          its startup files and how it operates for a specific session. 
  14955.  
  14956.  
  14957. ΓòÉΓòÉΓòÉ 7.1. Configuration Notebook ΓòÉΓòÉΓòÉ
  14958.  
  14959. The dialogs in the Take Command for OS/2 configuration notebook control the 
  14960. configuration of Take Command.  Each option on one of the notebook pages a 
  14961. corresponding directive in TCMDOS2.INI.  You can start the configuration 
  14962. notebook with the Configure Take Command selection on the Setup menu. 
  14963.  
  14964. When you exit from the dialogs, you can select the Save button to save your 
  14965. changes in the .INI file for use in the current session and all future 
  14966. sessions, select the OK button to use your changes in the current session only, 
  14967. or discard the changes you have made by selecting the Cancel button. 
  14968.  
  14969. Note that if you exit the dialogs with OK, changes will not be saved in the 
  14970. .INI file at that time.  However, if you use the dialogs later, and exit with 
  14971. Save, any earlier changes will automatically be saved in the .INI file along 
  14972. with any new changes from your most recent use of the dialogs. 
  14973.  
  14974. Most changes you make in the configuration notebook will take effect 
  14975. immediately.  Changes made on the Startup page, if saved, will take effect the 
  14976. next time you start Take Command, but will not affect the current Take Command 
  14977. session. 
  14978.  
  14979. While you are using the dialogs, you can move between sets of configuration 
  14980. options with the tabs on the right hand side of the notebook.  The sets of 
  14981. options available in the notebook are: 
  14982.  
  14983.     Startup Options 
  14984.     Display Options 
  14985.     Command Line 1 Options 
  14986.     Command Line 2 Options 
  14987.     General Options 1 
  14988.     General Options 2 
  14989.     Command Options 
  14990.  
  14991.  
  14992. ΓòÉΓòÉΓòÉ 7.1.1. Startup Options Page ΓòÉΓòÉΓòÉ
  14993.  
  14994. You can use this page to set startup options in TCMDOS2.INI.  If you return to 
  14995. Take Command by selecting the OK button, new settings will only stay in effect 
  14996. until you end the current Take Command session.  If you return to Take Command 
  14997. by selecting Save, the changes will be recorded in TCMDOS2.INI and will be in 
  14998. effect each time you start Take Command.  Changes made on the Startup page, if 
  14999. saved, will take effect the next time you start Take Command, but will not 
  15000. affect the current Take Command session. 
  15001.  
  15002. The TCSTART and TCEXIT Path field lets you set the path to TCSTART and TCEXIT 
  15003. if they aren't in the same directory as Take Command, and sets the TCStartPath 
  15004. directive. 
  15005.  
  15006. In the Buffer Sizes section: 
  15007.  
  15008.         *   Command History sets the size of the command history list, and the 
  15009.             value of the History directive. 
  15010.  
  15011.         *   Directory History sets the size of the  directory history list. 
  15012.  
  15013.  The Cursor section sets the shape of the cursor and the IBeamCursor directive. 
  15014.  Use the I-Beam shape for normal systems, and the Arrow shape for laptop or 
  15015.  other systems where the I-Beam cursor is hard to see. 
  15016.  
  15017.  The Display section sets the size and location of Take Command's window when 
  15018.  it starts up: 
  15019.  
  15020.         *   Standard, Max, Min, and Custom set the WindowState directive. 
  15021.  
  15022.         *   The window position and size fields set the WindowX, WindowY, 
  15023.             WindowHeight, and WindowWidth directives.  Use these if you want 
  15024.             Take Command to start up at a specific location on your desktop. 
  15025.             These fields are ignored unless the item above is set to Custom. 
  15026.  
  15027.  The Options section sets the Local History, Local Aliases, and Local Directory 
  15028.  History flags. 
  15029.  
  15030.  
  15031. ΓòÉΓòÉΓòÉ 7.1.2. Display Options Page ΓòÉΓòÉΓòÉ
  15032.  
  15033. You can use this page to set display-related options in TCMDOS2.INI.  Most 
  15034. changes you make will take effect immediately.  If you return to Take Command 
  15035. by selecting the OK button, new settings will only stay in effect until you end 
  15036. the current Take Command session.  If you return to Take Command by selecting 
  15037. Save, the changes will be recorded in TCMDOS2.INI and will be in effect each 
  15038. time you start Take Command. 
  15039.  
  15040. The Text Dimensions section configures the way that text appears in Take 
  15041. Command's main window: 
  15042.  
  15043.         *   Width sets the number of columns that Take Command uses for its 
  15044.             displays and sets the ScreenColumns directive. 
  15045.  
  15046.         *   Tabs selects the location of tab stops and sets the TabStops 
  15047.             directive. 
  15048.  
  15049.  The Window Configuration section controls the appearance of the Tool Bar (sets 
  15050.  the ToolBarOn directive) and the Status Bar (sets the StatusBarOn directive), 
  15051.  and enables or disables ANSI support (sets the ANSI directive).  The tool bar 
  15052.  and status bar settings are also modified when you enable and disable the 
  15053.  corresponding option on the Setup menu. 
  15054.  
  15055.  The Scrolling section controls Take Command's screen scrollback buffer: 
  15056.  
  15057.         *   Buffer Size sets the size of the screen buffer, and the value of 
  15058.             the ScreenBufSize directive. Valid sizes are from 16,000 to 256,000 
  15059.             bytes. 
  15060.  
  15061.         *   Scroll Lines controls how much the screen scrolls when Take 
  15062.             Command's text has reached the bottom of the window, and sets the 
  15063.             ScrollLines directive.  Lower values produce slower but smoother 
  15064.             scrolling. 
  15065.  
  15066.  The Colors section sets default screen colors: 
  15067.  
  15068.         *   Output establishes the default colors Take Command uses for the 
  15069.             text it displays, and sets the StdColors directive. 
  15070.  
  15071.         *   Input establishes the colors for echoing the commands you type, and 
  15072.             sets the InputColors directive. 
  15073.  
  15074.  
  15075. ΓòÉΓòÉΓòÉ 7.1.3. Command Line 1 Options Page ΓòÉΓòÉΓòÉ
  15076.  
  15077. You can use this page to set command line options in TCMDOS2.INI.  Most changes 
  15078. you make will take effect immediately.  If you return to Take Command by 
  15079. selecting the OK button, new settings will only stay in effect until you end 
  15080. the current Take Command session.  If you return to Take Command by selecting 
  15081. Save, the changes will be recorded in TCMDOS2.INI and will be in effect each 
  15082. time you start Take Command. 
  15083.  
  15084. The Editing section controls command-line editing: 
  15085.  
  15086.         *   Default Mode selects whether you begin editing in Overstrike or 
  15087.             Insert mode, and sets the EditMode directive. 
  15088.  
  15089.         *   Cursor sets the width of the cursor for both Overstrike and Insert 
  15090.             modes, and sets the CursorIns and CursorOver directives. The width 
  15091.             is expressed as a percentage of the width of a character cell. 
  15092.  
  15093.  In the Filename Completion section: 
  15094.  
  15095.         *   Add "\" to directories determines if a backslash should be added to 
  15096.             directory names when doing filename completion, and sets the 
  15097.             AppendToDir directive. 
  15098.  
  15099.         *   The Options field sets the files made available during filename 
  15100.             completion for selected commands, and sets the FileCompletion 
  15101.             directive. 
  15102.  
  15103.  In the Command History section: 
  15104.  
  15105.         *   The Scroll / History keys setting controls whether Take Command or 
  15106.             4OS2 defaults are used for scrolling through the scrollback buffer 
  15107.             and the command history.  The Normal setting uses the arrow and 
  15108.             PgUp / PgDn keys for the scrollback buffer, and the corresponding 
  15109.             control keys (Ctrl-Up, Ctrl-Down, etc.) for the command history. 
  15110.             The Swapped setting reverses these assignments.  For more details 
  15111.             see Scrolling and History Keystrokes.  This option sets the value 
  15112.             of the SwapScrollKeys directive. 
  15113.  
  15114.         *   Minimum saved characters sets the size of the shortest line that 
  15115.             will be saved in the command history, and sets the value of the 
  15116.             HistMin directive. 
  15117.  
  15118.         *   Copy to end, if checked, copies a recalled command to the end of 
  15119.             the history list each time it is executed, and sets the HistCopy 
  15120.             directive. 
  15121.  
  15122.         *   Move to end, if checked, moves a recalled command from it's 
  15123.             position in the history list the end. 
  15124.  
  15125.         *   Wrap, if checked, the history will "wrap" when you reach the top or 
  15126.             bottom of the list. 
  15127.  
  15128.  
  15129. ΓòÉΓòÉΓòÉ 7.1.4. Command Line 2 Options Page ΓòÉΓòÉΓòÉ
  15130.  
  15131. You can use this page to set command line options in TCMDOS2.INI.  Most changes 
  15132. you make will take effect immediately.  If you return to Take Command by 
  15133. selecting the OK button, new settings will only stay in effect until you end 
  15134. the current Take Command session.  If you return to Take Command by selecting 
  15135. Save, the changes will be recorded in TCMDOS2.INI and will be in effect each 
  15136. time you start Take Command. 
  15137.  
  15138. The Popup Windows section sets the position and size of the popup windows for 
  15139. the command-line, directory history, and filename completion windows, and most 
  15140. other popup windows by changing the PopupWinLeft, PopupWinTop, PopupWinWidth, 
  15141. and PopupWinHeight directives.  You can also set the size of the Extended 
  15142. Directory Search popup window by changing the CDDWinLeft, CDDWinTop, 
  15143. CDDWinWidth, CDDWinHeight directives. 
  15144.  
  15145. The Extended Directory Search section controls Extended Directory Searches. 
  15146.  
  15147.         *   Search Level selects the Extended Directory Search mode and sets 
  15148.             the FuzzyCD directive. 
  15149.  
  15150.         *   Tree Path contains the path for the Extended Directory Search 
  15151.             database, JPSTREE.IDX and sets the TreePath directive. 
  15152.  
  15153.  
  15154. ΓòÉΓòÉΓòÉ 7.1.5. Options 1 Page ΓòÉΓòÉΓòÉ
  15155.  
  15156. You can use this page to set options in TCMDOS2.INI.  Most changes you make 
  15157. will take effect immediately.  If you return to Take Command by selecting the 
  15158. OK button, new settings will only stay in effect until you end the current Take 
  15159. Command session.  If you return to Take Command by selecting Save, the changes 
  15160. will be recorded in TCMDOS2.INI and will be in effect each time you start Take 
  15161. Command. 
  15162.  
  15163. The Descriptions section sets the way that Take Command handles file 
  15164. descriptions entered with the DESCRIBE command: 
  15165.  
  15166.         *   The Enable checkbox enables or disables the display and processing 
  15167.             of descriptions, and sets the Descriptions directive. 
  15168.  
  15169.         *   The Maximum Length field determines the maximum size of file 
  15170.             descriptions and sets the DescriptionMax directive.  The value can 
  15171.             range from 20 to 512 characters.  This value sets the size of the 
  15172.             internal description buffers; the actual description limit is 1 
  15173.             character less.  For example, if you set the limit to 512, the 
  15174.             longest description you can use is 511 characters. 
  15175.  
  15176.  The Special Characters section sets the characters that have special meaning 
  15177.  for Take Command.  See Special Character Compatibility for information on how 
  15178.  to change these to make Take Command more compatible with 4DOS, 4OS2, and 4NT. 
  15179.  
  15180.         *   Separator is the character that separates multiple commands.  It 
  15181.             can also be set with the CommandSep directive or SETDOS /C. 
  15182.  
  15183.         *   Escape sets the character used to suppress the normal meaning of 
  15184.             the following character.  It can also be set with the EscapeChar 
  15185.             directive or SETDOS /E. 
  15186.  
  15187.         *   Parameter sets the character used after a percent sign to specify 
  15188.             all or all remaining command-line arguments in a batch file or 
  15189.             alias.  It can also be set with the ParameterChar directive or with 
  15190.             SETDOS /P. 
  15191.  
  15192.         *   Decimal sets the character used as a decimal separator for @EVAL 
  15193.             and other operations.  It can be set with the DecimalChar directive 
  15194.             or with SETDOS /G. 
  15195.  
  15196.         *   Thousands sets the character used as a thousands separator for 
  15197.             @EVAL and other operations.  It can be set with the DecimalChar 
  15198.             directive or with SETDOS /G. 
  15199.  
  15200.  Default Beep sets defaults for the BEEP command and for "error" beeps.  To 
  15201.  disable error beeps, set the beep length to 0, and be sure to specify an 
  15202.  explicit length each time you use the BEEP command. 
  15203.  
  15204.         *   Length sets the length of the beep in timer ticks that are 
  15205.             approximately 1/18 of a second each.  It also sets the BeepLength 
  15206.             directive. 
  15207.  
  15208.         *   Frequency sets the frequency of the beep in Hz.  It also sets the 
  15209.             BeepFreq directive. 
  15210.  
  15211.  The Options section sets miscellaneous options: 
  15212.  
  15213.         *   Force upper case, when selected, forces Take Command to display 
  15214.             file names in upper case in internal commands like DIR and COPY. 
  15215.             You can use the UpperCase directive or the SETDOS /U command 
  15216.             achieve the same result. Force upper case has no effect on 
  15217.             filenames from volumes which support long filenames. 
  15218.  
  15219.         *   Default batch echo, if selected, turns on echoing in batch files by 
  15220.             default.  You can use the BatchEcho directive or the SETDOS /V 
  15221.             command to achieve the same result. 
  15222.  
  15223.         *   Protect redirected output files, if selected, keeps Take Command 
  15224.             from overwritng an existing file with redirected (>) output or from 
  15225.             creating a new file with output redirected in append (>>) mode. 
  15226.             You can achieve the same result with the NoClobber directive or the 
  15227.             SETDOS /N command. 
  15228.  
  15229.         *   The Time options determine how Take Command displays times.  If you 
  15230.             select Country, the time display is based on your country settings 
  15231.             in OS/2. The am/pm setting forces a 12-hour display with a trailing 
  15232.             "a" or "p."  The 24-hour setting forces a standard 24-hour display. 
  15233.             You can also set the time display with the AmPm directive. 
  15234.  
  15235.  
  15236. ΓòÉΓòÉΓòÉ 7.1.6. Options 2 Page ΓòÉΓòÉΓòÉ
  15237.  
  15238. You can use this page to set options in TCMDOS2.INI.  Most changes you make 
  15239. will take effect immediately.  If you return to Take Command by selecting the 
  15240. OK button, new settings will only stay in effect until you end the current Take 
  15241. Command session.  If you return to Take Command by selecting Save, the changes 
  15242. will be recorded in TCMDOS2.INI and will be in effect each time you start Take 
  15243. Command. 
  15244.  
  15245. The Logging section enables or disables Command and History logging (see the 
  15246. LOG command) and sets the file name to use for each.  It also sets the LogName 
  15247. and HistLogName directives. 
  15248.  
  15249. The Eval Precision sets the minimum and maximum number of digits after the 
  15250. decimal point that @EVAL will display.  You can achieve the same results with 
  15251. the EvalMin and EvalMax directives or with the SETDOS /F command. 
  15252.  
  15253. The External Programs setting controls whether Take Command waits for 
  15254. applications to complete before displaying the prompt.  This setting applies 
  15255. only to applications started from the Take Command prompt, including DOS 
  15256. applications.  Take Command will always wait for applications run from batch 
  15257. files.  It also has no effect on "TTY" applications run within the Take Command 
  15258. window, or on applications started with the START command, which has its own 
  15259. separate /WAIT switch.  This option sets the ExecWait directive. 
  15260.  
  15261.  
  15262. ΓòÉΓòÉΓòÉ 7.1.7. Command Options Page ΓòÉΓòÉΓòÉ
  15263.  
  15264. You can use this page to set options related to specific commands in 
  15265. TCMDOS2.INI.  Most changes you make will take effect immediately.  If you 
  15266. return to Take Command by selecting the OK button, new settings will only stay 
  15267. in effect until you end the current Take Command session.  If you return to 
  15268. Take Command by selecting Save, the changes will be recorded in TCMDOS2.INI and 
  15269. will be in effect each time you start Take Command. 
  15270.  
  15271. The DIR Colors field sets the colors used by DIR.  You can achieve the same 
  15272. effect with the ColorDir directive or by setting the COLORDIR environment 
  15273. variable.  See the Color Coded Directories section of the DIR command for 
  15274. details. 
  15275.  
  15276. The LIST section sets the foreground and background colors for the LIST 
  15277. command.  It also sets the ListColors directive. 
  15278.  
  15279. The SELECT section sets the foreground and background colors for the SELECT 
  15280. command.  It also sets the SelectColors directive. 
  15281.  
  15282. The Editor Filename sets the path and name of the program you want to use when 
  15283. you use when you select Editor from the Utilities menu.  It also sets the 
  15284. Editor directive. 
  15285.  
  15286.  
  15287. ΓòÉΓòÉΓòÉ 7.2. TCMDOS2.INI ΓòÉΓòÉΓòÉ
  15288.  
  15289. Part of the power of Take Command is its flexibility.  You can alter its 
  15290. configuration to match your style of computing.  Most of the configuration of 
  15291. Take Command is controlled through a file of initialization information called 
  15292. TCMDOS2.INI. 
  15293.  
  15294. This topic contains general information on TCMDOS2.INI. For information on 
  15295. specific directives see the separate topic for each type of directive: 
  15296.  
  15297.     Initialization Directives 
  15298.     Configuration Directives 
  15299.     Color Directives 
  15300.     Key Mapping Directives 
  15301.     Advanced Directives 
  15302.  
  15303. These topics list the directives, with a one-line description of each, and a 
  15304. cross-reference which selects a full screen help topic on that directive.  A 
  15305. few of the directives are simple enough that the one-line description is 
  15306. sufficient, but in most cases you should check for any additional information 
  15307. in the cross-reference topic if you are not already familiar with the 
  15308. directive. 
  15309.  
  15310. Modifying the TCMDOS2.INI File 
  15311.  
  15312. You can create, add to, and modify the TCMDOS2.INI file in 3 ways: with the 
  15313. configuration notebook, via the OPTION command, and by editing the file with 
  15314. any ASCII editor. 
  15315.  
  15316. The configuration notebook allow you to modify the settings that are used most 
  15317. often.  When you exit from the notebook, you can select the Save button to save 
  15318. your changes in the .INI file for use in the current session and all future 
  15319. sessions, select the OK button to use your changes in the current session only, 
  15320. or discard the changes you have made by selecting the Cancel button. 
  15321.  
  15322. When you exit the configuration notebook, Save saves all changes since the last 
  15323. Save, or since the last time you started the command processor.  If you open 
  15324. the notebook and exit with OK, changes will not be saved in the .INI file at 
  15325. that time.  However, if you use the notebook later, and exit with Save, any 
  15326. earlier changes will automatically be saved in the .INI file along with any new 
  15327. changes from your most recent use of the notebook. 
  15328.  
  15329. Changes you make in the Startup section of the configuration notebook will only 
  15330. take effect when you restart Take Command. 
  15331.  
  15332. The notebook handles most standard .INI file settings.  The Advanced 
  15333. directives, the Key Mapping directives, and a few other individual directives 
  15334. noted below do not have corresponding fields in the configuration notebook, and 
  15335. must be entered manually. 
  15336.  
  15337. Take Command reads its .INI file when it starts, and configures itself 
  15338. accordingly.  The .INI file is not re-read when you change it manually.  For 
  15339. manual changes to take effect, you must restart Take Command.  If you edit the 
  15340. .INI file manually, make sure you save the file in ASCII format. 
  15341.  
  15342. Each item that you can include in the .INI file has a default value.  You only 
  15343. need to include entries in the file for settings that you want to change from 
  15344. their default values. 
  15345.  
  15346. The .INI file has several sections.  All of the directives described here go 
  15347. into the [TakeCommand] section, which is usually first in the file.  You can 
  15348. edit this section manually.  Take Command uses the other sections to record 
  15349. information you set while you are using it, including its window size and 
  15350. position, the font you are using, and the buttons you create on the tool bar. 
  15351. You should use Take Command's menu commands to change the settings in these 
  15352. other sections of the .INI file instead of editing them directly. 
  15353.  
  15354. Using the .INI File 
  15355.  
  15356. Some settings in the .INI file are initialized when you install Take Command 
  15357. and others (such as window size and position) are modified as you use Take 
  15358. Command, so you will probably have an TCMDOS2.INI file even if you didn't 
  15359. create one yourself.  You should not delete this file. 
  15360.  
  15361. Take Command searches for TCMDOS2.INI in two places: 
  15362.  
  15363.         *   If there is an "@d:\path\inifile" option on the Take Command 
  15364.             startup command line Take Command will use the path and file name 
  15365.             specified there, and will not look elsewhere. 
  15366.  
  15367.         *   If there is no .INI file name on the startup command line, the 
  15368.             search proceeds to the same directory where the Take Command 
  15369.             program file (TCMDOS2.EXE ) is stored.  This is the "normal" 
  15370.             location for the .INI file.  Take Command determines this directory 
  15371.             automatically. 
  15372.  
  15373.  .INI File Directives 
  15374.  
  15375.  Most lines in the .INI file consist of a one-word directive, an equal sign 
  15376.  [=], and a value. For example, in the following line, the word "History" is 
  15377.  the directive and "2048" is the value: 
  15378.  
  15379.           History = 2048
  15380.  
  15381.  Any spaces before or after the equal sign are ignored. 
  15382.  
  15383.  If you have a long string to enter in the .INI file (for example, for the 
  15384.  ColorDir directive), you must enter it all on one line.  Strings cannot be 
  15385.  "continued" to a second line.  Each line may be up to 1,023 characters long. 
  15386.  
  15387.  The format of the value part of a directive line depends on the individual 
  15388.  directive.  It may be a numeric value, a single character, a choice (like 
  15389.  "Yes" or "No"), a color setting, a key name, a path, a filename, or a text 
  15390.  string.  The value begins with the first non-blank character after the equal 
  15391.  sign and ends at the end of the line or the beginning of a comment. 
  15392.  
  15393.  Blank lines are ignored in the .INI file and can be used to separate groups of 
  15394.  directives.  You can place comments in the file by beginning a line with a 
  15395.  semicolon [;].  You can also place comments at the end of any line except one 
  15396.  containing a text string value.  To do so, enter at least one space or tab 
  15397.  after the value, a semicolon, and your comment, like this: 
  15398.  
  15399.           History = 2048       ;set history list size
  15400.  
  15401.  If you try to place a comment at the end of a string value, the comment will 
  15402.  become part of the string and will probably cause an error. 
  15403.  
  15404.  If you use the OPTION dialogs to modify the .INI file, comments on lines 
  15405.  modified from within the dialogs will not be preserved when the new lines are 
  15406.  saved.  To be sure .INI file comments are preserved, put them on separate 
  15407.  lines in the file 
  15408.  
  15409.  When Take Command detects an error while processing the .INI file, it displays 
  15410.  an error message and prompts you to press a key to continue processing the 
  15411.  file.  This allows you to note any errors before the startup process 
  15412.  continues.  The directive in error will retain its previous or default value. 
  15413.  
  15414.  If you need to test different values for an .INI directive without repeatedly 
  15415.  editing the .INI file, use the OPTION command or see INIQuery directive. 
  15416.  
  15417.  If you want to include the text of one .INI file within another (for example, 
  15418.  if you have a set of common directives used by several JP Software products), 
  15419.  see the Include directive. 
  15420.  
  15421.  The SETDOS command can override several of the .INI file directives.  For 
  15422.  example, the cursor shape used by Take Command can be adjusted either with the 
  15423.  CursorIns and CursorOver directives or the SETDOS /S command.  The 
  15424.  correspondence between SETDOS options and .INI directives is noted under each 
  15425.  directive below, and under each option of the SETDOS command. 
  15426.  
  15427.  Types of Directives 
  15428.  
  15429.  There are 8 types of directives in the .INI file.  The different types of 
  15430.  directives are shown in the lists below as follows: 
  15431.  
  15432.              Name = nnnn ( 1234):  This directive takes a numeric value which 
  15433.              replaces the "nnnn."  The default value is shown in parentheses. 
  15434.  
  15435.              Name = c (X):  This directive accepts a single character as its 
  15436.              value.  The default character is shown in parentheses.  You must 
  15437.              type in the actual character; you cannot use a key name. 
  15438.  
  15439.              Name = CHOICE1 | Choice2 | ... : This directive takes a choice 
  15440.              value.  The possible choices are listed, separated by vertical 
  15441.              bars.  The default value is shown in all upper case letters in the 
  15442.              directive description, but in your file any of the choices can be 
  15443.              entered in upper case or lower case.  For example, if the choices 
  15444.              were shown as "YES | No" then "YES" is the default. 
  15445.  
  15446.              Name = Color:  This directive takes a color specification.  See 
  15447.              Colors and Color Names for the format of color names. 
  15448.  
  15449.              Name = Key (Default):  This directive takes a key specification. 
  15450.              See Keys and Keynames for the format of key names. 
  15451.  
  15452.              Name = Path:  This directive takes a path specification, but not a 
  15453.              filename.  The value should include both a drive and path (e.g., 
  15454.              C:\TCMD) to avoid any possible ambiguities. A trailing backslash 
  15455.              [\] at the end of the path name is acceptable but not required. 
  15456.              Any default path is described in the text. 
  15457.  
  15458.              Name = File:  This directive takes a filename.  We recommend that 
  15459.              you use a full filename including the drive letter and path to 
  15460.              avoid any possible ambiguities.  Any default filename is described 
  15461.              in the text. 
  15462.  
  15463.              Name = String:  This directive takes a string in the format shown. 
  15464.              The text describes the default value and any additional 
  15465.              requirements for formatting the string correctly.  No comments are 
  15466.              allowed. 
  15467.  
  15468.  Take Command contains a fixed-length area for storing strings entered in the 
  15469.  .INI file, including file names, paths, and other strings.  This area is large 
  15470.  and is unlikely to overflow; if it does, you will receive an error message. 
  15471.  If this occurs, reduce the complexity of your .INI file or contact our 
  15472.  technical support department for assistance. 
  15473.  
  15474.  
  15475. ΓòÉΓòÉΓòÉ 7.2.1. Initialization Directives ΓòÉΓòÉΓòÉ
  15476.  
  15477. The directives in this section control how Take Command starts and where it 
  15478. looks for its files. The initialization directives are: 
  15479.  
  15480.         DirHistory          Size of directory history list 
  15481.         DuplicateBugs       Emulate CMD.EXE bugs 
  15482.         HelpBook            Books to load in help system 
  15483.         History             Size of history list 
  15484.         IBeamCursor         Select I- beam or arrow cursor 
  15485.         INIQuery            Query for each line in TCMDOS2.INI 
  15486.         LocalAliases        ehp1. Local vs. global aliases 
  15487.         LocalHistory        Local vs. global history 
  15488.         LocalDirHistory     Local vs. global directory history 
  15489.         ScreenBufSize       Size of screen buffer 
  15490.         TCStartPath         Path for TCSTART and TCEXIT 
  15491.         TreePath            Path for directory database, JPSTREE.IDX 
  15492.         WindowState         Initial state for the Take Command window 
  15493.         WindowX, WindowY, WindowWidth, WindowHeightInitial size and position of 
  15494.                             the Take Command window 
  15495.  
  15496.  
  15497. ΓòÉΓòÉΓòÉ 7.2.1.1. ┬áDirHistory (directive) ΓòÉΓòÉΓòÉ
  15498.  
  15499. DirHistory = nnnn (256):  Sets the amount of memory allocated to the directory 
  15500. history list in bytes.  The allowable range of values is 256 to 32767.  If you 
  15501. use a global directory history list (see Directory History Window), the 
  15502. DirHistory value is ignored in all sessions except that which first establishes 
  15503. the global list. 
  15504.  
  15505.  
  15506. ΓòÉΓòÉΓòÉ 7.2.1.2. DuplicateBugs ΓòÉΓòÉΓòÉ
  15507.  
  15508. DuplicateBugs = Yes | NO:  Tells the Take Command parser to duplicate certain 
  15509. well-known bugs in CMD.EXE.  The only bug currently replicated is in the IF 
  15510. command. 
  15511.  
  15512.  
  15513. ΓòÉΓòÉΓòÉ 7.2.1.3. HelpBook ΓòÉΓòÉΓòÉ
  15514.  
  15515. HelpBook = String:  Sets the names of the "books" to be loaded with the HELP 
  15516. command or theF1 key.  The default is TCMDOS2 which loads only the Take Command 
  15517. for OS/2 help.  This directive allows you to load other help "books" at the 
  15518. same time:  see the Take Command for OS/2 Introduction and Installation Guide 
  15519. for additional details. 
  15520.  
  15521.  
  15522. ΓòÉΓòÉΓòÉ 7.2.1.4. ┬áHistory (directive) ΓòÉΓòÉΓòÉ
  15523.  
  15524. History = nnnn (1024):  Sets the amount of memory allocated to the command 
  15525. history list in bytes.  The allowable range of values is 256 to 32767 bytes. 
  15526. If you use a global history list (see Command History and Recall), the History 
  15527. value is ignored in all sessions except the session which first establishes the 
  15528. global list. 
  15529.  
  15530.  
  15531. ΓòÉΓòÉΓòÉ 7.2.1.5. IBeamCursor ΓòÉΓòÉΓòÉ
  15532.  
  15533. IBeamCursor = YES | No:  If set to Yes, Take Command will display the standard 
  15534. "I-Beam" cursor in text areas of its window. If IBeamCursor is set to No, an 
  15535. arrow is used in all areas of the window (this can be helpful on laptop systems 
  15536. where the I-Beam cursor is hard to see). 
  15537.  
  15538.  
  15539. ΓòÉΓòÉΓòÉ 7.2.1.6. INIQuery ΓòÉΓòÉΓòÉ
  15540.  
  15541. INIQuery = Yes | NO:  If set to Yes, a dialog box will be displayed before 
  15542. execution of each subsequent line in the current .INI file.  This allows you to 
  15543. modify certain directives when you start Take Command in order to test 
  15544. different configurations. INIQuery can be reset to No at any point in the file. 
  15545. Normally INIQuery = Yes is only used during testing of other .INI file 
  15546. directives. 
  15547.  
  15548. The dialog generated by INIQuery = Yes is: 
  15549.  
  15550.         Yes     Executes the directive 
  15551.  
  15552.         No      Skips the directive 
  15553.  
  15554.         Cancel  Executes the directive and all remaining directives the the 
  15555.                 [TakeCommand] section of the .INI file (i.e., cancels the 
  15556.                 INIQuery=Yes setting) 
  15557.  
  15558.  
  15559. ΓòÉΓòÉΓòÉ 7.2.1.7. LocalAliases ΓòÉΓòÉΓòÉ
  15560.  
  15561. LocalAliases = Yes | NO:  No forces all copies of Take Command to share the 
  15562. same alias list.  Yes keeps the lists for each shell separate.  See ALIAS for 
  15563. more details on local and global alias lists. 
  15564.  
  15565.  
  15566. ΓòÉΓòÉΓòÉ 7.2.1.8. LocalDirHistory ΓòÉΓòÉΓòÉ
  15567.  
  15568. LocalDirHistory = Yes | NO:  No forces all copies of Take Command to share the 
  15569. same directory history list. Yes keeps the list for each session separate. See 
  15570. directory history window for more details on local and global directory 
  15571. history. 
  15572.  
  15573.  
  15574. ΓòÉΓòÉΓòÉ 7.2.1.9. LocalHistory ΓòÉΓòÉΓòÉ
  15575.  
  15576. LocalHistory = Yes | NO:  No forces all copies of Take Command to share the 
  15577. same history list.  Yes keeps the lists for each shell separate.  See Command 
  15578. History and Recall for more details on local and global history lists. 
  15579.  
  15580.  
  15581. ΓòÉΓòÉΓòÉ 7.2.1.10. ScreenBufSize ΓòÉΓòÉΓòÉ
  15582.  
  15583. ScreenBufSize = nnnn (64000):  Sets the size of the screen scrollback buffer in 
  15584. bytes.  The allowable range is from 16000 to 512000 bytes. 
  15585.  
  15586.  
  15587. ΓòÉΓòÉΓòÉ 7.2.1.11. TCStartPath ΓòÉΓòÉΓòÉ
  15588.  
  15589. TCStartPath = Path:  Sets the drive and directory where the TCSTART and TCEXIT 
  15590. batch files (if any) are located. 
  15591.  
  15592.  
  15593. ΓòÉΓòÉΓòÉ 7.2.1.12. TreePath ΓòÉΓòÉΓòÉ
  15594.  
  15595. TreePath = Path:  Sets the location of JPSTREE.IDX, the file used for the 
  15596. extended directory search database.  By default, the file is placed in the root 
  15597. directory of drive C:\. 
  15598.  
  15599.  
  15600. ΓòÉΓòÉΓòÉ 7.2.1.13. WindowState ΓòÉΓòÉΓòÉ
  15601.  
  15602. WindowState = STANDARD | Maximize | Minimize | Custom: Sets the initial state 
  15603. of the Take Command window. Standard puts the window in the default position on 
  15604. the OS/2 desktop, and is the default setting. Maximize maximizes the window; 
  15605. Minimize minimizes it, and Custom sets it to the position specified by the 
  15606. WindowX, WindowY, WindowWidth, WindowHeight directives. 
  15607.  
  15608.  
  15609. ΓòÉΓòÉΓòÉ 7.2.1.14. WindowX, WindowY, WindowWidth, WindowHeight ΓòÉΓòÉΓòÉ
  15610.  
  15611. WindowX = nnnn, WindowY = nnnn, WindowWidth = nnnn, WindowHeight = nnnn:  These 
  15612. 4 directives set the initial size and position of the Take Command window.  The 
  15613. measurements are in pixels or pels.  WindowX and WindowY refer to the position 
  15614. of the bottom left corner of the window relative to the bottom left corner of 
  15615. the screen.  These directives will be ignored unless WindowState is set to 
  15616. Custom. 
  15617.  
  15618.  
  15619. ΓòÉΓòÉΓòÉ 7.2.2. Configuration Directives ΓòÉΓòÉΓòÉ
  15620.  
  15621. These directives control the way that Take Command operate.  Some can be 
  15622. changed with the SETDOS command while Take Command is running. Any 
  15623. corresponding SETDOS command is listed in the description of each directive. 
  15624. The configuration directives are: 
  15625.  
  15626.         AmPm                Time display format 
  15627.         ANSI                Enables ANSI support 
  15628.         AppendToDir         "\" on directory names in filename completion 
  15629.         BatchEcho           Default batch file echo state 
  15630.         BeepFreq            Default beep frequency 
  15631.         BeepLength          Default beep length 
  15632.         CDDWinLeft, CDDWinTop, CDDWinWidth, CDDWinHeightInitial size and 
  15633.                             position of the extended directory search window 
  15634.         CommandSep          Multiple command separator character 
  15635.         CursorIns           Cursor width in insert mode 
  15636.         CursorOver          Cursor width in overstrike mode 
  15637.         DecimalChar         Decimal separator for @EVAL, etc. 
  15638.         DescriptionMax      Maximum length of file descriptions 
  15639.         DescriptionName     Name of file to hold file descriptions 
  15640.         Descriptions        Enable / disable description processing 
  15641.         EditMode            Editing mode (insert / overstrike) 
  15642.         Editor              Program to run for "Editor" menu choice 
  15643.         EscapeChar          Take Command escape character 
  15644.         EvalMax             Maximum precision returned by @EVAL 
  15645.         EvalMin             Minimum precision returned by @EVAL 
  15646.         ExecWait            Forces Take Command to wait for external programs 
  15647.                             to complete 
  15648.         FileCompletion      Files selected for filename completion 
  15649.         FuzzyCD             Selects Extended Directory Search mode 
  15650.         HistCopy            History copy mode 
  15651.         HistLogName         History log file name 
  15652.         HistMin             Minimum command length to save 
  15653.         HistMove            Move recalled commands to end of history 
  15654.         HistWrap            Behavior of the command history list 
  15655.         ListRowStart        Starting row number for LIST and FFIND 
  15656.         LogName             Log file name 
  15657.         NoClobber           Overwrite protection for output redirection 
  15658.         ParameterChar       Alias / batch file parameter character 
  15659.         PathExt             Enable or disable the PATHEXT variable 
  15660.         PopupWinLeft, PopupWinTop, PopupWinWidth, PopupWinHeightInitial size 
  15661.                             and position of the popup windows 
  15662.         ScreenColumns       Virtual screen width 
  15663.         ScreenColumns       Virtual screen height 
  15664.         ScrollLines         Number of lines to scroll up when at the bottom of 
  15665.                             the window 
  15666.         StatusBarOn         Set status bar mode at startup 
  15667.         SwapFilePath        Path to OS/2 swap file 
  15668.         SwapScrollKeys      Use the 4OS2-style keys for history recall 
  15669.         TabStops            Sets the tab positions for Take Command's output 
  15670.         ThousandsChar       Thousands separator for @EVAL, etc. 
  15671.         ToolBarOn           Set toolbar mode at startup 
  15672.         UnixPaths           Enable or disable slash in command paths 
  15673.         UpperCase           Force file names to upper case 
  15674.  
  15675.  
  15676. ΓòÉΓòÉΓòÉ 7.2.2.1. AmPm ΓòÉΓòÉΓòÉ
  15677.  
  15678. AmPm = Yes | NO | Auto:  Yes displays times in 12-hour format with a trailing 
  15679. "a" for AM or "p" for PM. The default of No forces a display in 24-hour time 
  15680. format. Auto formats the time according to the country code set for your 
  15681. system. AmPm controls the time displays used by DIR and SELECT, in LOG files, 
  15682. and the output of the TIMER, DATE, and TIME commands.  It has no effect on 
  15683. %_TIME, %@MAKETIME, the $t and $T options of PROMPT, or date and time ranges. 
  15684.  
  15685.  
  15686. ΓòÉΓòÉΓòÉ 7.2.2.2. ANSI ΓòÉΓòÉΓòÉ
  15687.  
  15688. ANSI = YES | No:  Sets the initial state of ANSI support.  Yes enables ANSI 
  15689. string processing in the Take Command window (for example, ANSI strings can be 
  15690. displayed in the prompt, or with the ECHO command)  No disables ANSI strings. 
  15691. Also see SETDOS /A. 
  15692.  
  15693. You can test whether ANSI support is enabled with the _ANSI internal variable. 
  15694.  
  15695. See the ANSI Reference for more details on ANSI strings, and a reference list 
  15696. of ANSI sequences supported by Take Command for OS/2. 
  15697.  
  15698.  
  15699. ΓòÉΓòÉΓòÉ 7.2.2.3. AppendToDir ΓòÉΓòÉΓòÉ
  15700.  
  15701. AppendToDir = Yes | NO: Yes appends a trailing "\" to directory names when 
  15702. doing filename completion.  Regardless of the setting of this directive, a 
  15703. trailing backslash is always appended to a directory name at the beginning of 
  15704. the command line to enable automatic directory changes. 
  15705.  
  15706.  
  15707. ΓòÉΓòÉΓòÉ 7.2.2.4. BatchEcho ΓòÉΓòÉΓòÉ
  15708.  
  15709. BatchEcho = YES | No:  Sets the default batch echo mode. Yes enables echoing of 
  15710. all batch file commands unless ECHO is explicitly set off in the batch file. No 
  15711. disables batch file echoing unless ECHO is explicitly set on. Also see SETDOS 
  15712. /V. 
  15713.  
  15714.  
  15715. ΓòÉΓòÉΓòÉ 7.2.2.5. BeepFreq ΓòÉΓòÉΓòÉ
  15716.  
  15717. BeepFreq = nnnn (440):  Sets the default BEEP command frequency in Hz.  This is 
  15718. also the frequency for "error" beeps (for example, if you press an illegal 
  15719. key).  To disable all error beeps set this or BeepLength to 0.  If you do, the 
  15720. BEEP command will still be operable, but will not produce sound unless you 
  15721. explicitly specify the frequency and duration. 
  15722.  
  15723.  
  15724. ΓòÉΓòÉΓòÉ 7.2.2.6. BeepLength ΓòÉΓòÉΓòÉ
  15725.  
  15726. BeepLength = nnnn (2):  Sets the default BEEP length in system clock ticks 
  15727. (approximately 1/18 of a second per tick). BeepLength is also the default 
  15728. length for "error" beeps (for example, if you press an illegal key). 
  15729.  
  15730.  
  15731. ΓòÉΓòÉΓòÉ 7.2.2.7. CDDWinLeft, CDDWinTop, CDDWinWidth, CDDWinHeight ΓòÉΓòÉΓòÉ
  15732.  
  15733. CDDWinLeft, CDDWinTop, CDDWinWidth, CDDWinHeight = nnnn:  These values set the 
  15734. position and size of the popup window used by extended directory searches, in 
  15735. characters, including the border.  The defaults are 3, 3, 72, and 16, 
  15736. respectively (i.e., a window beginning in column 3, row 3, 72 columns wide and 
  15737. 16 rows high).  The position is relative to the top left corner of the screen. 
  15738. The width and height values include the space required for the window border. 
  15739. The window cannot be smaller than than 10 columns wide by 5 rows high 
  15740. (including the border).  The values you enter will be adjusted if necessary to 
  15741. keep a minimum-size window visible on the screen. 
  15742.  
  15743.  
  15744. ΓòÉΓòÉΓòÉ 7.2.2.8. CommandSep ΓòÉΓòÉΓòÉ
  15745.  
  15746. CommandSep = c:  This is the character used to separate multiple commands on 
  15747. the same line.  The default for Take Command is the ampersand [&]. You cannot 
  15748. use any of the redirection characters (| > < ) or any of the whitespace 
  15749. characters (space, tab, comma, or equal sign).  The command separator is saved 
  15750. by SETLOCAL and restored by ENDLOCAL.  Also see SETDOS /C, the %+ internal 
  15751. variable, and Special Character Compatibility for information on using 
  15752. compatible command separators for two or more products. 
  15753.  
  15754.  
  15755. ΓòÉΓòÉΓòÉ 7.2.2.9. CursorIns ΓòÉΓòÉΓòÉ
  15756.  
  15757. CursorIns = nnnn (15):  This is the width of the cursor for insert mode during 
  15758. command-line editing and all commands which accept line input (DESCRIBE, ESET, 
  15759. etc.).  The size is a percentage of the total character cell size, between 0% 
  15760. and 100%.  Because of the way video drivers map the cursor shape, you may not 
  15761. get a smooth progression in cursor shapes as CursorIns and CursorOver change. 
  15762. If you set CursorIns and CursorOver to -1, the cursor shape won't be modified 
  15763. at all.  If you set them to 0, the cursor will be invisible. Also see SETDOS 
  15764. /S. 
  15765.  
  15766.  
  15767. ΓòÉΓòÉΓòÉ 7.2.2.10. CursorOver ΓòÉΓòÉΓòÉ
  15768.  
  15769. CursorOver = nnnn (100):  This is the width of the cursor for overstrike mode 
  15770. during command-line editing and all commands which accept line input.  The size 
  15771. is a percentage of the total character cell size, between 0% and 100%.  For 
  15772. more details see the CursorIns directive; also see SETDOS /S. 
  15773.  
  15774.  
  15775. ΓòÉΓòÉΓòÉ 7.2.2.11. DecimalChar ΓòÉΓòÉΓòÉ
  15776.  
  15777. DecimalChar = . | , | AUTO:  Sets the character used as the decimal separator 
  15778. for @EVAL, numeric IF and IFF tests, version numbers, and other similar uses. 
  15779. The only valid settings are period [.], comma [,], and Auto (the default).  A 
  15780. setting of Auto tells the command processor to use the decimal separator 
  15781. associated with your current country code.  If you change the decimal character 
  15782. you must also adjust the thousands character (with ThousandsChar, see below) so 
  15783. that the two characters are different.  Also see SETDOS /G. 
  15784.  
  15785.  
  15786. ΓòÉΓòÉΓòÉ 7.2.2.12. DescriptionMax ΓòÉΓòÉΓòÉ
  15787.  
  15788. DescriptionMax = nnnn (511):  Controls the description length limit for 
  15789. DESCRIBE.  The allowable range is 20 to 511 characters. 
  15790.  
  15791.  
  15792. ΓòÉΓòÉΓòÉ 7.2.2.13. DescriptionName ΓòÉΓòÉΓòÉ
  15793.  
  15794. DescriptionName = [File | EA]:  Sets the file name in which to store file 
  15795. descriptions.  The default file name is DESCRIPT.ION.  Use this directive with 
  15796. caution because changing the name from the default will make it difficult to 
  15797. transfer file descriptions to another system.  Also see SETDOS /D. 
  15798.  
  15799. If you set DescriptionName = EA, Take Command will use the ".SUBJECT" extended 
  15800. attribute (EA) for file descriptions instead of a separate file.  Note that 
  15801. using EAs will slow the DIR and SELECT commands noticeably.  On a FAT volume, 
  15802. performance may be substantially slower, depending on whether the system has 
  15803. cached the extended attributes. 
  15804.  
  15805.  
  15806. ΓòÉΓòÉΓòÉ 7.2.2.14. Descriptions ΓòÉΓòÉΓòÉ
  15807.  
  15808. Descriptions = YES | No:  Turns description handling on or off during the file 
  15809. processing commands COPY, DEL, MOVE, and REN.  If set to No, Take Command will 
  15810. not update the description file when files are moved, copied, deleted or 
  15811. renamed.  Also see SETDOS /D. 
  15812.  
  15813.  
  15814. ΓòÉΓòÉΓòÉ 7.2.2.15. EditMode ΓòÉΓòÉΓòÉ
  15815.  
  15816. EditMode = INSERT | Overstrike:  This directive lets you start the command-line 
  15817. editor in either insert or overstrike mode. Also see SETDOS /M. 
  15818.  
  15819.  
  15820. ΓòÉΓòÉΓòÉ 7.2.2.16. Editor ΓòÉΓòÉΓòÉ
  15821.  
  15822. Editor = File:  Specifies the path and filename of the program that Take 
  15823. Command will execute when you select "Editor" from the Utilities menu.  The 
  15824. default is the standard OS/2 editor E.EXE. 
  15825.  
  15826.  
  15827. ΓòÉΓòÉΓòÉ 7.2.2.17. EscapeChar ΓòÉΓòÉΓòÉ
  15828.  
  15829. EscapeChar = c:  Sets the character used to suppress the normal meaning of the 
  15830. following character.  The default for Take Command is a a caret [^]. See Escape 
  15831. Character for a description of special escape sequences.  You cannot use any of 
  15832. the redirection characters (|, >, or < ) or the whitespace characters (space, 
  15833. tab, comma, or equal sign) as the escape character.  The escape character is 
  15834. saved by SETLOCAL and restored by ENDLOCAL.  Also see SETDOS /E, the %= 
  15835. internal variable, and Special Character Compatibility for information on using 
  15836. compatible escape characters for two or more products. 
  15837.  
  15838.  
  15839. ΓòÉΓòÉΓòÉ 7.2.2.18. EvalMax ΓòÉΓòÉΓòÉ
  15840.  
  15841. EvalMax = nnnn (8):  Controls the maximum number of digits after the decimal 
  15842. point in values returned by @EVAL.  You can override this setting with the 
  15843. construct @EVAL[expression=n,n].  The allowable range is 0 to 8.  Also see 
  15844. SETDOS /F. 
  15845.  
  15846.  
  15847. ΓòÉΓòÉΓòÉ 7.2.2.19. EvalMin ΓòÉΓòÉΓòÉ
  15848.  
  15849. EvalMin = nnnn (0):  Controls the minimum number of digits after the decimal 
  15850. point in values returned by @EVALF_EVAL.  The allowable range is 0 to 8.  This 
  15851. directive will be ignored if EvalMin is larger than EvalMax.  You can override 
  15852. this setting with the construct @EVAL[expression=n,n].  Also see SETDOS /F. 
  15853.  
  15854.  
  15855. ΓòÉΓòÉΓòÉ 7.2.2.20. ExecWait ΓòÉΓòÉΓòÉ
  15856.  
  15857. ExecWait = Yes | NO:  Controls whether Take Command waits for an external 
  15858. program to complete before redisplaying the prompt.  See Waiting for 
  15859. Applications to Finish in Starting Character Mode Applications for details on 
  15860. the effects of this directive. 
  15861.  
  15862. This setting applies only to applications started from the Take Command prompt. 
  15863. Take Command will always wait for applications run from batch files. ExecWait 
  15864. also has no effect on "TTY" applications run within the Take Command window, or 
  15865. on applications started with the START command, which has its own separate 
  15866. /WAIT switch. 
  15867.  
  15868.  
  15869. ΓòÉΓòÉΓòÉ 7.2.2.21. FileCompletion ΓòÉΓòÉΓòÉ
  15870.  
  15871. FileCompletion = cmd1: ext1 ext2 ...; cmd2: ext3 ext4 ... Sets the files made 
  15872. available during filename completion for selected commands.  The format is the 
  15873. same as that used for the FILECOMPLETION environment variable.  See Customizing 
  15874. Filename Completion for a detailed explanation of selective filename 
  15875. completion. 
  15876.  
  15877.  
  15878. ΓòÉΓòÉΓòÉ 7.2.2.22. FuzzyCD (Extended Directory Search) ΓòÉΓòÉΓòÉ
  15879.  
  15880. FuzzyCD = 0 | 1 | 2 | 3.  Enables or disables extended directory searches, and 
  15881. controls their behavior.  A setting of 0 (the default) disables extended 
  15882. searches.  For complete details on the meaning of the other settings see 
  15883. Extended Directory Searches. 
  15884.  
  15885.  
  15886. ΓòÉΓòÉΓòÉ 7.2.2.23. HistCopy ΓòÉΓòÉΓòÉ
  15887.  
  15888. HistCopy = Yes | NO:  Controls what happens when you re-execute a line from the 
  15889. command history.  If this option is set to Yes, the line is appended to the end 
  15890. of the history list.  By default, or if this option is set to No, the command 
  15891. is not copied. The original copy of the command is always retained at its 
  15892. original position in the list, regardless of the setting of HistCopy.  Set this 
  15893. option to No if you want to use HistMove = Yes; otherwise, the HistCopy setting 
  15894. will override HistMove. 
  15895.  
  15896.  
  15897. ΓòÉΓòÉΓòÉ 7.2.2.24. HistLogName ΓòÉΓòÉΓòÉ
  15898.  
  15899. HistLogName = File:  Sets the history log file name and/or path.  If only a 
  15900. path is given, the default log file name (OS2HLOG) will be used.  Using 
  15901. HistLogName does not turn history logging on; you must use a LOG /H ON command 
  15902. to do so. 
  15903.  
  15904.  
  15905. ΓòÉΓòÉΓòÉ 7.2.2.25. HistMin ΓòÉΓòÉΓòÉ
  15906.  
  15907. HistMin = nnnn (0):  Sets the minimum command-line size to save in the command 
  15908. history list.  Any command line whose length is less than this value will not 
  15909. be saved.  Legal values range from 0, which saves everything, to 1024, which 
  15910. disables all command history saves. 
  15911.  
  15912.  
  15913. ΓòÉΓòÉΓòÉ 7.2.2.26. HistMove ΓòÉΓòÉΓòÉ
  15914.  
  15915. HistMove = Yes | NO:  If set to Yes, a recalled line is moved to the end of the 
  15916. command history.  The difference between this directive and HistCopy, above, is 
  15917. that HistCopy = Yes copies each recalled line to the end of the history but 
  15918. leaves the original in place.  HistMove = Yes places the line at the end of 
  15919. history and removes the original line.  This directive has no effect if 
  15920. HistCopy = Yes. 
  15921.  
  15922.  
  15923. ΓòÉΓòÉΓòÉ 7.2.2.27. HistWrap ΓòÉΓòÉΓòÉ
  15924.  
  15925. HistWrap = YES | No:  Controls whether the command history "wraps" when you 
  15926. reach the top or bottom of the list.  The default setting enables wrapping, so 
  15927. the list appears "circular".  If HistWrap is set to No, history recall will 
  15928. stop at the beginning and end of the list rather than wrapping. 
  15929.  
  15930.  
  15931. ΓòÉΓòÉΓòÉ 7.2.2.28. ListRowStart ΓòÉΓòÉΓòÉ
  15932.  
  15933. ListRowStart  = 1 |  0:  Specifies whether LIST and FFIND consider the first 
  15934. line in the file to be line "1" or line "0".  The default is "1". 
  15935.  
  15936.  
  15937. ΓòÉΓòÉΓòÉ 7.2.2.29. LogName ΓòÉΓòÉΓòÉ
  15938.  
  15939. LogName = File:  Sets the log file name and/or path.  If only a path is given, 
  15940. the default log file name (OS2LOG) will be used. Using LogName does not turn 
  15941. logging on; you must use a LOG ON command to do so. 
  15942.  
  15943.  
  15944. ΓòÉΓòÉΓòÉ 7.2.2.30. NoClobber ΓòÉΓòÉΓòÉ
  15945.  
  15946. NoClobber = Yes | NO:  If set to Yes, will prevent standard output redirection 
  15947. from overwriting an existing file, and will require that the output file 
  15948. already exist for append redirection.  Also see SETDOS /N. 
  15949.  
  15950.  
  15951. ΓòÉΓòÉΓòÉ 7.2.2.31. ParameterChar ΓòÉΓòÉΓòÉ
  15952.  
  15953. ParameterChar = c:  Sets the character used after a percent sign to specify all 
  15954. or all remaining command-line arguments in a batch file or alias (e.g., %$ or 
  15955. %n$; see Batch Files and ALIAS).  The default in Take Command is the dollar 
  15956. sign [$].  The parameter character is saved by SETLOCAL and restored by 
  15957. ENDLOCAL.  Also see SETDOS /P.  See Special Character Compatibility for 
  15958. information on using compatible parameter characters for two or more products. 
  15959.  
  15960.  
  15961. ΓòÉΓòÉΓòÉ 7.2.2.32. PathExt ΓòÉΓòÉΓòÉ
  15962.  
  15963. PathExt = Yes | NO:  Determines whether Take Command will use the PATHEXT 
  15964. environment variable.  If set to No (the default), the PATHEXT variable is 
  15965. ignored.  If set to Yes, the PATHEXT variable will be used to determine 
  15966. extensions to look for when searching the PATH for an executable file.  For 
  15967. details, see the PATHEXT variable and the PATH command. 
  15968.  
  15969. CAUTION:  If you set PathExt = Yes in TCMDOS2.INI and then fail to set the 
  15970. PATHEXT variable, path searches will fail as there will be no extensions for 
  15971. which to search! 
  15972.  
  15973. PATHEXT is supported for compatibility reasons but should not generally be used 
  15974. as a substitute for the more flexible executable extensions feature. 
  15975.  
  15976.  
  15977. ΓòÉΓòÉΓòÉ 7.2.2.33. PopupWinLeft, PopupWinTop, PopupWinWidth, PopupWinHeight ΓòÉΓòÉΓòÉ
  15978.  
  15979. PopupWinLeft, PopupWinTop, PopupWinWidth, PopupWinHeight = nnnn:  These values 
  15980. set the initial position and size of the command-line, directory history, and 
  15981. filename completion windows, and most other popup windows (see CDDWinLeft etc. 
  15982. for the extended directory search window).  The values are in characters, and 
  15983. include the border.  The defaults are 40, 1, 36, and 12, respectively (i.e., a 
  15984. window beginning in column 40, row 1, 36 columns wide and 12 rows high).  The 
  15985. position is relative to the top left corner of the Take Command window.  The 
  15986. width and height values include the space required for the window border.  The 
  15987. window cannot be smaller than than 10 columns wide by 5 rows high (including 
  15988. the border).  The values you enter will be adjusted if necessary to keep a 
  15989. minimum-size window visible on the screen. 
  15990.  
  15991.  
  15992. ΓòÉΓòÉΓòÉ 7.2.2.34. ScreenColumns ΓòÉΓòÉΓòÉ
  15993.  
  15994. ScreenColumns = nnnn (80):  Sets the number of virtual screen columns used by 
  15995. the video display.  If the virtual screen width is greater than the physical 
  15996. window width, Take Command will display a horizontal scrollbar at the bottom of 
  15997. the window.  See Resizing the Take Command Window for more information on the 
  15998. virtual screen size. 
  15999.  
  16000.  
  16001. ΓòÉΓòÉΓòÉ 7.2.2.35. ScreenRows ΓòÉΓòÉΓòÉ
  16002.  
  16003. ScreenRows = nnnn (25):  Sets the initial height of the Take Command window. 
  16004. See Resizing the Take Command Window for more information on the virtual screen 
  16005. size. 
  16006.  
  16007.  
  16008. ΓòÉΓòÉΓòÉ 7.2.2.36. ScrollLines ΓòÉΓòÉΓòÉ
  16009.  
  16010. ScrollLines = nnnn (2):  Sets the number of lines displayed before the screen 
  16011. is physically scrolled.  Take Command will scroll up when output reaches the 
  16012. bottom of the window.  Higher values will speed up the display of scrolled 
  16013. output but also make it jerky; lower values will make scrolling smoother but 
  16014. will slow it down. 
  16015.  
  16016.  
  16017. ΓòÉΓòÉΓòÉ 7.2.2.37. StatusBarOn ΓòÉΓòÉΓòÉ
  16018.  
  16019. StatusBarOn = YES | No:  Yes enables the status bar when Take Command starts. 
  16020. No disables it.  The status bar can always be enabled or disabled while Take 
  16021. Command is running by using the Setup menu.  The StatusBarOn setting is 
  16022. automatically updated to reflect the current state of the status bar each time 
  16023. Take Command exits; this preserves the status bar state between sessions. 
  16024.  
  16025.  
  16026. ΓòÉΓòÉΓòÉ 7.2.2.38. SwapFilePath ΓòÉΓòÉΓòÉ
  16027.  
  16028. SwapFilePath = Path:  Specifies the path of the OS/2 swap file so the MEMORY 
  16029. command and the status bar  can find it and display its size. 
  16030.  
  16031.  
  16032. ΓòÉΓòÉΓòÉ 7.2.2.39. SwapScrollKeys ΓòÉΓòÉΓòÉ
  16033.  
  16034. SwapScrollKeys = Yes | NO:  Yes switches to 4OS2- style keystrokes for 
  16035. manipulating the scrollback buffer. 
  16036.  
  16037. If SwapScrollKeys is set to Yes, the Up and Down arrow keys will scroll through 
  16038. the command history list and the PgUp key will pop up the history window.  The 
  16039. Ctrl-Up, Ctrl-Down, Ctrl-PgUp, and Ctrl-PgDn keys will scroll the text in the 
  16040. screen buffer. 
  16041.  
  16042. If SwapScrollKeys is set to No, these keys will assume their default meanings. 
  16043. The Up and Down arrow keys and the PgUp and PgDn keys will scroll the text in 
  16044. the screen buffer.  The Ctrl-Up and Ctrl-Down keys will scroll through the 
  16045. command history list and the Ctrl-PgUp key will pop up the history window. 
  16046.  
  16047. For additional details see Scrolling and History Keystrokes. 
  16048.  
  16049. Do not set SwapScrollKeys to Yes if you use key mapping directives to reassign 
  16050. the scrolling or history keys individually.  SwapScrollKeys takes effect before 
  16051. other key mappings, and using both methods at the same time will be confusing 
  16052. at best. Setting SwapScrollKeys to Yes has essentially the same effect as 
  16053. including the following key mapping directives in TCMDOS2.INI individually: 
  16054.  
  16055.         PrevHistory = Up
  16056.         NextHistory = Down
  16057.         HistWinOpen = PgUp
  16058.         HistWinOpen = PgDn
  16059.         ScrollUp = Ctrl-Up
  16060.         ScrollDown = Ctrl-Down
  16061.         ScrollPgUp = Ctrl-PgUp
  16062.         ScrollPgDn = Ctrl-PgDn
  16063.  
  16064.  
  16065. ΓòÉΓòÉΓòÉ 7.2.2.40. TabStops ΓòÉΓòÉΓòÉ
  16066.  
  16067. TabStops = nnnn (8):  Sets the tab stops for Take Command's output (including 
  16068. the output from the LIST and TYPE commands).  The allowable range is 1 to 32. 
  16069.  
  16070.  
  16071. ΓòÉΓòÉΓòÉ 7.2.2.41. ThousandsChar ΓòÉΓòÉΓòÉ
  16072.  
  16073. ThousandsChar = . | , | AUTO:  Sets the character used as the thousands 
  16074. separator for numeric output.  The only valid settings are period [.], comma 
  16075. [,], and Auto (the default).  A setting of Auto tells the command processor to 
  16076. use the thousands separator associated with your current country code.  If you 
  16077. change the thousands character you must also adjust the decimal character (with 
  16078. DecimalChar) so that the two characters are different.  Also see SETDOS /G. 
  16079.  
  16080.  
  16081. ΓòÉΓòÉΓòÉ 7.2.2.42. ToolBarOn ΓòÉΓòÉΓòÉ
  16082.  
  16083. ToolBarOn = YES | No:  Yes enables the tool bar when Take Command starts.  No 
  16084. disables it.  The tool bar can be enabled or disabled while Take Command is 
  16085. running by using the Setup menu.  The ToolBarOn setting is automatically 
  16086. updated to reflect the current state of the tool bar each time Take Command 
  16087. exits; this preserves the tool bar state between sessions. 
  16088.  
  16089.  
  16090. ΓòÉΓòÉΓòÉ 7.2.2.43. UnixPaths ΓòÉΓòÉΓòÉ
  16091.  
  16092. UnixPaths = Yes | NO:  Enables the forward slash as a path separator in the 
  16093. command name (the first item on the command line).  This allows you to enter a 
  16094. command like: 
  16095.  
  16096.      [c:\] /bin/programs/foo.exe
  16097.  
  16098. without having the forward slashes interpreted as switch characters. Note that 
  16099. setting UnixPaths to Yes does not change the command processor or operating 
  16100. system switch character, it's still '/'.  It simply allows you to put forward 
  16101. slashes in the command name without problems. 
  16102.  
  16103. When UnixPaths is set to Yes command switches beginning with a forward slash 
  16104. must be preceded by a space to avoid confusion (this is a good general practice 
  16105. regardless of the setting of UnixPaths).  For example: 
  16106.  
  16107.      [c:\] \bin\foo.exe /c        OK
  16108.      [c:\] /bin/foo.exe /c        OK
  16109.      [c:\] \bin\foo.exe/c         Error
  16110.      [c:\] /bin/foo.exe/c         Error
  16111.  
  16112.  
  16113. ΓòÉΓòÉΓòÉ 7.2.2.44. UpperCase ΓòÉΓòÉΓòÉ
  16114.  
  16115. UpperCase = Yes | NO:  Yes specifies that filenames should be displayed in the 
  16116. traditional upper-case by internal commands like COPY and DIR.  No allows the 
  16117. normal Take Command lower-case style. This directive does not affect the 
  16118. display of filenames on drives which support long filenames.  Also see SETDOS 
  16119. /U. 
  16120.  
  16121.  
  16122. ΓòÉΓòÉΓòÉ 7.2.3. Color Directives ΓòÉΓòÉΓòÉ
  16123.  
  16124. These directives control the colors that Take Command use for its displays. For 
  16125. complete details on color names and numbers, see Colors and Color Names.  The 
  16126. color directives are: 
  16127.  
  16128.         ColorDir            Directory colors 
  16129.         InputColors         Input colors 
  16130.         ListColors          Colors used in the LIST display 
  16131.         SelectColors        Colors used in the SELECT display 
  16132.         StdColors           Standard display colors 
  16133.  
  16134.  
  16135. ΓòÉΓòÉΓòÉ 7.2.3.1. ColorDIR (directive) ΓòÉΓòÉΓòÉ
  16136.  
  16137. ColorDir = ext1 ext2 ...:colora;ext3 ext4... :colorb; ...: Sets the directory 
  16138. colors used by DIR.  The format is the same as that used for the COLORDIR 
  16139. environment variable.  See the Color-Coded Directories section of the DIR 
  16140. command for a detailed explanation. 
  16141.  
  16142.  
  16143. ΓòÉΓòÉΓòÉ 7.2.3.2. InputColors ΓòÉΓòÉΓòÉ
  16144.  
  16145. InputColors = Color:  Sets the colors used for command-line input.  This 
  16146. setting is useful for making your input stand out from the normal output. 
  16147.  
  16148.  
  16149. ΓòÉΓòÉΓòÉ 7.2.3.3. ListColors ΓòÉΓòÉΓòÉ
  16150.  
  16151. ListColors = Color:  Sets the colors used by the LIST command.  If this 
  16152. directive is not used, LIST will use the current default colors set by the CLS 
  16153. or COLOR command or by the StdColors directive. 
  16154.  
  16155.  
  16156. ΓòÉΓòÉΓòÉ 7.2.3.4. SelectColors ΓòÉΓòÉΓòÉ
  16157.  
  16158. SelectColors = Color:  Sets the colors used by the SELECT command.  If this 
  16159. directive is not used, SELECT will use the current default colors set by the 
  16160. CLS or COLOR command or by the StdColors directive. 
  16161.  
  16162.  
  16163. ΓòÉΓòÉΓòÉ 7.2.3.5. StdColors ΓòÉΓòÉΓòÉ
  16164.  
  16165. StdColors = Color:  Sets the standard colors to be used when CLS is used 
  16166. without a color specification, and for LIST and SELECT if ListColors and 
  16167. SelectColors are not used.  Using this directive is similar to placing a COLOR 
  16168. command in the TCSTART file. 
  16169.  
  16170.  
  16171. ΓòÉΓòÉΓòÉ 7.2.4. Key Mapping Directives ΓòÉΓòÉΓòÉ
  16172.  
  16173. These directives allow you to change the keys used for command-line editing and 
  16174. other internal functions.  They cannot be entered via the configuration 
  16175. notebook; you must enter them manually (see TCMDOS2.INIfor details). 
  16176.  
  16177. They are divided into five types, depending on the context in which the keys 
  16178. are used.  For a discussion and list of directives for each type see: 
  16179.  
  16180.             General Input Keys 
  16181.             Command-Line Editing Keys 
  16182.             Popup Window Keys 
  16183.             LIST Keys 
  16184.             Scrollback Buffer Keys 
  16185.  
  16186.  Using a key mapping directive allows you to assign a different or additional 
  16187.  key to perform the function described.  For example, to use function key F3 to 
  16188.  invoke the HELP facility (normally invoked with F1): 
  16189.  
  16190.           Help = F3
  16191.  
  16192.  Any directive can be used multiple times to assign multiple keys to the same 
  16193.  function.  For example: 
  16194.  
  16195.           ListFind = F         ;F does a find in LIST
  16196.           ListFind = F4        ;F4 also does a find in LIST
  16197.  
  16198.  Use some care when you reassign keystrokes.  If you assign a default key to a 
  16199.  different function, it will no longer be available for its original use.  For 
  16200.  example, if you assign F1 to the AddFile directive (a part of filename 
  16201.  completion), the F1 key will no longer invoke the help system, so you will 
  16202.  probably want to assign a different key to Help. 
  16203.  
  16204.  See Keys and Key Names before using the key mapping directives. 
  16205.  
  16206.  Key assignments are processed before looking for keystroke aliases.  For 
  16207.  example, if you assign Shift-F1 to HELP and also assign Shift- F1 to a key 
  16208.  alias, the key alias will be ignored. 
  16209.  
  16210.  Assigning a new keystroke for a function does not deassign the default 
  16211.  keystroke for the same function.  If you want to deassign one of the default 
  16212.  keys, use the NormalKey, NormalEditKey, NormalPopupKey, or NormalListKey 
  16213.  directive. 
  16214.  
  16215.  
  16216. ΓòÉΓòÉΓòÉ 7.2.4.1. General Input Keys ΓòÉΓòÉΓòÉ
  16217.  
  16218. These directives apply to all input.  They are in effect whenever Take Command 
  16219. requests input from the keyboard, including during command-line editing and the 
  16220. DESCRIBE, ESET, INPUT, LIST, and SELECT commands.  The general input keys are: 
  16221.  
  16222.         Backspace           Deletes the character to the left of the cursor 
  16223.         BeginLine           Moves the cursor to the start of the line 
  16224.         Del                 Deletes the character at the cursor 
  16225.         DelToBeginning      Deletes from the cursor to the start of the line 
  16226.         DelToEnd            Deletes from the cursor to the end of the line 
  16227.         DelWordLeft         Deletes the word to the left of the cursor 
  16228.         DelWordRight        Deletes the word to the right of the cursor 
  16229.         Down                Moves the cursor or scrolls the display down 
  16230.         EndLine             Moves the cursor to the end of the line 
  16231.         EraseLine           Deletes the entire line 
  16232.         ExecLine            Executes or accepts a line 
  16233.         Ins                 Toggles insert / overstrike mode 
  16234.         Left                Moves the cursor or scrolls the display left 
  16235.         NormalKey           Deassigns a key 
  16236.         Right               Moves the cursor or scrolls the display right 
  16237.         Up                  Moves the cursor or scrolls the display up 
  16238.         WordLeft            Moves the cursor left one word 
  16239.         WordRight           Moves the cursor right one word 
  16240.  
  16241.  
  16242. ΓòÉΓòÉΓòÉ 7.2.4.1.1. Backspace ΓòÉΓòÉΓòÉ
  16243.  
  16244. Backspace = Key (Bksp):  Deletes the character to the left of the cursor. 
  16245.  
  16246.  
  16247. ΓòÉΓòÉΓòÉ 7.2.4.1.2. BeginLine ΓòÉΓòÉΓòÉ
  16248.  
  16249. BeginLine = Key (Home):  Moves the cursor to the beginning of the line. 
  16250.  
  16251.  
  16252. ΓòÉΓòÉΓòÉ 7.2.4.1.3. Del (directive) ΓòÉΓòÉΓòÉ
  16253.  
  16254. Del = Key (Del):  Deletes the character at the cursor. 
  16255.  
  16256.  
  16257. ΓòÉΓòÉΓòÉ 7.2.4.1.4. DelToBeginning ΓòÉΓòÉΓòÉ
  16258.  
  16259. DelToBeginning = Key (Ctrl-Home):  Deletes from the cursor to the start of the 
  16260. line. 
  16261.  
  16262.  
  16263. ΓòÉΓòÉΓòÉ 7.2.4.1.5. DelToEnd ΓòÉΓòÉΓòÉ
  16264.  
  16265. DelToEnd = Key (Ctrl-End):  Deletes from the cursor to the end of the line. 
  16266.  
  16267.  
  16268. ΓòÉΓòÉΓòÉ 7.2.4.1.6. DelWordLeft ΓòÉΓòÉΓòÉ
  16269.  
  16270. DelWordLeft = Key (Ctrl-L):  Deletes the word to the left of the cursor. 
  16271.  
  16272.  
  16273. ΓòÉΓòÉΓòÉ 7.2.4.1.7. DelWordRight ΓòÉΓòÉΓòÉ
  16274.  
  16275. DelWordRight = Key (Ctrl-R, Ctrl-Bksp):  Deletes the word to the right of the 
  16276. cursor.  See ClearKeyMap if you need to remove the default mapping of Ctrl-Bksp 
  16277. to this function. 
  16278.  
  16279.  
  16280. ΓòÉΓòÉΓòÉ 7.2.4.1.8. Down ΓòÉΓòÉΓòÉ
  16281.  
  16282. Down = Key (Down):  Scrolls the display down one line in LIST; moves the cursor 
  16283. down one line in SELECT and in the command-line history, directory history, or 
  16284. %@SELECT window. 
  16285.  
  16286.  
  16287. ΓòÉΓòÉΓòÉ 7.2.4.1.9. EndLine ΓòÉΓòÉΓòÉ
  16288.  
  16289. EndLine = Key (End):  Moves the cursor to the end of the line. 
  16290.  
  16291.  
  16292. ΓòÉΓòÉΓòÉ 7.2.4.1.10. EraseLine ΓòÉΓòÉΓòÉ
  16293.  
  16294. EraseLine = Key (Esc):  Deletes the entire line. 
  16295.  
  16296.  
  16297. ΓòÉΓòÉΓòÉ 7.2.4.1.11. ExecLine ΓòÉΓòÉΓòÉ
  16298.  
  16299. ExecLine = Key (Enter):  Executes or accepts a line. 
  16300.  
  16301.  
  16302. ΓòÉΓòÉΓòÉ 7.2.4.1.12. Ins ΓòÉΓòÉΓòÉ
  16303.  
  16304. Ins = Key (Ins):  Toggles insert / overstrike mode during line editing. 
  16305.  
  16306.  
  16307. ΓòÉΓòÉΓòÉ 7.2.4.1.13. Left ΓòÉΓòÉΓòÉ
  16308.  
  16309. Left = Key (Left):  Moves the cursor left one character on the input line; 
  16310. scrolls the display left 8 columns in LIST; scrolls the display left 4 columns 
  16311. in the command- line, directory history, or %@SELECT window. 
  16312.  
  16313.  
  16314. ΓòÉΓòÉΓòÉ 7.2.4.1.14. NormalKey ΓòÉΓòÉΓòÉ
  16315.  
  16316. NormalKey = Key:  Deassigns a general input key in order to disable the usual 
  16317. meaning of the key within Take Command and/or make it available for keystroke 
  16318. aliases.  This will make the keystroke operate as a "normal" key with no 
  16319. special function.  For example: 
  16320.  
  16321.         NormalKey = Ctrl-End
  16322.  
  16323. will disable Ctrl-End, which is the standard "delete to end of line" key. 
  16324. Ctrl-End could then be assigned to a keystroke alias.  Another key could be 
  16325. assigned the "delete to end of line" function with the DelToEnd directive. 
  16326.  
  16327.  
  16328. ΓòÉΓòÉΓòÉ 7.2.4.1.15. Right ΓòÉΓòÉΓòÉ
  16329.  
  16330. Right = Key (Right):  Moves the cursor right one character on the input line; 
  16331. scrolls the display right 8 columns in LIST; scrolls the display right 4 
  16332. columns in the command- line history, directory history, or %@SELECT window. 
  16333.  
  16334.  
  16335. ΓòÉΓòÉΓòÉ 7.2.4.1.16. Up ΓòÉΓòÉΓòÉ
  16336.  
  16337. Up = Key (Up):  Scrolls the display up one line in LIST; moves the cursor up 
  16338. one line in SELECT and in the command-line history, directory history, or 
  16339. %@SELECT window. 
  16340.  
  16341.  
  16342. ΓòÉΓòÉΓòÉ 7.2.4.1.17. WordLeft ΓòÉΓòÉΓòÉ
  16343.  
  16344. WordLeft = Key (Ctrl-Left):  Moves the cursor left one word; scrolls the 
  16345. display left 40 columns in LIST. 
  16346.  
  16347.  
  16348. ΓòÉΓòÉΓòÉ 7.2.4.1.18. WordRight ΓòÉΓòÉΓòÉ
  16349.  
  16350. WordRight = Key (Ctrl-Right):  Moves the cursor right one word; scrolls the 
  16351. display right 40 columns in LIST. 
  16352.  
  16353.  
  16354. ΓòÉΓòÉΓòÉ 7.2.4.2. Command-Line Editing Keys ΓòÉΓòÉΓòÉ
  16355.  
  16356. These directives apply only to command-line editing.  They are only effective 
  16357. at the Take Command prompt.  The command-line editing keys are: 
  16358.  
  16359.         AddFile             Keeps filename completion entry and adds another 
  16360.         AliasExpand         Expands aliases on the command line 
  16361.         CommandEscape       Allows direct entry of a keystroke 
  16362.         DelHistory          Deletes a history list entry 
  16363.         EndHistory          Displays the last entry in the history list 
  16364.         Help                Invokes this help system 
  16365.         LineToEnd           Copies command to end of history list 
  16366.         NextFile            Gets the next matching filename 
  16367.         NextHistory         Recalls the next command from the history 
  16368.         NormalEditKey       Deassigns a command-line editing key 
  16369.         PopFile             Opens the filename completion window 
  16370.         PrevFile            Gets the previous matching filename 
  16371.         PrevHistory         Recalls the previous command from the history 
  16372.         SaveHistory         Saves the command line without executing it 
  16373.  
  16374.  
  16375. ΓòÉΓòÉΓòÉ 7.2.4.2.1. AddFile ΓòÉΓòÉΓòÉ
  16376.  
  16377. AddFile = Key (Ctrl-Shift-Tab):  Keeps the current filename completion entry 
  16378. and inserts the next matching name. 
  16379.  
  16380.  
  16381. ΓòÉΓòÉΓòÉ 7.2.4.2.2. AliasExpand ΓòÉΓòÉΓòÉ
  16382.  
  16383. AddFile = Key (Ctrl-F):  Expands all aliases in the current command line 
  16384. without executing them. 
  16385.  
  16386.  
  16387. ΓòÉΓòÉΓòÉ 7.2.4.2.3. CommandEscape ΓòÉΓòÉΓòÉ
  16388.  
  16389. CommandEscape = Key (Alt-255):  Allows direct entry of a keystroke that would 
  16390. normally be handled by the command line editor (e.g., Tab or Ctrl-D). 
  16391.  
  16392.  
  16393. ΓòÉΓòÉΓòÉ 7.2.4.2.4. DelHistory ΓòÉΓòÉΓòÉ
  16394.  
  16395. DelHistory = Key (Ctrl-D):  Deletes the displayed history list entry and 
  16396. displays the previous entry. 
  16397.  
  16398.  
  16399. ΓòÉΓòÉΓòÉ 7.2.4.2.5. EndHistory ΓòÉΓòÉΓòÉ
  16400.  
  16401. EndHistory = Key (Ctrl-E):  Displays the last entry in the history list. 
  16402.  
  16403.  
  16404. ΓòÉΓòÉΓòÉ 7.2.4.2.6. Help ΓòÉΓòÉΓòÉ
  16405.  
  16406. Help = Key (F1):  Invokes the HELP facility. 
  16407.  
  16408.  
  16409. ΓòÉΓòÉΓòÉ 7.2.4.2.7. LineToEnd ΓòÉΓòÉΓòÉ
  16410.  
  16411. LineToEnd = Key (Ctrl-Enter):  Copies the current command line to the end of 
  16412. the history list, then executes it. 
  16413.  
  16414.  
  16415. ΓòÉΓòÉΓòÉ 7.2.4.2.8. NextFile ΓòÉΓòÉΓòÉ
  16416.  
  16417. NextFile = Key (F9, Tab):  Gets the next matching filename during filename 
  16418. completion. See ClearKeyMap if you need to remove the default mapping of Tab to 
  16419. this function. 
  16420.  
  16421.  
  16422. ΓòÉΓòÉΓòÉ 7.2.4.2.9. NextHistory ΓòÉΓòÉΓòÉ
  16423.  
  16424. NextHistory = Key (Ctrl-Down):  Recalls the next command from the command 
  16425. history.  Also see Scrolling and History Keystrokes and the SwapScrollKeys 
  16426. directive. 
  16427.  
  16428.  
  16429. ΓòÉΓòÉΓòÉ 7.2.4.2.10. NormalEditKey ΓòÉΓòÉΓòÉ
  16430.  
  16431. NormalEditKey = Key:  Deassigns a command-line editing key in order to disable 
  16432. the usual meaning of the key while editing a command line, and/or make it 
  16433. available for keystroke aliases.  For additional details see NormalKey. 
  16434.  
  16435.  
  16436. ΓòÉΓòÉΓòÉ 7.2.4.2.11. PopFile ΓòÉΓòÉΓòÉ
  16437.  
  16438. PopFile = Key (F7, Ctrl-Tab):  Opens the filename completion window.  You may 
  16439. not be able to use Ctrl-Tab, because not all systems recognize it as a 
  16440. keystroke.  See ClearKeyMap if you need to remove the default mapping of 
  16441. Ctrl-Tab to this function. 
  16442.  
  16443.  
  16444. ΓòÉΓòÉΓòÉ 7.2.4.2.12. PrevFile ΓòÉΓòÉΓòÉ
  16445.  
  16446. PrevFile = Key (F8, Shift-Tab):  Gets the previous matching filename during 
  16447. filename completion. See ClearKeyMap if you need to remove the default mapping 
  16448. of Shift-Tab to this function. 
  16449.  
  16450.  
  16451. ΓòÉΓòÉΓòÉ 7.2.4.2.13. PrevHistory ΓòÉΓòÉΓòÉ
  16452.  
  16453. PrevHistory = Key (Ctrl-Up):  Recalls the previous command from the command 
  16454. history.  Also see Scrolling and History Keystrokes and the SwapScrollKeys 
  16455. directive. 
  16456.  
  16457.  
  16458. ΓòÉΓòÉΓòÉ 7.2.4.2.14. SaveHistory ΓòÉΓòÉΓòÉ
  16459.  
  16460. SaveHistory = Key (Ctrl-K):  Saves the command line in the command history list 
  16461. without executing it. 
  16462.  
  16463.  
  16464. ΓòÉΓòÉΓòÉ 7.2.4.3. Scrollback Buffer Keys ΓòÉΓòÉΓòÉ
  16465.  
  16466. The following keys are also part of the command line editing group.  They are 
  16467. used to manipulate the scrollback buffer rather than to edit commands.  For 
  16468. additional information see Scrolling and History Keystrokes and the 
  16469. SwapScrollKeys directive. 
  16470.  
  16471. The scrollback buffer keys are: 
  16472.  
  16473.         ScrollUp            Scroll the buffer up one line 
  16474.         ScrollDown          Scroll the buffer down one line 
  16475.         ScrollPgUp          Scroll the buffer up one page 
  16476.         ScrollPgDn          Scroll the buffer down one page 
  16477.  
  16478.  
  16479. ΓòÉΓòÉΓòÉ 7.2.4.3.1. ScrollUp ΓòÉΓòÉΓòÉ
  16480.  
  16481. ScrollUp = Key (Up):  Scrolls the Take Command scrollback buffer up one line. 
  16482.  
  16483.  
  16484. ΓòÉΓòÉΓòÉ 7.2.4.3.2. ScrollDown ΓòÉΓòÉΓòÉ
  16485.  
  16486. ScrollDown = Key (Down):  Scrolls the Take Command scrollback buffer down one 
  16487. line. 
  16488.  
  16489.  
  16490. ΓòÉΓòÉΓòÉ 7.2.4.3.3. ScrollPageUp ΓòÉΓòÉΓòÉ
  16491.  
  16492. ScrollPgUp = Key (PgUp):  Scrolls the Take Command scrollback buffer up one 
  16493. page. 
  16494.  
  16495.  
  16496. ΓòÉΓòÉΓòÉ 7.2.4.3.4. ScrollPageDown ΓòÉΓòÉΓòÉ
  16497.  
  16498. ScrollPgDn = Key (PgDn):  Scrolls the Take Command scrollback buffer down one 
  16499. page. 
  16500.  
  16501.  
  16502. ΓòÉΓòÉΓòÉ 7.2.4.4. Popup Window Keys ΓòÉΓòÉΓòÉ
  16503.  
  16504. The following directives apply to popup windows, including the command history 
  16505. window, the directory history window, the file completion window, the extended 
  16506. directory search window, and the @SELECT window. 
  16507.  
  16508. The Popup window keys are: 
  16509.  
  16510.         DirWinOpen          Opens the directory history window 
  16511.         HistWinOpen         Opens the command history window 
  16512.         NormalPopupKey      Deassigns a popup window key 
  16513.         PopupWinBegin       Moves to the first line of the popup window 
  16514.         PopupWinDel         Deletes a line from within a popup window 
  16515.         PopupWinEdit        Moves a line from a popup window to the prompt 
  16516.         PopupWinEnd         Moves to the last line of a popup window 
  16517.         PopupWinExec        Executes the selected line in a popup window 
  16518.  
  16519.  
  16520. ΓòÉΓòÉΓòÉ 7.2.4.4.1. ┬áDirWinOpen ΓòÉΓòÉΓòÉ
  16521.  
  16522. DirWinOpen = Key (F6):  Opens the directory history window while at the command 
  16523. line.  Also see Scrolling and History Keystrokes. 
  16524.  
  16525.  
  16526. ΓòÉΓòÉΓòÉ 7.2.4.4.2. HistWinOpen ΓòÉΓòÉΓòÉ
  16527.  
  16528. HistWinOpen = Key (Ctrl-PgUp):  Brings up the history window while at the 
  16529. command line.  Also see Scrolling and History Keystrokes and the SwapScrollKeys 
  16530. directive. 
  16531.  
  16532.  
  16533. ΓòÉΓòÉΓòÉ 7.2.4.4.3. NormalPopupKey ΓòÉΓòÉΓòÉ
  16534.  
  16535. NormalPopupKey = Key:  Deassigns a popup window key in order to disable the 
  16536. usual meaning of the key within the popup window.  For additional details see 
  16537. NormalKey. 
  16538.  
  16539.  
  16540. ΓòÉΓòÉΓòÉ 7.2.4.4.4. PopupWinBegin ΓòÉΓòÉΓòÉ
  16541.  
  16542. PopupWinBegin = Key (Ctrl-PgUp):  Moves to the first item in the list when in a 
  16543. popup window. 
  16544.  
  16545.  
  16546. ΓòÉΓòÉΓòÉ 7.2.4.4.5. PopupWinDel ΓòÉΓòÉΓòÉ
  16547.  
  16548. PopupWinDel = Key (Ctrl-D):  Deletes a line from within the command history or 
  16549. directory history window. 
  16550.  
  16551.  
  16552. ΓòÉΓòÉΓòÉ 7.2.4.4.6. PopupWinEdit ΓòÉΓòÉΓòÉ
  16553.  
  16554. PopupWinEdit = Key (Ctrl-Enter):  Moves a line from the command history or 
  16555. directory history window to the prompt for editing. 
  16556.  
  16557.  
  16558. ΓòÉΓòÉΓòÉ 7.2.4.4.7. PopupWinEnd ΓòÉΓòÉΓòÉ
  16559.  
  16560. PopupWinEnd = Key (Ctrl-PgDn):  Moves to the last item in the list when in a 
  16561. popup window. 
  16562.  
  16563.  
  16564. ΓòÉΓòÉΓòÉ 7.2.4.4.8. PopupWinExec ΓòÉΓòÉΓòÉ
  16565.  
  16566. PopupWinExec = Key (Enter):  Selects the current item and closes the window. 
  16567.  
  16568.  
  16569. ΓòÉΓòÉΓòÉ 7.2.4.5. LIST Keys ΓòÉΓòÉΓòÉ
  16570.  
  16571. These directives are effective only inside the LIST command.  The LIST keys 
  16572. are: 
  16573.  
  16574.         ListExit            Exits the current file 
  16575.         ListFind            Prompts and searches for a string 
  16576.         ListFindReverse     Prompts and searches backwards 
  16577.         ListHex             Toggles hexadecimal display mode 
  16578.         ListHighBit         Toggles LIST's "strip high bit" option 
  16579.         ListInfo            Displays information about the current file 
  16580.         ListNext            Finds the next matching string 
  16581.         ListPrevious        Finds the previous matching string 
  16582.         ListPrint           Prints the file on LPT1 
  16583.         ListWrap            Toggles LIST's wrap option 
  16584.         NormalListKey       Deassigns a LIST key 
  16585.  
  16586.  
  16587. ΓòÉΓòÉΓòÉ 7.2.4.5.1. ListExit ΓòÉΓòÉΓòÉ
  16588.  
  16589. ListExit = Key (Esc):  Exits the LIST command. 
  16590.  
  16591.  
  16592. ΓòÉΓòÉΓòÉ 7.2.4.5.2. ListFind ΓòÉΓòÉΓòÉ
  16593.  
  16594. ListFind = Key (F):  Prompts and searches for a string. 
  16595.  
  16596.  
  16597. ΓòÉΓòÉΓòÉ 7.2.4.5.3. ListFindReverse ΓòÉΓòÉΓòÉ
  16598.  
  16599. ListFindReverse = Key (Ctrl-F):  Prompts and searches backward for a string. 
  16600.  
  16601.  
  16602. ΓòÉΓòÉΓòÉ 7.2.4.5.4. ListHex ΓòÉΓòÉΓòÉ
  16603.  
  16604. ListHex = Key (X):  Toggles hexadecimal display mode. 
  16605.  
  16606.  
  16607. ΓòÉΓòÉΓòÉ 7.2.4.5.5. ListHighBit ΓòÉΓòÉΓòÉ
  16608.  
  16609. ListHighBit = Key (H):  Toggles LIST's "strip high bit" option, which can aid 
  16610. in displaying files from certain word processors. 
  16611.  
  16612.  
  16613. ΓòÉΓòÉΓòÉ 7.2.4.5.6. ListInfo ΓòÉΓòÉΓòÉ
  16614.  
  16615. ListInfo = Key (I):  Displays information about the current file. 
  16616.  
  16617.  
  16618. ΓòÉΓòÉΓòÉ 7.2.4.5.7. ListNext ΓòÉΓòÉΓòÉ
  16619.  
  16620. ListNext = Key (N):  Finds the next matching string. 
  16621.  
  16622.  
  16623. ΓòÉΓòÉΓòÉ 7.2.4.5.8. ListPrevious ΓòÉΓòÉΓòÉ
  16624.  
  16625. ListPrevious = Key (Ctrl-N):  Finds the previous matching string. 
  16626.  
  16627.  
  16628. ΓòÉΓòÉΓòÉ 7.2.4.5.9. ListPrint ΓòÉΓòÉΓòÉ
  16629.  
  16630. ListPrint = Key (P):  Prints the file. 
  16631.  
  16632.  
  16633. ΓòÉΓòÉΓòÉ 7.2.4.5.10. ListWrap ΓòÉΓòÉΓòÉ
  16634.  
  16635. ListWrap = Key (W):  Toggles LIST's wrap option on and off. The wrap option 
  16636. wraps text at the right margin. 
  16637.  
  16638.  
  16639. ΓòÉΓòÉΓòÉ 7.2.4.5.11. NormalListKey ΓòÉΓòÉΓòÉ
  16640.  
  16641. NormalListKey = Key:  Deassigns a LIST key in order to disable the usual 
  16642. meaning of the key within LIST.  For additional details see NormalKey. 
  16643.  
  16644.  
  16645. ΓòÉΓòÉΓòÉ 7.2.5. Advanced Directives ΓòÉΓòÉΓòÉ
  16646.  
  16647. These directives are generally used for unusual circumstances, or for 
  16648. diagnosing problems.  Most often they are not needed in normal use.  They 
  16649. cannot be entered via the configuration notebook; you must enter them manually 
  16650. (see TCMDOS2.INI for details). 
  16651.  
  16652.         ClearKeyMap         Clear default key mappings 
  16653.         Debug               Set debugging options 
  16654.         Include             Include text from a file in the current .INI file 
  16655.  
  16656.  
  16657. ΓòÉΓòÉΓòÉ 7.2.5.1. ClearKeyMap ΓòÉΓòÉΓòÉ
  16658.  
  16659. ClearKeyMap:  Clears all current key mappings. ClearKeyMap is a special 
  16660. directive which has no value or "=" after it.  Use ClearKeyMap to make one of 
  16661. the keys in the default map (Tab, Shift-Tab, Ctrl-Tab, or Ctrl-Bksp) available 
  16662. for a keystroke alias.  ClearKeyMap should appear before any other key mapping 
  16663. directives.  If you want to clear some but not all of the default mappings, use 
  16664. ClearKeyMap, then recreate the mappings you want to retain (e.g., with 
  16665. "NextFile=Tab", etc.). 
  16666.  
  16667.  
  16668. ΓòÉΓòÉΓòÉ 7.2.5.2. Debug ΓòÉΓòÉΓòÉ
  16669.  
  16670. Debug = nnnn (0):  Controls certain debugging options which can assist you in 
  16671. tracking down unusual problems.  Use the following values for Debug; to select 
  16672. more than one option, add the values together: 
  16673.  
  16674.     1   During the startup process, display the complete command tail passed to 
  16675.         Take Command, then wait for a keystroke. 
  16676.  
  16677.     2   Include the product name with each error message displayed by Take 
  16678.         Command.  This may be useful if you are unsure of the origin of a 
  16679.         particular error message. 
  16680.  
  16681.  Also see the batch file debugger, a separate and unrelated facility for 
  16682.  stepping through batch files. 
  16683.  
  16684.  
  16685. ΓòÉΓòÉΓòÉ 7.2.5.3. Include ΓòÉΓòÉΓòÉ
  16686.  
  16687. Include = File:  Include the text from the named file at this point in the 
  16688. processing of the current .INI file.  Use this option to share a file of 
  16689. directives between several JP Software products.  The text in the named file is 
  16690. processed just as if it were part of the original .INI file.  When the include 
  16691. file is finished, processing resumes at the point where it left off in the 
  16692. original file.  The included file may contain any valid directive for the 
  16693. current section, but may not contain a section name.  Includes may be nested up 
  16694. to three levels deep (counting the original file as level 1).  You must 
  16695. maintain include files manually ╨º the configuration dialogs modify the original 
  16696. .INI file only, and do not update included files. 
  16697.  
  16698.  
  16699. ΓòÉΓòÉΓòÉ 8. Setup and Troubleshooting ΓòÉΓòÉΓòÉ
  16700.  
  16701. To install Take Command, see the Introduction and Installation Guide.  This 
  16702. section will help you if you have difficulties with Take Command once you have 
  16703. finished the initial installation.  The topics included in this section are: 
  16704.  
  16705.     Starting Take Command 
  16706.             includes information about creating new desktop objects for Take 
  16707.             Command, options available during startup and on the command line, 
  16708.             and where Take Command files should be placed on your hard disk. 
  16709.  
  16710.     The Take Command Help System 
  16711.             describes this online help and explains how to configure it. 
  16712.  
  16713.     Error Messages 
  16714.             contains a list of the error messages that Take Command may 
  16715.             display, what each means, and how to correct each possible error. 
  16716.  
  16717.     Troubleshooting, Service, and Support 
  16718.             explains how to isolate problems you may encounter in using Take 
  16719.             Command and how to obtain technical support from JP Software. 
  16720.  
  16721.  
  16722. ΓòÉΓòÉΓòÉ 8.1. Starting Take Command ΓòÉΓòÉΓòÉ
  16723.  
  16724. This section covers starting Take Command, including: 
  16725.  
  16726.          Creating Desktop Objects for Take Command 
  16727.  
  16728.          Startup and Command Line Options 
  16729.  
  16730.  
  16731. ΓòÉΓòÉΓòÉ 8.1.1. Creating Desktop Objects for Take Command ΓòÉΓòÉΓòÉ
  16732.  
  16733. This section assumes you are running OS/2 Warp 4, with the default desktop 
  16734. shell and a standard OS/2 desktop.  If you are using an earlier version of OS/2 
  16735. or a different shell, or have altered your OS/2 desktop configuration 
  16736. substantially, you will need to take those changes into account as you read the 
  16737. instructions below. 
  16738.  
  16739. The Take Command for OS/2 installation program normally creates a desktop 
  16740. folder which contains objects to start Take Command for OS/2 and its online 
  16741. help.  If you want to create additional objects in other folders, or directly 
  16742. on the desktop, click mouse button 2 on the installed Take Command for OS/2 
  16743. object, select Copy on the popup menu, and copy the object to another location 
  16744. as desired.  You can then alter the properties of the new object if you wish. 
  16745.  
  16746. If you need to create a new object, switch to the folder where you want the 
  16747. object to appear and either copy an existing object (use the Copy or Create 
  16748. Another selection on the object's popup menu) or drag a Program Template in 
  16749. from the Templates folder.  The new object's Properties notebook should open 
  16750. automatically.  Use the Program page of the notebook to set the file name to 
  16751. d:\path\TCMDOS2.EXE (use the appropriate drive and path for your system).  Then 
  16752. modify the parameters and startup directory as required. 
  16753.  
  16754. No additional settings are required; the only required item is the drive and 
  16755. path for TCMDOS2.EXE.  However, you can put command-line switches, a command, 
  16756. or the name of a batch file in the Parameters field for any object. This allows 
  16757. you to run specific commands or set configuration options when you start Take 
  16758. Command for OS/2 from that object.  For details on the command line options 
  16759. available, see Startup and Command Line Options. 
  16760.  
  16761. For more information on creating and configuring desktop objects see your OS/2 
  16762. documentation. 
  16763.  
  16764.  
  16765. ΓòÉΓòÉΓòÉ 8.1.2. Startup and Command Line Options ΓòÉΓòÉΓòÉ
  16766.  
  16767. When you configure a Take Command object, place the full path and name for the 
  16768. TCMDOS2.EXE file in the Path and File Name field on the Program page of the 
  16769. object's Settings notebook, and put any startup options that you want passed to 
  16770. Take Command (e.g., the name of a startup batch file) in the Parameters field. 
  16771. (To bring up the Settings notebook click on the object with mouse button 2, 
  16772. then click on the Settings item on the popup menu.)  For example: 
  16773.  
  16774.         Path and File Name:    C:\TCMDOS2\TCMDOS2.EXE
  16775.         Parameters:            C:\GO.BAT
  16776.         Working directory:     C:\
  16777.  
  16778. When Take Command starts it automatically runs the optional TCSTART batch file. 
  16779. You can use this file to load aliases and environment variables and otherwise 
  16780. initialize Take Command. 
  16781.  
  16782. You can also place the name of a batch file, internal or external command, or 
  16783. alias at the end of the Parameters field for any object (as shown in the 
  16784. example above).  The batch file, command, or alias will be executed after 
  16785. TCSTART but before the first prompt is displayed. 
  16786.  
  16787. Each OS/2 program -- including Take Command -- has a command line which can be 
  16788. used to pass information to the program when it starts.  When Take Command is 
  16789. started from an object on the OS/2 desktop, the command line is entered in the 
  16790. Parameters field on the Program page of the Settings notebook for the Take 
  16791. Command object. 
  16792.  
  16793. The Take Command startup command line does not need to contain any information. 
  16794. When invoked with an empty command line, Take Command will configure itself 
  16795. from the TCMDOS2.INI file, run TCSTART, and then display a prompt and wait for 
  16796. you to type a command.  However, you may add information to the startup command 
  16797. line that will affect the way Take Command operates. 
  16798.  
  16799. Take Command recognizes several optional fields on the command line. If you use 
  16800. more than one of these fields, you should use them in the order that they are 
  16801. described below.  If you do not do so, you may find that they do not operate 
  16802. properly. 
  16803.  
  16804. The following options can be included are: 
  16805.  
  16806. @d:\path\inifile:  This option sets the path and name of the TCMDOS2.INI file. 
  16807. You do not need this option if you aren't using a TCMD.INI file, or if the file 
  16808. is named TCMDOS2.INI and is stored in the same subdirectory as TCMDOS2.EXE. 
  16809.  
  16810. //iniline:  This option tells Take Command to treat the text appearing between 
  16811. the // and the next space or tab as a TCMDOS2.INI directive. The directive 
  16812. should be in the same format as a line in the [TakeCommand] section of 
  16813. TCMDOS2.INI, but it may not contain spaces, tabs, or comments. This option 
  16814. overrides any corresponding directive in your TCMDOS2.INI file.  This option 
  16815. may be repeated.  It is a convenient way to place a few simple directives on 
  16816. the startup line without having to modify or create a new .INI file. 
  16817.  
  16818. /L, /LA, /LD, and /LH:  These options force Take Command to use a local alias, 
  16819. directory history, and / or command history list. This allows you to use global 
  16820. aliases as the default, but start a specific Take Command session with local 
  16821. aliases or history.  See ALIAS for details on local and global aliases, 
  16822. Directory History Window for details on local and global directory history, and 
  16823. Command History for details on local and global command history.  /LA forces 
  16824. local aliases, /LD forces local directory history, /LH forces local command 
  16825. history, and /L forces all three. 
  16826.  
  16827. [/C] command:  This option tells Take Command to run a command when it starts. 
  16828. The command will be run after TCSTART has been executed and before any command 
  16829. prompt is displayed.  It can be any valid internal or external command, batch 
  16830. file, or alias; you may include multiple commands by using the command 
  16831. separator.  All other startup options must be placed before the command, 
  16832. because Take Command will treat characters after the command as part of the 
  16833. command and not as additional startup options. 
  16834.  
  16835. When the command is preceded by a /C, Take Command will execute the command and 
  16836. then exit and return to the parent program or the OS/2 desktop without 
  16837. displaying a prompt. 
  16838.  
  16839. For example, to execute any TCSTART file you have created, execute 
  16840. C:\STARTUP.BAT, and then display the prompt when the object starts: 
  16841.  
  16842.         Path and File Name:    C:\TCMDOS2\TCMDOS2.EXE
  16843.         Parameters:            C:\STARTUP.BAT
  16844.         Working directory:     C:\
  16845.  
  16846. To execute an internal or external command, an alias, or a batch file and then 
  16847. exit (return to the desktop) when it is done, place /Ccommand (rather than just 
  16848. command) as the last item in the Parameters field.  For example: 
  16849.  
  16850.         Path and File Name:    C:\TCMDOS2\TCMDOS2.EXE
  16851.         Parameters:            /C C:\STARTUP.BAT
  16852.         Working directory:     C:\
  16853.  
  16854.  
  16855. ΓòÉΓòÉΓòÉ 8.2. The Take Command Help System ΓòÉΓòÉΓòÉ
  16856.  
  16857. This online help system for Take Command covers all Take Command features and 
  16858. internal commands.  It includes reference information to assist you in using 
  16859. Take Command and developing batch files, and includes most -- but not all -- of 
  16860. the details which are included in the printed Take Command manuals. 
  16861.  
  16862. If you type part or all of a command on the line and then press F1, the help 
  16863. system will provide "context-sensitive" help by using the first word on the 
  16864. line as a help topic.  If it's a valid topic, you will see help for that topic 
  16865. automatically; if not, you will see the list of all help topics and you can 
  16866. pick the one you want. 
  16867.  
  16868. You can use this feature to obtain help on any topic -- not just on commands. 
  16869. For example, if you enter the command HELP _DISK you will see help for the 
  16870. _DISK internal variable. 
  16871.  
  16872. If you type the name of any internal command at the prompt, followed by a slash 
  16873. and a question mark [/?] like this: 
  16874.  
  16875.         copy /?
  16876.  
  16877. then you will see help for the command in a "quick-reference" style. 
  16878.  
  16879. The /? option may not work correctly if you have used an alias to redefine how 
  16880. an internal command operates.  To view the /? help for such a command you must 
  16881. add an asterisk to the beginning of the command to disable alias processing. 
  16882. For example, if you have defined this alias: 
  16883.  
  16884.         alias copy *copy /r
  16885.  
  16886. then the command COPY /? will be translated to COPY /R /?, which will not work 
  16887. properly (because the /? does not appear immediately after the command name). 
  16888. However, if you use *COPY /?, the alias will be ignored and the /? will work as 
  16889. you intended. 
  16890.  
  16891. The Take Command help system uses OS/2's VIEW.EXE to display help text.  Once 
  16892. you've started the help system with HELP or F1, you can use VIEW's standard 
  16893. keystrokes to navigate.  For more information, click on the Help menu at the 
  16894. top of the VIEW window. 
  16895.  
  16896. Configuring the Help System 
  16897.  
  16898. For the help system to work properly you must place the files TCMDOS2.INF (this 
  16899. help text) and TCMDOS2H.MSG (the "quick-help" text) in the proper directories. 
  16900. See your Introduction and Installation Guide for additional details. 
  16901.  
  16902. OS/2 includes many other help files.  For example, there is a complete 
  16903. reference to all internal and external commands in the reference book named 
  16904. CMDREF.INF.  You can specify a different set of help files or "books" to be 
  16905. opened when HELP or F1 is invoked with the HelpBook directive in TCMDOS2.INI, 
  16906. or the corresponding entry in the configuration notebook.  For example, to set 
  16907. up Take Command for OS/2 so that both the CMDREF book and Take Command for OS/2 
  16908. book are displayed when F1 is pressed, include the following directive in 
  16909. TCMDOS2.INI, or make the corresponding change in the configuration notebook: 
  16910.  
  16911.         HelpBook=TCMDOS2+CMDREF
  16912.  
  16913. When more than one book is listed in the HelpBook setting, the OS/2 help 
  16914. program will see the combined group as a single book.  The displayed Table of 
  16915. Contents will include the tables of contents from all the listed books, joined 
  16916. together as one group of topics with no divisions to show where one book ends 
  16917. and the next begins.  If any of the listed books are not available the help 
  16918. program will not start. 
  16919.  
  16920. The Take Command installation program sets up a separate object for Take 
  16921. Command help so that you can load the help file directly.  To create a similar 
  16922. object manually, use entries like this on the Program page of the object's 
  16923. Settings notebook: 
  16924.  
  16925.         Path and File Name:   VIEW.EXE
  16926.         Parameters:           TCMDOS2
  16927.         Working Directory:    d:\path
  16928.  
  16929. where "d:\path" is the directory where you installed Take Command for OS/2. 
  16930.  
  16931.  
  16932. ΓòÉΓòÉΓòÉ 8.3. Error Messages ΓòÉΓòÉΓòÉ
  16933.  
  16934. This section lists error messages generated by Take Command, and includes a 
  16935. recommended course of action for most errors.  If you are unable to resolve the 
  16936. problem, look through your Introduction and Installation Guide for any 
  16937. additional troubleshooting recommendations, then contact JP Software for 
  16938. technical support. 
  16939.  
  16940. Error messages relating to files are generally reports of errors returned by 
  16941. OS/2.  You may find some of these messages (for example, "Access denied") vague 
  16942. enough that they are not always helpful.  Take Command includes the file name 
  16943. in file error messages, but is often unable to determine a more accurate 
  16944. explanation of these errors.  The message shown is the best information 
  16945. available based on the error codes returned by OS/2. 
  16946.  
  16947. The following list includes all error messages, in alphabetical order: 
  16948.  
  16949. Access denied:  You tried to write to or erase a read-only file, rename a file 
  16950. or directory to an existing name, create a directory that already exists, 
  16951. remove a read-only directory or a directory with files or subdirectories still 
  16952. in it, or access a file in use by another program. 
  16953.  
  16954. Alias loop:  An alias refers back to itself either directly or indirectly 
  16955. (i.e., a = b = a), or aliases are nested more than 16 deep.  Correct your alias 
  16956. list. 
  16957.  
  16958. Already excluded files:  You used more than one exclude range in a command. 
  16959. Combine the exclusions into a single range. 
  16960.  
  16961. Bad disk unit:  Generally caused by a disk drive hardware failure. 
  16962.  
  16963. Batch file missing:  Take Command can't find the batch (.BTM or .CMD) file it 
  16964. was running.  It was either deleted, renamed, moved, or the disk was changed. 
  16965. Correct the problem and rerun the file. 
  16966.  
  16967. Can't COPY or MOVE file to itself:  You cannot COPY or MOVE a file to itself. 
  16968. Take Command attempts to perform full path and filename expansion before 
  16969. copying to help ensure that files aren't inadvertently destroyed. 
  16970.  
  16971. Can't create:  Take Command can't create the specified file. The disk may be 
  16972. full or write protected, or the file already exists and is read-only, or the 
  16973. root directory is full. 
  16974.  
  16975. Can't delete:  Take Command can't delete the specified file or directory.  The 
  16976. disk is probably write protected. 
  16977.  
  16978. Can't get directory:  Take Command can't read the directory. The disk drive is 
  16979. probably not ready. 
  16980.  
  16981. Can't install hook:  Take Command for OS/2 cannot install the operating system 
  16982. hooks required to support the KEYSTACK command.  The operating system may have 
  16983. been damaged or improperly installed, or there may be too few resources to 
  16984. support KEYSTACK. 
  16985.  
  16986. Can't make directory entry:  Take Command can't create the filename in the 
  16987. directory.  This is usually caused by a full root directory. Create a 
  16988. subdirectory and move some of the files to it. 
  16989.  
  16990. Can't open:  Take Command can't open the specified file. Either the file 
  16991. doesn't exist or the disk directory or File Allocation Table is damaged. 
  16992.  
  16993. Can't remove current directory:  You attempted to remove the current directory, 
  16994. which OS/2 does not allow.  Change to the parent directory and try again. 
  16995.  
  16996. CD-ROM door open or CD-ROM not ready:  The CD-ROM drive door is open, the power 
  16997. is off, or the drive is disconnected.  Correct the problem and try again. 
  16998.  
  16999. CD-ROM not High Sierra or ISO-9660:  The CD-ROM is not recognized as a data CD 
  17000. (it may be a music CD).  Put the correct CD in the drive and try again. 
  17001.  
  17002. Clipboard is empty or not text format:  You tried to retrieve some text from 
  17003. the OS/2 clipboard, but there is no text available.  Correct the contents of 
  17004. the clipboard and try again. 
  17005.  
  17006. Clipboard is in use by another program:  Take Command could not access the OS/2 
  17007. clipboard because another program was using it.  Wait until the clipboard is 
  17008. available, or complete any pending action in the other program, then try again. 
  17009.  
  17010. Command line too long:  A single command exceeded 1023 characters, or the 
  17011. entire command line exceeded 2047 characters, during alias and variable 
  17012. expansion.  Reduce the complexity of the command or use a batch file.  Also 
  17013. check for an alias which refers back to itself either directly or indirectly. 
  17014.  
  17015. Command only valid in batch file:  You have tried to use a batch file command, 
  17016. like DO or GOSUB, from the command line or in an alias.  A few commands can 
  17017. only be used in batch files (see the individual commands for details). 
  17018.  
  17019. Contents lost before copy:  COPY was appending files, and found one of the 
  17020. source files is the same as the destination.  That source file is skipped, and 
  17021. appending continues with the next file. 
  17022.  
  17023. Data error:  OS/2 can't read or write properly to the device. On a floppy 
  17024. drive, this error is usually caused by a defective floppy disk, dirty disk 
  17025. drive heads, or a misalignment between the heads on your drive and the drive on 
  17026. which the disk was created. On a hard drive, this error may indicate a drive 
  17027. that is too hot or too cold, or a hardware problem.  Retry the operation; if it 
  17028. fails again, correct the hardware or diskette problem. 
  17029.  
  17030. Directory stack empty:  POPD or DIRS can't find any entries in the directory 
  17031. stack. 
  17032.  
  17033. Disk is write protected:  The disk cannot be written to. Check the disk and 
  17034. remove the write-protect tab or close the write-protect window if necessary. 
  17035.  
  17036. Drive not ready -- close door:  The removable disk drive door is open.  Close 
  17037. the door and try again. 
  17038.  
  17039. Duplicate redirection:  You tried to redirect standard input, standard output, 
  17040. or stand error more than once in the same command. 
  17041.  
  17042. Environment already saved:  You have already saved the environment with a 
  17043. previous SETLOCAL command.  You cannot nest SETLOCAL / ENDLOCAL pairs. 
  17044.  
  17045. Error in command-line directive:  You used the //iniline option to place an 
  17046. .INI directive on the startup command line, but the directive is in error. 
  17047. Usually a more specific error message follows, and can be looked up in this 
  17048. list. 
  17049.  
  17050. Error on line [nnnn] of [filename]:  There is an error in your TCMDOS2.INI 
  17051. file. The following message explains the error in more detail.  Correct the 
  17052. line in error and restart Take Command for your change to take effect. 
  17053.  
  17054. Error reading:  OS/2 experienced an I/O error when reading from a device.  This 
  17055. is usually caused by a bad disk, a device not ready, or a hardware error. 
  17056.  
  17057. Error writing:  OS/2 experienced an I/O error when writing to a device.  This 
  17058. is usually caused by a full disk, a bad disk, a device not ready, or a hardware 
  17059. error. 
  17060.  
  17061. Exceeded batch nesting limit:  You have attempted to nest batch files more than 
  17062. 10 levels deep. 
  17063.  
  17064. File Allocation Table bad:  OS/2 can't access the FAT on the specified disk. 
  17065. This can be caused by a bad disk, a hardware error, or an unusual software 
  17066. interaction. 
  17067.  
  17068. File exists:  The requested output file already exists, and Take Command won't 
  17069. overwrite it. 
  17070.  
  17071. File is empty:  You attempted to LIST a file with no data (a zero-byte file). 
  17072.  
  17073. File not found:  Take Command couldn't find the specified file.  Check the 
  17074. spelling and path name. 
  17075.  
  17076. General failure:  This is usually a hardware problem, particularly a disk drive 
  17077. failure or a device not properly connected to a serial or parallel port.  Try 
  17078. to correct the problem, or reboot and try again. Also see Data error above. 
  17079.  
  17080. Include file not found:  You used the Include directive in the TCMDOS2.INI 
  17081. file, but the file you specified was not found or could not be opened. 
  17082.  
  17083. Include files nested too deep:  You used the Include directive in the 
  17084. TCMDOS2.INI file, and attempted to nest include files more than three levels 
  17085. deep. 
  17086.  
  17087. Infinite COPY or MOVE loop:  You tried to COPY or MOVE a directory to one of 
  17088. its own subdirectories and used the /S switch, so the command would run 
  17089. forever.  Correct the command and try again. 
  17090.  
  17091. Insufficient disk space:  COPY or MOVE ran out of room on the destination 
  17092. drive.  Remove some files and retry the operation. 
  17093.  
  17094. Invalid character value:  You gave an invalid value for a character directive 
  17095. in the TCMDOS2.INI file. 
  17096.  
  17097. Invalid choice value:  You gave an invalid value for a "choice" directive (one 
  17098. that accepts a choice from a list, like "Yes" or "No") in the TCMDOS2.INI file. 
  17099.  
  17100. Invalid color:  You gave an invalid value for a color directive in the 
  17101. TCMDOS2.INI file. 
  17102.  
  17103. Invalid count:  The character repeat count for KEYSTACK is incorrect. 
  17104.  
  17105. Invalid date:  An invalid date was entered.  Check the syntax and reenter. 
  17106.  
  17107. Invalid directive name:  Take Command can't recognize the name of a directive 
  17108. in your TCMDOS2.INI file. 
  17109.  
  17110. Invalid drive:  A bad or non-existent disk drive was specified. 
  17111.  
  17112. Invalid key name:  You tried to make an invalid key substitution in the 
  17113. TCMDOS2.INI file, or you used an invalid key name in a keystroke alias or 
  17114. command.  Correct the error and retry the operation. 
  17115.  
  17116. Invalid numeric value:  You gave an invalid value for a numeric directive in 
  17117. the TCMDOS2.INI file. 
  17118.  
  17119. Invalid parameter:  Take Command didn't recognize a parameter.  Check the 
  17120. syntax and spelling of the command you entered. 
  17121.  
  17122. Invalid path:  The specified path does not exist.  Check the disk specification 
  17123. and/or spelling. 
  17124.  
  17125. Invalid path or file name:  You used an invalid path or filename in a directive 
  17126. in the TCMDOS2.INI file. 
  17127.  
  17128. Invalid time:  An invalid time was entered.  Check the syntax and reenter. 
  17129.  
  17130. Keystroke substitution table full:  Take Command ran out of room to store 
  17131. keystroke substitutions entered in the TCMDOS2.INI file.  Reduce the number of 
  17132. key substitutions or contact JP Software or your dealer for assistance. 
  17133.  
  17134. Label not found:  A GOTO or GOSUB referred to a non-existent label. Check your 
  17135. batch file. 
  17136.  
  17137. Missing ENDTEXT:  A TEXT command is missing a matching ENDTEXT.  Check the 
  17138. batch file. 
  17139.  
  17140. Missing GOSUB:  Take Command cannot perform the RETURN command in a batch file. 
  17141. You tried to do a RETURN without a GOSUB, or your batch file has been 
  17142. corrupted. 
  17143.  
  17144. Missing SETLOCAL:  An ENDLOCAL was used without a matching SETLOCAL. 
  17145.  
  17146. No aliases defined:  You tried to display aliases but no aliases have been 
  17147. defined. 
  17148.  
  17149. No closing quote:  Take Command couldn't find a second matching back quote [`] 
  17150. or double-quote ["] on the command line. 
  17151.  
  17152. No expression:  The expression passed to the @EVAL variable function is empty. 
  17153. Correct the expression and retry the operation. 
  17154.  
  17155. No shared memory found:  The SHRALIAS command could not find any global alias 
  17156. list, history list, or directory history list to retain, because you executed 
  17157. the command from a session with local lists.  Start Take Command with at least 
  17158. one global list, then invoke SHRALIAS. 
  17159.  
  17160. Not an alias:  The specified alias is not in the alias list. 
  17161.  
  17162. Not in environment:  The specified variable is not in the environment. 
  17163.  
  17164. Not ready:  The specified device can't be accessed. 
  17165.  
  17166. Not same device:  This error usually appears in RENAME. You cannot rename a 
  17167. file to a different disk drive. 
  17168.  
  17169. Out of memory:  Take Command or OS/2 had insufficient memory to execute the 
  17170. last command.  Try to free some memory by closing other sessions.  If the error 
  17171. persists, contact JP Software for assistance. 
  17172.  
  17173. Out of paper:  OS/2 detected an out-of-paper condition on one of the printers. 
  17174. Check your printer and add paper if necessary. 
  17175.  
  17176. Overflow:  An arithmetic overflow occurred in the @EVAL variable function. 
  17177. Check the values being passed to @EVAL.  @EVAL can handle 16 digits to the left 
  17178. of the decimal point and 8 to the right. 
  17179.  
  17180. Read error:  OS/2 encountered a disk read error; usually caused by a bad or 
  17181. unformatted disk.  Also see Data error above. 
  17182.  
  17183. Sector not found:  Disk error, usually caused by a bad or unformatted disk. 
  17184. Also see Data error above. 
  17185.  
  17186. Seek error:  OS/2 can't seek to the proper location on the disk.  This is 
  17187. generally caused by a bad disk or drive.  Also see Data error above. 
  17188.  
  17189. Sharing error or Sharing violation:  You tried to access a file in use by 
  17190. another program.  Wait for the file to become available, or change your method 
  17191. of operation so that another program does not have the file open while you are 
  17192. trying to use it. 
  17193.  
  17194. SHRALIAS already loaded:  You used the SHRALIAS command to load SHRALIAS.EXE, 
  17195. but it was already loaded.  This message is informational and generally does 
  17196. not indicate an error condition. 
  17197.  
  17198. SHRALIAS not loaded:  You used the SHRALIAS /U command to unload SHRALIAS.EXE, 
  17199. but it was never loaded.  This message is informational and may not indicate an 
  17200. error condition. 
  17201.  
  17202. Startup failed, contact JP Software:  Take Command could not initialize and 
  17203. start operation.  Contact JP Software or your dealer for assistance. 
  17204.  
  17205. String area overflow:  Take Command ran out of room to store the text from 
  17206. string directives in the TCMDOS2.INI file.  Reduce the complexity of the 
  17207. TCMDOS2.INI file or contact JP Software for assistance. 
  17208.  
  17209. Syntax error:  A command or variable function was entered in an improper 
  17210. format. Check the syntax and correct the error. 
  17211.  
  17212. Too many open files:  OS/2 has run out of file handles. 
  17213.  
  17214. Unbalanced parentheses:  The number of left and right parentheses did not match 
  17215. in an expression passed to the %@EVAL variable function.  Correct the 
  17216. expression and retry the operation. 
  17217.  
  17218. UNKNOWN_CMD loop:  The UNKNOWN_CMD alias, explained under the ALIAS command, 
  17219. called itself more than ten times.  The alias probably contains an unknown 
  17220. command itself, and is stuck in an infinite loop.  Correct the alias. 
  17221.  
  17222. Unknown command:  A command was entered that Take Command didn't recognize and 
  17223. couldn't find in the current search path.  Check the spelling or PATH 
  17224. specification.  You can handle unknown commands with the UNKNOWN_CMD alias (see 
  17225. ALIAS). 
  17226.  
  17227. Variable loop:  A nested environment variable refers to itself, or variables 
  17228. are nested more than 16 deep.  Correct the error and retry the command. 
  17229.  
  17230. Window title not found:  The ACTIVATE command could not find a window with the 
  17231. specified title.  Correct the command or open the appropriate window and try 
  17232. again. 
  17233.  
  17234. Write error:  OS/2 encountered a disk write error; usually caused by a bad or 
  17235. unformatted disk.  Also see Data error above. 
  17236.  
  17237.  
  17238. ΓòÉΓòÉΓòÉ 8.4. Troubleshooting, Service, and Support ΓòÉΓòÉΓòÉ
  17239.  
  17240. Before You Contact Us 
  17241.  
  17242. Before contacting us for support, please check this help file, the Reference 
  17243. Manual and other documentation for answers to your question.  If you can't find 
  17244. what you need, try the Index.  If you're having trouble getting Take Command to 
  17245. run properly, see the Introduction and Installation manual and look through the 
  17246. README.TXT file for any last-minute information for your product. 
  17247.  
  17248. (If you need help with sales, ordering, shipments, brand codes, or other 
  17249. similar non-technical issues please contact our Sales and Customer Service 
  17250. department.  See Contacting JP Software for our addresses.) 
  17251.  
  17252. If you do need to contact us for support, it helps if you can give us some 
  17253. basic information.  The first four items listed below are essential for us to 
  17254. be able to understand and assist you with your problem: 
  17255.  
  17256.          What environment are you working in?  This includes the operating 
  17257.          system version are you using, the version of the JP Software product 
  17258.          involved, and related information such as network connections and the 
  17259.          name and version number of any other software which appears to be 
  17260.          involved in the problem.  Use the VER /R command to determine the Take 
  17261.          Command version and operating system version. 
  17262.  
  17263.          What exactly did you do?  A concise description of what steps you must 
  17264.          take to make the problem appear is much more useful than a long 
  17265.          analysis of what might be happening. 
  17266.  
  17267.          What did you expect to happen?  Tell us the result you expected from 
  17268.          the command or operation in question, so that we understand what you 
  17269.          are trying to do. 
  17270.  
  17271.          What actually happened?  At what point did the failure occur? If you 
  17272.          saw an error message or other important or unusual information on the 
  17273.          screen, what exactly did it say? 
  17274.  
  17275.          Briefly, what techniques did you use to try to resolve the problem? 
  17276.          What results did you get? 
  17277.  
  17278.          If the problem seems related to startup and configuration issues, what 
  17279.          are the contents of any startup files you use (such as CONFIG.SYS, 
  17280.          TCSTART, TCEXIT, and the TCMDOS2.INI file), any batch files they call, 
  17281.          and any alias or environment variable files they load? 
  17282.  
  17283.          Can you repeat the problem or does it occur randomly?  If it's random, 
  17284.          does it seem related to the programs you're using when the problem 
  17285.          occurs? 
  17286.  
  17287.  Online Support 
  17288.  
  17289.  Support for Take Command for OS/2 is offered via our online support forum, 
  17290.  where our support personnel can read and respond to your messages, and other 
  17291.  users can respond as well.  The forum is accessible via several methods; for 
  17292.  complete details and access links see the support area of our web site at 
  17293.  http://www.jpsoft.com/. 
  17294.  
  17295.  A number of other support resources are available from our web site, including 
  17296.  error message listings, documentation files, product histories, technical tips 
  17297.  and discussions, other technical information, and links to other companies' 
  17298.  sites.  We update this information regularly, and we encourage you to check 
  17299.  the Technical Support area of the web site to see if the information there 
  17300.  will address any questions you have. 
  17301.  
  17302.  If you are unable to gain access to the forum, or you need to include 
  17303.  confidential information in your support request, contact us via email at 
  17304.  support@jpsoft.com and we will assist you in resolving the problem with forum 
  17305.  access, or assist you with your request privately if appropriate.  Please do 
  17306.  not use this address for standard support questions which can be posted on the 
  17307.  forum. 
  17308.  
  17309.  Technical support messages should be sent as standard ASCII text. Please do 
  17310.  not transmit attached files, binary files, screen images, or any file over 10K 
  17311.  bytes in size to any of our electronic technical support addresses unless 
  17312.  asked to do so by our support staff. 
  17313.  
  17314.  
  17315. ΓòÉΓòÉΓòÉ 8.4.1. Contacting JP Software ΓòÉΓòÉΓòÉ
  17316.  
  17317. You can contact JP Software at the following addresses and numbers.  Our normal 
  17318. business hours are 8:30 AM to 5:00 PM weekdays, eastern US time (except 
  17319. holidays). 
  17320.  
  17321.     Address:          JP Software Inc. 
  17322.                       P.O. Box 1470 
  17323.                       East Arlington, MA 02474 
  17324.                       USA 
  17325.  
  17326.     Main number:      (781) 646-3975 
  17327.  
  17328.     Fax:              (781) 646-0904 
  17329.  
  17330.     Order Line:       (800) 368-8777  (US / Canada, orders only) 
  17331.  
  17332.     Email:            Sales / Customer Service:  sales@jpsoft.com 
  17333.  
  17334.                       Technical Support:  Visit our support forum, accessible 
  17335.                       via the support area of our web site at 
  17336.                       http://www.jpsoft.com/ 
  17337.  
  17338.                       World Wide Web:  http://www.jpsoft.com/ 
  17339.  
  17340.                       Downloads via FTP:  ftp://ftp.jpsoft.com/ 
  17341.  
  17342.  
  17343. ΓòÉΓòÉΓòÉ 9. What's New ΓòÉΓòÉΓòÉ
  17344.  
  17345. This section provides a comprehensive list of what's changed since our previous 
  17346. major release, version 1.02.  Maintenance changes made between versions 2.00 
  17347. and 2.03 are indicated by 2.01, 2.02, or 2.03 in the left margin. 
  17348.  
  17349. This topic does not explain how to use each new feature.  Instead, where 
  17350. appropriate we have provided links below to the detailed help topics containing 
  17351. additional usage information or other documentation. 
  17352.  
  17353. Some of the descriptions here may be more detailed than you need; if you aren't 
  17354. using a feature, feel free to skip to the next item.  If you are new to Take 
  17355. Command for OS/2 with version 2.03, you can skip this topic entirely. 
  17356.  
  17357. This topic is divided into the following subtopics: 
  17358.  
  17359.             General Features and Enhancements 
  17360.             Line Editing and History 
  17361.             Command Changes 
  17362.             Variables and Variable Functions 
  17363.             Startup and Configuration 
  17364.             Technical and Compatibility Enhancements 
  17365.             Bugs Fixed 
  17366.  
  17367.  The major new features in this release include: 
  17368.  
  17369.     ╨┐   Extended Directory Searches:  allow you to change to a directory 
  17370.         anywhere on your system by entering only part of its name.  They must 
  17371.         be explicitly enabled before you can use them.  See Directory 
  17372.         Navigation for complete details. 
  17373.  
  17374.     ╨┐   New File Exclusion Ranges: provide a convenient way to exclude files 
  17375.         from any internal command -- faster and more flexible than using 
  17376.         EXCEPT. 
  17377.  
  17378.     ╨┐   The new Batch File Debugger can execute each line step by step, process 
  17379.         or trace into additional batch files, and display variables, aliases, 
  17380.         and expanded commands at each step. 
  17381.  
  17382.     ╨┐   New commands include: 
  17383.  
  17384.                  OPTION:  Offers complete configuration adjustment, either 
  17385.                  through interactive dialogs or on the command line. 
  17386.  
  17387.                  SWITCH:  Provides for "case" statements in batch files. 
  17388.  
  17389.                  TOUCH:  Adjusts file dates and times. 
  17390.  
  17391.                  TREE:  Displays the directory tree, with or without file 
  17392.                  names, in a variety of formats. 
  17393.  
  17394.  
  17395. ΓòÉΓòÉΓòÉ 9.1. General Features and Enhancements ΓòÉΓòÉΓòÉ
  17396.  
  17397. What's New - General Features and Enhancements 
  17398.  
  17399.         ╨┐  Added a complete batch file debugger.  The debugger displays the 
  17400.            batch file in a window and allows you to execute each line step by 
  17401.            step, process or trace into additional batch files and subroutines, 
  17402.            and display variables and aliases at each step.  See Batch File 
  17403.            Debugging for complete details. 
  17404.  
  17405.         ╨┐  Popup windows (for filename completion, command history recall, 
  17406.            etc.) now allow you to search for a line within the window contents 
  17407.            by typing the first few characters of the line.  The search string 
  17408.            is displayed in the lower right corner of the window. 
  17409.  
  17410.         ╨┐  You can now redirect to and from the clipboard by using the 
  17411.            pseudo-device name CLIP:.  For example, to redirect DIR to the 
  17412.            clipboard: 
  17413.  
  17414.                               dir *.doc > clip:
  17415.  
  17416.         ╨┐  The online help has been reorganized to make it easier to navigate 
  17417.            through the main topics, and includes additional reference 
  17418.            information, reference tables, and a glossary. 
  17419.  
  17420.         ╨┐  The default maximum file description length is now 511 bytes in all 
  17421.            products. 
  17422.  
  17423.         ╨┐  Two new characters can now follow the escape character:  An escape 
  17424.            followed by a 'q' will substitute a double quote; an escape followed 
  17425.            by a 'k' will substitute a back quote. 
  17426.  
  17427.         ╨┐  The decimal and thousands characters used in @EVAL and in displayed 
  17428.            version numbers and other similar locations are now controllable 
  17429.            with the DecimalChar and ThousandsChar directives in the .INI file, 
  17430.            the corresponding options in the configuration or OPTION dialogs, 
  17431.            and the SETDOS /G command.  These characters are saved by SETLOCAL 
  17432.            and restored by ENDLOCAL.  This is intended as an aid to those 
  17433.            writing batch files which perform arithmetic operations and which 
  17434.            may be used in countries with differing separator characters. 
  17435.  
  17436.         ╨┐  The directory stack size used by PUSHD and POPD has been increased 
  17437.            from 255 to 511 bytes to leave adequate room for long directory 
  17438.            names. 
  17439.  
  17440.         ╨┐  .BTM files can now be longer than 64K bytes, though compressed .BTMs 
  17441.            still have to be less than 64K. 
  17442.  
  17443.  
  17444. ΓòÉΓòÉΓòÉ 9.2. Command Line Editing ΓòÉΓòÉΓòÉ
  17445.  
  17446. What's New - Command Line Editing 
  17447.  
  17448.         ╨┐  Extended directory searches can be used directly from the command 
  17449.            line for quick directory navigation; see Automatic Directory Changes 
  17450.            or Directory Navigation for details. 
  17451.  
  17452.         ╨┐  Made several ehancements to filename completion, including: 
  17453.  
  17454.            *        The Ctrl-A key, which toggles between long and short 
  17455.                     filenames for filename completion, can now be hit at any 
  17456.                     point during command line entry -- not just during filename 
  17457.                     completion.  For example, if you hit Ctrl-A at the 
  17458.                     beginning of the command line, all filenames subsequently 
  17459.                     returned for that line will be short names (until you hit 
  17460.                     Ctrl-A again). 
  17461.  
  17462.            *        Filename completion can now be customized for individual 
  17463.                     commands via the new FileCompletion .INI directive (or 
  17464.                     environment variable).  For example, you can configure Take 
  17465.                     Command to complete only the names of .TXT files when the 
  17466.                     command line starts with the name of your text editor, or 
  17467.                     to display only directory names when you are entering a CD 
  17468.                     command. 
  17469.  
  17470.            *        The F7 filename completion popup window now sorts the 
  17471.                     filename list alphabetically. 
  17472.  
  17473.         ╨┐  You can now expand aliases immediately while still on the command 
  17474.            line with the Ctrl-F key. 
  17475.  
  17476.         ╨┐  Command line history recall will now stop at the beginning and end 
  17477.            of the history list rather than wrapping around, if you set HistWrap 
  17478.            to No in the .INI file or through the configuration dialogs. 
  17479.  
  17480.         ╨┐  Take Command now supports ANSI screen commands. 
  17481.  
  17482.         ╨┐  In the Find Files dialog, double-clicking on the filename, then 
  17483.            clicking on LIST in the Info dialog will now start LIST (in a 
  17484.            separate copy of Take Command) with the pointer at the first 
  17485.            matching string in the file. 
  17486.  
  17487.         ╨┐  A double (left) click in the Take Command window now selects the 
  17488.            word under the mouse pointer. 
  17489.  
  17490.  
  17491. ΓòÉΓòÉΓòÉ 9.3. Command Changes ΓòÉΓòÉΓòÉ
  17492.  
  17493. What's New - Command Changes 
  17494.  
  17495.         ╨┐  ATTRIB:  Added the /E switch to disable display of non-fatal errors. 
  17496.            Also, ATTRIB now allows underscores in the attribute string, so that 
  17497.            you can get a result from the %@ATTRIB variable function and feed it 
  17498.            directly to the ATTRIB command. 
  17499.  
  17500.         ╨┐  CD and CDD:  Now support extended directory searches, which allow 
  17501.            you to change to a directory anywhere on your system by entering 
  17502.            only part of its name.  The CDD /S switch builds the extended 
  17503.            directory search database.  Extended directory searches mmust be 
  17504.            explicitly enabled before you can use them.  See Directory 
  17505.            Navigation for complete details. 
  17506.  
  17507.         ╨┐  CDD:  Added the /A switch to display the current directory for all 
  17508.            existing and ready drives from C: to Z:. 
  17509.  
  17510.         ╨┐  CHCP:  Changed to only affect the current process and its children, 
  17511.            as in CMD.EXE. 
  17512.  
  17513.         ╨┐  COPY:  Added several switches: 
  17514.  
  17515.              /E         Disable display of non-fatal errors. 
  17516.              /K         Preserve read-only attributes during a COPY. 
  17517.              /X         Clear the archive bit from the source file after a 
  17518.                         successful copy. 
  17519.              /Z         Overwrite read-only target files. 
  17520.  
  17521.         ╨┐  COPY:  When copying from a FAT drive to an HPFS drive, COPY will now 
  17522.            use the .LONGNAME extended attribute of the source file (if 
  17523.            available) to determine the long name.  When copying from HPFS to 
  17524.            FAT, COPY sets the .LONGNAME attribute if possible, to preserve the 
  17525.            long name. 
  17526.  
  17527.         ╨┐  DEL:  Added two switches: 
  17528.  
  17529.              /E         Disable display of non-fatal errors. 
  17530.              /W         Clear the file to 0's before deleting it. 
  17531.  
  17532.         ╨┐  DIR:  Added or modified several of the DIR switches: 
  17533.  
  17534.              /2         Now forces the use of truncated names on HPFS drives. 
  17535.              /4         Now forces the use of truncated names on HPFS drives, 
  17536.                         and displays files between 1 and 9.9 Mb in tenths 
  17537.                         (i.e., "2.4M"). 
  17538.              /G         (New) Displays the allocated size instead of the file 
  17539.                         size. 
  17540.              /W         Now forces the use of truncated names on HPFS drives. 
  17541.  
  17542.         ╨┐  DIRHISTORY:  This new command has the same syntax as HISTORY, but it 
  17543.            modifies the directory history. 
  17544.  
  17545.         ╨┐  DO:  Added two new DO loop types: 
  17546.  
  17547.            *        "DO x IN filename" retrieves each matching filename from a 
  17548.                     wildcard spec and inserts the value into the variable. 
  17549.            *        "DO x IN @filename" retrieves each line in the file and 
  17550.                     inserts it into the variable. 
  17551.  
  17552.         ╨┐  ECHOERR and ECHOSERR:  These new commands are like ECHO and ECHOS, 
  17553.            but output goes to the standard error device instead of standard 
  17554.            output. 
  17555.  
  17556.         ╨┐  ENDLOCAL:  To aid in making batch files portable, SETLOCAL and 
  17557.            ENDLOCAL now save and restore the command separator, escape 
  17558.            character, parameter character, and decimal and thousands 
  17559.            separators. 
  17560.  
  17561.         ╨┐  FFIND:  Added two new switches: 
  17562.  
  17563.              /I         Do a literal match even if the text search string 
  17564.                         contains wildcard characters. 
  17565.              /R         Start searching for text from the end backwards. 
  17566.  
  17567.            Also, the /X switch will now display the offset in both hex and 
  17568.            decimal. 
  17569.  
  17570.         ╨┐  FOR:  Added several new switches for compatibility with Windows NT 
  17571.            4.0's CMD.EXE; see the command reference information for complete 
  17572.            details. 
  17573.  
  17574.         ╨┐  GOTO:  Added support for Windows NT 4.0's "GOTO :EOF" -- If there is 
  17575.            no ":EOF" label, GOTO ends the current batch file (equivalent to a 
  17576.            QUIT). 
  17577.  
  17578.         ╨┐  IF / IFF:  These commands now support nested conditional tests, with 
  17579.            parentheses, e.g.: 
  17580.  
  17581.                               if  (%a == 1 .or. %b == 2) .and. %c == 3 echo something
  17582.  
  17583.            See the command reference information for complete syntax rules. 
  17584.  
  17585.         ╨┐  Added a new "IF DEFINED varname" test, which succeeds if the 
  17586.            specified variable exists in the environment.  This is included for 
  17587.            compatibility with Windows NT 4.0's CMD.EXE, and is the same as a 
  17588.            test like: 
  17589.  
  17590.                               if  "%varname" ne "" ...
  17591.  
  17592.         ╨┐  Changed the comparison tests to accept a leading decimal separator 
  17593.            as a numeric character, provided the remainder of the string is 
  17594.            numeric and does not contain additional decimal characters. 
  17595.  
  17596.         ╨┐  KEYSTACK:  Now supports sending keystrokes to windowed VIO sessions 
  17597.            (not just PM apps) from Take Command for OS/2. 
  17598.  
  17599.         ╨┐  LIST:  Added a range of enhancements, including: 
  17600.  
  17601.            *        Ctrl-PgUp and Ctrl-PgDn will go to the previous and next 
  17602.                     file in the current group, respectively. 
  17603.  
  17604.            *        Ctrl-F searches backwards for a text string; Ctrl-N repeats 
  17605.                     the last search, searching backwards. 
  17606.  
  17607.            *        Matching strings on the first page are now highlighted 
  17608.                     after a search. 
  17609.  
  17610.            *        When piping output to LIST in most cases you no longer need 
  17611.                     the /S switch; for example, to view DIR's output in LIST 
  17612.                     you can now use: 
  17613.  
  17614.                                                 dir  | list
  17615.  
  17616.                     Also, added three new switches: 
  17617.  
  17618.                       /I         Ignore case in a /T search. 
  17619.                       /R         The search initiated by /T goes backwards from 
  17620.                                  the end of the file. 
  17621.                       /T         Search for text when LIST starts. 
  17622.  
  17623.         ╨┐  MD:  Added the /N switch to create a directory without updating the 
  17624.            extended directory search database (useful for temporary 
  17625.            directories). 
  17626.  
  17627.         ╨┐  MOVE:  Added the /E switch to disable display of non-fatal errors. 
  17628.  
  17629.         ╨┐  MOVE:  When moving files from a FAT drive to an HPFS drive, MOVE 
  17630.            will now use the .LONGNAME extended attribute of the source file (if 
  17631.            available) to determine the long name.  When moving files from HPFS 
  17632.            to FAT, MOVE sets the .LONGNAME attribute if possible, to preserve 
  17633.            the long name. 
  17634.  
  17635.         ╨┐  OPTION:  This new command can be used for two purposes.  When 
  17636.            invoked without parameters, it loads configuration dialogs which 
  17637.            adjust most commonly-used settings in the .INI file.  The dialogs 
  17638.            provide a convenient method of adjusting configuration without 
  17639.            manually editing the .INI file.  OPTION can also be used to change 
  17640.            specific settings on an individual basis with the OPTION Name=value 
  17641.            ... syntax; see the command for complete details. 
  17642.  
  17643.         ╨┐  PROMPT:  Added the $+ metacharacter, which displays one + for each 
  17644.            PUSHD level. 
  17645.  
  17646.         ╨┐  REN / RENAME:  Added the /E switch to disable display of non-fatal 
  17647.            errors. 
  17648.  
  17649.         ╨┐  RETURN:  Now accepts an optional argument for the errorlevel to 
  17650.            return.  The errorlevel can be tested with %? or IF ERRORLEVEL. 
  17651.  
  17652.         ╨┐  SCREEN, SCRPUT, and VSCRPUT:  If you specify 999 for the row, the 
  17653.            text will be centered vertically; if you specify 999 for the column, 
  17654.            the text will be centered horizontally. 
  17655.  
  17656.         ╨┐  SELECT:  You can now type characters from the start of a filename 
  17657.            and the selection bar will jump to the first matching name.  Due to 
  17658.            this change, the key to popup LIST on the currently selected file 
  17659.            has been changed from L to ^L.  Also, added the /T:acw switch to 
  17660.            select the date and time to use for display and sorting on HPFS 
  17661.            drives. 
  17662.  
  17663.         ╨┐  SETLOCAL:  To aid in making batch files portable, SETLOCAL now saves 
  17664.            the command separator, escape character, parameter character, and 
  17665.            decimal and thousands separators; ENDLOCAL restores them. 
  17666.  
  17667.         ╨┐  SHIFT:  The new "/n" argument will start the shift at the specified 
  17668.            argument -- i.e., "shift /2" moves %3 to %2, %4 to %3, etc. 
  17669.  
  17670.         ╨┐  START:  Added /LD for a local directory history list. 
  17671.  
  17672.         ╨┐  START:  Added support for the (undocumented) Warp 4 CMD.EXE 
  17673.            "DosSetting.xxx=yyy" environment variables to specify settings for 
  17674.            DOS sessions. 
  17675.  
  17676.         ╨┐  SWITCH:  This new command provides a C-like switch construct for 
  17677.            batch files.  SWITCH scans each CASE statement looking for a 
  17678.            matching value; if it finds one it executes the block of code inside 
  17679.            that CASE statement, and then jumps to the end of the switch block 
  17680.            (ENDSWITCH).  If no CASE statement matches, SWITCH will execute the 
  17681.            code in the (optional) DEFAULT block. 
  17682.  
  17683.         ╨┐  TOUCH:  This new command changes the date and/or time for a file or 
  17684.            files.  You can set a specified date and time or use the current 
  17685.            system clock, and you can optionally change the last access / 
  17686.            creation date and time fields on HPFS drives. 
  17687.  
  17688.         ╨┐  TREE:  This new command displays a graphical directory tree using 
  17689.            either line-drawing or ASCII characters.  It can also optionally 
  17690.            display file names, dates, times, and sizes. 
  17691.  
  17692.         ╨┐  UNALIAS:  Added the /R switch to read a file of aliases to remove. 
  17693.  
  17694.         ╨┐  UNSET:  Added the /R switch to read a file of variables to remove. 
  17695.  
  17696.  2.01  ╨┐   FFIND:  Added support for piping into FFIND.  You can either specify 
  17697.            CON for the filename, or if no filename is specified FFIND will 
  17698.            detect whether STDIN is a pipe and use that. 
  17699.  
  17700.  2.01  ╨┐   TOUCH:  /T[acw] and /D[acw] now default to the current date and 
  17701.            time.  Previously when the "a", "c", or " w" was specified the date 
  17702.            or time had to be specified also. 
  17703.  
  17704.  2.02  ╨┐   CD and CDD:  Added the /N switch to disable extended directory 
  17705.            searches and the change directory popup window (intended primarily 
  17706.            for use in batch files). 
  17707.  
  17708.  
  17709. ΓòÉΓòÉΓòÉ 9.4. Variables and Functions ΓòÉΓòÉΓòÉ
  17710.  
  17711. What's New - Variables and Functions Added or updated the following internal 
  17712. variables (all variables listed are new unless otherwise noted): 
  17713.  
  17714.         ╨┐  _APMAC:  Advanced Power Management AC line status. 
  17715.  
  17716.         ╨┐  _APMBATT:  Advanced Power Management battery status. 
  17717.  
  17718.         ╨┐  _APMLIFE:  Advanced Power Management remaining battery life. 
  17719.  
  17720.         ╨┐  _CPU:  Now returns "686" for Pentium Pro. 
  17721.  
  17722.         ╨┐  _DOWI:  Returns the current day of week as an integer (Sun = 1, Mon 
  17723.            = 2, etc.). 
  17724.  
  17725.         ╨┐  _SELECTED:  Returns the selected (highlighted) text. 
  17726.  
  17727.         ╨┐  _XPIXELS:  Returns the physical screen horizontal size in pixels. 
  17728.  
  17729.         ╨┐  _YPIXELS:  Returns the physical screen vertical size in pixels. 
  17730.  
  17731.  2.01  ╨┐   _CMDPROC:  Returns the name of the current command processor. 
  17732.  
  17733.  Added or updated the following variable functions (all functions listed are 
  17734.  new unless otherwise noted): 
  17735.  
  17736.         ╨┐  @CLIP[n]:  Returns line n from the clipboard (base 0). 
  17737.  
  17738.         ╨┐  @CONVERT[input,output,value]:  Converts a number from one base to 
  17739.            another. 
  17740.  
  17741.         ╨┐  @DAY[date]:  Returns the day for the specified date. 
  17742.  
  17743.         ╨┐  @DOW[date]:  Returns the day of week for the specified date, as a 
  17744.            string (Sun, Mon, etc.) 
  17745.  
  17746.         ╨┐  @DOWI[date]:  Returns the day of week for the specified date, as an 
  17747.            integer (Sun = 1, Mon = 2, etc.). 
  17748.  
  17749.         ╨┐  @DOY[date]:  Returns the day of year for the specified date (136). 
  17750.  
  17751.         ╨┐  @EAREAD[filename,EAname]:  Returns the specified text extended 
  17752.            attribute for the file. 
  17753.  
  17754.         ╨┐  @EAWRITE[filename,EAname,value]:  Writes the specified text extended 
  17755.            attribute for the file. 
  17756.  
  17757.         ╨┐  @EVAL[expression]:  Now supports user-definable decimal and 
  17758.            thousands characters; see DecimalChar and ThousandsChar, or SETDOS 
  17759.            /G for details. 
  17760.  
  17761.         ╨┐  @EXEC[command]:  This function has been modified; if you preface the 
  17762.            command with an '@', @EXEC will return an empty string rather than 
  17763.            the result code of the command. 
  17764.  
  17765.         ╨┐  @EXECSTR[command]:  Returns the first line written to STDOUT by the 
  17766.            specified command.  (This is intended to provide functionality 
  17767.            similar to UNIX back-quoting.) 
  17768.  
  17769.         ╨┐  @EXPAND[filename[,attributes]]:  Expands a wildcard filename and 
  17770.            returns all of the matching filenames / directories on a single 
  17771.            line. 
  17772.  
  17773.         ╨┐  @FILEDATE[filename[,acw]] / @FILETIME[filename[,acw]]:  Added the 
  17774.            optional second argument determines which date / time field to 
  17775.            return on HPFS drives. 
  17776.  
  17777.         ╨┐  @FILESIZE[filename[,bkm[,a]]:  Added the optional third argument 
  17778.            a(llocated); if specified, the function returns the size actually 
  17779.            used on disk, not the amount of data in the file. 
  17780.  
  17781.         ╨┐  @INSERT[n,string1,string2]:  Inserts string1 into string2 starting 
  17782.            at offset n. 
  17783.  
  17784.         ╨┐  @LEFT[n,string]:  Returns the leftmost n characters of string. 
  17785.  
  17786.         ╨┐  @MONTH[date]:  Return the month for the specified date. 
  17787.  
  17788.         ╨┐  @NUMERIC[string]:  Now considers a leading decimal separator as a 
  17789.            numeric character, provided the remainder of the string is numeric 
  17790.            and does not contain additional decimal characters. 
  17791.  
  17792.         ╨┐  @REPLACE[string1,string2,text]:  Replaces all occurrences of string1 
  17793.            in text with string2. 
  17794.  
  17795.         ╨┐  @RIGHT[n,string]:  Returns the rightmost n characters of string. 
  17796.  
  17797.         ╨┐  @SEARCH[filename[,path]]:  Now accepts an optional second argument 
  17798.            for the path to search. 
  17799.  
  17800.         ╨┐  @SELECT[filename,top,left,bottom,right,title[,1]]:  Has a new 
  17801.            optional argument following the title.  If it's set to 1, @SELECT 
  17802.            will sort the list alphabetically. 
  17803.  
  17804.         ╨┐  @STRIP[chars,string]:  Return string with the characters in chars 
  17805.            removed. 
  17806.  
  17807.         ╨┐  @WILD[string1,string2]:  Does a wildcard comparison on the two 
  17808.            strings and returns 1 if they match; 0 if they don't. 
  17809.  
  17810.         ╨┐  @YEAR[date]:  Return the year for the specified date. 
  17811.  
  17812.  
  17813. ΓòÉΓòÉΓòÉ 9.5. Startup and Configuration ΓòÉΓòÉΓòÉ
  17814.  
  17815. What's New - Startup and Configuration 
  17816.  
  17817.         Added or modified the following .INI directives (all are new unless 
  17818.         otherwise noted): 
  17819.  
  17820.         ╨┐  CDDWinLeft, CDDWinTop, CDDWinWidth, CDDWinHeight.  These directives 
  17821.            set the position, and size of the popup window used for extended 
  17822.            directory searches. 
  17823.  
  17824.         ╨┐  DescriptionName:  This directive has a new capability:  If set to 
  17825.            "EA", Take Commandfor OS/2 will use extended attributes 
  17826.            (specifically, the ".SUBJECT" EA) for file descriptions, rather than 
  17827.            DESCRIPT.ION or another file.  Depending on operating system 
  17828.            configuration and cache behavior, this setting can cause a 
  17829.            significant reduction in performance, but may be useful when working 
  17830.            with other programs that manipulate Extended Attributes. 
  17831.  
  17832.         ╨┐  DuplicateBugs = Yes | NO:  Tells the parser to duplicate certain 
  17833.            CMD.EXE errors which may be important in solving rare compatibility 
  17834.            problems.  The only bug currently replicated by this command is the 
  17835.            IF command. 
  17836.  
  17837.         ╨┐  FileCompletion = cmd1:ext1 ext2;cmd2 ...:  Sets up command-specific 
  17838.            filename completion. 
  17839.  
  17840.         ╨┐  FuzzyCD =  0 | 1 | 2 | 3:  Enables or disables extended directory 
  17841.            searches, and controls their behavior. 
  17842.  
  17843.         ╨┐  HistMove = Yes | NO:  If set to Yes, a recalled line from the 
  17844.            command history is moved to the end of the history list, and removed 
  17845.            from its original location. 
  17846.  
  17847.         ╨┐  Include = filename:  Includes the contents of the named file as if 
  17848.            they had appeared at the location of the Include= directive in the 
  17849.            current .INI file. 
  17850.  
  17851.         ╨┐  TreePath = Path:  Specifies the location of JPSTREE.IDX (the 
  17852.            extended directory search database; defaults to C:\). 
  17853.  
  17854.  2.02  ╨┐   ListRowStart  = 1 |  0:  Specifies whether LIST and FFIND consider 
  17855.            the first line in a file to be line "1" or line "0".  The new 
  17856.            default is "1". 
  17857.  
  17858.  2.02  ╨┐   PathExt  = NO |  Yes:  Determines whether Take Command uses standard 
  17859.            extensions when searching the path, or uses the alternate extensions 
  17860.            specified in the PATHEXT environment variable. 
  17861.  
  17862.  2.02  ╨┐   UnixPaths= Yes |  NO:  Enables or disables the forward slash as a 
  17863.            path separator in the command name (the first item on the command 
  17864.            line). 
  17865.  
  17866.  
  17867. ΓòÉΓòÉΓòÉ 9.6. Technical and Compatibility Enhancements ΓòÉΓòÉΓòÉ
  17868.  
  17869. What's New - Technical and Compatibility Enhancements 
  17870.  
  17871.         ╨┐  Replaced the old 4OS2DLL.DLL / TCOS2DLL.DLL with a single file for 
  17872.            both 4OS2 and TCOS2, named JPOS2DLL.DLL.  Also, JPOS2DLL is now 
  17873.            loaded dynamically, so you can start the product without it if 
  17874.            necessary (e.g. from a floppy boot). 
  17875.  
  17876.         ╨┐  Added support for inheritance (and shell levels) when invoking one 
  17877.            copy of Take Command for OS/2 from another. 
  17878.  
  17879.         ╨┐  Worked around an OS/2 problem that prevented %_CPU from detecting 
  17880.            anything higher than a 486. 
  17881.  
  17882.         ╨┐  Improved support for drive and file sizes over 4GB. 
  17883.  
  17884.         ╨┐  Added support for piping from VIO and DOS programs to secondary Take 
  17885.            Command shells. 
  17886.  
  17887.         ╨┐  TYPE NUL now "works" (i.e. it generates no output), for 
  17888.            compatibility with batch files which use TYPE NUL > file to generate 
  17889.            a 0-byte file. 
  17890.  
  17891.         ╨┐  Added debugging options which allow you to view the command "tail" 
  17892.            passed to Take Command for OS/2, and to "tag" error messages with 
  17893.            the product name.  See the Debug directive in TCMDOS2.INI for 
  17894.            additional details. 
  17895.  
  17896.  2.01  ╨┐   DESCRIBE:  Worked around a Novell Netware bug which caused trouble 
  17897.            with descriptions with trailing drive specs (i.e., "file from drive 
  17898.            D:"). 
  17899.  
  17900.  2.02  ╨┐   @UNIQUE:  Worked around an OS/2 bug that caused trouble if @UNIQUE 
  17901.            was called repeatedly on a fast machine. 
  17902.  
  17903.  
  17904. ΓòÉΓòÉΓòÉ 9.7. Bugs Fixed ΓòÉΓòÉΓòÉ
  17905.  
  17906. What's New - Bugs Fixed 
  17907.  
  17908.         ╨┐  Piping the output of a batch file which also contains a pipe will no 
  17909.            longer cause problems. 
  17910.  
  17911.         ╨┐  ACTIVATE:  The CLOSE option now works properly. 
  17912.  
  17913.         ╨┐  DESCRIBE:  Fixed a problem with quoted long filenames with paths. 
  17914.  
  17915.         ╨┐  INPUT:  Fixed a problem with /P not displaying *'s. 
  17916.  
  17917.         ╨┐  RENAME:  Now works properly when renaming quoted long filenames with 
  17918.            embedded wildcards. 
  17919.  
  17920.         ╨┐  Fixed a problem with invalid drive change requests -- commands like 
  17921.            "1:" would crash TCOS2. 
  17922.  
  17923.         ╨┐  Quoted long filenames can now be used in the .INI file. 
  17924.  
  17925.         ╨┐  Fixed a problem which locked the STARTUP.CMD file when loading 
  17926.            SHRALIAS from STARTUP.CMD. 
  17927.  
  17928.         ╨┐  The file find dialog now adds quotes to long filenames when doing a 
  17929.            file-only search.  This should allow you to double-click the name 
  17930.            successfully. 
  17931.  
  17932.         ╨┐  @FILESEEKL[] now always returns to the start of the file before 
  17933.            seeking. 
  17934.  
  17935.  2.01  ╨┐   Enabled the NormalPopupKey directive in the .INI file.  Previously 
  17936.            this directive was documented but was only available under its old 
  17937.            name (NormalHWinKey). 
  17938.  
  17939.  2.01  ╨┐   Modified popup windows to avoid the situation where the bottom half 
  17940.            of the window is empty when the initially selected line is at the 
  17941.            end of the list. 
  17942.  
  17943.  2.01  ╨┐   DIR:  Fixed several problems, including: 
  17944.  
  17945.            *            /4/Z did not display file sizes ending in ".9M" (1.9M, 
  17946.                         2.9M, etc.) correctly. 
  17947.  
  17948.            *            /J did not display the descriptions. 
  17949.  
  17950.            *            /OGU was ignoring the 'U'; it will now display the 
  17951.                         files unsorted after the directory names. 
  17952.  
  17953.            *            "*.*" was incorrectly being appended to file 
  17954.                         specifications that ended in a question mark. 
  17955.  
  17956.  2.01  ╨┐   DO:  Fixed a problem with "LEAVE" not closing the file handle on a 
  17957.            "do var in @filename", and a similar problem with exiting the batch 
  17958.            file with QUIT or CANCEL from inside a DO loop which had a file 
  17959.            open. 
  17960.  
  17961.  2.01  ╨┐   DEL:  Fixed a problem with /W and 0-byte files. 
  17962.  
  17963.  2.01  ╨┐   DRAWVLINE:  Fixed a problem with connecting to a horizontal line on 
  17964.            the right side. 
  17965.  
  17966.  2.01  ╨┐   ECHOS:  Fixed a problem with aborting an ECHOS with a Ctrl-C while 
  17967.            in a DO or FOR loop. 
  17968.  
  17969.  2.01  ╨┐   FOR:  Fixed a problem with combining /A:xx and /R, and another 
  17970.            problem with combining /H and /R. 
  17971.  
  17972.  2.01  ╨┐   SWITCH:  Fixed occasional problems with nested SWITCHes. 
  17973.  
  17974.  2.01  ╨┐   @EVAL:  Fixed a bug with maximum-length argument strings. 
  17975.  
  17976.  2.01  ╨┐   @FILEWRITEB[n,length,string]:  No longer truncates on a write if the 
  17977.            file was opened in binary mode. 
  17978.  
  17979.  2.01  ╨┐   @WORDS[["xxx"],string]:  Fixed a problem if the line began with a -. 
  17980.  
  17981.  2.02  ╨┐   Extended wildcards are now supported inside file exclusion ranges. 
  17982.            (In previous versions the documentation indicated that this support 
  17983.            was available, but it was not.) 
  17984.  
  17985.  2.02  ╨┐   Fixed a problem which prevented filename completion from returning 
  17986.            hidden and system files when these files were enabled in the 
  17987.            FILECOMPLETION variable.  Note that the default filename completion 
  17988.            search does not display hidden and system files, but now if you use 
  17989.            FILECOMPLETION to enable those files for a specific command, they 
  17990.            will be shown as you cycle through files with <Tab>. 
  17991.  
  17992.  2.02  ╨┐   Improved handling of commands using both * (disable alias) and @ 
  17993.            (don't add to command history) at the start. 
  17994.  
  17995.  2.02  ╨┐   @FILES:  Fixed a problem which caused this function to leave a file 
  17996.            handle open, which could cause subsequent "access denied" errors. 
  17997.  
  17998.  2.02  ╨┐   @REPLACE:  Fixed a problem with replacing commas. 
  17999.  
  18000.  2.02  ╨┐   @SELECT:  Fixed a problem with files over 64K. 
  18001.  
  18002.  2.02  ╨┐   CDD: Fixed a problem if TREE was disabled (CDD /S uses TREE to build 
  18003.            the directory index). 
  18004.  
  18005.  2.02  ╨┐   FFIND: Fixed a problem with /C and bracketed wildcards. 
  18006.  
  18007.  2.02  ╨┐   LIST: Fixed a problem with highlighting the offsets as well as the 
  18008.            actual found text when in hex mode. 
  18009.  
  18010.  2.02  ╨┐   SWITCH: Fixed minor problems with nested SWITCH statements. 
  18011.  
  18012.  2.02  ╨┐   TEE: Fixed a problem with TEE'ing to CLIP:. 
  18013.  
  18014.  2.02  ╨┐   TOUCH: Fixed a problem with failing to display a usage message when 
  18015.            there were no parameters after a /C, and another problem with 
  18016.            properly detecting invalid times. 
  18017.  
  18018.  2.02  ╨┐   UNALIAS: Fixed a problem with /R. 
  18019.  
  18020.  2.02b  ╨┐  Fixed a problem with piping to external applications. 
  18021.  
  18022.  2.02b  ╨┐  Fixed a problem which occasionally caused spurious "internal error" 
  18023.            crashes. 
  18024.  
  18025.  2.02b  ╨┐  @EXEC:  Fixed a problem which prevented the command from being 
  18026.            executed at all if it was preceded with an @. 
  18027.  
  18028.  2.02b  ╨┐  @MAKEAGE:  Fixed a problem which caused 2-digit dates to be 
  18029.            interpreted based on 1980 rather than 2000 (e.g.  01-01-02 was taken 
  18030.            to mean 1-Jan-1982 rather than the correct value, 1-Jan-2000). 
  18031.  
  18032.  2.03  ╨┐   Fixed a problem which caused a crash with extremely large extended 
  18033.            directory search databases. 
  18034.  
  18035.  2.03  ╨┐   Fixed a problem which caused a crash when multiple Take Command 
  18036.            windows were running 'TTY' applications simultaneously. 
  18037.  
  18038.  2.03  ╨┐   CHCP: Fixed a problem which caused a crash when changing the code 
  18039.            page under Warp FixPak 13 and above. 
  18040.  
  18041.  2.03  ╨┐   FFIND: Fixed a problem with wildcards. 
  18042.  
  18043.  
  18044. ΓòÉΓòÉΓòÉ 10. Reference Information ΓòÉΓòÉΓòÉ
  18045.  
  18046. This section contains information that you'll need throughout Take Command. It 
  18047. is divided into six sections: 
  18048.  
  18049.     Product Compatibility 
  18050.             discusses compatiblity between our products: 4DOS, 4OS2, 4NT, Take 
  18051.             Command for OS/2, Take Command/16 for Windows 3.x and Windows for 
  18052.             Workgroups, and Take Command/32 for Windows 95 and Windows NT.  If 
  18053.             you use two or more of our products, you'll want to read this 
  18054.             section. 
  18055.  
  18056.     File Systems and File Name Conventions 
  18057.             explains the file systems that are supported by OS/2 and Take 
  18058.             Command for OS/2, the naming conventions used by each, and related 
  18059.             issues. 
  18060.  
  18061.     Miscellaneous Reference Information 
  18062.             discusses a number of conventions and other topics that are 
  18063.             necessary to get the most out of Take Command. 
  18064.  
  18065.     Reference Tables 
  18066.             includes tables of ASCII codes and of the codes produced when you 
  18067.             press various keys and key combinations on the keyboard.  Also 
  18068.             contains a list of ANSI commands. 
  18069.  
  18070.     The Glossary 
  18071.             is a list of terms and definitions.  If you come across terms in 
  18072.             the online help that you don't understand, they are probably 
  18073.             defined here. 
  18074.  
  18075.     Copyright and Version 
  18076.             contains the copyright information and version number for this 
  18077.             online help file. 
  18078.  
  18079.  
  18080. ΓòÉΓòÉΓòÉ 10.1. Product Compatibility ΓòÉΓòÉΓòÉ
  18081.  
  18082. This topic covers compatiblity between our products: 4DOS, 4OS2, 4NT, Take 
  18083. Command for OS/2, Take Command/16 for Windows 3.x and Windows for Workgroups, 
  18084. and Take Command/32 for Windows 95 and Windows NT.  The topic is divided into 3 
  18085. separate issues: 
  18086.  
  18087.          Special Character Compatibility 
  18088.  
  18089.          Scrolling and History Keystrokes 
  18090.  
  18091.          Using 4OS2 and 4DOS Batch Files and Aliases 
  18092.  
  18093.  
  18094. ΓòÉΓòÉΓòÉ 10.1.1. Special Character Compatibility ΓòÉΓòÉΓòÉ
  18095.  
  18096. Take Command is highly compatible with 4DOS, 4OS2, and 4NT.  However, there are 
  18097. some minor differences between our products. These differences are caused by 
  18098. the different requirements of each operating system and by our design goal of 
  18099. maintaining compatibility between each product and the system's default command 
  18100. processor. 
  18101.  
  18102. We discuss the differences between our products in the online help as part of 
  18103. the description of each feature and command.  Most of the differences are 
  18104. minor:  different command line lengths, a few different options in some 
  18105. commands, and some commands that only make sense in one or two products. 
  18106.  
  18107. If you use two or more of our products, or if you want to share aliases and 
  18108. batch files with users of different products, you need to be aware of the 
  18109. differences in three important characters:  the Command Separator, the Escape 
  18110. Character, and the Parameter Character. 
  18111.  
  18112. The default values of each of these characters in each product is shown in the 
  18113. following table: 
  18114.  
  18115.  
  18116.                  Product          Separator    Escape       Parameter
  18117.  
  18118.                  Take Command/16,     ^                        &
  18119.                  4DOS
  18120.  
  18121.                  Take Command/32,     &            ^            $
  18122.                  Take Command for
  18123.                  OS/2, 4NT, 4OS2
  18124.  
  18125.         (In this section, an up-arrow [] is used for the ASCII Ctrl-X 
  18126.         character, numeric value 24.  The appearance of control characters 
  18127.         depends on the font you use.  In many fonts Ctrl-X is displayed as a 
  18128.         "block" or other non-descript character, but the Terminal font used by 
  18129.         default in Take Command typically displays Ctrl-X as an up-arrow.) 
  18130.  
  18131.         In your batch files and aliases, and even at the command line, you can 
  18132.         smooth over these differences in three ways: 
  18133.  
  18134.         Select a consistent set of characters on the Options 1 page of the 
  18135.          configuration dialogs, TCMDOS2.INI file directives, or with the SETDOS 
  18136.          command.  For example, to set the Take Command/16 characters to match 
  18137.          the defaults in Take Command/32, 4OS2, and 4NT, use these lines in 
  18138.          TCMD.INI: 
  18139.  
  18140.                           CommandSep = &
  18141.                           EscapeChar = ^
  18142.                           ParameterChar = $
  18143.  
  18144.         Use internal variables that contain the current special character, 
  18145.          rather than using the character itself. For example, this command: 
  18146.  
  18147.                           if "%1" == "" (echo Argument missing! ^ quit)
  18148.  
  18149.          will only work if the command separator is a caret.  However, this 
  18150.          version works regardless of the current command separator: 
  18151.  
  18152.                           if "%1" == "" (echo Argument missing! %+ quit)
  18153.  
  18154.         In a batch file, use the SETLOCAL command to save the command 
  18155.          separator, escape character, and parameter character when the batch 
  18156.          file starts.  Then use SETDOS as described below to select the 
  18157.          characters you want to use within the batch file.  Use an ENDLOCAL 
  18158.          command at the end of the batch file to restore the previous settings. 
  18159.  
  18160.          You can also use the SETDOS command to change special characters on 
  18161.          the command line.  However, when setting new special character values 
  18162.          on the command line you must take into account the possibility that 
  18163.          one of your new values will have a current meaning that causes 
  18164.          problems with the setting.  For example, this command: 
  18165.  
  18166.                           [c:\] setdos /e^
  18167.  
  18168.          would not set the escape character to a caret [^] in Take Command/16 
  18169.          if the standard Take Command/16 special characters were currently in 
  18170.          effect.  The ^ would be seen as a command separator, and would 
  18171.          terminate the SETDOS command before the escape character was set.  To 
  18172.          work around this, use the escape character variable %= before each 
  18173.          setting to ensure that the following character is not treated with any 
  18174.          special meaning. 
  18175.  
  18176.          For example, the following sequence of commands in a batch file will 
  18177.          always set the special characters correctly to their standard Take 
  18178.          Command/32 and Take Command for OS/2 values, no matter what their 
  18179.          current setting, and will restore them when the batch file is done: 
  18180.  
  18181.                           setlocal
  18182.                           setdos /c%=& /e%=^ /p%=$
  18183.                           .....
  18184.                           endlocal
  18185.  
  18186.          A similar sequence can be used to select the standard Take Command/16 
  18187.          characters, regardless of the current settings: 
  18188.  
  18189.                           setlocal
  18190.                           setdos /c%=^ /e%=╨╜ /p%=&
  18191.                           .....
  18192.                           endlocal
  18193.  
  18194.  
  18195. ΓòÉΓòÉΓòÉ 10.1.2. Scrolling and History Keystrokes ΓòÉΓòÉΓòÉ
  18196.  
  18197. In order to support the scrollback buffer, some Take Command keystrokes are 
  18198. different from what you may be used to in 4DOS, 4OS2, and 4NT.  The differences 
  18199. are: 
  18200.  
  18201.  
  18202.                                         4DOS, 4OS2, 4NT  Take Command
  18203.  
  18204.                  Command Line:
  18205.  
  18206.                    Previous command     Up []           Ctrl-Up
  18207.  
  18208.                    Next command         Down []         Ctrl-Down
  18209.  
  18210.                    Open history window  PgUp             Ctrl-PgUp
  18211.  
  18212.                    Directory history    Ctrl-PgUp        F6
  18213.  
  18214.                  Screen Scrollback:
  18215.  
  18216.                    Up one line          N/A              Up []
  18217.  
  18218.                    Down one line        N/A              Down []
  18219.  
  18220.                    Up one page          N/A              PgUp
  18221.  
  18222.                    Down one page        N/A              PgDn
  18223.  
  18224.         If you prefer to reverse this arrangement and use the arrow and PgUp 
  18225.         keys to access the command history without having to press Ctrl (as in 
  18226.         4OS2 and 4DOS), see the SwapScrollKeys .INI file directive, or the 
  18227.         Command Line 1 page of the configuration notebook. SwapScrollKeys 
  18228.         switches the keystroke mapping so that the , , and PgUp keys 
  18229.         manipulate the command history, and Ctrl-, Ctrl-, Ctrl-PgUp, and 
  18230.         Ctrl-PgDn are used to control the scrollback buffer. (SwapScrollKeys 
  18231.         does not affect the use of F6 for the directory history). 
  18232.  
  18233.         You can also change the way any individual key operates with the 
  18234.         corresponding key mapping directive in the TCMDOS2.INI file.  The 
  18235.         directives associated with the history and scrolling keys are: 
  18236.  
  18237.  
  18238.                  NextHistory          ScrollUp
  18239.  
  18240.                  PrevHistory          ScrollDown
  18241.  
  18242.                  HistWinOpen          ScrollPageUp
  18243.  
  18244.                  DirWinOpen           ScrollPageDown
  18245.  
  18246.  
  18247. ΓòÉΓòÉΓòÉ 10.1.3. Using 4OS2 and 4DOS Batch Files and Aliases ΓòÉΓòÉΓòÉ
  18248.  
  18249. Take Command for OS/2, 4OS2, and 4DOS aliases are separate and independent; 
  18250. Take Command does not automatically "inherit" aliases from a previously loaded 
  18251. copy of 4OS2 or 4DOS, and it cannot pass aliases on to a copy of 4OS2 or 4DOS 
  18252. started from the Take Command prompt.  However, you can load aliases from your 
  18253. Take Command startup batch file.  These can be the same aliases you use in 4OS2 
  18254. or 4DOS, or a set that is just for Take Command. 
  18255.  
  18256. While many of your 4OS2 aliases will work well under Take Command, you'll 
  18257. probably want to create a separate set of Take Command aliases.  This will 
  18258. allow you to account for the differences in running OS/2 and DOS applications, 
  18259. and to create new aliases that take advantage of Take Command features that are 
  18260. unavailable in 4OS2 and 4DOS. 
  18261.  
  18262. If you want to write aliases or batch files that are used in Take Command, 
  18263. 4OS2, and 4DOS, but that behave differently in each environment, use the _DOS 
  18264. variable to make the distinction.  For example, this batch file fragment uses 
  18265. the INPUT command to accept a string if it is run under 4DOS, but uses the 
  18266. OS/2-style QUERYBOX if it is run under Take Command: 
  18267.  
  18268.         iff "%_dos" == "OS2PM" then
  18269.            querybox "Enter your name:  " %%name
  18270.         else
  18271.            input "Enter your name:  " %%name
  18272.         endiff
  18273.  
  18274. Aliases and batch files which simply manipulate files or use other internal 
  18275. commands should work with little or no change under Take Command.  However, as 
  18276. a general rule, you should test any batch file developed for 4OS2, 4DOS, or 
  18277. CMD.EXE before assuming it will do exactly what you want under Take Command. 
  18278. Pay particular attention to batch files which run complex sequences of external 
  18279. programs. 
  18280.  
  18281. If you use aliases or batch files to perform a sequence which mixes internal 
  18282. commands and DOS applications, the sequence may not work the way you expect 
  18283. under Take Command.  For example, suppose you have an alias that changes the 
  18284. screen color, starts a DOS application, and then resets the color again.  If 
  18285. the DOS application is started in a separate window the color changes will not 
  18286. affect it -- a contingency you probably didn't have to consider when you wrote 
  18287. the batch file. 
  18288.  
  18289. Similarly, if you run a sequence of several DOS applications which depend on 
  18290. each others' results (for example, through the use of error levels), they may 
  18291. not run the same way under Take Command that they do under 4DOS, 4OS2, or 
  18292. CMD.EXE.  For example, if one DOS application runs in its own window and 
  18293. another runs using Take Command's named pipes, error levels will not be passed 
  18294. between the applications and your batch file or alias won't run the way you 
  18295. expect. 
  18296.  
  18297. You may also find that you want to take advantage of some of the new features 
  18298. of Take Command to improve your batch files.  For example, the START command 
  18299. offers additional flexibility in starting applications.  MSGBOX and QUERYBOX 
  18300. can be used to create OS/2- style input prompts, and KEYSTACK and ACTIVATE will 
  18301. help control your OS/2 applications. 
  18302.  
  18303. Once you get used to these enhancements and minor differences you'll find that 
  18304. you can use Take Command to manage your system using the same techniques and 
  18305. features you are already familiar with from your experience with 4OS2, 4DOS, or 
  18306. CMD.EXE. 
  18307.  
  18308.  
  18309. ΓòÉΓòÉΓòÉ 10.2. File Systems and File Name Conventions ΓòÉΓòÉΓòÉ
  18310.  
  18311. You may have dozens, hundreds, or thousands of files stored on your computer's 
  18312. disks.  Your operating system is responsible for managing all of these files. 
  18313. In order to do so, it uses a unique name to locate each file in much the same 
  18314. way that the post office assigns a unique address to every residence. The 
  18315. unique name of any file is composed of a drive letter, a directory path, and a 
  18316. filename.  Each of these parts of the file's name is case insensitive; you can 
  18317. mix upper and lower case letters in any way you wish. 
  18318.  
  18319. OS/2 supports two different files systems: the traditional FAT file system, 
  18320. used by all versions of DOS prior to Windows 95, and OS/2's High Performance 
  18321. File System (HPFS), as well as installable file systems such as those used by 
  18322. CD-ROMs and some networks.  Take Command includes support for all file systems 
  18323. that are accessible to OS/2. 
  18324.  
  18325. This section presents an overview of OS/2-compatible file systems, including 
  18326. naming conventions used by each.  The following sub-topics are included in this 
  18327. section: 
  18328.  
  18329.              Drives and Volumes 
  18330.  
  18331.              File Systems 
  18332.  
  18333.              Network File Systems including information about using UNC 
  18334.              (Universal Naming Convention) names over a network. 
  18335.  
  18336.              Directories and Subdirectories 
  18337.  
  18338.              File Names 
  18339.  
  18340.              File Attributes and Time Stamps 
  18341.  
  18342.              OS/2 Extended Attributes 
  18343.  
  18344.  
  18345. ΓòÉΓòÉΓòÉ 10.2.1. Drives and Volumes ΓòÉΓòÉΓòÉ
  18346.  
  18347. A drive letter designates which drive contains the file.  In a file's full 
  18348. name, the drive letter is followed by a colon.  Drive letters A: and B: are 
  18349. normally reserved for the floppy disk drives.  Normally, drive C: is the first 
  18350. (or only) hard disk drive.  Most current operating systems can divide a large 
  18351. hard disk into multiple logical drives or volumes that are usually called C:, 
  18352. D:, E:, etc.  Network systems (LANs) give additional drive letters to sections 
  18353. of the network file server drives. 
  18354.  
  18355. Most recent systems also include a CD-ROM drive.  The CD-ROM is also assigned a 
  18356. drive letter (or several letters, for CD-ROM changers), typically using letters 
  18357. beyond that used by the last hard disk in the system, but before any network 
  18358. drives. 
  18359.  
  18360. Some systems may have "RAM disks" (sometimes called "virtual disks"), which are 
  18361. areas of memory set aside by software (a "RAM disk driver") for use as fast but 
  18362. temporary storage.  Like CD-ROM drives, RAM disks are usually assigned drive 
  18363. letters beyond the last hard disk in the system, but before network drives. For 
  18364. example, on a system with a large hard disk you might have A: and B: as floppy 
  18365. drives, C:, D:, and E: as parts of the hard disk, F: as a CD-ROM drive, G: as a 
  18366. RAM disk, and H: and I: as network drives. 
  18367.  
  18368.  
  18369. ΓòÉΓòÉΓòÉ 10.2.2. File Systems ΓòÉΓòÉΓòÉ
  18370.  
  18371. Each disk volume is organized according to a file system.  The file system 
  18372. determines how files are named and how they are organized on the disk. 
  18373.  
  18374. As hard disk technology and operating systems have evolved, new file systems 
  18375. have been invented to support longer file names, larger drives, and higher disk 
  18376. performance.  Several different and incompatible schemes have evolved. Which 
  18377. file systems you can use depend on which operating system you are using and how 
  18378. the operating system and your hard disk are configured. 
  18379.  
  18380. Take Command for OS/2, and OS/2 itself, supports two standard file systems: 
  18381. FAT (and VFAT) and HPFS.  See File Names for details on the rules for naming 
  18382. files under each file system. 
  18383.  
  18384. The FAT File System is the traditional file system used by all versions of DOS 
  18385. and by Windows 3.x.  Its name comes from the File Allocation Table DOS uses to 
  18386. keep track of the space allocated to each file. 
  18387.  
  18388. The VFAT File System is an extension of the FAT file system available in 
  18389. Windows 95 and Windows NT.  This system maintains additional information about 
  18390. files on FAT drives, including long filenames (LFNs). Other operating systems 
  18391. such as OS/2 and earlier versions of DOS can access files on VFAT drives, but 
  18392. will not be able to access long filenames or other information which is added 
  18393. by the VFAT file system. 
  18394.  
  18395. The FAT32 File System is an additional extension to the VFAT file system.  It 
  18396. is only available in Windows 95 OEM Service Release 2 ("OEMSR2") and later 
  18397. versions.  It is similar to the VFAT file system, but supports larger disk 
  18398. drives.  It is incompatible with OS/2 and earlier versions of DOS, and can only 
  18399. be used under Windows 95 OEMSR2. 
  18400.  
  18401. The High Performance File System or HPFS is a file system provided with all 
  18402. versions of OS/2.  It supports long file names, and offers higher performance 
  18403. and better support for large drives than the FAT or VFAT system.  It also 
  18404. supports extended attributes to retain additional information about your files. 
  18405.  
  18406. DOS and Windows sessions running under OS/2 can access files on HPFS drives if 
  18407. the files have short, FAT-compatible names.  Other operating systems (DOS, 
  18408. Windows 95, and Windows NT 4.0 and above) can not access files on HPFS drives. 
  18409.  
  18410. Additional file systems may be installed under some operating systems to 
  18411. support CD-ROM or network drives.  In particular, OS/2 supports installable 
  18412. file systems, which are installed with the IFS= directive in the OS/2 
  18413. CONFIG.SYS file.  This facility is used to add support for HPFS, CD-ROM, and 
  18414. network drives to the base OS/2 operating system. 
  18415.  
  18416. The file system type (FAT / VFAT or HPFS) is determined when a hard disk volume 
  18417. is formatted and applies to the entire volume.  For example, you might have a 2 
  18418. GB hard disk divided into four 500 MB volumes, with the first three volumes 
  18419. (C:, D:, and E:) formatted for the FAT or VFAT file system, and the fourth 
  18420. formatted for HPFS. 
  18421.  
  18422. Take Command for OS/2 supports any standard file system installed under OS/2. 
  18423. If your operating system can access files on a particular drive, then your 
  18424. version of Take Command will be able to access those files as well. 
  18425.  
  18426.  
  18427. ΓòÉΓòÉΓòÉ 10.2.3. Network File Systems ΓòÉΓòÉΓòÉ
  18428.  
  18429. A network file system allows you to access files stored on another computer on 
  18430. a network, rather than on your own system.  Take Command for OS/2 supports all 
  18431. network file systems which are compatible with OS/2. 
  18432.  
  18433. File and directory names for network file systems depend on both the server 
  18434. software running on the system that has the files on it, and the client 
  18435. software running on your computer to connect it to the network.  However, they 
  18436. usually follow the rules described here. 
  18437.  
  18438. Most network software "maps" unused drive letters on your system to specific 
  18439. locations on the network, and you can then treat the drive as if it were 
  18440. physically part of your local computer. 
  18441.  
  18442. Some networks also support the Universal Naming Convention, which provides a 
  18443. common method for accessing files on a network drive without using a "mapped" 
  18444. drive letter.  Names specified this way are called UNC names.  They typically 
  18445. appear as \\server\volume\path\filename, where server is the name of the 
  18446. network server where the files reside, volume is the name of a disk volume on 
  18447. that server, and the path\filename portion is a directory name and file name 
  18448. which follow the conventions described under Directories and Subdirectories. 
  18449. Take Command supports UNC filenames, and also allows you to use UNC directory 
  18450. names when changing directories (see Directory Navigation for more details). 
  18451.  
  18452. When you use a network file system, remember that the naming conventions for 
  18453. files on the network may not match those on your local system.  For example, 
  18454. your local system may support long filenames while the network server or client 
  18455. software does not, or vice versa.  Take Command will usually handle whatever 
  18456. naming conventions are supported by your network software, as long as the 
  18457. network software accurately reports the types of names it can handle. 
  18458.  
  18459. In some cases, Take Command (particularly Take Command/16) may not be able to 
  18460. report correct statistics on network drives (such as the number of bytes free 
  18461. on a drive).  This is usually because the network file system does not provide 
  18462. complete or accurate information. 
  18463.  
  18464.  
  18465. ΓòÉΓòÉΓòÉ 10.2.4. ┬áDirectories and Subdirectories ΓòÉΓòÉΓòÉ
  18466.  
  18467. A file system is a method of organizing all of the files on an entire disk or 
  18468. hard disk volume.  Directories or folders are used to divide the files on a 
  18469. disk into logical groups that are easy to work with.  Their purpose is similar 
  18470. to the use of file drawers to contain groups of hanging folders, hanging 
  18471. folders to contain smaller manila folders, and so on.  (The terms directory and 
  18472. folder are nearly synoymous -- we use directory throughout this manual.) 
  18473.  
  18474. Every drive has a root or base directory, and many have one or more 
  18475. subdirectories.  Subdirectories can also have subdirectories, extending in a 
  18476. branching tree structure from the root directory.  The collection of all 
  18477. directories on a drive is often called the directory tree, and a portion of the 
  18478. tree is sometimes called a subtree.  The terms directory and subdirectory are 
  18479. typically used interchangeably to mean a single subdirectory within this tree 
  18480. structure. 
  18481.  
  18482. Subdirectory names follow the same naming rules as files in each file system. 
  18483. However, under DOS it is best to use a name of 8 characters or less, without an 
  18484. extension, when naming subdirectories, because some application programs do not 
  18485. properly handle subdirectory names that have an extension. 
  18486.  
  18487. The drive and subdirectory portion of a file's name are collectively called the 
  18488. file's path.  For example, the file name C:\DIR1\DIR2\MYFILE.DAT says to look 
  18489. for the file MYFILE.DAT in the subdirectory DIR2 which is part of the 
  18490. subdirectory DIR1 which is on drive C.  The path for MYFILE.DAT is 
  18491. C:\DIR1\DIR2.  The backslashes between subdirectory names are required. 
  18492.  
  18493. The total length of a file's path may not exceed 64 characters  on FAT volumes 
  18494. under OS/2 (this limit excludes the file name and extension, but includes the 
  18495. drive letter and colon).  On HPFS  volumes, the path and file name must each be 
  18496. 255 characters or less in length, and in addition the total length of the path 
  18497. and file name together cannot exceed 260 characters. 
  18498.  
  18499. The operating system and Take Command remember both a current or default drive 
  18500. for your system as a whole, and a current or default directory for every drive 
  18501. in your system.  Whenever a program tries to create or access a file without 
  18502. specifying the file's path, the operating system uses the current drive (if no 
  18503. other drive is specified) and the current directory (if no other directory path 
  18504. is specified). 
  18505.  
  18506. The root directory is named using the drive letter and a single backslash. For 
  18507. example, D:\ refers to the root directory of drive D:.  Using a drive letter 
  18508. with no directory name at all refers to the current directory on the specified 
  18509. drive.  For example, E:TCMD.DOC refers to the file TCMD.DOC in the current 
  18510. directory on drive E:, whereas E:\TCMD.DOC refers to the file TCMD.DOC in the 
  18511. root directory on drive E:. 
  18512.  
  18513. There are also two special subdirectory names that are useful in many 
  18514. situations:  a single period by itself [.] means "the current default 
  18515. directory."  Two periods together [..] means "the directory which contains the 
  18516. current default directory" (often referred to as the parent directory).  These 
  18517. special names can be used wherever a full directory name can be used.  Take 
  18518. Command allows you to use additional periods to specify directories further 
  18519. "up" the tree (see Extended Parent Directory Names). 
  18520.  
  18521.  
  18522. ΓòÉΓòÉΓòÉ 10.2.5. File Names ΓòÉΓòÉΓòÉ
  18523.  
  18524. Each file has a filename.  Under the FAT file system, the filename consists of 
  18525. a base name of 1 to 8 characters plus an optional extension composed of a 
  18526. period plus 1 to 3 more characters.  Traditional FAT filenames with an 8- 
  18527. character name and a 3-character extension are sometimes referred to as short 
  18528. filenames (SFNs) to distinguish them from long filenames (LFNs). 
  18529.  
  18530. You can use alphabetic and numeric characters plus the punctuation marks ! # $ 
  18531. % & ' ( ) - @ ^ _ ` { } and ~ in both the base name and the extension of a FAT 
  18532. filename.  Because the exclamation point [!], percent sign [%], caret [^], at 
  18533. sign [@], parentheses [()], ampersand [&], and back-quote [`] also have other 
  18534. meanings to Take Command, it is best to avoid using them in filenames. 
  18535.  
  18536. The HPFS file systems allows file names with a maximum of 255 characters, 
  18537. including spaces and other characters that are not allowed in a FAT system file 
  18538. name, but excluding some punctuation characters which are allowed in FAT file 
  18539. names.  See your OS/2 documentation for details on the characters allowed.  If 
  18540. you use file names which contain semicolons [;], see page Error! Bookmark not 
  18541. defined. for details on avoiding problems with interpretation of those file 
  18542. names under Take Command. 
  18543.  
  18544. HPFS file names are stored and displayed exactly as you entered them, and are 
  18545. not automatically shifted to upper or lower case.  For example, you could 
  18546. create a file called MYFILE, myfile, or MyFile, and each name would be stored 
  18547. in the directory just as you entered it.  However, case is ignored when looking 
  18548. for filenames, so you cannot have two files whose names differ only in case 
  18549. (i.e., the three names given above would all refer to the same file).  This 
  18550. behavior is sometimes described as "case-retentive but not case-sensitive" 
  18551. because the case information is retained, but does not affect access to the 
  18552. files. 
  18553.  
  18554. Files stored on HPFS volumes often have "FAT-compatible" names:  names which 
  18555. contain only those characters legal on a FAT volume, and which meet the 
  18556. 8-character name / 3-character extension limits.  Programs which cannot handle 
  18557. long names (for example, DOS programs running under OS/2) generally can access 
  18558. files by using FAT-compatible names. 
  18559.  
  18560. If an HPFS file name includes spaces or other characters that would not be 
  18561. allowed in a FAT name, you must place double quotes around the name.  For 
  18562. example, suppose you have a file named LET3 on a FAT volume, and you want to 
  18563. copy it to the LETTERS directory on drive F:, an HPFS partition, and give it 
  18564. the name Letter To Sara.  To do so, use either of these commands: 
  18565.  
  18566.         [c:\wp] copy let3 f:\LETTERS\"Letter To Sara"
  18567.         [c:\wp] copy let3 "f:\LETTERS\Letter To Sara"
  18568.  
  18569. HPFS does not explicitly define an "extension" for file names which are not 
  18570. FAT-compatible.  However, by convention, all characters after the last period 
  18571. in the file name are treated as the extension.  For example, the file name 
  18572. "Letter to Sara" has no extension, whereas the name "Letter.to.Sara" has the 
  18573. extension Sara. 
  18574.  
  18575. You may occasionally encounter filenames which are not displayed the way you 
  18576. expect if you have used characters from outside the U.S. English character set 
  18577. in the name.  These are generally due to problems in the way your operating 
  18578. system translates characters between the OEM and ANSI character sets. 
  18579. Correcting the problem may require experimentation with fonts, character sets, 
  18580. and code pages, and occasionally some such problems may not be readily 
  18581. correctable within Take Command. 
  18582.  
  18583.  
  18584. ΓòÉΓòÉΓòÉ 10.2.6. File Attributes and Time Stamps ΓòÉΓòÉΓòÉ
  18585.  
  18586. Each file also has attributes and one or more time stamps.  Attributes define 
  18587. characteristics of the file which may be useful to the operating system, to 
  18588. you, or to an application program.  Time stamps can record when the file was 
  18589. created, last modified, or last accessed.  Most Take Command file processing 
  18590. commands allow you to select files for processing based on their attributes 
  18591. and/or time stamp(s). 
  18592.  
  18593. Each file on your system has four standard attributes.  Every time a program 
  18594. modifies a file, the operating system sets the Archive attribute, which signals 
  18595. that the file has been modified since it was last backed up. This attribute can 
  18596. be used by Take Command to determine which files to COPY or MOVE, and by backup 
  18597. programs to determine which files to back up.  When the Read-only attribute is 
  18598. set, the file can't be changed or erased accidentally; this can be used to help 
  18599. protect important files from damage.  The Hidden and System attributes prevent 
  18600. the file from appearing in normal directory listings.  (Two additional 
  18601. attributes, Directory and Volume label, are also available.  These attributes 
  18602. are controlled by the operating system, and are not modified directly by Take 
  18603. Command.) 
  18604.  
  18605. Attributes can be set and viewed with the ATTRIB command.  The DIR command also 
  18606. has options to select filenames to view based on their attributes, to view the 
  18607. attributes themselves, and to view information about normally "invisible" 
  18608. hidden and system files. 
  18609.  
  18610. When a file is created, and every time it is modified, the operating system 
  18611. records the system time and date in a time stamp in the file's directory entry. 
  18612. Several Take Command variable functions and commands, and many backup and 
  18613. utility programs, use this time stamp to determine the relative ages of files. 
  18614.  
  18615. Files on HPFS volumes have three sets of time and date stamps.  The operating 
  18616. system records when each file was created, when it was last written or 
  18617. modified, and when it was last accessed.  The "last write" time stamp matches 
  18618. the single time stamp used on traditional FAT volumes. 
  18619.  
  18620. Several Take Command variable functions and commands let you specify which set 
  18621. of time and date stamps you want to view or work with on HPFS volumes.  These 
  18622. commands and functions use the letter "c" to refer to the creation time stamp, 
  18623. "w" for the last write time stamp, and "a" for the last access time stamp. 
  18624.  
  18625.  
  18626. ΓòÉΓòÉΓòÉ 10.2.7. OS/2 Extended Attributes ΓòÉΓòÉΓòÉ
  18627.  
  18628. The FAT and VFAT file systems allow the limited set of attributes for files 
  18629. described in the previous section.  OS/2 supports additional information about 
  18630. files called Extended Attributes or EAs. 
  18631.  
  18632. The Extended Attributes for a file provide additional information which is not 
  18633. part of the file's actual contents.  This information might include the icon to 
  18634. be displayed for the file on the OS/2 desktop, or the type of data contained in 
  18635. the file. 
  18636.  
  18637. OS/2 supports Extended Attributes on both FAT and HPFS (High Performance File 
  18638. System) partitions.  EAs for the files on a FAT partition are stored in the 
  18639. file "EA DATA. SF" in the partition's root directory.  Like CMD.EXE, Take 
  18640. Command for OS/2 preserves a file's EAs when copying or moving the file, and 
  18641. OS/2 makes the appropriate adjustments to EAs when a file is deleted or 
  18642. renamed. 
  18643.  
  18644. When copying or moving a file from a FAT to an HPFS volume, Take Command uses 
  18645. uses the file's .LONGNAME EA, if available, for the HPFS filename. Conversely, 
  18646. when copying or moving a file from an HPFS volume to a FAT volume, Take Command 
  18647. will set the .LONGNAME EA to the original HPFS name.  See the COPY and MOVE 
  18648. commands for additional details. 
  18649.  
  18650. If you boot DOS or any version of Windows, then delete or otherwise manipulate 
  18651. files that have Extended Attributes, you can face unexpected problems when you 
  18652. next boot under OS/2, because the EAs and directories will no longer be 
  18653. synchronized.  If you must manipulate files with Extended Attributes during a 
  18654. DOS boot, or when you boot a "specific version of DOS" (not a standard DOS 
  18655. seesion) from OS/2, make sure you run OS/2's CHKDSK program to clean up any 
  18656. "orphaned" EAs. 
  18657.  
  18658. For more information on Extended Attributes, see your OS/2 documentation. 
  18659.  
  18660.  
  18661. ΓòÉΓòÉΓòÉ 10.3. Miscellaneous Reference Information ΓòÉΓòÉΓòÉ
  18662.  
  18663. This section contains miscellaneous information that is useful throughout Take 
  18664. Command:  at the command line, in internal commands, in aliases, and in batch 
  18665. files. 
  18666.  
  18667. Included here is information about 
  18668.  
  18669.              Colors and Color Names 
  18670.  
  18671.              Keys and Key Names 
  18672.  
  18673.              Popup Windows 
  18674.  
  18675.              Internal and External Commands 
  18676.  
  18677.              Executable Files and File Searches 
  18678.  
  18679.  
  18680. ΓòÉΓòÉΓòÉ 10.3.1. Colors and Color Names ΓòÉΓòÉΓòÉ
  18681.  
  18682. You can use color names in several of the directives in the TCMDOS2.INI file 
  18683. and in many commands. 
  18684.  
  18685. The general form of a color name is: 
  18686.  
  18687.         [BRIght] fg ON [BRIght] bg
  18688.  
  18689. where fg is the foreground or text color, and bg is the background color. 
  18690.  
  18691. The available colors are: 
  18692.  
  18693.  
  18694.                  Black      Blue       Green      Red
  18695.  
  18696.                  Magenta    Cyan       Yellow     White
  18697.  
  18698.         Color names and the word BRIght may be shortened to the first 3 
  18699.         letters. 
  18700.  
  18701.         You can also specify colors by number instead of by name.  The numbers 
  18702.         are most useful in potentially long .INI file directives like ColorDIR. 
  18703.         Take Command recognizes these color numbers: 
  18704.  
  18705.  
  18706.                  0 - Black            8 - Gray (bright black)
  18707.  
  18708.                  1 - Blue             9 - Bright blue
  18709.  
  18710.                  2 - Green            10 - Bright green
  18711.  
  18712.                  3 - Cyan             11 - Bright cyan
  18713.  
  18714.                  4 - Red              12 - Bright red
  18715.  
  18716.                  5 - Magenta          13 - Bright magenta
  18717.  
  18718.                  6 - Yellow           14 - Bright yellow
  18719.  
  18720.                  7 - White            15 - Bright white
  18721.  
  18722.         Use one number to substitute for the [BRIght] fg portion of the color 
  18723.         name, and a second to substitute for the [BRIght] bg portion.  For 
  18724.         example, instead of bright cyan on blue you could use 11 on 1 to save 
  18725.         space in a ColorDir specification. 
  18726.  
  18727.         The blinking text and border colors that are available with 4DOS can 
  18728.         not be used with Take Command.  This restriction is due to limitations 
  18729.         inherent in OS/2 and in graphical displays. 
  18730.  
  18731.  
  18732. ΓòÉΓòÉΓòÉ 10.3.2. Keys and Key Names ΓòÉΓòÉΓòÉ
  18733.  
  18734. Key names are used to define keystroke aliases, in several TCMDOS2.INI 
  18735. directives, and with the KEYSTACK command.  The format of a key name is the 
  18736. same in all 3  uses: 
  18737.  
  18738.         [Prefix-]Keyname
  18739.  
  18740. The key prefix can be left out, or it can be one of the following : 
  18741.  
  18742.         Alt       followed by A - Z, 0 - 9, F1 - F12, or Bksp
  18743.         Ctrl      followed by A - Z, F1 - F12, Tab, Bksp, Enter,
  18744.                   Left, Right, Home, End, PgUp, PgDn, Ins, or Del
  18745.         Shift     followed by F1 - F12 or Tab.
  18746.  
  18747. The possible key names are: 
  18748.  
  18749.         A - Z     Enter     PgDn
  18750.         0 - 9     Up        Home
  18751.         F1 - F    Down      End
  18752.         Esc       Left      Ins
  18753.         Bksp      Right     Del
  18754.         Tab       PgUp
  18755.  
  18756. All key names must be spelled as shown.  Alphabetic keys can be specified in 
  18757. upper-case or lower-case.  You cannot specify a punctuation key. 
  18758.  
  18759. The prefix and key name must be separated by a dash [-].  For example: 
  18760.  
  18761.         Ctrl-F10   This is okay
  18762.         Ctrl F10   The space will cause an error
  18763.  
  18764. If you prefer, you can use a numeric value instead of a key name. Use the ASCII 
  18765. code for an ASCII, extended ASCII, or control character. Use the scan code 
  18766. preceded by an at sign [@] for extended key codes like F1 or the cursor keys. 
  18767. For example, use 13 for Enter, or @59 for F1.  In general, you will find it 
  18768. easier to use the names described above rather than key numbers. 
  18769.  
  18770. Some keys are intercepted by OS/2 and are not passed on to Take Command.  For 
  18771. example, Ctrl-S pauses screen output temporarily, and Alt-Tab switches to 
  18772. another window.  Keys which are intercepted by OS/2 (including menu 
  18773. accelerators, i.e. Alt plus another key) generally cannot be assigned to 
  18774. aliases or with key mapping directives, because Take Command never receives 
  18775. these keystrokes and therefore cannot act on them. 
  18776.  
  18777.  
  18778. ΓòÉΓòÉΓòÉ 10.3.3. Popup Windows ΓòÉΓòÉΓòÉ
  18779.  
  18780. Several features of Take Command display popup windows.  A popup window may be 
  18781. used to display filenames, recently-executed commands, recently-used 
  18782. directories, the results of an extended directory search, or a list created by 
  18783. the SELECT command or the @SELECT internal function. 
  18784.  
  18785. Popup windows always display a list of choices and a cursor bar.  You can move 
  18786. the cursor bar inside the window until you find the choice that you wish to 
  18787. make, then press the Enter key to select that item. 
  18788.  
  18789. Navigation inside any popup window follows the conventions described below. 
  18790. Additional information on each specific type of popup window is provided when 
  18791. that window is introduced in the online help. 
  18792.  
  18793. You can control the color, position and size of most popup windows from the 
  18794. Command Line 2 page of the configuration dialogs, or with the PopupWinLeft, 
  18795. PopupWinTop, PopupWinWidth, and PopupWinHeight directives in the .INI file A 
  18796. few popup windows (e.g., the extended directory search window) have their own 
  18797. specific .INI directives, and corresponding separate choices in the 
  18798. configuration dialogs.  You can also change the keys used in most popup windows 
  18799. with key mapping directives in TCMDOS2.INI. 
  18800.  
  18801. Once a window is open, you can use these navigation keys to find the selection 
  18802. you wish to make: 
  18803.  
  18804.         Up Arrow      Move the selection bar up one line. 
  18805.  
  18806.         Down Arrow    Move the selection bar one line. 
  18807.  
  18808.         Left Arrow    Scroll the display left 1 column, if it is a scrolling 
  18809.                       display (i.e. if it has a horizontal scrollbar). 
  18810.  
  18811.         Right Arrow   Scroll the display right 1 column, if it is a scrolling 
  18812.                       display (i.e. if it has a horizontal scrollbar). 
  18813.  
  18814.         PgUp          Scroll the display up one page. 
  18815.  
  18816.         PgDn          Scroll the display down one page. 
  18817.  
  18818.         Ctrl-PgUp     Go to the beginning of the list. 
  18819.  
  18820.           or Home 
  18821.  
  18822.         Ctrl-PgDn     Go to the end of the list. 
  18823.  
  18824.           or End 
  18825.  
  18826.         Esc           Close the window without making a selection. 
  18827.  
  18828.         Enter         Select the current item and close the window. 
  18829.  
  18830.  In addition to scrolling through a popup window, you can search the list using 
  18831.  character matching.  If you press a character, the cursor bar will move to the 
  18832.  next entry that begins with that character.  If you type multiple characters, 
  18833.  the cursor will move to the entry that begins with the character string 
  18834.  entered to that point (you can enter a search string up to 32 characters 
  18835.  long).  If no entry matches the character or string that you have typed, Take 
  18836.  Command beeps and does not move the cursor bar.  To reset the search string, 
  18837.  press Backspace. 
  18838.  
  18839.  You can change the keys used in popup windows with key mapping directives in 
  18840.  the TCMDOS2.INI file. 
  18841.  
  18842.  
  18843. ΓòÉΓòÉΓòÉ 10.3.4. Internal and External Commands ΓòÉΓòÉΓòÉ
  18844.  
  18845. Whenever you type something at the Take Command prompt and press the Enter key, 
  18846. you have given a command, and Take Command must figure out how to execute it. 
  18847. If you understand the general process that Take Command uses, you will be able 
  18848. to make the best use of it and its commands. 
  18849.  
  18850. Take Command begins by dividing the line you typed into a command name and a 
  18851. command tail.  The command name is the first word in the command; the tail is 
  18852. everything that follows the command name.  For example, in this command line: 
  18853.  
  18854.         dir *.txt /2/p/v
  18855.  
  18856. the command name is "dir", and the command tail is " *.txt /2/p/v." 
  18857.  
  18858. If the command name is not an alias, Take Command tries to find the name in its 
  18859. list of internal commands.  An internal command is one that Take Command can 
  18860. perform itself, without running another program.  DIR and COPY are examples of 
  18861. internal commands. 
  18862.  
  18863. If the command name is not found in Take Command's list of internal commands, 
  18864. it assumes that it must find and execute an external command.  This means that 
  18865. it must load and run a separate program, either an executable program or a 
  18866. batch file.  OS/2 and DOS are shipped with a number of external utility 
  18867. programs (such as FORMAT and DISKCOPY), and any program or application you 
  18868. install on your system becomes a new external command. 
  18869.  
  18870. The advantage of internal commands is that they run almost instantly.  When you 
  18871. type an internal command, Take Command interprets the command line and carries 
  18872. out the necessary activities without having to look for, load, and run another 
  18873. program. 
  18874.  
  18875. The advantage of external commands is that they can be large, varied, and 
  18876. complex without taking space inside Take Command.  External commands can also 
  18877. be renamed or replaced easily.  If you want to rename the external DOS command 
  18878. XCOPY to MYCOPY, for example, all you need to do is find the file called 
  18879. XCOPY.EXE in your DOS directory and change its name to MYCOPY.EXE.  If you want 
  18880. to replace XCOPY with a more efficient program of the same name, you can do so. 
  18881. Take Command adds this flexibility to internal commands.  You can rename or 
  18882. replace any internal command by using an alias, and you can enable or disable 
  18883. internal commands whenever you wish (see SETDOS /I). 
  18884.  
  18885.  
  18886. ΓòÉΓòÉΓòÉ 10.3.5. Executable Files and File Searches ΓòÉΓòÉΓòÉ
  18887.  
  18888. When Take Command knows that it is supposed to run an external command, it 
  18889. tries to find an executable file whose name matches the command name. 
  18890. (Executable files are typically those with a .COM or .EXE extension, or with a 
  18891. .PIF extension under Windows.)  It runs the executable file if it finds one. 
  18892.  
  18893. If Take Command cannot find an executable program to run, it next looks for a 
  18894. batch file (a file with one or more commands in it) whose name matches the 
  18895. command name.  Take Command looks first for a .BTM file, then for a .CMD file, 
  18896. and then for a .BAT file, and finally for a .REX file.  See .BAT, .CMD, and 
  18897. .BTM Files for more information on these different types of batch files.  If 
  18898. the command processor finds such a file, it then reads each line in the file as 
  18899. a new command. 
  18900.  
  18901. If the search for a batch file fails, Take Command checks to see if the command 
  18902. name matches the name of a file with an extension that is associated with a 
  18903. specific application (for example, if you have associated .DOC with your editor 
  18904. or word processor, and type the name of a .DOC file).  If a match is found, 
  18905. Take Command runs the program you specified when the association was defined. 
  18906. (Executable extensions are a Take Command feature used to associate file 
  18907. extensions with the specific program that processes a particular type of file). 
  18908.  
  18909. Take Command first searches for an executable program, a batch file, and a file 
  18910. with an executable extension in the current directory.  If that search fails, 
  18911. it repeats its search in every directory in your search path. 
  18912.  
  18913. The search path is a list of directories that Take Command (and some 
  18914. applications) search for executable files.  For example, if you wanted Take 
  18915. Command to search the root directory of the C: drive, the \WINUTIL subdirectory 
  18916. on the C: drive, and the \UTIL directory on the D: drive for executable files, 
  18917. your search path would look like this: 
  18918.  
  18919.         PATH=C:\;C:\WINUTIL;D:\UTIL
  18920.  
  18921. Notice that the directory names in the search path are separated by semicolons. 
  18922.  
  18923. You can create or view the search path with the PATH command.  You can use the 
  18924. ESET command to edit the path.  Many programs also use the search path to find 
  18925. their own files.  The search path is stored in the environment with the name 
  18926. PATH. 
  18927.  
  18928. Remember, Take Command always looks for an executable file or a file with an 
  18929. executable extension first in the current subdirectory and then in each 
  18930. directory in the search path.  (You can change the search order so the current 
  18931. directory is not searched first; see the PATH command for details.) 
  18932.  
  18933. If you include an extension as part of the command name, Take Command only 
  18934. searches for a file with that extension.  Similarly, if you include a path as 
  18935. part of the command name, Take Command will look only in the directory you 
  18936. specified, and ignore the usual search of the current directory and the PATH. 
  18937.  
  18938. The following table sums up the possible search options (the term "standard 
  18939. search" refers to the search of the current directory and each directory in the 
  18940. search path): 
  18941.  
  18942.         Command                 Take Command Search Sequence 
  18943.  
  18944.         WP                      Standard search for any executable file whose 
  18945.                                 base name is WP. 
  18946.  
  18947.         WP.EXE                  Standard search for WP.EXE; will not find files 
  18948.                                 with other extensions. 
  18949.  
  18950.         C:\WP7\WP               Looks in the C:\WP7 directory for any 
  18951.                                 executable file whose base name is WP.  Does 
  18952.                                 not check the standard search directories. 
  18953.  
  18954.         C:\WP7\WP.EXE           Looks only for the file C:\WP7\WP.EXE. 
  18955.  
  18956.         LAB.DOC                 Standard search for LAB.DOC, if .DOC is defined 
  18957.                                 as a Take Command executable extension.  Runs 
  18958.                                 the associated application if the file is 
  18959.                                 found. 
  18960.  
  18961.         C:\LI\LAB.DOC           Looks only for the file C:\LI\LAB.DOC, and only 
  18962.                                 if .DOC is defined as a Take Command executable 
  18963.                                 extension.  Runs the associated application if 
  18964.                                 the file is found. 
  18965.  
  18966.  If Take Command cannot find an executable file, batch program, or a file with 
  18967.  an executable extension in the current directory or any directory in the 
  18968.  search path, it looks for an alias called UNKNOWN_CMD (see ALIAS for details). 
  18969.  If you have defined an alias with that name, it is executed (this allows you 
  18970.  to control error handling for unknown commands).  Otherwise, Take Command 
  18971.  displays an "Unknown command" error message and waits for your next 
  18972.  instruction. 
  18973.  
  18974.  
  18975. ΓòÉΓòÉΓòÉ 10.4. Reference Tables ΓòÉΓòÉΓòÉ
  18976.  
  18977. The reference tables in this section are based on U.S. English conventions. 
  18978. Your system may differ if it is configured for a different country or language. 
  18979. See your operating system documentation for more information about country and 
  18980. language support. 
  18981.  
  18982. To represent the text you type, computers must translate each letter to and 
  18983. from a number.  The code used by all PC-compatible computers for this 
  18984. translation is called ASCII.  Function keys, cursor keys, and Alt keys generate 
  18985. scan codes indicating which key was pressed, but not ASCII codes.  The tables 
  18986. in this section cover both kinds of codes. 
  18987.  
  18988. For more information, see: 
  18989.  
  18990.             ASCII Table 
  18991.             Key Codes and Scan Codes Table 
  18992.             Key Codes and Scan Codes Explanation 
  18993.             ANSI Reference 
  18994.  
  18995.  
  18996. ΓòÉΓòÉΓòÉ 10.4.1. ASCII Table ΓòÉΓòÉΓòÉ
  18997.  
  18998.                       Control Characters
  18999.  
  19000.     Dec  Hex  Chr  Nam  Ctl   Γöé   Dec  Hex  Chr  Nam  Ctl
  19001.     ---  ---  ---  ---  ---   Γöé   ---  ---  ---  ---  ---
  19002.     000   00       NUL   ^@   Γöé   016   10      DLE   ^P
  19003.     001   01      SOH   ^A   Γöé   017   11      DC1   ^Q
  19004.     002   02      STX   ^B   Γöé   018   12      DC2   ^R
  19005.     003   03      ETX   ^C   Γöé   019   13      DC3   ^S
  19006.     004   04      EOT   ^D   Γöé   020   14      DC4   ^T
  19007.     005   05      ENQ   ^E   Γöé   021   15      NAK   ^U
  19008.     006   06      ACK   ^F   Γöé   022   16      SYN   ^V
  19009.     007   07       BEL   ^G   Γöé   023   17      ETB   ^W
  19010.     008   08      BS    ^H   Γöé   024   18      CAN   ^X
  19011.     009   09       HT    ^I   Γöé   025   19      EM    ^Y
  19012.     010   0A       LF    ^J   Γöé   026   1A      SUB   ^Z
  19013.     011   0B       VT    ^K   Γöé   027   1B      ESC   ^[
  19014.     012   0C       FF    ^L   Γöé   028   1C      FS    ^\
  19015.     013   0D       CR    ^M   Γöé   029   1D      GS    ^]
  19016.     014   0E      SO    ^N   Γöé   030   1E      RS    ^^
  19017.     015   0F      SI    ^O   Γöé   031   1F      US    ^_
  19018.  
  19019.                   Punctuation, Digits, Upper Case
  19020.  
  19021.   Dec  Hex  Chr Γöé  Dec  Hex  Chr Γöé  Dec  Hex  Chr Γöé  Dec  Hex  Chr
  19022.   ---  ---  --- Γöé  ---  ---  --- Γöé  ---  ---  --- Γöé  ---  ---  ---
  19023.   032   20      Γöé  048   30   0  Γöé  064   40   @  Γöé  080   50   P
  19024.   033   21   !  Γöé  049   31   1  Γöé  065   41   A  Γöé  081   51   Q
  19025.   034   22   "  Γöé  050   32   2  Γöé  066   42   B  Γöé  082   52   R
  19026.   035   23   #  Γöé  051   33   3  Γöé  067   43   C  Γöé  083   53   S
  19027.   036   24   $  Γöé  052   34   4  Γöé  068   44   D  Γöé  084   54   T
  19028.   037   25   %  Γöé  053   35   5  Γöé  069   45   E  Γöé  085   55   U
  19029.   038   26   &  Γöé  054   36   6  Γöé  070   46   F  Γöé  086   56   V
  19030.   039   27   '  Γöé  055   37   7  Γöé  071   47   G  Γöé  087   57   W
  19031.   040   28   (  Γöé  056   38   8  Γöé  072   48   H  Γöé  088   58   X
  19032.   041   29   )  Γöé  057   39   9  Γöé  073   49   I  Γöé  089   59   Y
  19033.   042   2A   *  Γöé  058   3A   :  Γöé  074   4A   J  Γöé  090   5A   Z
  19034.   043   2B   +  Γöé  059   3B   ;  Γöé  075   4B   K  Γöé  091   5B   [
  19035.   044   2C   ,  Γöé  060   3C   <  Γöé  076   4C   L  Γöé  092   5C   \
  19036.   045   2D   -  Γöé  061   3D   =  Γöé  077   4D   M  Γöé  093   5D   ]
  19037.   046   2E   .  Γöé  062   3E   >  Γöé  078   4E   N  Γöé  094   5E   ^
  19038.   047   2F   /  Γöé  063   3F   ?  Γöé  079   4F   O  Γöé  095   5F   _
  19039.  
  19040.                    Lower Case, Miscellaneous
  19041.  
  19042.                  Dec  Hex  Chr Γöé  Dec  Hex  Chr
  19043.                  ---  ---  --- Γöé  ---  ---  ---
  19044.                  096   60   `  Γöé  112   70   p
  19045.                  097   61   a  Γöé  113   71   q
  19046.                  098   62   b  Γöé  114   72   r
  19047.                  099   63   c  Γöé  115   73   s
  19048.                  100   64   d  Γöé  116   74   t
  19049.                  101   65   e  Γöé  117   75   u
  19050.                  102   66   f  Γöé  118   76   v
  19051.                  103   67   g  Γöé  119   77   w
  19052.                  104   68   h  Γöé  120   78   x
  19053.                  105   69   i  Γöé  121   79   y
  19054.                  106   6A   j  Γöé  122   7A   z
  19055.                  107   6B   k  Γöé  123   7B   {
  19056.                  108   6C   l  Γöé  124   7C   |
  19057.                  109   6D   m  Γöé  125   7D   }
  19058.                  110   6E   n  Γöé  126   7E   ~
  19059.                  111   6F   o  Γöé  127   7F   
  19060.  
  19061.                 International; Graphics Characters 1
  19062.  
  19063.   Dec  Hex  Chr Γöé  Dec  Hex  Chr Γöé  Dec  Hex  Chr Γöé  Dec  Hex  Chr
  19064.   ---  ---  --- Γöé  ---  ---  --- Γöé  ---  ---  --- Γöé  ---  ---  ---
  19065.   128   80   ╨É  Γöé  144   90   ╨á  Γöé  160   A0      Γöé  176   B0
  19066.   129   81   ╨æ  Γöé  145   91   ╨í  Γöé  161   A1   ╨▒  Γöé  177   B1   ΓûÆ
  19067.   130   82   ╨Æ  Γöé  146   92   ╨ó  Γöé  162   A2   ╨▓  Γöé  178   B2   Γûô
  19068.   131   83   ╨ô  Γöé  147   93   ╨ú  Γöé  163   A3   ╨│  Γöé  179   B3   Γöé
  19069.   132   84   ╨ö  Γöé  148   94   ╨ñ  Γöé  164   A4   ╨┤  Γöé  180   B4   Γöñ
  19070.   133   85   ╨ò  Γöé  149   95   ╨Ñ  Γöé  165   A5   ╨╡  Γöé  181   B5   Γòí
  19071.   134   86   ╨û  Γöé  150   96   ╨ª  Γöé  166   A6   ╨╢  Γöé  182   B6
  19072.   135   87   ╨ù  Γöé  151   97   ╨º  Γöé  167   A7   ╨╖  Γöé  183   B7
  19073.   136   88   ╨ÿ  Γöé  152   98   ╨¿  Γöé  168   A8   ╨╕  Γöé  184   B8   Γòò
  19074.   137   89   ╨Ö  Γöé  153   99   ╨⌐  Γöé  169   A9   ╨╣  Γöé  185   B9   Γòú
  19075.   138   8A   ╨Ü  Γöé  154   9A   ╨¬  Γöé  170   AA   ╨║  Γöé  186   BA   Γòæ
  19076.   139   8B   ╨¢  Γöé  155   9B   ╨½  Γöé  171   AB   ╨╗  Γöé  187   BB   Γòù
  19077.   140   8C   ╨£  Γöé  156   9C   ╨¼  Γöé  172   AC   ╨╝  Γöé  188   BC   Γò¥
  19078.   141   8D   ╨¥  Γöé  157   9D   ╨¡  Γöé  173   AD   ╨╜  Γöé  189   BD   Γò£
  19079.   142   8E   ╨₧  Γöé  158   9E   ╨«  Γöé  174   AE   ╨╛  Γöé  190   BE   Γò¢
  19080.   143   8F   ╨ƒ  Γöé  159   9F   ╨»  Γöé  175   AF   ╨┐  Γöé  191   BF   ΓöÉ
  19081.  
  19082.                   Graphics Characters 2; Symbols
  19083.  
  19084.   Dec  Hex  Chr Γöé  Dec  Hex  Chr Γöé  Dec  Hex  Chr Γöé  Dec  Hex  Chr
  19085.   ---  ---  --- Γöé  ---  ---  --- Γöé  ---  ---  --- Γöé  ---  ---  ---
  19086.   192   C0   Γöö  Γöé  208   D0   Γò¿  Γöé  224   E0   ╤Ç  Γöé  240   F0   ╨ü
  19087.   193   C1   Γö┤  Γöé  209   D1   Γòñ  Γöé  225   E1   ╤ü  Γöé  241   F1   ╤æ
  19088.   194   C2   Γö¼  Γöé  210   D2   ΓòÑ  Γöé  226   E2   ╤é  Γöé  242   F2   ╨ä
  19089.   195   C3   Γö£  Γöé  211   D3   ΓòÖ  Γöé  227   E3   ╤â  Γöé  243   F3   ╤ö
  19090.   196   C4   ΓöÇ  Γöé  212   D4   Γòÿ  Γöé  228   E4   ╤ä  Γöé  244   F4   ╨ç
  19091.   197   C5   Γö╝  Γöé  213   D5   ΓòÆ  Γöé  229   E5   ╤à  Γöé  245   F5   ╤ù
  19092.   198   C6   Γò₧  Γöé  214   D6   Γòô  Γöé  230   E6   ╤å  Γöé  246   F6   ╨Ä
  19093.   199   C7   Γòƒ  Γöé  215   D7   Γò½  Γöé  231   E7   ╤ç  Γöé  247   F7   ╤₧
  19094.   200   C8   ΓòÜ  Γöé  216   D8   Γò¬  Γöé  232   E8   ╤ê  Γöé  248   F8   ┬░
  19095.   201   C9   Γòö  Γöé  217   D9   Γöÿ  Γöé  233   E9   ╤ë  Γöé  249   F9   ΓêÖ
  19096.   202   CA   Γò⌐  Γöé  218   DA   Γöî  Γöé  234   EA   ╤è  Γöé  250   FA   ┬╖
  19097.   203   CB   Γòª  Γöé  219   DB   Γûê  Γöé  235   EB   ╤ï  Γöé  251   FB   ΓêÜ
  19098.   204   CC   Γòá  Γöé  220   DC   Γûä  Γöé  236   EC   ╤î  Γöé  252   FC   Γäû
  19099.   205   CD   ΓòÉ  Γöé  221   DD   Γûî  Γöé  237   ED   ╤ì  Γöé  253   FD   ┬ñ
  19100.   206   CE   Γò¼  Γöé  222   DE   ΓûÉ  Γöé  238   EE   ╤Ä  Γöé  254   FE   Γûá
  19101.   207   CF   Γòº  Γöé  223   DF   ΓûÇ  Γöé  239   EF   ╤Å  Γöé  255   FF
  19102.  
  19103.  
  19104. ΓòÉΓòÉΓòÉ 10.4.2. Key Codes and Scan Codes Table ΓòÉΓòÉΓòÉ
  19105.  
  19106. (For more details on key codes and scan codes, see the Key Codes and Scan Codes 
  19107. Explanation.) 
  19108.  
  19109. Key names prefaced by np are on the numeric keypad.  Those prefaced by cp are 
  19110. on the cursor keypad between the main typing keys and the number keypad.  The 
  19111. numeric keypad values are valid if Num Lock is turned off. If you need to 
  19112. specify a number key from the numeric keypad, use the scan code shown for the 
  19113. keypad and the ASCII code shown for the corresponding typewriter key.  For 
  19114. example, the keypad "7" has a scan code of 71 (the np Home scan code) and an 
  19115. ASCII code of 54 (the ASCII code for "7"). 
  19116.  
  19117. The chart is blank for key combinations that do not have scan codes or ASCII 
  19118. codes, like Ctrl-1 or Alt-PgUp. 
  19119.  
  19120.  
  19121.                         Top Two Keyboard Rows
  19122.  
  19123.                              Shift  Shift  Ctrl   Ctrl   Alt
  19124.                Scan   ASCII  Scan   ASCII  Scan   ASCII  Scan
  19125.      Key       Code   Code   Code   Code   Code   Code   Code
  19126.  
  19127.      Esc       1      27     1      27     1      27     1
  19128.      1  !      2      49     2      33                   120
  19129.      2  @      3      50     3      64     3      0      121
  19130.      3  #      4      51     4      35                   122
  19131.      4  $      5      52     5      36                   123
  19132.      5  %      6      53     6      37                   124
  19133.      6  ^      7      54     7      94     7      30     125
  19134.      7  &      8      55     8      38                   126
  19135.      8  *      9      56     9      42                   127
  19136.      9  (      10     57     10     40                   128
  19137.      0  )      11     48     11     41                   129
  19138.      -  _      12     45     12     95     12     31     130
  19139.      =  +      13     61     13     43                   131
  19140.      Backspace 14     8      14     8      14     127    14
  19141.      Tab       15     9      15     0      148    0      165
  19142.      Q         16     113    16     81     16     17     16
  19143.      W         17     119    17     87     17     23     17
  19144.      E         18     101    18     69     18     5      18
  19145.      R         19     114    19     82     19     18     19
  19146.      T         20     116    20     84     20     20     20
  19147.      Y         21     121    21     89     21     25     21
  19148.      U         22     117    22     85     22     21     22
  19149.      I         23     105    23     73     23     9      23
  19150.      O         24     111    24     79     24     15     24
  19151.      P         25     112    25     80     25     16     25
  19152.      [  {      26     91     26     123    26     27     26
  19153.      ]  }      27     93     27     125    27     29     27
  19154.      Enter     28     13     28     13     28     10     28
  19155.  
  19156.  
  19157.                        Bottom Two Keyboard Rows
  19158.  
  19159.                              Shift  Shift  Ctrl   Ctrl   Alt
  19160.                Scan   ASCII  Scan   ASCII  Scan   ASCII  Scan
  19161.      Key       Code   Code   Code   Code   Code   Code   Code
  19162.  
  19163.      A         30     97     30     65     30     1      30
  19164.      S         31     115    31     83     31     19     31
  19165.      D         32     100    32     68     32     4      32
  19166.      F         33     102    33     70     33     6      33
  19167.      G         34     103    34     71     34     7      34
  19168.      H         35     104    35     72     35     8      35
  19169.      J         36     106    36     74     36     10     36
  19170.      K         37     107    37     75     37     11     37
  19171.      L         38     108    38     76     38     12     38
  19172.      ; :       39     59     39     58                   39
  19173.      '  "      40     39     40     34                   40
  19174.      `  ~      41     96     41     126                  41
  19175.      \  |      43     92     43     124    43     28     43
  19176.      Z         44     122    44     90     44     26     44
  19177.      X         45     120    45     88     45     24     45
  19178.      C         46     99     46     67     46     3      46
  19179.      V         47     118    47     86     47     22     47
  19180.      B         48     98     48     66     48     2      48
  19181.      N         49     110    49     78     49     14     49
  19182.      M         50     109    50     77     50     13     50
  19183.      ,  <      51     44     51     60                   51
  19184.      .  >      52     46     52     62                   52
  19185.      /  ?      53     47     53     63                   53
  19186.      Space     57     32     57     32     57     32     57
  19187.  
  19188.  
  19189.                       Key Pads and Function Keys
  19190.  
  19191.                              Shift  Shift  Ctrl   Ctrl   Alt
  19192.                Scan   ASCII  Scan   ASCII  Scan   ASCII  Scan
  19193.      Key       Code   Code   Code   Code   Code   Code   Code
  19194.  
  19195.  
  19196.      F1        59     0      84     0      94     0      104
  19197.      F2        60     0      85     0      95     0      105
  19198.      F3        61     0      86     0      96     0      106
  19199.      F4        62     0      87     0      97     0      107
  19200.      F5        63     0      88     0      98     0      108
  19201.      F6        64     0      89     0      99     0      109
  19202.      F7        65     0      90     0      100    0      110
  19203.      F8        66     0      91     0      101    0      111
  19204.      F9        67     0      92     0      102    0      112
  19205.      F10       68     0      93     0      103    0      113
  19206.      F11       133    0      135    0      137    0      139
  19207.      F12       134    0      136    0      138    0      140
  19208.      np *      55     42     55     42     150    0      55
  19209.      np Home   71     0      71     55     119    0
  19210.      cp Home   71     224    71     224    119    224    151
  19211.      np Up     72     0      72     56     141    0
  19212.      cp Up     72     224    72     224    141    224    152
  19213.      np PgUp   73     0      73     57     132    0
  19214.      cp PgUp   73     224    73     224    132    224    153
  19215.      np Minus  74     45     74     45     142    0      74
  19216.      np Left   75     0      75     52     115    0
  19217.      cp Left   75     224    75     224    115    224    155
  19218.      np 5      76     0      76     53     143    0
  19219.      np Right  77     0      77     54     116    0
  19220.      cp Right  77     224    77     224    116    224    157
  19221.      np Plus   78     43     78     43     144    0      78
  19222.      np End    79     0      79     49     117    0
  19223.      cp End    79     224    79     224    117    224    159
  19224.      np Down   80     0      80     50     145    0
  19225.      cp Down   80     224    80     224    145    224    160
  19226.      np PgDn   81     0      81     51     118    0
  19227.      cp PgDn   81     224    81     224    118    224    161
  19228.      np Ins    82     0      82     48     146    0
  19229.      cp Ins    82     224    82     224    146    224    162
  19230.      np Del    83     0      83     46     147    0
  19231.      cp Del    83     224    83     224    147    224    163
  19232.      np /      224    47     224    47     149    0      164
  19233.      np Enter  224    13     224    13     224    10     166
  19234.  
  19235.  
  19236. ΓòÉΓòÉΓòÉ 10.4.3. Key Codes and Scan Codes Explanation ΓòÉΓòÉΓòÉ
  19237.  
  19238. Key Codes and Scan Codes Explanation 
  19239.  
  19240. (This section explains how key codes and scan codes work.  For a reference 
  19241. chart, see the Key Codes and Scan Codes Table.) 
  19242.  
  19243. When you press a single key or a key combination, OS/2 translates your 
  19244. keystroke into two numbers: a scan code, representing the actual key that was 
  19245. pressed, and an ASCII code, representing the ASCII value for that key.  OS/2 
  19246. returns these numbers the next time a program requests keyboard input.  This 
  19247. section explains how key codes work; for information on using them with Take 
  19248. Command see the TCMDOS2.INI file key mapping directives, keystroke aliases, and 
  19249. INKEY. 
  19250.  
  19251. Most Take Command commands that use the numeric key codes listed here also use 
  19252. key names, which are usually more convenient to use than the numeric codes. See 
  19253. Keys and Key Names for more information on key names. 
  19254.  
  19255. As PCs have evolved, the structure of keyboard codes has evolved somewhat 
  19256. haphazardly with them, resulting in a bewildering array of possible key codes. 
  19257. We'll give you a basic explanation of how key codes work.  For a more in-depth 
  19258. discussion, refer to a BIOS or PC hardware reference manual. 
  19259.  
  19260. The nuances of how your keyboard behaves depends on the keyboard manufacturer, 
  19261. the computer manufacturer who provides the built-in BIOS, and your operating 
  19262. system.  As a result, we can't guarantee the accuracy of the information in the 
  19263. tables for every system, but the discussion and reference table should be 
  19264. accurate for most systems.  Our discussion is based on the 101-key "enhanced" 
  19265. keyboard commonly used on 286, 386, 486, and Pentium computers, but virtually 
  19266. all of it is applicable to the 84-key keyboards on older systems.  The primary 
  19267. difference is that older keyboards lack a separate cursor pad and only have 10 
  19268. function keys. 
  19269.  
  19270. All keys have a scan code, but not all have an ASCII code.  For example, 
  19271. function keys and cursor keys are not part of the ASCII character set and have 
  19272. no ASCII value, but they do have a scan code.  Some keys have more than one 
  19273. ASCII code.  The A, for example, has ASCII code 97 (lower case "a") if you 
  19274. press it by itself.  If you press it along with Shift, the ASCII code changes 
  19275. to 65 (upper case "A"). If you press Ctrl and A the ASCII code changes to 1. 
  19276. In all these cases, the scan code (30) is unchanged because you are pressing 
  19277. the same physical key. 
  19278.  
  19279. Things are different if you press Alt-A.  Alt keystrokes have no ASCII code, so 
  19280. OS/2 returns an ASCII code of 0, along with the A key's scan code of 30.  This 
  19281. allows a program to detect all the possible variations of A, based on the 
  19282. combination of ASCII code and scan code. 
  19283.  
  19284. Some keys generate more than one scan code depending on whether Shift, Ctrl, or 
  19285. Alt is pressed.  This allows a program to differentiate between two different 
  19286. keystrokes on the same key, neither of which has a corresponding ASCII value. 
  19287. For example, F1 has no ASCII value so it returns an ASCII code of 0, and the F1 
  19288. scan code of 59.  Shift-F1 also returns an ASCII code 0; if it also returned a 
  19289. scan code of 59, a program couldn't distinguish it from F1.  The operating 
  19290. system translates scan codes for keys like Shift-F1 (and Ctrl-F1 and Alt-F1) so 
  19291. that each variation returns a different scan code along with an ASCII code of 
  19292. 0. 
  19293.  
  19294. On the 101-key keyboard there's one more variation:  non-ASCII keys on the 
  19295. cursor keypad (such as up-arrow) return the same scan code as the corresponding 
  19296. key on the numeric keypad, for compatibility reasons.  If they also returned an 
  19297. ASCII code of 0, a program couldn't tell which key was pressed.  Therefore, 
  19298. these keys return an ASCII code of 224 rather than 0. This means that older 
  19299. programs, which only look for an ASCII 0 to indicate a non-ASCII keystroke like 
  19300. up-arrow, may not detect these cursor pad keys properly. 
  19301.  
  19302. The number of different codes returned by any given key varies from one (for 
  19303. the spacebar) to four, depending on the key, the design of your keyboard, and 
  19304. the operating system.  Some keys, like Alt, Ctrl, and Shift by themselves or in 
  19305. combination with each other, plus Print Screen, SysReq, Scroll Lock, Pause, 
  19306. Break, Num Lock, and Caps Lock keys, do not have any code representations at 
  19307. all.  The same is true of keystrokes with more than one modifying key, like 
  19308. Ctrl-Shift- A. The operating system may perform special actions automatically 
  19309. when you press these keys (for example, it switches into Caps Lock mode when 
  19310. you press Caps Lock), but it does not report the keystrokes to whatever program 
  19311. is running.  Programs which detect such keystrokes access the keyboard hardware 
  19312. directly, a subject which is beyond the scope of this manual. 
  19313.  
  19314.  
  19315. ΓòÉΓòÉΓòÉ 10.4.4. ANSI Reference ΓòÉΓòÉΓòÉ
  19316.  
  19317. Take Command for OS/2's ANSI support allows you to manipulate the cursor, 
  19318. screen color, and other display attributes through sequences of special 
  19319. characters embedded in the text you display on the screen.  These sequences are 
  19320. called "ANSI commands". 
  19321.  
  19322. This section is a quick-reference to the ANSI commands supported by Take 
  19323. Command for OS/2.  These sequences are typically displayed by internal 
  19324. commands, or by character-mode applications started under Take Command's TTY 
  19325. application support (see Starting Character- Mode Applications). 
  19326.  
  19327. ANSI support within Take Command for OS/2 can be enabled or disabled with the 
  19328. ANSI directive in TCMDOS2.INI, the corresponding option on the Display page of 
  19329. the configuration notebook, or the SETDOS /A command.  You can test whether 
  19330. ANSI support is enabled with the _ANSI internal variable. 
  19331.  
  19332. An ANSI command string consists of three parts: 
  19333.  
  19334.         ESC[                The ASCII character ESC, followed by a left 
  19335.                             bracket. These two characters must be present in 
  19336.                             all ANSI strings. 
  19337.         parameters          Optional parameters for the command.  If there are 
  19338.                             multiple parameters they are separated by 
  19339.                             semicolons. 
  19340.         cmd                 A single-letter command.  The case of the letter IS 
  19341.                             meaningful. 
  19342.  
  19343.  For example, to position the cursor to row 7, column 12 the ANSI command is: 
  19344.  
  19345.           ESC[7;12H
  19346.  
  19347.  To transmit ANSI commands to the screen with Take Command for OS/2, you can 
  19348.  use the ECHO command.  The ESC character can be generated by inserting it into 
  19349.  the string directly (if you are putting the string in a batch file and your 
  19350.  editor will insert such a character), or by using Take command's internal 
  19351.  "escape" character (caret, [^]) followed by a lower-case "e".  For example, 
  19352.  the sequence shown above could be transmitted from a batch file with either of 
  19353.  these commands (the first uses an ESC character directly; the second uses ^e): 
  19354.  
  19355.           echo  [7;12H
  19356.           echo ^e[7;12H
  19357.  
  19358.  You can also include ANSI commands in your prompt, using $e to transmit the 
  19359.  ESC character. 
  19360.  
  19361.  Commands 
  19362.  
  19363.         ESC[rowsA               Cursor up 
  19364.         ESC[rowsB               Cursor down 
  19365.         ESC[colsC               Cursor right 
  19366.         ESC[colsD               Cursor left 
  19367.         ESC[row;colH            Set cursor position (top left is row 1, column 
  19368.                                 1) 
  19369.         ESC[2J                  Clear screen 
  19370.         ESC[K                   Clear from cursor to end of line 
  19371.         ESC[row;colf            Set cursor position, same as "H" command 
  19372.         ESC[attr;attr;...m      Set display attributes; see table of attribute 
  19373.                                 values below 
  19374.         ESC[s                   Save cursor position (may not be nested) 
  19375.         ESC[u                   Restore cursor position after a save 
  19376.  
  19377.  Display Attributes 
  19378.  
  19379.         1           High intensity (bright) foreground color 
  19380.         2           Normal intensity 
  19381.         30-37       Set the foreground color: 
  19382.                       30=Black  31=Red    32=Green  33=Yellow 
  19383.                       34=Blue   35=Magenta  36=Cyan   37=White 
  19384.         40-47       Set the background color, same values as above but 
  19385.                     substitute 40 for 30 etc. 
  19386.  
  19387.  Settings are cumulative, so (for example) to set bright red foreground you 
  19388.  must first set red, then set high intensity: 
  19389.  
  19390.           echo ^e[31;1m
  19391.  
  19392.  Examples 
  19393.  
  19394.  Set the display to bright cyan on blue, and clear the screen: 
  19395.  
  19396.           echo ^e[44;36;1m^e[2J
  19397.  
  19398.  Set up a prompt which saves the cursor position, displays the date and time on 
  19399.  the top line in bright white on magenta, and then restores the cursor position 
  19400.  and sets the color to bright cyan on blue, and displays the standard prompt: 
  19401.  
  19402.           prompt $e[s$e[1;1f$e[45;37;1m$e[K$d $t$e[u$e[44;36;1m$p$g
  19403.  
  19404.  
  19405. ΓòÉΓòÉΓòÉ 10.5. Glossary ΓòÉΓòÉΓòÉ
  19406.  
  19407. The glossary contains over 200 terms, and is divided into sections by the first 
  19408. letter of each term.  Select the section you want to review: 
  19409.  
  19410. A B C D E F G H I K L M N O P R S T U V W X 
  19411.  
  19412.  
  19413. ΓòÉΓòÉΓòÉ 10.5.1. Glossary - A ΓòÉΓòÉΓòÉ
  19414.  
  19415. B C D E F G H I K L M N O P R S T U V W X 
  19416.  
  19417. Alias Parameter:  A numbered variable (e.g. %2) included in an alias 
  19418. definition, allowing a different value to be used in the alias each time it is 
  19419. executed. 
  19420.  
  19421. Alias:  A shorthand name for a command or series of commands. 
  19422.  
  19423. AND:  A logical combination of two true or false conditions.  If both 
  19424. conditions are true, the result is true; if either condition is false, the 
  19425. result is false. 
  19426.  
  19427. ANSI:  Usually a reference to ANSI control sequences, standardized sequences of 
  19428. text characters which control colors on the screen, manipulate the cursor, and 
  19429. redefine keys.  OS2 includes support for ANSI screen and cursor control 
  19430. sequences.  The abbreviation ANSI is for American National Standards Institute, 
  19431. an organization whch sets standards for computer-related systems, including 
  19432. "ANSI" screen control sequences. 
  19433.  
  19434. Append:  Concatenation of one file or string onto the end of another (this use 
  19435. is not related to the DOS and OS/2 external command named APPEND). 
  19436.  
  19437. Application:  A program run from the command prompt or a batch file.  Used 
  19438. broadly to mean any program other than the command processor; and more narrowly 
  19439. to mean a program with a specific purpose such as a spreadsheet or word 
  19440. processing program, as opposed to a utility. 
  19441.  
  19442. Archive:  A file attribute indicating that the file has been modified since the 
  19443. last backup (most backup programs clear this attribute).  Also sometimes refers 
  19444. to a single file (such as a .ZIP file) which contains a number of other files 
  19445. in compressed form. 
  19446.  
  19447. Argument:  See Parameter. 
  19448.  
  19449. ASCII File:  A file containing ASCII text, as opposed to a binary file which 
  19450. may contain numbers, or other information that cannot be sensibly interpreted 
  19451. as text. 
  19452.  
  19453. ASCII:  The American Standard Code for Information Interchange, which defines 
  19454. numeric values for 128 different characters comprising the English alphabet, 
  19455. numbers, punctuation, and some control characters. 
  19456.  
  19457. Attribute:  A characteristic of a file which can be set or cleared.  The 
  19458. standard attributes are Read-Only, Hidden, System, and Archive; other 
  19459. attributes include Directory and Volume Label. 
  19460.  
  19461. Automatic Batch Files:  See TCSTART and TCEXIT. 
  19462.  
  19463. Automatic Directory Change:  A Take Command feature which allows you to change 
  19464. directories by typing the directory name and a backslash [\] at the prompt. 
  19465.  
  19466.  
  19467. ΓòÉΓòÉΓòÉ 10.5.2. Glossary - B ΓòÉΓòÉΓòÉ
  19468.  
  19469. A C D E F G H I K L M N O P R S T U V W X 
  19470.  
  19471. Base Name:  The file name without a drive, path, or extension.  For example, in 
  19472. the file name C:\DIR1\LETTER.DAT the base name is LETTER. 
  19473.  
  19474. BAT File:  See Batch File. 
  19475.  
  19476. Batch File:  A text file containing a sequence of commands for the command 
  19477. processor to execute.  Batch files are used to save command sequences so that 
  19478. they can be re-executed at any time, transferred to another system, etc.  The 
  19479. extension of a batch file may be .BAT, .CMD, or .BTM, depending on the 
  19480. operating system and command processor you are using. 
  19481.  
  19482. Batch File Parameter:  A numbered variable (e.g. %2) used within a batch file, 
  19483. allowing a different value to be used at that spot in the file each time it is 
  19484. executed. 
  19485.  
  19486. Binary File:  A file containing information which does not represent or cannot 
  19487. sensibly be interpreted as text.  See also ASCII File. 
  19488.  
  19489. BIOS or Basic Input Output System:  The software (or "firmware") stored on 
  19490. chips inside PC systems.  The BIOS provides basic low-level control of devices 
  19491. required to operate the system, such as the keyboard, floppy disk, and screen; 
  19492. it also handles system self-tests at startup, and intiates loading of the 
  19493. operating system. 
  19494.  
  19495. Block Device:  A physical device for input or output which can transmit or 
  19496. receive large blocks of data while the computer is engaged in other activities. 
  19497. Examples include disk, tape, and CD-ROM drives.  See also Character Device. 
  19498.  
  19499. Boot Directory:  The current directory at the time the system is booted, 
  19500. usually the root directory of the boot drive. 
  19501.  
  19502. Boot Drive:  The disk drive that the system is booted from, usually A: (the 
  19503. floppy disk) or C: (the hard disk). 
  19504.  
  19505. Boot:  The process of starting the computer and loading the operating system 
  19506. into memory.  See also Reboot, Cold Reboot, and Warm Reboot. 
  19507.  
  19508. Break:  A signal sent to a program to tell it to halt what it is doing.  The 
  19509. Ctrl-C key  or Ctrl-Break key is used to send this signal.  Some external 
  19510. commands abort when they receive a break signal; others return to a previous 
  19511. screen or menu, or abort the current operation. 
  19512.  
  19513. BTM File:  A special type of Take Command batch file which is loaded into 
  19514. memory to speed up execution. 
  19515.  
  19516. Buffer:  An area of memory set aside for storage.  For example, disk buffers 
  19517. are used to save information as it is transferred between your program and the 
  19518. disk, and the keyboard buffer holds keystrokes until a program can use them. 
  19519.  
  19520.  
  19521. ΓòÉΓòÉΓòÉ 10.5.3. Glossary - C ΓòÉΓòÉΓòÉ
  19522.  
  19523. A B D E F G H I K L M N O P R S T U V W X 
  19524.  
  19525. CDFS or CD-ROM File System:  The file system which supports CD-ROM drives. 
  19526. This is typically implemented as a distinct file system in 32-bit operating 
  19527. systems like OS/2 and Windows NT.  On other platforms it is implemented as a 
  19528. component of or addition to the underlying general file system for disk drives. 
  19529.  
  19530. Character Device:  A physical device for input or output which must communicate 
  19531. with your computer one character at a time.  Examples include the console, 
  19532. communications ports, and printers.  See also Block Device. 
  19533.  
  19534. Character Mode:  A display mode in which output is displayed in a fixed font, 
  19535. typically with 80 columns in a line and 25 lines on the screen (some systems 
  19536. allow you to increase the number of rows and columns to other fixed sizes), and 
  19537. which cannot display graphics or pictures.  See also Graphics Mode. 
  19538.  
  19539. CMD File:  See Batch File. 
  19540.  
  19541. CMDLINE:  An environment variable used to extend the command line passed to 
  19542. another program beyond its normal length limits. 
  19543.  
  19544. Cold Reboot:  The process of restarting the computer in a way that physically 
  19545. resets most hardware devices, typically by pressing a reset button, or by 
  19546. turning the power off and back on.  See also Warm Reboot. 
  19547.  
  19548. Command Completion:  A Take Command feature which allows you to recall a 
  19549. previous command by typing the first few letters of the command, then an 
  19550. up-arrow or down-arrow. 
  19551.  
  19552. Command Echoing:  A feature which displays commands as they are executed. 
  19553. Echoing can be turned on and off. 
  19554.  
  19555. Command Grouping:  A Take Command feature which allows you to group several 
  19556. commands with parentheses, and have them treated as a single command for most 
  19557. purposes. 
  19558.  
  19559. Command History Window:  A pop-up window used by Take Command to display the 
  19560. command history, allowing you to choose a previous command to modify and/or 
  19561. execute. 
  19562.  
  19563. Command History:  A Take Command feature which retains commands you have 
  19564. executed, so that they can be modified and re-executed later. 
  19565.  
  19566. Command Processor:  A program which interprets commands and executes other 
  19567. programs.  Sometimes also called a Command Interpreter. 
  19568.  
  19569. Command Recall:  See Command History. 
  19570.  
  19571. Command Separator:  A character used to separate multiple commands on the same 
  19572. command line. 
  19573.  
  19574. Command Tail:  The portion of a command consisting of all the arguments, i.e., 
  19575. everything but the command name itself. 
  19576.  
  19577. Compound Command:  See Multiple Commands. 
  19578.  
  19579. Compression:  An operating system feature which compresses data as it is stored 
  19580. in a disk file, and decompresses it as it is read back, resulting in more 
  19581. efficient use of disk space (at a slight cost in processor time to perform the 
  19582. compression and decompression).  More generally, an approach to data storage 
  19583. which reduces repeated or redundant information to a smaller number of bytes in 
  19584. the compressed version than in the original, in order to minimize the space 
  19585. required to store the information. 
  19586.  
  19587. COMSPEC:  An environment variable which defines where to find the 
  19588. character-mode command processor to start a secondary shell. 
  19589.  
  19590. Conditional Commands:  A Take Command feature allowing commands to be executed 
  19591. or skipped depending on the results of a previous command.  See also Exit Code. 
  19592.  
  19593. Console:  The PC keyboard and display. 
  19594.  
  19595. Console Mode:  See Character Mode. 
  19596.  
  19597. Control Character:  A character which is part of the ASCII code, but does not 
  19598. have a normal text representation, and which can usually be generated by 
  19599. pressing the Ctrl key along with another key. 
  19600.  
  19601. Coprocessor:  See Numeric Coprocessor. 
  19602.  
  19603. Country Settings:  The internal settings which tell the operating system how to 
  19604. interpret keyboard characters which vary from country to country, which 
  19605. character set to use, and how to retrieve and display date, time, and other 
  19606. information in the format appropriate to a particular country.  See also Code 
  19607. Page. 
  19608.  
  19609. CPU:  The Central Processing Unit which performs all logic and most 
  19610. calculations in a computer.  In PC-compatible systems, the CPU is on a single 
  19611. microprocessor chip. 
  19612.  
  19613. CR or Carriage Return:  The ASCII character "carriage return" (decimal value 
  19614. 13), generated by pressing the Enter key on the keyboard, and stored in most 
  19615. ASCII files at the end of each line. 
  19616.  
  19617. Critical Error:  An error, usually related to a physical or hardware problem 
  19618. with input, output, or network access, which prevents a program from 
  19619. continuing. 
  19620.  
  19621. Current Directory:  The directory in which all file operations will take place 
  19622. unless otherwise specified.  The current directory is typically displayed as 
  19623. part of the command prompt.  Also called the Current Working Directory. 
  19624.  
  19625. Current Drive:  The disk drive on which all file operations will take place 
  19626. unless otherwise specified.  The current drive is typically displayed as part 
  19627. of the command prompt. 
  19628.  
  19629. Cursor:  A movable marker on the screen to show where text will be entered when 
  19630. you type at the keyboard, or which object on the screen will be affected when a 
  19631. mouse button is clicked.  In character mode only the text cursor is available; 
  19632. graphical systems typically show both a mouse cursor and, when text can be 
  19633. entered, a separate text cursor. 
  19634.  
  19635.  
  19636. ΓòÉΓòÉΓòÉ 10.5.4. Glossary - D ΓòÉΓòÉΓòÉ
  19637.  
  19638. A B C E F G H I K L M N O P R S T U V W X 
  19639.  
  19640. Date Range:  A Take Command feature which allows you to select files based on 
  19641. the date and time they were last modified. 
  19642.  
  19643. Date Stamp:  Information stored in a file's directory entry to show the dates 
  19644. on which the file was created, last modified, and last accessed.  Creation and 
  19645. last access dates are not available in the FAT file system.  See also Time 
  19646. Stamp. 
  19647.  
  19648. Default Directory:  See Current Directory 
  19649.  
  19650. Default Drive:  See Current Drive. 
  19651.  
  19652. Delete Tracking:  An operating system or utility software feature which is 
  19653. designed to allow you to "undelete" or recover files which have recently been 
  19654. deleted.  Delete tracking typically works by temporarily retaining the deleted 
  19655. files and/or information about the deleted files in a special area of the disk. 
  19656.  
  19657. Description:  A string of characters assigned to describe a file with the Take 
  19658. Command DESCRIBE command. 
  19659.  
  19660. Destination:  In file processing commands (e.g. COPY or MOVE), the name or 
  19661. directory files should have after any copying or modification has taken place, 
  19662. generally the last specification on the command line.  See also Source. 
  19663.  
  19664. Detached Process:  A program which is "detached" from the normal means of user 
  19665. input and output, and cannot use the keyboard, mouse, or video display. 
  19666.  
  19667. Device Driver:  A program which allows the operating system to communicate with 
  19668. a device, and which is loaded into memory when the system boots.  Device 
  19669. drivers are also used to manage memory or for other similar internal functions. 
  19670.  
  19671. Device:  A physical device for input or output such as the console, a 
  19672. communications port, or a printer.  Sometimes "device" is used to refer to 
  19673. character devices, and excludes block devices. 
  19674.  
  19675. Directive:  An individual item in the TCMDOS2.INI file, used to control the 
  19676. configuration of Take Command. 
  19677.  
  19678. Directory:  A portion of any disk, identified by a name and a relationship to 
  19679. other directories in a "tree" structure, with the tree starting at the root 
  19680. directory.  A directory separates files on the disk into logical groups, but 
  19681. does not represent a physical division of the data on the disk. 
  19682.  
  19683. Directory History:  A Take Command feature which allows you to recall 
  19684. recently-used directory names in a popup window, and choose one to switch to. 
  19685.  
  19686. Directory History Window:  See Directory History. 
  19687.  
  19688. Directory Stack:  A Take Command feature, implemented through the PUSHD and 
  19689. POPD commands, which allows you to save the current directory and return to it 
  19690. later.  See also Stack. 
  19691.  
  19692. Directory Tree:  The branching structure of directories on a hard disk, 
  19693. starting at the root directory.  The root of the tree is usually considered as 
  19694. the "top" of the structure, so the actual structure can be visualized as an 
  19695. upside-down tree with the root at the top and branches going "down".  A portion 
  19696. or branch of the directory tree is sometimes called a " subtree". 
  19697.  
  19698. DOS Memory:  See Base Memory. 
  19699.  
  19700. DOS Session:  See Session. 
  19701.  
  19702. DPMI or DOS Protected Mode Interface:  A specification which allows DOS 
  19703. programs to access memory beyond 1 MB in order to manage larger programs or 
  19704. larger amounts of information than will fit in base memory.  DPMI support for 
  19705. DOS programs is provided by some DOS memory managers, and by OS/2, Windows 3.1 
  19706. and above, Windows 95, and Windows NT. 
  19707.  
  19708. Drive Letter:  A letter used to designate a specific local disk volume, or part 
  19709. or all of a network server drive.  In most cases drive letters range from A - 
  19710. Z, but some network operating systems allow the use of certain punctuation 
  19711. characters as drive letters in order to support more than 26 volumes. 
  19712.  
  19713.  
  19714. ΓòÉΓòÉΓòÉ 10.5.5. Glossary - E ΓòÉΓòÉΓòÉ
  19715.  
  19716. A B C D F G H I K L M N O P R S T U V W X 
  19717.  
  19718. Echo:  See Command Echoing. 
  19719.  
  19720. Environment:  An area of memory which contains multiple entries in the form 
  19721. "NAME=value".  See also Master Environment and Passed Environment. 
  19722.  
  19723. Environment Variable:  The name of a single entry in the environment. 
  19724.  
  19725. Error Level:  A numeric value between 0 and 255 returned from an external 
  19726. command to indicate its result (e.g., success, failure, response to a 
  19727. question).  See also Exit Code. 
  19728.  
  19729. Escape Character:  In some contexts, the Take Command escape character, which 
  19730. is used to suppress the normal meaning of or give special meaning to the 
  19731. following character.  In other cases, the specific ASCII character ESC.  The 
  19732. meaning must be determined from the context. 
  19733.  
  19734. Escape Sequence:  A sequence of text characters which has a special meaning and 
  19735. is not treated as normal text.  For example, the character sequence <ESC>]K 
  19736. (where <ESC> is the ASCII "escape" character, decimal value 27) will cause an 
  19737. ANSI driver to clear the screen from the cursor to the end of the current line, 
  19738. rather than simply displaying the string "ESC]K" on the screen.  Similarly, in 
  19739. Take Command, the escape sequence ^f on the command line is translated to a 
  19740. form feed, and is not treated as the literal characters "^f". 
  19741.  
  19742. Executable Extensions:  A Take Command feature which allows you to specify the 
  19743. application to be executed when a file with a particular extension is named at 
  19744. the command prompt. 
  19745.  
  19746. Executable File:  A file, usually with the extension .COM or .EXE, which can be 
  19747. loaded into memory and run as a program. 
  19748.  
  19749. Exit Code:  The result code returned by an external command or an internal 
  19750. command.  Take Command internal commands return an exit code of 0 if 
  19751. successful, or non-zero if unsuccessful.  See also Errorlevel. 
  19752.  
  19753. Expansion:  The process Take Command goes through when it scans a command line 
  19754. and substitutes the appropriate actual values for aliases, alias parameters, 
  19755. batch file parameters, and environment variables.  See also Parsing. 
  19756.  
  19757. Extended ASCII Character:  A character which is not part of the standard set of 
  19758. 128 ASCII characters, but is used on the PC as part of an extended set of 256 
  19759. characters.  These characters include international language symbols, and box 
  19760. and line drawing characters. 
  19761.  
  19762. Extended Attributes:  An OS/2 High Performance File System (HPFS) feature which 
  19763. allows storage of additional information about a file, separate from the file 
  19764. itself.  Extended attributes are typically used to store icons for executable 
  19765. files, property or settings information, and other information added by the 
  19766. user. 
  19767.  
  19768. Extended Directory Search:  A Take Command feature which maintains a directory 
  19769. search " database" or list, typically including all directories in your system, 
  19770. and allows you to change quickly to any directory in the list. 
  19771.  
  19772. Extended Key Code:  The code for a key on the PC keyboard which has no 
  19773. representation in the standard ASCII character set, such as a function key, 
  19774. cursor key, or Alt plus another key.  The extended key code for a key is often 
  19775. the same as the scan code for that key. 
  19776.  
  19777. Extended Memory:  Any memory on a computer system with a 286, 386, 486, or 
  19778. Pentium processor which is above the first 1 MB (one megabyte, or 1024*1024 
  19779. bytes) of memory.  See also XMS. 
  19780.  
  19781. Extended Parent Directory Names:  A Take Command feature which allows you to 
  19782. use additional periods in a directory name to represent directories which are 
  19783. successively higher in the directory tree. 
  19784.  
  19785. Extended Wildcard:  A Take Command feature which extends the traditional 
  19786. wildcard syntax and allows you to use multiple wildcard characters, and 
  19787. character ranges (e.g. [a-f] for the letters A through F).  See also Wildcard. 
  19788.  
  19789. Extension:  The final portion of a file name, preceded by a period.  For 
  19790. example, in the file name C:\DIR1\LETTER.DAT the extension is .DAT.  In a long 
  19791. filename which contains multiple periods, the extension is usually considered 
  19792. to be the portion of the name after the final period. 
  19793.  
  19794. External Command:  A program which resides in an executable file, as opposed to 
  19795. an internal command which is part of the command processor. 
  19796.  
  19797. EXTPROC:  A command processor feature which allows you to designate a specific 
  19798. external program to run a particular batch file. 
  19799.  
  19800.  
  19801. ΓòÉΓòÉΓòÉ 10.5.6. Glossary - F ΓòÉΓòÉΓòÉ
  19802.  
  19803. A B C D E G H I K L M N O P R S T U V W X 
  19804.  
  19805. FAT File System:  The traditional file system used by DOS to store files on 
  19806. diskettes and hard disks; also supported by OS/2 and Windows NT.  Uses a File 
  19807. Allocation Table to keep track of allocated and unallocated space on the disk. 
  19808.  
  19809. FAT-Compatible File Name:  See SFN. 
  19810.  
  19811. FF or Form Feed:  The ASCII character "form feed" (decimal value 12), which 
  19812. typically causes a printer to skip to a new page.  The FF character is not 
  19813. normally entered from the keyboard, but in many cases it can be generated, if 
  19814. necessary, by holding the Alt key, pressing 0-1-2, and releasing the Alt key. 
  19815.  
  19816. File Attribute:  See Attribute. 
  19817.  
  19818. File Description:  See Description. 
  19819.  
  19820. File Exclusion Range:  A Take Command feature which allows you to exclude files 
  19821. from processing by internal commands based on their names. 
  19822.  
  19823. Filename Completion:  A Take Command feature which allows you to type part of a 
  19824. filename on the command line, and have the command processor fill in the rest 
  19825. for you. 
  19826.  
  19827. Free Memory:  Usually, the amount of total memory which is unoccupied and 
  19828. available for applications. 
  19829.  
  19830.  
  19831. ΓòÉΓòÉΓòÉ 10.5.7. Glossary - G ΓòÉΓòÉΓòÉ
  19832.  
  19833. A B C D E F H I K L M N O P R S T U V W X 
  19834.  
  19835. Global Aliases:  A Take Command option which allows you to store aliases in a 
  19836. global area accessible to all copies of Take Command, so that any change made 
  19837. by one copy is immediately available to all other copies.  See also Local 
  19838. Aliases. 
  19839.  
  19840. Global Directory History:  An option which allows you to store the directory 
  19841. history in a global area accessible to all copies of Take Command, so that any 
  19842. change made by one copy is immediately available to all other copies.  See also 
  19843. Local Directory History. 
  19844.  
  19845. Global History:  A Take Command option which allows you to store the command 
  19846. history in a global area accessible to all copies of Take Command, so that any 
  19847. change made by one copy is immediately available to all other copies.  See also 
  19848. Local History. 
  19849.  
  19850. Graphics Mode:  A display mode in which output is displayed in any one of a 
  19851. range of fonts, typically in resizable windows with a variable number of text 
  19852. rows and columns, and which supports the display of graphics and pictures along 
  19853. with text.  See also Character Mode. 
  19854.  
  19855.  
  19856. ΓòÉΓòÉΓòÉ 10.5.8. Glossary - H ΓòÉΓòÉΓòÉ
  19857.  
  19858. A B C D E F H I K L M N O P R S T U V W X 
  19859.  
  19860. Hidden:  A file attribute indicating that the file should not be displayed with 
  19861. a normal DIR command, and should not be made available to programs unless they 
  19862. specifically request access to hidden files. 
  19863.  
  19864. History Window:  See Command History Window and Directory History. 
  19865.  
  19866. History:  See Command History. 
  19867.  
  19868. HMA or High Memory Area:  The area of PC memory located in the first 64K bytes 
  19869. above the 1 megabyte that DOS can address directly.  The HMA can be made 
  19870. addressable from DOS programs using special hardware facilities, or an XMS 
  19871. driver. 
  19872.  
  19873. HPFS or High Performance File System:  A file system distributed with OS/2 and 
  19874. Windows NT 3.51 and below which allows longer file names, supports larger 
  19875. drives, and provides better performance than the traditional FAT file system. 
  19876.  
  19877.  
  19878. ΓòÉΓòÉΓòÉ 10.5.9. Glossary - I ΓòÉΓòÉΓòÉ
  19879.  
  19880. A B C D E F G H K L M N O P R S T U V W X 
  19881.  
  19882. IFS or Installable File System:  A file system which can be loaded when 
  19883. required to support devices such as CD-ROM or network drives, or non-default 
  19884. disk formats like HPFS (in OS/2) or NTFS (in Windows NT).  Installable file 
  19885. systems are primarily supported 32-bit operating systems like OS/2 and Windows 
  19886. NT.  Depending on operating system design they may be loaded at boot time, or 
  19887. loaded and unloaded dynamically while the system is running. 
  19888.  
  19889. Include List:  A concise method of specifying several files or groups of files 
  19890. in the same directory, for use with all Take Command commands which take file 
  19891. names as arguments. 
  19892.  
  19893. Inheritance:  A feature which allows one copy of Take Command to "inherit" the 
  19894. .INI file data, aliases, command history, and directory history from a previous 
  19895. copy.  More generally, a system which allows one program to pass information or 
  19896. settings on to another, often to a second copy of the same program. 
  19897.  
  19898. .INI File:  The Take Command initialization file containing directives which 
  19899. set the initial configuration of the command processor. 
  19900.  
  19901. Insert Mode:  When editing text, a mode in which newly typed characters are 
  19902. inserted into the line at the cursor position, rather than overwriting existing 
  19903. characters on the line.  See also Overstrike Mode. 
  19904.  
  19905. Internal Command:  A command which is part of the command processor, as opposed 
  19906. to an external command. 
  19907.  
  19908. Internal Variables:  Environment variables created by Take Command to provide 
  19909. information about your system.  Internal variables are evaluated each time they 
  19910. are used, and are not actually stored in the environment. 
  19911.  
  19912.  
  19913. ΓòÉΓòÉΓòÉ 10.5.10. Glossary - K ΓòÉΓòÉΓòÉ
  19914.  
  19915. A B C D E F G H I L M N O P R S T U V W X 
  19916.  
  19917. Key Code:  The code passed to a program when a key is pressed on the keyboard. 
  19918. Depending on the key that is pressed, and the software handling the keyboard, 
  19919. the code can be an ASCII code, a scan code, or an extended key code. 
  19920.  
  19921. Key Mapping:  A Take Command feature which allows you to assign new keystrokes 
  19922. for command line functions such as manipulating the command history or 
  19923. completing file names. 
  19924.  
  19925. Keyboard Buffer:  A buffer which holds keystrokes you have typed that have not 
  19926. yet been used by the currently executing program. 
  19927.  
  19928. Keystroke Alias:  An alias assigned to a key, so that it can be invoked or 
  19929. recalled with a single keystroke. 
  19930.  
  19931.  
  19932. ΓòÉΓòÉΓòÉ 10.5.11. Glossary - L ΓòÉΓòÉΓòÉ
  19933.  
  19934. A B C D E F G H I K M N O P R S T U V W X 
  19935.  
  19936. Label:  A marker in a batch file, with the format :name, allowing GOTO and 
  19937. GOSUB commands to "jump" to that point in the file.  See also Volume Label. 
  19938.  
  19939. LF or Line Feed:  The ASCII character "line feed" (decimal value 10), stored in 
  19940. most ASCII files at the end of each line, after the CR character.  The LF 
  19941. character is not normally entered from the keyboard, but in many cases it can 
  19942. be generated, if necessary, by pressing Ctrl-Enter. 
  19943.  
  19944. Local Aliases:  A Take Command option which allows you to store aliases in a 
  19945. local area only accessible to the current copy of Take Command, so that a 
  19946. change made in the current copy of Take Command does not affect other copies, 
  19947. and vice versa.  See also  Global Aliases. 
  19948.  
  19949. Local Directory History:  A Take Command option which allows you to store the 
  19950. directory history in a local area only accessible to the current copy of Take 
  19951. Command, so that a change made in the current copy of Take Command does not 
  19952. affect other copies, and vice versa.  See also Global Directory History. 
  19953.  
  19954. Local History:  A Take Command option which allows you to store the command 
  19955. history in a local area only accessible to the current copy of Take Command, so 
  19956. that a change made in the current copy of Take Command does not affect other 
  19957. copies, and vice versa.  See also  Global History. 
  19958.  
  19959. Logging:  A Take Command feature, implemented via the LOG command, which allows 
  19960. you to save a record of the commands you execute. 
  19961.  
  19962.  
  19963. ΓòÉΓòÉΓòÉ 10.5.12. Glossary - M ΓòÉΓòÉΓòÉ
  19964.  
  19965. A B C D E F G H I K L N O P R S T U V W X 
  19966.  
  19967. Master Environment:  The master copy of the environment maintained by the 
  19968. command processor. 
  19969.  
  19970. Modulo:  The remainder after an integer division.  For example 11 modulo 3 is 
  19971. 2, because when 11 is divided by 3 the remainder is 2. 
  19972.  
  19973. Multiple Commands:  A Take Command feature which allows multiple commands to be 
  19974. placed on a line, separated by an ampersand [&], or another, user-defined 
  19975. character. 
  19976.  
  19977. Multitasking:  A capability of some software (and the related hardware) which 
  19978. allows two or more programs to run apparently simultaneously on the same 
  19979. computer.  Multitasking software for PC compatible systems includes operating 
  19980. environments like Windows 3, and complete operating systems like OS/2, Windows 
  19981. 95, and Windows NT. 
  19982.  
  19983.  
  19984. ΓòÉΓòÉΓòÉ 10.5.13. Glossary - N ΓòÉΓòÉΓòÉ
  19985.  
  19986. A B C D E F G H I K L M O P R S T U V W X 
  19987.  
  19988. Network:  A system which allows several computers to be connected together to 
  19989. share files, printers, modems, or other resources, and to pass electronic mail 
  19990. or other information between the systems on the network. 
  19991.  
  19992. Network File System:  Software which runs over a network to allow access to 
  19993. files on the server.  A network file system may support the same options as the 
  19994. file system used on local drives, or it may be more or less restrictive than 
  19995. the local file system about file names, disk volume capacity, and other similar 
  19996. features. 
  19997.  
  19998. NTFS or New Technology File System:  A file system distributed with Windows NT 
  19999. which allows longer file names, supports larger drives, and provides better 
  20000. performance than the traditional FAT file system. 
  20001.  
  20002. Numeric Coprocessor:  A chip which works in conjunction with an Intel 8086, 
  20003. 80286, 80386, 80486, or Pentium CPU to perform decimal arithmetic ("floating 
  20004. point") calculations.  Some 80486s and the Pentium CPU have the numeric 
  20005. coprocessor built in to the CPU chip; in all other cases it is on a physically 
  20006. separate chip, and is optional (when the coprocessor is not avilable, the CPU 
  20007. performs decimal arithmetic through other, much slower methods). 
  20008.  
  20009.  
  20010. ΓòÉΓòÉΓòÉ 10.5.14. Glossary - O ΓòÉΓòÉΓòÉ
  20011.  
  20012. A B C D E F G H I K L M N P R S T U V W X 
  20013.  
  20014. Operating System:  A collection of software which loads when the computer is 
  20015. started, provides services to other software, and ensures that programs don't 
  20016. interfere with each other while they are running. 
  20017.  
  20018. Option:  See Switch. 
  20019.  
  20020. OR:  A logical combination of two true or false conditions.  If both conditions 
  20021. are false the result is false; if either condition is true the result is true. 
  20022.  
  20023. Overstrike Mode:  When editing text, a mode in which newly typed characters 
  20024. overwrite existing characters on the line, rather than being inserted into the 
  20025. line at the cursor position.  See also Insert Mode. 
  20026.  
  20027.  
  20028. ΓòÉΓòÉΓòÉ 10.5.15. Glossary - P ΓòÉΓòÉΓòÉ
  20029.  
  20030. A B C D E F G H I K L M N O R S T U V W X 
  20031.  
  20032. Parameter:  A piece of additional information placed after a command or 
  20033. function name.  For example, in the command DIR XYZ, XYZ is a parameter.  Also 
  20034. used to refer to an alias parameter or batch file parameter. 
  20035.  
  20036. Parent Directory:  The directory in which a particular subdirectory resides, 
  20037. often seen as the directory "above" a subdirectory. 
  20038.  
  20039. Parsing:  The process Take Command performs to analyze the command line, 
  20040. perform alias and environment variable expansion, and find the appropriate 
  20041. internal command or external command to execute.  More generally, the process 
  20042. of breaking down a string or message into its individual components in order to 
  20043. process them properly. 
  20044.  
  20045. Passed Environment:  A copy of the master environment created before running an 
  20046. application, so that any changes made by the application will not affect the 
  20047. master environment. 
  20048.  
  20049. Path:  A specification of all the directories a file resides in.  For example, 
  20050. the path for C:\WPFILES\MYDIR\MEMO.TXT is C:\WPFILES\MYDIR\.  Also used to 
  20051. refer to the environment variable PATH, which contains a series of path 
  20052. specifications used when searching for external commands and batch files. 
  20053.  
  20054. Pipe:  A method for collecting the standard output of one program and passing 
  20055. it on as the standard input of the next program to be executed, signified by a 
  20056. vertical bar "|" on the command line.  See also Redirection. 
  20057.  
  20058. Previous Working Directory:  The working directory used most recently, just 
  20059. prior to the current working directory.  For example, if C:\DATA is the current 
  20060. working directory and you switch to D:\UTIL, C:\DATA then becomes the previous 
  20061. working directory. 
  20062.  
  20063. Primary Shell:  The copy of the character-mode command processor which is 
  20064. loaded by the operating system when the system boots or a session opens. 
  20065.  
  20066.  
  20067. ΓòÉΓòÉΓòÉ 10.5.16. Glossary - R ΓòÉΓòÉΓòÉ
  20068.  
  20069. A B C D E F G H I K L M N O P S T U V W X 
  20070.  
  20071. RAM or Random Access Memory:  The physical memory used to store data while a 
  20072. computer is operating.  The information in most types of RAM is lost when power 
  20073. is turned off. 
  20074.  
  20075. RAM Disk:  A pseudo "disk drive", created by software, which appears like a 
  20076. normal physical disk drive to programs.  Sometimes also called a Virtual Disk. 
  20077.  
  20078. Range:  See Date Range, Size Range, Time Range, and File Exclusion Range. 
  20079.  
  20080. Read-Only:  A file attribute indicating that the file can be read, but not 
  20081. written or deleted by the operating system or the command processor unless 
  20082. special commands are used. 
  20083.  
  20084. Reboot:  The process of restarting the computer with software, with the 
  20085. keyboard (e.g. by pressing Ctrl-Alt-Del), by pressing a reset button, or by 
  20086. turning the power off and back on.  See also Cold Reboot and Warm Reboot. 
  20087.  
  20088. Redirection:  A method for collecting output from a program in a file, and/or 
  20089. of providing the input for a program from a file.  See also Pipe. 
  20090.  
  20091. REXX:  A file and text processing language developed by IBM, and available on 
  20092. many PC and other platforms. 
  20093.  
  20094. ROM or Read Only Memory:  A physical memory device used to store information 
  20095. which cannot be readily modified, such as the BIOS built into each PC system. 
  20096. The information in ROM is typically retained when power is turned off. 
  20097.  
  20098. Root Directory:  The first directory on any disk, from which all other 
  20099. directories are "descended."  The root directory is referenced with a single 
  20100. backslash [\]. 
  20101.  
  20102.  
  20103. ΓòÉΓòÉΓòÉ 10.5.17. Glossary - S ΓòÉΓòÉΓòÉ
  20104.  
  20105. A B C D E F G H I K L M N O P R T U V W X 
  20106.  
  20107. Scan Code:  The physical code for a key on the PC keyboard.  For the original 
  20108. U.S. English keyboard layout the scan code represents the physical position of 
  20109. the key, starting with 1 for the key in the upper left corner (Esc), and 
  20110. increasing from left to right and top to bottom.  This order will vary for more 
  20111. recent keyboards or those designed for other countries or languages. 
  20112.  
  20113. Search Path:  See PATH. 
  20114.  
  20115. Secondary Shell:  A copy of the command processor which is started by another 
  20116. program, rather than by the operating system. 
  20117.  
  20118. Session:  A general term for the individual windows or tasks started by a 
  20119. multitasking system.  For example, under OS/2 you might run a DOS application 
  20120. in one session, and Take Command in another. 
  20121.  
  20122. Shell:  See Command Processor.  Also used to refer to a program which gives 
  20123. access to operating system functions and commands through a menu- or 
  20124. mouse-driven system, or which replaces the primary user interface of the 
  20125. operating system. 
  20126.  
  20127. Size Range:  A Take Command feature which allows you to select files based on 
  20128. their size. 
  20129.  
  20130. Source:  In file processing commands (e.g. COPY or MOVE), the original files 
  20131. before any copying or modification has taken place, i.e., those specified 
  20132. earlier on the command line.  See also Destination. 
  20133.  
  20134. Stack:  An area of memory used by any program to store temporary data while the 
  20135. program is running; more generally, any such storage area where the last item 
  20136. stored is normally the first one removed. 
  20137.  
  20138. Standard Error, Standard Input, and Standard Output:  The file(s) or character 
  20139. device(s) where a program respectively displays error messages, obtains its 
  20140. normal input, and displays its normal output.  Standard error, standard input, 
  20141. and standard output normally refer to the console, unless redirection is used. 
  20142.  
  20143. Subdirectory:  Any directory other than the root directory. 
  20144.  
  20145. Subtree:  See Directory Tree. 
  20146.  
  20147. Swap File:  A disk file created by an operating system or a program to store 
  20148. unused information on disk, and thereby free up memory for other purposes. 
  20149.  
  20150. Switch:  A parameter for an internal command or application which specifies a 
  20151. particular behavior or setting.  For example, the command "DIR /P" might be 
  20152. referred to as "having the /P switch set". 
  20153.  
  20154. System:  A file attribute indicating that the file belongs to the operating 
  20155. system or command processor, and should not be accessed by other programs. 
  20156.  
  20157.  
  20158. ΓòÉΓòÉΓòÉ 10.5.18. Glossary - T ΓòÉΓòÉΓòÉ
  20159.  
  20160. A B C D E F G H I K L M N O P R S U V W X 
  20161.  
  20162. Target:  See Destination. 
  20163.  
  20164. TCEXIT:  A batch file which is executed whenever Take Command exits. 
  20165.  
  20166. TCSTART:  A batch file which is executed whenever Take Command starts. 
  20167.  
  20168. Time Range:  A Take Command feature which allows you to select files based on 
  20169. the time they were last modified. 
  20170.  
  20171. Time Stamp:  Information stored in a file's directory entry to show the times 
  20172. at which the file was created, last modified, and last accessed.  Creation time 
  20173. is not available in the FAT file system; last access time is only available in 
  20174. the HPFS and NTFS file systems.  See also Date Stamp. 
  20175.  
  20176. Tree:  See Directory Tree. 
  20177.  
  20178.  
  20179. ΓòÉΓòÉΓòÉ 10.5.19. Glossary - U ΓòÉΓòÉΓòÉ
  20180.  
  20181. A B C D E F G H I K L M N O P R S T V W X 
  20182.  
  20183. UMB or Upper Memory Block:  An XMS Upper Memory Block, whose address is above 
  20184. the end of base memory (normally, above 640K), but within the 1 megabyte of 
  20185. memory that DOS can address directly. 
  20186.  
  20187. UNC or Universal Naming Convention:  A common method for accessing files on a 
  20188. network drive without using a "mapped" drive letter.  Names specified this way 
  20189. are called UNC names, and typically appear as \\server\volume\path\filename, 
  20190. where server is the name of the network server where the files reside, volume 
  20191. is the name of a disk volume on that server, and the path\filename portion is a 
  20192. directory name and file name. 
  20193.  
  20194.  
  20195. ΓòÉΓòÉΓòÉ 10.5.20. Glossary - V ΓòÉΓòÉΓòÉ
  20196.  
  20197. A B C D E F G H I K L M N O P R S T U W X 
  20198.  
  20199. Variable Expansion:  The process of scanning a command line and replacing each 
  20200. environment variable name, alias parameter, or batch file parameter with its 
  20201. value. 
  20202.  
  20203. Variable Functions:  Functions provided by Take Command to manipulate strings, 
  20204. dates, and filenames; perform arithmetic; read and write files; and perform 
  20205. other similar functions.  Variable functions are similar to static environment 
  20206. variables or internal variables, but have parameters and can perform actions 
  20207. rather than just returning static information. 
  20208.  
  20209. Variable:  See Alias Parameter, Batch File Parameter, and Environment Variable. 
  20210.  
  20211. Virtual Disk:  See RAM Disk. 
  20212.  
  20213. Volume Label:  A special, hidden file placed on any disk, whose name 
  20214. constitutes a "label" for the entire disk. 
  20215.  
  20216. Volume:  See Disk Drive. 
  20217.  
  20218.  
  20219. ΓòÉΓòÉΓòÉ 10.5.21. Glossary - W ΓòÉΓòÉΓòÉ
  20220.  
  20221. A B C D E F G H I K L M N O P R S T U V X 
  20222.  
  20223. Warm Reboot:  The process of restarting the computer with software, or with the 
  20224. keyboard (e.g. by pressing Ctrl-Alt-Del), typically without physically 
  20225. resetting any hardware devices.  See also Cold Reboot. 
  20226.  
  20227. White Space Character:  A character used to separate arguments on the command 
  20228. line.  The white space characters recognized by Take Command are the space, 
  20229. tab, and comma. 
  20230.  
  20231. Wildcard:  A character ("*" or "?") used in a filename to specify the 
  20232. possibility that any single character ("?") or sequence of characters ("*") can 
  20233. occur at that point in the actual name.  See also Extended Wildcard. 
  20234.  
  20235. Windows NT File System:  See NTFS. 
  20236.  
  20237.  
  20238. ΓòÉΓòÉΓòÉ 10.5.22. Glossary - X ΓòÉΓòÉΓòÉ
  20239.  
  20240. A B C D E F G H I K L M N O P R S T U V W 
  20241.  
  20242. XOR (exclusive OR):  A logical combination of two true or false conditions.  If 
  20243. both conditions are false or both conditions are true the result is false; if 
  20244. either condition is true and the other is false the result is true.