home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 October / PCO1097.ISO / FilesBBS / OS2 / TCOS2200.ARJ / TCOS2200.ZIP / TCMDOS2.INF (.txt) < prev    next >
Encoding:
OS/2 Help File  |  1997-07-30  |  610.7 KB  |  19,902 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. About Take Command for OS/2 Help ΓòÉΓòÉΓòÉ
  3.  
  4.                               Take Command for OS/2
  5.                             Version 2.00 Help System
  6.  
  7.                 Text by Hardin Brothers, Tom Rawson, and Rex Conn
  8.  
  9. Program and Text Copyright 1988 - 1997, JP Software Inc., All Rights Reserved. 
  10.  
  11. Take Command and 4DOS are registered trademarks of JP Software Inc. 4DOS, 4OS2, 
  12. and 4NT are JP Software Inc.'s trademarks for its family of character-mode 
  13. command processors.  JP Software, jpsoft.com, and all JP Software designs and 
  14. logos are also trademarks of JP Software Inc. Other product and company names 
  15. are trademarks of their respective owners. 
  16.  
  17. [07/97 - 2.00B] 
  18.  
  19.  
  20. ΓòÉΓòÉΓòÉ 2. Using Take Command ΓòÉΓòÉΓòÉ
  21.  
  22. We developed Take Command to bring the power and convenience of our popular 
  23. 4DOS, 4NT, and 4OS2 programs to the Windows and OS/2 desktops. Whether you are 
  24. a computer novice or an experienced user, Take Command will help you get the 
  25. most out of your computer system. 
  26.  
  27. You're probably already familiar with graphical applications running under 
  28. Windows or OS/2, and with the command line, but you may not be used to seeing 
  29. them combined in one product.  Most graphical applications offer limited 
  30. command-line capability at best, and most command-line utilities aren't 
  31. designed for a graphical environment like Windows or the OS/2 desktop. 
  32.  
  33. We designed Take Command to give you the best of both worlds.  You'll probably 
  34. find it most useful when you need to perform tasks like managing your hard 
  35. disk, scripting a series of steps with an alias or batch file, or starting 
  36. applications.  There are graphical utilities that perform some of these tasks, 
  37. but often you may find it more convenient or productive to perform them from 
  38. the command line. 
  39.  
  40. Take Command can use fewer resources than starting a traditional character- 
  41. mode command-line session, and, unlike a traditional command line session, it 
  42. looks and feels like the other graphical programs you use. 
  43.  
  44. Take Command also offers a host of features that couldn't exist at all in a 
  45. command-line utility.  For example, you can pop up simple dialogs from a batch 
  46. file, pass keystrokes to other graphical applications, and use a dialog to find 
  47. files or text on any of your disks. 
  48.  
  49. In this section, you'll find a wealth of information about using Take Command, 
  50. including: 
  51.  
  52.              Using the Take Command Interface 
  53.  
  54.              Using the Command Line 
  55.  
  56.              File Selection 
  57.  
  58.              Directory Navigation 
  59.  
  60.              Other Features 
  61.  
  62.  
  63. ΓòÉΓòÉΓòÉ 2.1. Using the Take Command Interface ΓòÉΓòÉΓòÉ
  64.  
  65. In this section, you'll find general information about using the Take Command 
  66. interface, including: 
  67.  
  68.          Using an OS/2 "Graphical" Command Line 
  69.  
  70.          Starting Applications 
  71.  
  72.          The Take Command Screen 
  73.  
  74.          Take Command for 4DOS and 4OS2 Users 
  75.  
  76.  
  77. ΓòÉΓòÉΓòÉ 2.1.1. Using an OS/2 "Graphical" Command Line ΓòÉΓòÉΓòÉ
  78.  
  79. Take Command for OS/2 is a new environment that lets you perform tasks easily 
  80. under OS/2. You can use it to execute commands, start applications, and perform 
  81. other work at the command line. 
  82.  
  83. In the past you may have accomplished some of these tasks by starting an OS/2 
  84. character-mode session or running 4OS2, JP Software's replacement character- 
  85. mode command processor. 
  86.  
  87. In either case -- and especially if you are an experienced user of 4OS2 -- 
  88. you'll find plenty of familiar features in Take Command.  You'll  also find a 
  89. lot that's new and different. 
  90.  
  91. While Take Command includes most of the command-line, batch file, and other 
  92. capabilities provided by 4OS2, and goes well beyond those provided by CMD.EXE, 
  93. the OS/2 environment places a few limitations on how Take Command operates. 
  94.  
  95. These limitations are minor -- for example, some keystrokes are interpreted 
  96. differently to conform more closely to OS/2 conventions, and there are some 
  97. considerations when running batch files or OS/2 aliases designed to work in 
  98. character mode under a graphical program like Take Command.  All of these 
  99. differences are covered in more detail under Take Command for 4DOS and 4OS2 
  100. Users. 
  101.  
  102. Take Command also offers a wide range of new OS/2 PM-related features which are 
  103. not available in 4OS2 or CMD.EXE, including: 
  104.  
  105.         *   A built-in scrollback buffer that lets you look back through the 
  106.             output from past commands. 
  107.  
  108.         *   A standard OS/2 menu bar for access to many commonly-used Take 
  109.             Command features. 
  110.  
  111.         *   A status bar showing memory and resource usage. 
  112.  
  113.         *   A customizable tool bar that gives you quick access to commands and 
  114.             applications. 
  115.  
  116.         *   Dialogs (accessible from the Options and Utilities menus) for 
  117.             editing environment variables, aliases, file descriptions, and 
  118.             startup parameters. 
  119.  
  120.         *   High-speed, dialog-based file and text search (see "Search 
  121.             Files/Text" on the Utilities menu). The new FFIND command gives you 
  122.             the same capabilities at the Take Command prompt. 
  123.  
  124.         *   Commands like ACTIVATE, MSGBOX, and QUERYBOX that allow you to use 
  125.             OS/2 features and control OS/2 applications from your batch files. 
  126.  
  127.  
  128. ΓòÉΓòÉΓòÉ 2.1.2. Starting Applications ΓòÉΓòÉΓòÉ
  129.  
  130. Take Command offers several ways to start applications.  (For special 
  131. considerations related to starting character-mode applications, see the next 
  132. topic). 
  133.  
  134. First, you can simply type the name of any OS/2, DOS, or Windows application at 
  135. the Take Command prompt.  As long as the application's executable file is in 
  136. one of the standard search directories (see below), Take Command will find it 
  137. and start it.  If you type the full path name of the executable file at the 
  138. prompt the application will be started even if it is not in one of the standard 
  139. search directories. 
  140.  
  141. Take Command offers two methods to simplify and speed up access to 
  142. yourapplications.  One is to create an alias, for example: 
  143.  
  144.         [c:\] alias myapp d:\apps\myapp.exe
  145.  
  146. You can also use the Tool Bar To start frequently-used applications.  For 
  147. example, a tool bar button named MyApp which invokes the command 
  148. d:\apps\myapp.exe would accomplish the same thing as the alias shown above. 
  149.  
  150. You can use these methods together.  For example, if you define the alias shown 
  151. above you can set up a tool bar button called MyApp and simply use the command 
  152. myapp, which would then invoke the previously-defined alias. 
  153.  
  154. You can also start an application by typing the name of a data file associated 
  155. with the application.  Take Command will examine the file's extension and run 
  156. the appropriate application, based on Take Command's executable extensions. 
  157.  
  158. For additional flexibility, you can also start applications with the START 
  159. command.  START provides a number of switches to customize the way an 
  160. application is started. 
  161.  
  162. Searching for Applications 
  163.  
  164. When you start an application without specifying a path, Take Command searches 
  165. for the application in the current directory and then all directories on the 
  166. PATH.  (If you do enter an explicit path, Take Command will only look in the 
  167. directory you specified.) 
  168.  
  169. If you enter a file name with no extension, Take Command will search each 
  170. directory for a matching .COM, .EXE, .BTM, or .CMD file, then for a file 
  171. matching a Take Command executable extension.  If no such file is found Take 
  172. Command will move on to the next directory in the search sequence. 
  173.  
  174. Waiting for Applications to Finish 
  175.  
  176. When you start an application from the prompt, normally Take Command does not 
  177. wait for the application to finish before returning to the prompt.  This allows 
  178. you to continue your work in Take Command while the application is running. 
  179. You can change this default behavior for applications started from the prompt, 
  180. using the ExecWait directive in TCMDOS2.INI, or the Wait for Completion option 
  181. on the Options 2 page of the configuration notebook.  These options do not 
  182. affect batch files; Take Command always waits for applications started from 
  183. batch files. 
  184.  
  185. Character-mode applications which run inside the Take Command window are an 
  186. exception to this rule.  Take Command always waits for such applications to 
  187. finish before displaying a new prompt, regardless of the ExecWait setting. For 
  188. more information see the next section, on starting character-mode applications. 
  189.  
  190. You can also force Take Command to wait for an application to finish with the 
  191. START command with the /WAIT switch.  START can also control many other aspects 
  192. of how your applications are started. 
  193.  
  194.  
  195. ΓòÉΓòÉΓòÉ 2.1.3. Starting Character-Mode Applications ΓòÉΓòÉΓòÉ
  196.  
  197. Take Command for OS/2 starts OS/2 "graphical" applications in their own 
  198. windows, just as if you had started them from the desktop.  By default, it also 
  199. creates a separate character-mode window to run each DOS or OS/2 character mode 
  200. application you start. 
  201.  
  202. If you prefer, you can run some DOS and OS/2 character-mode applications within 
  203. the Take Command window, using an OS/2 facility called "named pipes." When you 
  204. use this option, output from the application is displayed in the Take Command 
  205. window, and no separate window is created. 
  206.  
  207. Because not all applications work properly with named pipes, you must specify 
  208. which TTY applications should be run within the Take Command window.  To do so, 
  209. use the TTY Applications Dialog (accessible from the Setup menu). The dialog 
  210. lets you specify the application name, whether the application is a DOS or OS/2 
  211. character-mode program, and whether or not the application is currently enabled 
  212. to run within the Take Command window.  See the section on the TTY Applications 
  213. dialog for details of the dialog fields and their meanings.  Information 
  214. entered in this dialog is stored in the [TTYApps] section of TCMDOS2.INI. 
  215.  
  216. Your copy of Take Command comes with a list of applications which can be run 
  217. within the Take Command window.  The list is visible when you open the dialog. 
  218. However, all applications in the list are initially disabled to ensure maximum 
  219. compatibility.  This prevents problems if you have a program with the same name 
  220. as one we tested, but which is not the same program.  To enable any 
  221. application, select it and check the Enable box.  Us the Add button to add your 
  222. own applications to the list. 
  223.  
  224. When you include an application name in the dialog, you can use an executable 
  225. file name (e.g., CHKDSK.COM), or a full path name (e.g., C:\OS2\CHKDSK.COM). 
  226. If you use the full path name, the entry will apply only to that specific file. 
  227. If you use just the file name, the entry will apply to any file of that name, 
  228. regardless of its location.  If you use both, the full path name entry will be 
  229. used when you execute that specific file, and the file name entry will be used 
  230. for other files of the same name. 
  231.  
  232. As an advanced option, you can also enter a path without a filename into the 
  233. dialog (e.g. C:\OS2UTILS).  This will tell Take Command to treat all DOS or 
  234. OS/2 character-mode programs in the specified directory as TTY applications. 
  235. This approach is useful if you have many applications of the same type in a 
  236. single directory, but before you use it you should review the contents of the 
  237. directory carefully to be sure all the character-mode programs stored there are 
  238. compatible with Take Command's TTY application support. 
  239.  
  240. If you do choose to configure an entire directory for TTY application support, 
  241. you can create exceptions by entering specific filenames from that directory 
  242. into the dialog as well.  For example, if you enable the directory C:\OS2UTILS 
  243. for TTY support, you could also add a listing for C:\OS2UTILS\MYAPP.EXE (or 
  244. simply for MYAPP.EXE, with no path), and make sure the Enable box in the dialog 
  245. is not checked for the MYAPP entry.  This would prevent MYAPP.EXE from being 
  246. treated as a TTY application despite the entry for the directory as a whole. 
  247. If you use this approach, the two listings can appear in any order. 
  248.  
  249. Once an application is listed in the dialog and enabled, it will run within the 
  250. Take Command window whenever you start it from the command line.  However, if 
  251. you start the application with the START command (without the /TTY switch, see 
  252. below), the program will start in its own window. 
  253.  
  254. You can explicitly start any character-mode application within the Take Command 
  255. window by using the START command's /TTY switch.  For example: 
  256.  
  257.      start /tty c:\os2\chkdsk.com
  258.  
  259. Using this switch is the same as entering the application in the TTY 
  260. Applications dialog and enabling it.  Using START /TTY is a convenient way to 
  261. experiment with your DOS and OS/2 character-mode applications to see if they 
  262. are compatible with Take Command's TTY application support.  See the START 
  263. command or Reference Manual for additional details. 
  264.  
  265. The only character-mode programs which will run properly within the Take 
  266. Command window are those which can handle input and output delivered through 
  267. pipes.  In technical terms, these are programs which read all input from the 
  268. DOS or OS/2 "standard input" device, and write output to the "standard output" 
  269. or "standard error" device.  Applications which use command-line parameters 
  270. (rather than user input or "question and answer" dialogs), and which use simple 
  271. scrolling (TTY-style) output, are the ones most likely to work well. Common 
  272. applications which run successfully in the Take Command window include program 
  273. development software like compilers and linkers, and some command-line 
  274. utilities.  Programs which use "direct video" output to write complex screen 
  275. displays, require dialog with the user, or display graphics, must be run in 
  276. their own window. 
  277.  
  278. Many OS/2 character-mode programs meet this test, as do some DOS programs. 
  279. However, some programs -- especially DOS programs which appear to work this way 
  280. may in fact use internal tricks or contain internal restrictions which are not 
  281. compatible with piped input and output. 
  282.  
  283. For this reason, you will need to experiment to determine which of your DOS and 
  284. OS/2 character-mode applications can run successfully within the Take Command 
  285. window.  If you try an application and it does not work, first try using Ctrl-C 
  286. or Ctrl-Break to interrupt the application.  If this does not work you can 
  287. close the Take Command window with the mouse to clean up the offending 
  288. application, then restart Take Command from your desktop. Applications which do 
  289. not run properly within the Take Command window can still be run from Take 
  290. Command, but will have to use their own window. 
  291.  
  292. TTY application support for DOS programs depends on the TCNPDOS.COM file 
  293. distributed with Take Command.  This file must be available in the same 
  294. directory as TCMDOS2.EXE.  If it is not, Take Command will display an error 
  295. message if you try to run a DOS application within the Take Command window. 
  296.  
  297.  
  298. ΓòÉΓòÉΓòÉ 2.1.4. The Take Command Screen ΓòÉΓòÉΓòÉ
  299.  
  300. The Take Command screen has five parts: the title bar, menu bar, toolbar, 
  301. command window, and status bar. 
  302.  
  303. The Title Bar is the same as the one used in most OS/2 applications, with a 
  304. control menu button on the left and the maximize and minimize buttons on the 
  305. right.  You can change the text that appears on the Title Bar, and adjust the 
  306. size of the Take Command window, with the WINDOW command. 
  307.  
  308. The command window accepts your input at the prompt, and displays Take 
  309. Command's output.  You can use the scroll bars or the up arrow and down arrow 
  310. keys to view text that has scrolled off the window.  You can also save the 
  311. contents of the command window and scrollback buffer to a file, copy text from 
  312. the command window to the clipboard, and copy text from the clipboard or the 
  313. command window to the command line. 
  314.  
  315. If you use a laptop or LCD screen and find the "I-Beam" cursor in the Take 
  316. Command window difficult to see, use an IBeamCursor = No directive in the 
  317. [TakeCommand] section of the TCMDOS2.INI file to force the use of an arrow 
  318. cursor in all parts of the window. 
  319.  
  320. The next few sections discuss the menu bar, tool bar, and status bar portions 
  321. of the Take Command screen. 
  322.  
  323.  
  324. ΓòÉΓòÉΓòÉ 2.1.4.1. Take Command Menus ΓòÉΓòÉΓòÉ
  325.  
  326. Like all OS/2 PM applications, Take Command displays a menu bar along the top 
  327. of the Take Command window.  To select a particular menu item, click once on 
  328. the menu heading, or use Alt+x where x is the underlined letter on the menu bar 
  329. (for example, Alt+F displays the File menu). 
  330.  
  331. The items on the menu bar allow you to select a variety of Take Command 
  332. features: 
  333.  
  334.             File Menu 
  335.             Edit Menu 
  336.             Apps Menu 
  337.             Options or Setup Menu 
  338.             Utilities Menu 
  339.             Help Menu 
  340.  
  341.  
  342. ΓòÉΓòÉΓòÉ 2.1.4.1.1. File Menu ΓòÉΓòÉΓòÉ
  343.  
  344. The File menu allows you to save or print the screen buffer, or exit Take 
  345. Command. 
  346.  
  347.  Save to File... 
  348.      Saves the contents of the screen buffer to a file.  A Save As dialog box 
  349.      appears in which you can enter the name of the file that you wish to use. 
  350.  
  351.  Print... 
  352.      Sends the contents of the screen buffer to the printer.  A Print dialog 
  353.      box appears in which you can select print options. 
  354.  
  355.  Refresh 
  356.      Redraws everything on the Take Command window (use this selection if the 
  357.      display appears incorrect, for example if it is not repainted properly 
  358.      after another application exits).  You can also press F5 at the Take 
  359.      Command prompt to refresh the screen. 
  360.  
  361.  Shutdown 
  362.      Shuts down OS/2. 
  363.  
  364.  Exit 
  365.      Ends the current Take Command session. 
  366.  
  367.  
  368. ΓòÉΓòÉΓòÉ 2.1.4.1.2. Edit Menu ΓòÉΓòÉΓòÉ
  369.  
  370. The Edit menu allows you to copy text between the Take Command window and the 
  371. OS/2 clipboard. 
  372.  
  373. To use the the Copy command you must first select a block of text with the 
  374. mouse or with the Select All command, below.  If you hold down the mouse button 
  375. 2 while you select a block of text, that block will be copied to the clipboard 
  376. automatically when you release the button. 
  377.  
  378. Note that you can also access the clipboard with redirection to or from the 
  379. CLIP: device, or with the @CLIP variable function. 
  380.  
  381. For more information on copying text see Highlighting and Copying Text. 
  382.  
  383.  Cut 
  384.      Removes selected text from the command line and copies it to the OS/2 
  385.      clipboard.  This option is only available when you have selected text on 
  386.      the command line; it does not apply to selections anywhere else on the 
  387.      screen, or in the scrollback buffer. 
  388.  
  389.  Copy 
  390.      Copies selected text from the Take Command screen buffer to the OS/2 
  391.      clipboard. 
  392.  
  393.  Paste 
  394.      Copies text from the OS/2 clipboard to the Take Command command line.  If 
  395.      the text you insert contains a line feed or carriage return, the command 
  396.      line will be executed just as if you had pressed Enter.  If you insert 
  397.      multiple lines, each line will be treated like a command typed at the 
  398.      prompt. 
  399.  
  400.  Delete 
  401.      Removes selected text from the command line.  Like Cut, this option is 
  402.      only available when you have selected text on the command line. 
  403.  
  404.  Copy + Paste 
  405.      Copies the selected text directly to the command line. 
  406.  
  407.  Select All 
  408.      Marks the entire contents of the Take Command scrollback buffer as 
  409.      selected text. 
  410.  
  411.  
  412. ΓòÉΓòÉΓòÉ 2.1.4.1.3. Apps Menu ΓòÉΓòÉΓòÉ
  413.  
  414. The Apps menu allows you to start applications or switch to the desktop. 
  415.  
  416.  Run 
  417.      Displays the run dialog from which you can run an application or batch 
  418.      file.  Take Command remembers the commands you have run from this dialog 
  419.      in the current session.  To select from this list click on the drop-down 
  420.      arrow to the right of the "Command Line" field, or press Alt-down arrow 
  421.      [Alt-].  To scroll through the list line by line press the down arrow 
  422.      []. 
  423.  
  424.  Goto Desktop 
  425.      Minimizes the Take Command window and switches the input focus to the OS/2 
  426.      desktop. 
  427.  
  428.  OS/2 window 
  429.      Starts an OS/2 text-mode window (using the command processor defined in 
  430.      the SET OS2_SHELL statement in CONFIG.SYS). 
  431.  
  432.  DOS window 
  433.      Starts a windowed DOS text-mode window (using the command processor 
  434.      defined in the SHELL statement in CONFIG.SYS). 
  435.  
  436.  Win 3.x Window 
  437.      Starts a seamless WinOS2 window in 386 enhanced mode, running your Windows 
  438.      shell (e.g., Program manager or Take Commad/16). 
  439.  
  440.  
  441. ΓòÉΓòÉΓòÉ 2.1.4.1.4. Options or Setup Menu ΓòÉΓòÉΓòÉ
  442.  
  443. The Setup menu lets you control the configuration of Take Command. 
  444.  
  445.  Configure Take Command 
  446.      Opens the configuration notebook which you can use to change the 
  447.      configuration of Take Command. 
  448.  
  449.  Configure Tool Bar 
  450.      Opens the toolbar dialog, to allow you to create or modify buttons for the 
  451.      Take Command tool bar. 
  452.  
  453.  Configure TTY Apps 
  454.      Opens the TTY applications dialog in which you can specify character-mode 
  455.      DOS and OS/2 applications to run under Take Command's TTY application 
  456.      support. 
  457.  
  458.  Font 
  459.      Displays a font selection submenu which allows you to choose the font for 
  460.      the command window, tool bar, or status bar.  The command window is 
  461.      restricted to monospaced fonts (having the same fixed width for all 
  462.      characters, rather than varying the width based on each character's 
  463.      shape), but the tool bar and status bar can use any installed font. 
  464.  
  465.           Command window:          Selects the font for the main Take Command 
  466.                                    window.  You can choose any monospaced font 
  467.                                    that has been properly installed in OS/2. 
  468.                                    (A monospaced font is one which uses the 
  469.                                    same fixed width for all characters, rather 
  470.                                    than varying the width based on each 
  471.                                    character's shape.)  When you change the 
  472.                                    font, everything in the command window is 
  473.                                    displayed in the new font.  You cannot mix 
  474.                                    fonts in the Take Command command window. 
  475.  
  476.                                    Note:  Some fonts will not display all of 
  477.                                    the characters used by Take Command.  In 
  478.                                    particular, the DRAWBOX, DRAWHLINE, and 
  479.                                    DRAWVLINE commands use line-drawing 
  480.                                    characters which are not included in many 
  481.                                    standard fonts.  The standard OS/2 
  482.                                    monospaced fonts (Courier, System 
  483.                                    Monospaced, and System VIO) do include these 
  484.                                    characters when an English language 
  485.                                    character set is used. 
  486.  
  487.                                    You can experiment with different fonts by 
  488.                                    using DRAWBOX or a similar command to 
  489.                                    display line drawing characters in the 
  490.                                    command window.  Then use Select Font to 
  491.                                    choose a different font.  When you leave the 
  492.                                    dialog, the new font will be used to display 
  493.                                    the entire command window, including the 
  494.                                    line drawing characters.  You can select 
  495.                                    different fonts until you find one that 
  496.                                    satisfies you. 
  497.  
  498.           Tool bar:                Selects the font for the tool bar. 
  499.  
  500.           Status bar:              Selects the font for the status bar. 
  501.  
  502.  Logging 
  503.      Controls logging via a submenu with two choices (see the LOG command for 
  504.      more details on logging): 
  505.  
  506.           Command:         Enables or disables command logging using the 
  507.                            default OS2LOG file or the file you have chosen with 
  508.                            the LOG command or the LogName directive in the 
  509.                            TCMDOS2.INI file. 
  510.  
  511.           History:         Enables or disables command history logging using 
  512.                            the default OS2HLOG file or the file you have 
  513.                            specified with the LOG /H command or the HistLogName 
  514.                            directive in the TCMDOS2.INI file. 
  515.  
  516.  Show Tool Bar 
  517.      Select this item to enable or disable the Take Command tool bar, which 
  518.      appears near the top of the Take Command window.  The tool bar will not 
  519.      appear unless at least one item has been defined for it with the Configure 
  520.      Tool Bar command, above. 
  521.  
  522.  Show Status Bar 
  523.      Select this item to enable or disable the Take Command status bar, which 
  524.      appears near the bottom of the Take Command window. 
  525.  
  526.  
  527. ΓòÉΓòÉΓòÉ 2.1.4.1.5. Utilities Menu ΓòÉΓòÉΓòÉ
  528.  
  529. The Utilities menu invokes dialogs to search for files and text or to set up 
  530. Take Command aliases, environment variables, or file descriptions.  It can also 
  531. start your editor. 
  532.  
  533.  Search Files/Text 
  534.      Opens the search files dialog which lets you search for files or text 
  535.      interactively (see FFIND to search from the command line). 
  536.  
  537.      Once Take Command has created a list of files based on your 
  538.      specifications, you can double-click on a file name and Take Command will 
  539.      display an information box about the file. From the information box, you 
  540.      can choose to list, edit, or run the file. 
  541.  
  542.  Descriptions 
  543.      Opens the descriptions dialog in which you can view and change the 
  544.      descriptions of files in any directory available on your system.  See 
  545.      DESCRIBE for details on file descriptions. 
  546.  
  547.  Aliases 
  548.      Opens the aliases dialog in which you can view and change the list of 
  549.      current aliases.  You can also use this window to import aliases from a 
  550.      file or save all current aliases in a file.  Any changes you make will 
  551.      take effect as soon as you close the Aliases window. For more information 
  552.      on aliases see the ALIAS command. 
  553.  
  554.  Environment 
  555.      Opens the environment dialog in which you can view and change the current 
  556.      environment.  Any changes you make will be immediately recorded in Take 
  557.      Command's environment. 
  558.  
  559.  Editor 
  560.      Starts the OS/2 E editor or any other editor you have specified with the 
  561.      Editor directive in TCMDOS2.INI or on the Commands page of the 
  562.      Configuration Notebook. 
  563.  
  564.  
  565. ΓòÉΓòÉΓòÉ 2.1.4.1.6. Help Menu ΓòÉΓòÉΓòÉ
  566.  
  567.  Help Index 
  568.      Displays the index for the Take Command help. 
  569.  
  570.  General Help 
  571.      Displays the table of contents for the Take Command help. 
  572.  
  573.  Keys Help 
  574.      Displays help for the Take Command command line.  From this help page you 
  575.      can select a subtopic which covers the keystroke information you need 
  576.      (e.g. command line editing, command history window, etc.). 
  577.  
  578.  Product Information 
  579.      Displays Take Command version, copyright, and license information. 
  580.  
  581.  
  582. ΓòÉΓòÉΓòÉ 2.1.4.2. Tool Bar ΓòÉΓòÉΓòÉ
  583.  
  584. The Take Command screen has an optional Tool Bar that you can use to execute 
  585. internal or external commands, aliases, batch files, and applications with the 
  586. click of a mouse. 
  587.  
  588. To create buttons for the Tool Bar, select Configure Tool Bar from the Setup 
  589. menu.  This selection displays the tool bar dialog. 
  590.  
  591. You can define up to 24 Tool Bar buttons. 
  592.  
  593. When you first install Take Command a sample tool bar is included.  Use the 
  594. tool bar dialog to remove or modify any of the sample buttons, or add buttons 
  595. of your own. 
  596.  
  597. To enable or disable the Tool Bar, use the ToolBarOn directive in TCMDOS2.INI, 
  598. the Tool Bar Enable setting on the Display page in the configuration notebook, 
  599. or the Show Tool Bar command in the Setup menu . 
  600.  
  601. The configuration dialog and TCMDOS2.INI settings are modified when you enable 
  602. and disable the tool bar from the Setup menu.  This preserves the tool bar 
  603. state when you close Take Command, and restores it the next time you start a 
  604. Take Command session. 
  605.  
  606.  
  607. ΓòÉΓòÉΓòÉ 2.1.4.3. Status Bar ΓòÉΓòÉΓòÉ
  608.  
  609. The Take Command screen has an optional Status Bar that shows information about 
  610. your system.  To enable or disable the Status Bar, use the StatusBarOn 
  611. directive in TCMDOS2 .INI, the Status Bar Enable setting on the Display page in 
  612. the configuration notebook, or the Show Status Bar command in the Setup menu. 
  613.  
  614. The configuration dialog and TCMDOS2.INI settings are modified when you enable 
  615. and disable the status bar from the Setup menu.  This preserves the tool bar 
  616. state when you close Take Command, and restores it the next time you start a 
  617. Take Command session. 
  618.  
  619. The Status Bar shows 5 pieces of information: 
  620.  
  621.     The Date, based on the OS/2 clock. 
  622.     The Time, based on the OS/2 clock. 
  623.     The size of the OS/2 swap file. 
  624.     The state of the Caps Lock key on the keyboard. 
  625.     The state of the Num Lock key on the keyboard. 
  626.  
  627. If the OS/2 swap file is not stored in the \OS2\SYSTEM directory of the boot 
  628. drive, you must use the SwapFilePath directive in TCMDOS2.INI or Take Command 
  629. will not be able to display the swap file size in the status bar. 
  630.  
  631.  
  632. ΓòÉΓòÉΓòÉ 2.1.4.4. Dialogs ΓòÉΓòÉΓòÉ
  633.  
  634. The Take Command menus invoke several dialog boxes: 
  635.  
  636.     Save To File Dialog 
  637.     Print Dialog 
  638.     Run Dialog 
  639.     Configuration Notebook 
  640.     Toolbar Dialog 
  641.     TTY Apps Dialog 
  642.     Search Files Dialog 
  643.     Descriptions Dialog 
  644.     Aliases Dialog 
  645.     Environment Dialog 
  646.  
  647.  
  648. ΓòÉΓòÉΓòÉ 2.1.4.4.1. Save To File Dialog ΓòÉΓòÉΓòÉ
  649.  
  650. This standard "Save As" dialog box allows you to select the file to use to save 
  651. the contents of the screen buffer. 
  652.  
  653.  
  654. ΓòÉΓòÉΓòÉ 2.1.4.4.2. Print Dialog ΓòÉΓòÉΓòÉ
  655.  
  656. This dialog allows you to print the contents of the screen buffer.  You can 
  657. select the printer to use, the print priority, and the number of copies.  The 
  658. Properties button will take you to the properties dialog for the printer you 
  659. have selected. 
  660.  
  661. If you have selected some text in the buffer, the Selection checkbox is 
  662. automatically marked.  If you leave it marked, Take Command prints only the 
  663. selected text.  If you remove the check mark, the entire buffer is printed. 
  664.  
  665.  
  666. ΓòÉΓòÉΓòÉ 2.1.4.4.3. Run Dialog ΓòÉΓòÉΓòÉ
  667.  
  668. The Apps/Run menu leads to the Run Program dialog.  In the Command Line edit 
  669. box, you can enter the name of any executable program plus command-line 
  670. parameters.  If you click on the arrow to the right of the edit box, the dialog 
  671. displays a list of previous commands you have entered during the current Take 
  672. Command session. 
  673.  
  674. The Normal, Minimized, and Maximized radio buttons determine the type of window 
  675. that will be used for the program.  If you select Minimized, the program will 
  676. start as an icon on the desktop or in the Minimized Window Viewer (depending on 
  677. your system default location for minimized window icons).  Maximized starts the 
  678. program in a full-screen window.  Normal lets the operating system select the 
  679. size and position of the program's window. 
  680.  
  681. The Browse button leads to a standard file browser, from which you can select 
  682. any executable program.  Your choice will be placed in the Command Line edit 
  683. box, and you can add parameters before pressing Enter or selecting OK to run 
  684. the program. 
  685.  
  686.  
  687. ΓòÉΓòÉΓòÉ 2.1.4.4.4. Toolbar Dialog ΓòÉΓòÉΓòÉ
  688.  
  689. This dialog allows you to define or modify buttons on the tool bar . 
  690.  
  691. Select the button you want to define or modify in the box on the left. 
  692.  
  693. Enter the button's label and the command to be executed when you select the 
  694. button in the fields at the bottom of the dialog box.  You can enter multiple 
  695. commands in the Command field by separating them with the command separator 
  696. character [&]. 
  697.  
  698. You can use the Browse button to find a path and filename to be entered at the 
  699. beginning of the Command field. 
  700.  
  701. Before entering a command to start an application program, be sure to check 
  702. whether the application must be started in a particular directory.  If so, you 
  703. should use a CDD command in the Command field before the application name, for 
  704. example: 
  705.  
  706.         cdd d:\source & d:\os2\apps\epm.exe
  707.  
  708. If the command line begins with an at-sign [@] the command will not be added to 
  709. the command history. Otherwise, all commands executed from the tool bar are 
  710. stored in the history. 
  711.  
  712. Use the radio buttons to select how you want the command to be executed: 
  713.  
  714.         *   Echo means display the tool bar command on the command line, but do 
  715.             not execute it.  You can add additional text to the line if you 
  716.             wish, then press Enter to execute the command.  This is the default 
  717.             setting. 
  718.  
  719.         *   Echo & Execute means display the tool bar command on the command 
  720.             line, then execute it immediately, without waiting for you to press 
  721.             Enter. 
  722.  
  723.         *   Execute w/o Echo means execute the tool bar command immediately, 
  724.             without waiting for you to press Enter, and without displaying the 
  725.             command. 
  726.  
  727.  The Font Size setting applies to all of the buttons on the tool bar.  If you 
  728.  make the font size too large (or make the Take Command window too small), 
  729.  buttons on the right hand end of the toolbar may not be visible even if the 
  730.  Take Command window is expanded to fill the screen. 
  731.  
  732.  If you exit by choosing the OK button, any changes you have made will be saved 
  733.  in the TCMDOS2.INI file, and reloaded automatically the next time you start 
  734.  Take Command.  If you use the Cancel button, your changes will be discarded. 
  735.  
  736.  If you don't specify a label for a button, a small space is created on the 
  737.  tool bar.  For example, if you define buttons 5 and 7 but leave button 6 
  738.  blank, Take Command will leave a space between buttons 5 and 7 when the tool 
  739.  bar is displayed.  You can use this feature to separate groups of buttons on 
  740.  the tool bar; however, the total number of buttons, including empty buttons, 
  741.  cannot exceed 24. 
  742.  
  743.  If you want to rearrange the order of the buttons on the tool bar, use an 
  744.  editor (e.g. OS/2's E editor) to edit the [Buttons] section of the .INI file. 
  745.  Simply rearrange the lines into the order you wish, and renumber the buttons 
  746.  accordingly. 
  747.  
  748.  
  749. ΓòÉΓòÉΓòÉ 2.1.4.4.5. TTY Apps Dialog ΓòÉΓòÉΓòÉ
  750.  
  751. This dialog allows you to specify which character-mode applications can be run 
  752. within the Take Command window.  If you are not familiar with the issues 
  753. involved in running character-mode applications inside the Take Command window, 
  754. read the separate section on Starting Character-Mode Applications before using 
  755. this dialog. 
  756.  
  757. The list box on the left shows currently defined TTY applications. 
  758.  
  759. The Command field shows the command line for the currently selected 
  760. application.  You can specify an executable file name (e.g. CHKDSK.COM), or a 
  761. full path name (e.g. C:\OS2\CHKDSK.COM). If you use a full path name, the entry 
  762. will apply only to that specific file. If you use just the file name, the entry 
  763. will apply to any file of that name, regardless of its location.  (For advanced 
  764. use of this field to name an entire directory of TTY applications, see the end 
  765. of this section.) 
  766.  
  767. The OS/2 and DOS radio buttons control whether Take Command treats the 
  768. application as a DOS or OS/2 program. 
  769.  
  770. The Enable checkbox enables or disables an application.  If the box is checked, 
  771. the application will be run within the Take Command window.  If the box is not 
  772. checked, the entry will be ignored.  This allows you to temporarily disable an 
  773. application (without removing it from the list) in order to test its 
  774. compatibility with Take Command's TTY application support. 
  775.  
  776. Your copy of Take Command comes with a list of applications which can be run 
  777. within the Take Command window.  The list is visible when you open the dialog, 
  778. and is also included in the README.DOC file.  However, all applications in the 
  779. list are initially disabled to ensure maximum compatibility.  This prevents 
  780. problems if you have a program with the same name as one we tested, but which 
  781. is not the same program or the same version.  To enable any application, select 
  782. it and check the Enable box. 
  783.  
  784. To modify an entry which is already in the TTY applications list, select the 
  785. application in the box on the left and press Enter (or double-click).  Modify 
  786. the Command field, the application type (DOS or OS/2), and the Enable checkbox 
  787. as desired. 
  788.  
  789. To add a new entry, select the Add button.  Fill in the Command field, set the 
  790. application type, and check the Enable button if desired.  You can use the 
  791. Browse button to find a path and filename to be entered at the beginning of the 
  792. Command field.  After creating a new entry you must press Enter to copy the new 
  793. entry to the listbox.  If you do not, the information about the new application 
  794. will be discarded. 
  795.  
  796. To delete an entry, select it in the list box, then select the Delete button. 
  797.  
  798. If you exit by choosing the OK button, any changes you have made will be saved 
  799. in the [TTYApps] of TCMDOS2.INI, and reloaded automatically the next time you 
  800. start Take Command.  If you use the Cancel button, your changes will be 
  801. discarded. 
  802.  
  803. In addition to the options described above, you can also enter a path without a 
  804. filename in the Command field (e.g., C:\OS2UTILS).  This will tell Take Command 
  805. to treat all DOS or OS/2 character-mode programs in the specified directory as 
  806. TTY applications.  If you use this option the OS2, DOS, and Enable buttons 
  807. apply to all applications in the specified directory.  This approach is useful 
  808. if you have many applications of the same type in a single directory, but 
  809. before you use it you should review the content of the directory carefully to 
  810. be sure all the character-mode programs stored there are compatible with Take 
  811. Command's TTY application support. 
  812.  
  813. If you do choose to configure an entire directory for TTY application support, 
  814. you can create exceptions by entering specific filenames from that directory 
  815. into the dialog as well.  For example, if you enable the directory C:\OS2UTILS 
  816. for TTY support, you could also add a listing for C:\OS2UTILS\MYAPP.EXE (or 
  817. simply for MYAPP.EXE, with no path), and make sure the Enable box is not 
  818. checked for the MYAPP entry.  This would prevent MYAPP.EXE from being treated 
  819. as a TTY application despite the entry for the directory as a whole.  If you 
  820. use this approach, the two listings can appear in any order. 
  821.  
  822. TTY application support for DOS programs depends on the TCNPDOS.COM file 
  823. distributed with Take Command.  This file must be available in the same 
  824. directory as TCMDOS2.EXE.  If it is not, Take Command will display an error 
  825. message if you try to run a DOS application within the Take Command window. 
  826.  
  827.  
  828. ΓòÉΓòÉΓòÉ 2.1.4.4.6. Search Files Dialog ΓòÉΓòÉΓòÉ
  829.  
  830. The Search Files/Text dialog box gives you the same features as the FFIND 
  831. command, in dialog form. 
  832.  
  833. Enter the file name or names you wish search in the Files field. You can use 
  834. wildcards and include lists as part of the file name.  To select files from 
  835. previous searches in the same Take Command session, click on the down arrow 
  836. beside the Files field, or press the up arrow [] or down arrow [] while the 
  837. input cursor is in the Files field.  You can also use the Browse button to find 
  838. files to include in the search. 
  839.  
  840. Enter the text (or hexadecimal values) you are searching for in the Text field. 
  841. You can use extended wildards in the search string to increase the flexibility 
  842. of the search.  Use back-quotes [`] around the text if you want to search for 
  843. characters which would otherwise be interpreted as wildcards, such as the 
  844. asterisk [*], question mark [?], or square brackets.  For example, to search 
  845. for an A, followed by some number of other characters, followed by a B, enter 
  846. the A*B as your search string.  To search for the literal string A*B (A, 
  847. followed by an asterisk, followed by B), enter `A*B` as your search string 
  848. search string (the closing back-quote is optional). 
  849.  
  850. Enter the drive(s) you want to search in the Disks field. This field is ignored 
  851. unless Entire Disk is selected in the Search portion of the dialog.  If you 
  852. select All Hard Disks, this field is set automatically to include all hard disk 
  853. drive letters Take Command finds on your system. 
  854.  
  855. The Match Case box, when it is selected, makes the search case- sensitive.  To 
  856. search for specific hexadecimal values (for example, to look for non-printing 
  857. characters), check Hex Search and enter the string in the Text field as a 
  858. series of one- or two-digit hexadecimal characters, separated by spaces (e.g., 
  859. 42 6F 70).  See the ASCII Table for hexadecimal values of ASCII and extended 
  860. ASCII characters. 
  861.  
  862. If you enable All Lines, every line from every file that contains the search 
  863. text will be displayed.  If this option is not enabled, only the first line 
  864. from such a file will be displayed. 
  865.  
  866. Unless you enable the Hidden Files option, files with the hidden attribute will 
  867. not be included in the search. 
  868.  
  869. The radio buttons in the Search area let you specify where you want Take 
  870. Command to look for files.  If you select Dir Only or Dir & Subdirs, the search 
  871. will begin in the current default directory, shown above the Files box.  If you 
  872. select Entire Disk, Take Command will use the drives that you specified in the 
  873. Disks field.  If you select All Hard Disks, Take Command will search all the 
  874. hard disk drives it finds on your system. 
  875.  
  876. To start the search, press the Find button.  Once the search has started the 
  877. Find button changes to a Stop button, which can use to interrupt the search 
  878. before it is finished. 
  879.  
  880. Once Take Command has finished searching, you can save the list of matching 
  881. files with the Export button. 
  882.  
  883. As you move the cursor over the list of matching files, information about each 
  884. file appears below the file list.  If you select one of the matching files in 
  885. the list (by double-clicking on it, or selecting it with the cursor and 
  886. pressing Enter), Take Command will display another dialog with complete 
  887. directory information about the file. 
  888.  
  889. From this second dialog you can Run the file (if it is an executable file, a 
  890. batch file, or has an executable extension), display the file with the LIST 
  891. command, or Edit the file.  If you choose List, the cursor will be placed on 
  892. the first matching text within the file.  When you exit from LIST or the 
  893. editor, the original list of matching files will still be available. 
  894.  
  895.  
  896. ΓòÉΓòÉΓòÉ 2.1.4.4.7. Descriptions Dialog ΓòÉΓòÉΓòÉ
  897.  
  898. This dialog allows you to create, modify, or delete file descriptions (if you 
  899. are not familiar with Take Command file descriptions, see the DESCRIBE command 
  900. for details). 
  901.  
  902. A list of files in the current directory is shown in the pane on the left side 
  903. of the dialog.  As you move the cursor in the pane, the description for the 
  904. file (if any) is shown in the Description field.  You can use this field to 
  905. edit or create the selected file's description. 
  906.  
  907. After changing a description you must press Enter (or select the OK button and 
  908. close the dialog) to record your changes on the disk. If you do not (for 
  909. example, if you change a description, then select another file without first 
  910. pressing Enter), your changes will be discarded. 
  911.  
  912. If you click Cancel any changes to the current description are discarded, and 
  913. the dialog is closed.  Cancel does not undo previous changes which were saved 
  914. by pressing the Enter key as described above. 
  915.  
  916. To delete a description, select the file, move to the description field and 
  917. delete all of the description text, then press Enter or click OK. 
  918.  
  919. To work in a different drive or directory, use the Drive and/or Directory 
  920. fields on the right side of the dialog to select the desired location. 
  921.  
  922. The dialog automatically includes all files in the list.  To select a specific 
  923. group of files of your own choosing, type a new filename in the Filename box. 
  924.  
  925. File descriptions can also be entered or changed with the DESCRIBE command, and 
  926. are visible when you use the DIR and SELECT commands. 
  927.  
  928.  
  929. ΓòÉΓòÉΓòÉ 2.1.4.4.8. Aliases Dialog ΓòÉΓòÉΓòÉ
  930.  
  931. The current list of aliases is shown in the pane on the left of this dialog 
  932. box.  As you move the cursor in the pane, the name of the alias under the 
  933. cursor is shown in the Name field and its definition is shown in the Value 
  934. field.  You can use these fields to edit the alias name or value. 
  935.  
  936. To add a new alias to the list, use the Add button.  The Name and Value fields 
  937. will be cleared so you can enter new values in each.  To save the new entry, 
  938. switch to a different entry or press Enter. 
  939.  
  940. The Delete button deletes the highlighted alias. 
  941.  
  942. The Import button reads a list of aliases from a file (similar to the ALIAS /R 
  943. command).  The Export button writes the current list to a file. 
  944.  
  945. Changes you make in this dialog are not saved in the alias list until you click 
  946. the OK button.  If you click Cancel the changes are discarded. 
  947.  
  948.  
  949. ΓòÉΓòÉΓòÉ 2.1.4.4.9. Environment Dialog ΓòÉΓòÉΓòÉ
  950.  
  951. The current environment variables are shown in the pane on the left of this 
  952. dialog box.  As you move the cursor in the pane, the name of each entry appears 
  953. in the Name field and its value appears in the Value field.  You can use these 
  954. fields to edit the environment entry. 
  955.  
  956. To add a entry to the list, use the Add button.  The Name and Value fields will 
  957. be cleared so you can enter new values in each. To save the new entry, switch 
  958. to a different entry or press Enter. 
  959.  
  960. The Delete button deletes the highlighted environment variable. 
  961.  
  962. The Import button reads a list of environment variables from a file (similar to 
  963. the SET /R command).  The Export button writes the current list to a file. 
  964.  
  965. Changes you make in this dialog are not saved in the environment until you 
  966. click the OK button.  If you click Cancel the changes are discarded. 
  967.  
  968.  
  969. ΓòÉΓòÉΓòÉ 2.1.5. Scrollback Buffer ΓòÉΓòÉΓòÉ
  970.  
  971. Take Command retains the text displayed on its screen in a "scrollback buffer". 
  972.  
  973. You can scroll through this buffer using the mouse and the vertical scroll bar 
  974. at the right side of the Take Command window, just as you can in any OS/2 GUI 
  975. application. 
  976.  
  977. You can also use the up-arrow [] and down-arrow [] keys to scroll the display 
  978. one line at a time from the keyboard, and the PgUp and PgDn keys to scroll one 
  979. page at a time. 
  980.  
  981. If you scroll back through the buffer to view previous output, and then enter 
  982. text on the command line, Take Command will automatically return to the bottom 
  983. of the buffer to display the text. 
  984.  
  985. If you prefer to use the arrow and PgUp keys to access the command history (as 
  986. in 4DOS and 4OS2), see the SwapScrollKeys directive in the TCMDOS2.INI file, or 
  987. the corresponding option on the Command Line page of the configuration dialogs. 
  988. SwapScrollKeys switches the keystroke mapping so that the , , and PgUp Keys 
  989. manipulate the command history, and Ctrl-, Ctrl-, Ctrl-PgUp, and Ctrl-PgDn 
  990. are used to control the scrollback buffer.  For more details see Scrolling and 
  991. History Keystrokes. 
  992.  
  993. You can set the size of the scrollback buffer on the Display page of the 
  994. configuration notebook (available from the Setup menu), or with the 
  995. ScreenBufSize directive in TCMDOS2.INI. 
  996.  
  997. To clear the entire scrollback buffer, use the CLS /C command. 
  998.  
  999.  
  1000. ΓòÉΓòÉΓòÉ 2.1.6. Resizing the Take Command Window ΓòÉΓòÉΓòÉ
  1001.  
  1002. You can resize the Take Command window at any time with standard OS/2 
  1003. techniques (e.g., by dragging a corner with the mouse).  Resizing the window 
  1004. changes the number of rows and columns of text which will fit in the command 
  1005. window (the actual number of rows and columns for any given window size depends 
  1006. on the font you are using).  Take Command reacts to these changes using two 
  1007. sets of rules:  one for the height and one for the width. 
  1008.  
  1009. When the height of the command window changes, future commands simply use the 
  1010. new height as you see it on the screen.  For example, if you reduce the window 
  1011. to three rows high and do a DIR /P (display a directory of files and pause at 
  1012. the bottom of each visual "page"), DIR will display two lines of output, a 
  1013. prompt ("Press any key to continue..."), and then pause.  If you expand the 
  1014. window to 40 lines high and repeat the same command, DIR will display 39 lines, 
  1015. a prompt, and then pause. 
  1016.  
  1017. However, when the width of the window changes, Take Command must check the 
  1018. current "virtual screen width".  The virtual width is the maximum number of 
  1019. characters on each line in Take Command's internal screen buffer.  You can 
  1020. think of it as the width of the data which can be displayed in the Take Command 
  1021. window, including an invisible portion to the right of the window's right-hand 
  1022. edge.  When the virtual width is larger than the actual width, a standard 
  1023. horizontal scroll bar is displayed to allow you to see any hidden output. 
  1024.  
  1025. The screen height normally starts at 25 lines; you can alter this default with 
  1026. the ScreenRows directive in the .INI file, or the Height setting on the Display 
  1027. page of the configuration dialogs.  The _ROWS internal variable can be used to 
  1028. determine the current screen height. 
  1029.  
  1030. The virtual screen width starts at 80 columns or the number of columns which 
  1031. fit into the startup Take Command window, whichever is larger.  You can alter 
  1032. the default minimum width of 80 columns with the ScreenColumns directive in the 
  1033. .INI file, or the Width setting on the Display page of the configuration 
  1034. dialogs.  The _COLUMNS internal variable can be used to determine the current 
  1035. virtual screen width. 
  1036.  
  1037. If you use keyboard commands or the mouse to expand the Take Command window 
  1038. beyond its previous virtual width, the virtual width is automatically 
  1039. increased.  This ensures that the internal buffer can hold lines which will 
  1040. fill the newly enlarged window.  If you contract the window, the virtual width 
  1041. is not reduced because this might require removing output already on the screen 
  1042. or in the scrollback buffer. 
  1043.  
  1044. As a result, widening the window will make future commands use the new enlarged 
  1045. size (for example, as the window is widened DIR /W, which displays a "wide" 
  1046. directory listing, will display additional columns of file names). However, if 
  1047. the window is narrowed future commands will still remember the enlarged virtual 
  1048. width, and display data to the right of the window edge.  The horizontal scroll 
  1049. bar will make this data visible. 
  1050.  
  1051. When the font is changed, Take Command will recalculate the virtual screen 
  1052. width.  The new virtual width will be the width set by the Screen Columns 
  1053. directive or on the Display page of the configuration dialogs, or the current 
  1054. width of the window in the new font, whichever is larger. 
  1055.  
  1056.  
  1057. ΓòÉΓòÉΓòÉ 2.1.7. Highlighting and Copying Text ΓòÉΓòÉΓòÉ
  1058.  
  1059. While you are working at the Take Command prompt you can use common keystrokes 
  1060. to edit commands, and use the OS/2 clipboard to copy text between Take Command 
  1061. and other applications.  You can also select all of the text in the Take 
  1062. Command screen buffer by using the Select All command on the Edit menu. 
  1063.  
  1064. To copy text from the Take Command window to the clipboard, first use the mouse 
  1065. to highlight the text, then press Ctrl-Ins, or use the Copy command on the Edit 
  1066. menu. 
  1067.  
  1068. If you double-click on a word in the Take Command window, the entire word is 
  1069. highlighted or selected.  You can also mark the text using mouse button 2 
  1070. (normally, the right mouse button); in this case the text will be copied to the 
  1071. clipboard immediately when you release the mouse button. 
  1072.  
  1073. To highlight text on the command line use the Shift key in conjunction with the 
  1074. Left, Right, Ctrl-Left, Ctrl-Right, Home, and End cursor movement keys.  The 
  1075. Del key will delete any highlighted text on the command line, or you can type 
  1076. new text to replace the highlighted text. 
  1077.  
  1078. While the Take Command window contains text, it is not a document window like 
  1079. those used by word processors and other similar software, and you cannot move 
  1080. the cursor throughout the window as you can in text processing programs.  As a 
  1081. result, you cannot use the OS/2 shortcut keys like Shift-Left or Shift-Right to 
  1082. highlight text in the window.  These keys work only at the command line; to 
  1083. highlight text elsewhere in the window you must use the mouse. 
  1084.  
  1085. To copy text from the clipboard to the command line use Shift-Ins, or the Paste 
  1086. command on the Edit menu. 
  1087.  
  1088. To paste text from elsewhere in the Take Command window directly onto the 
  1089. command line, highlight the text with the mouse and press Ctrl-Shift- Ins, or 
  1090. use the Copy+Paste command on the Edit menu.  This is equivalent to 
  1091. highlighting the text and pressing Ctrl-Ins followed by Shift-Ins.  It's a 
  1092. convenient way to copy a filename from a previous DIR or other command directly 
  1093. to the command line. 
  1094.  
  1095. You should use caution when pasting text containing carriage return or line 
  1096. feed characters onto the command line.  If the text you insert contains one of 
  1097. these characters the command line will be executed just as if you had pressed 
  1098. Enter.  If you insert multiple lines, the text will be treated just like 
  1099. multiple lines of commands typed at the prompt. 
  1100.  
  1101. You can also use OS/2's Drag and Drop facility to paste a filename from another 
  1102. application onto the command line. 
  1103.  
  1104.  
  1105. ΓòÉΓòÉΓòÉ 2.1.8. Using Drag and Drop ΓòÉΓòÉΓòÉ
  1106.  
  1107. Take Command is compatible with the OS/2 Drag-and-Drop facility. 
  1108.  
  1109. To add a filename to the command line using drag and drop, simply drag the file 
  1110. from another application using the mouse and release the mouse button with the 
  1111. file icon anywhere inside the Take Command window.  The full name of the file 
  1112. will be pasted onto the command line at the current cursor position. 
  1113.  
  1114. Take Command is a drag and drop "client," which means it can accept files 
  1115. dragged in from other applications and paste their names onto the command line 
  1116. as described above.  It is not a drag and drop "server," so you cannot drag 
  1117. filenames from the Take Command window into other applications.  However, you 
  1118. can copy filenames and other text from the Take Command screen to other 
  1119. applications using the clipboard; see Highlighting and Copying Text for 
  1120. details. 
  1121.  
  1122.  
  1123. ΓòÉΓòÉΓòÉ 2.1.9. Cursor Display on LCD Screens ΓòÉΓòÉΓòÉ
  1124.  
  1125. If you use a laptop or LCD screen and find the "I-Beam" cursor in the Take 
  1126. Command window difficult to see, use an IBeamCursor = No directive in the 
  1127. [TakeCommand] section of TCMDOS2.INI to force the use of an arrow cursor in all 
  1128. parts of the window. 
  1129.  
  1130.  
  1131. ΓòÉΓòÉΓòÉ 2.1.10. Take Command for 4DOS and 4OS2 Users ΓòÉΓòÉΓòÉ
  1132.  
  1133. If you're a 4DOS or 4OS2 user, many of the features in Take Command will seem 
  1134. very familiar.  Because the underlying command processing in Take Command is 
  1135. based on 4DOS and 4OS2, you'll find the features of those products are readily 
  1136. accessible.  All the commands and switches you're familiar with work the same 
  1137. way and have the same meaning in Take Command; the only exceptions are those 
  1138. that don't make sense in the OS/2 GUI environment. 
  1139.  
  1140. Other 4DOS and 4OS2 features are included in Take Command as well -- you'll 
  1141. find support for command line editing, command and directory histories, 
  1142. aliases, .BTM files, and virtually all the other features you already know. 
  1143.  
  1144. Even if you've never used 4DOS or 4OS2, you'll notice plenty of familiar items 
  1145. in Take Command.  Like these products, Take Command is compatible with the 
  1146. default OS/2 command processor (CMD.EXE), which you've probably used from the 
  1147. objects in the OS/2 Command Prompts folder. 
  1148.  
  1149. There are also a few differences between running under 4DOS and 4OS2 (or 
  1150. CMD.EXE) and running under Take Command. 
  1151.  
  1152. In order to support the Take Command screen scrollback buffer, some Take 
  1153. Command keystrokes are different from what you may be used to in 4DOS or 4OS2. 
  1154. See Scrolling and History Keystrokes for more details. 
  1155.  
  1156. Some command-line editing defaults have also been changed to conform more 
  1157. closely to OS/2 GUI conventions.  In Take Command the default editing mode is 
  1158. insert, not overstrike, and the default insert-mode cursor is a line, not a 
  1159. block.  You can change these defaults with statements in TCMDOS2.INI or via the 
  1160. Command Line page of the configuration notebook, accessible from the Setup 
  1161. menu. 
  1162.  
  1163. Before using your 4DOS or 4OS2 batch files and aliases under Take Command, see 
  1164. Using 4OS2 Batch Files and Aliases. 
  1165.  
  1166. What's new in Take Command are OS/2 GUI-related features, including: 
  1167.  
  1168.         *   A built-in scrollback buffer that lets you look back through the 
  1169.             output from past commands. 
  1170.  
  1171.         *   A standard menu bar for access to many commonly-used Take Command 
  1172.             features. 
  1173.  
  1174.         *   A status bar showing memory and resource usage. 
  1175.  
  1176.         *   A customizable tool bar that gives you quick access to commands and 
  1177.             applications. 
  1178.  
  1179.         *   Dialogs, accessible from the Options and Utilities menus, for 
  1180.             editing environment variables, aliases, file descriptions, and 
  1181.             startup parameters (the TCMDOS2.INI file). 
  1182.  
  1183.         *   High-speed, dialog-based file and text search (see "Search 
  1184.             Files/Text" on the Utilities menu). The new FFIND command gives you 
  1185.             the same capabilities at the Take Command prompt. 
  1186.  
  1187.         *   Commands like ACTIVATE, MSGBOX, and QUERYBOX that allow you to use 
  1188.             OS/2 features and control OS/2 applications from your batch files. 
  1189.  
  1190.  
  1191. ΓòÉΓòÉΓòÉ 2.2. Using the Command Line ΓòÉΓòÉΓòÉ
  1192.  
  1193. Take Command displays a [c:\] prompt when it is waiting for you to enter a 
  1194. command.  (The actual text depends on the current drive and directory as well 
  1195. as your PROMPT settings.)  This is called the command line and the prompt is 
  1196. asking you to enter a command, an alias or batch file name, or the instructions 
  1197. necessary to begin an application program. 
  1198.  
  1199. This section explains the features that will help you while you are typing in 
  1200. commands and how keystrokes are interpreted when you enter them at the command 
  1201. line.  The keystrokes discussed here are the ones normally used by Take 
  1202. Command.  If you prefer using different keystrokes to perform these functions, 
  1203. you can assign new ones with key mapping directives in the .INI file. 
  1204.  
  1205. The command line features documented in this section are: 
  1206.  
  1207.             Command-Line Editing 
  1208.             Command History and Recall 
  1209.             Command History Window 
  1210.             Filename Completion 
  1211.             Automatic Directory Changes 
  1212.             Directory History Window (includes details about local and global 
  1213.             directory histories) 
  1214.             Multiple Commands 
  1215.             Expanding and Disabling Aliases 
  1216.             Command-Line Length Limits 
  1217.  
  1218.  Additional command-line features are documented under File Selection, 
  1219.  Directory Navigation, and Other Features. 
  1220.  
  1221.  
  1222. ΓòÉΓòÉΓòÉ 2.2.1. Command-Line Editing ΓòÉΓòÉΓòÉ
  1223.  
  1224. The command line works like a single-line word processor, allowing you to edit 
  1225. any part of the command at any time before you press Enter to execute it, or 
  1226. Esc to erase it.  The command line extends to a maximum of 1023 characters. 
  1227.  
  1228. You can use the following editing keys when you are typing a command (the words 
  1229. Ctrl and Shift mean to press the Ctrl Or Shift key together with the other key 
  1230. named): 
  1231.  
  1232. Cursor Movement Keys: 
  1233.  
  1234.                        Move the cursor left one character. 
  1235.                        Move the cursor right one character. 
  1236.         Ctrl-          Move the cursor left one word. 
  1237.         Ctrl-          Move the cursor right one word. 
  1238.         Home            Move the cursor to the beginning of the line. 
  1239.         End             Move the cursor to the end of the line. 
  1240.  
  1241.  Insert and Delete: 
  1242.  
  1243.         Ins             Toggle between insert and overtype mode. 
  1244.         Del             Delete the character at the cursor. 
  1245.         Backspace       Delete the character to the left of the cursor. 
  1246.         Ctrl-          Delete the word or partial word to the left of the 
  1247.                         cursor. 
  1248.         Ctrl-          or Ctrl-Bksp  Delete the word or partial word to the 
  1249.                         right of the cursor. 
  1250.         Ctrl-Home       Delete from the beginning of the line to the cursor. 
  1251.         Ctrl-End        Delete from the cursor to the end of the line. 
  1252.         Esc             Delete the entire line. 
  1253.         Shift-Ins       Insert the text from the clipboard at the current 
  1254.                         cursor postion on the command line. 
  1255.         Ctrl-Shift-Ins  Insert the highlighed text (from anywhere in the 
  1256.                         window) at the current cursor postion on the command 
  1257.                         line. 
  1258.  
  1259.  Execution: 
  1260.  
  1261.         Ctrl-C          or Ctrl-Break  Cancel the command line. 
  1262.         Enter           Execute the command line. 
  1263.  
  1264.  To highlight text on the command line use the mouse, or hold down the Shift 
  1265.  key and use any of the cursor movement keys listed above.  You can select a 
  1266.  complete word by placing the cursor anywhere in the word and double-clicking 
  1267.  with the mouse. 
  1268.  
  1269.  Once you have selected or highlighted text on the command line, any new text 
  1270.  you type will replace the highlighted text.  If you press Bksp or Del while 
  1271.  there is text highlighted on the command line, the highlighted text will be 
  1272.  deleted. 
  1273.  
  1274.  While you are working at the Take Command prompt, you can use the OS/2 
  1275.  clipboard to copy text between Take Command and other applications (see 
  1276.  Highlighting and Copying Text.  You can also use Drag and Drop to paste a 
  1277.  filename from another application onto the command line. 
  1278.  
  1279.  Most of the command-line editing capabilities are also available when Take 
  1280.  Command prompts you for a line of input.  For example, you can use the 
  1281.  command-line editing keys when DESCRIBE prompts for a file description, when 
  1282.  INPUT prompts for input from an alias or batch file, or when LIST prompts you 
  1283.  for a search string. 
  1284.  
  1285.  If you want your input at the command line to be in a different color from the 
  1286.  command processor's prompts or output, you can use the Display page of the 
  1287.  configuration notebook, or the InputColors directive in the TCMDOS2.INI file. 
  1288.  
  1289.  Take Command will prompt for additional command-line text when you include the 
  1290.  escape character as the very last character of a typed command line.  The 
  1291.  default escape character is the caret [^].  For example: 
  1292.  
  1293.           [c:\] echo The quick brown fox jumped over the lazy^
  1294.           More? sleeping dog. > alphabet
  1295.  
  1296.  Sometimes you may want to enter one of the command line editing  keystrokes on 
  1297.  the command line instead of performing the key's usual action.  For example, 
  1298.  suppose you have a program that requires a Ctrl-R character on its command 
  1299.  line.  Normally you couldn't type this keystroke at the prompt, because it 
  1300.  would be interpreted as a "Delete word right" command. 
  1301.  
  1302.  To get around this problem, use the special keystroke Alt-255.  You enter 
  1303.  Alt-255 by holding down the Alt key while you type 255 on the numeric keypad, 
  1304.  then releasing the Alt key (you must use the number keys on the numeric pad; 
  1305.  the row of keys at the top of your keyboard won't work).  This forces Take 
  1306.  Command to interpret the next keystroke literally and places it on the command 
  1307.  line, ignoring any special meaning it would normally have as a command-line 
  1308.  editing or history keystroke. You can use Alt-255 to suppress the normal 
  1309.  meaning of command-line editing keystrokes even if they have been reassigned 
  1310.  with key mapping directives in the TCMDOS2.INI file, and Alt-255 itself can be 
  1311.  reassigned with the CommandEscape directive. 
  1312.  
  1313.  
  1314. ΓòÉΓòÉΓòÉ 2.2.2. Command History and Recall ΓòÉΓòÉΓòÉ
  1315.  
  1316. Each time you execute a command, the entire command line is saved in a command 
  1317. history list.  You can display the saved commands, search the list, modify 
  1318. commands, and rerun commands.  The command history is available at the command 
  1319. prompt and in a special command history window. 
  1320.  
  1321. Command History Keys: 
  1322.  
  1323.         Ctrl-          Recall the previous (or most recent) command, or the 
  1324.                         most recent command that matches a partial command 
  1325.                         line. 
  1326.         Ctrl-          Recall the next (or oldest) command, or the oldest 
  1327.                         command that matches a partial command line. 
  1328.         F3              Fill in the rest of the command line from the previous 
  1329.                         command, beginning at the current cursor position. 
  1330.         Ctrl-D          Delete the currently displayed history list entry, 
  1331.                         erase the command line, and display the previous 
  1332.                         (matching) history list entry. 
  1333.         Ctrl-E          Display the last entry in the history list. 
  1334.         Ctrl-K          Save the current command line in the history list 
  1335.                         without executing it, and then clear the command line. 
  1336.         Ctrl-Enter      Copy the current command line to the end of the history 
  1337.                         list even it has not been altered, then execute it. 
  1338.         @               As the first character in a line: Do not save the 
  1339.                         current line in the history list when it is executed, 
  1340.                         and do not store it in the CMDLINE environment 
  1341.                         variable. 
  1342.  
  1343.  Use the Ctrl- key repeatedly to scan back through the history list.  When the 
  1344.  desired command appears, press Enter to execute it again.  After you have 
  1345.  found a command, you can edit it before pressing Enter. 
  1346.  
  1347.  The history list is normally "circular".  If you move to the last command in 
  1348.  the list and then press the Ctrl- one more time, you'll see the first command 
  1349.  in the list.  Similarly, if you move to the first command in the list and then 
  1350.  press the Ctrl- one more time, you'll see the last command in the list.  You 
  1351.  can disable this feature and make command history recall stop at the beginning 
  1352.  or end of the list by turning off History Wrap on the Command Line 1 page of 
  1353.  the configuration notebook, or setting HistWrap to No in TCMDOS2.INI. 
  1354.  
  1355.  If you prefer to use the arrow keys to access the command history with having 
  1356.  to press Ctrl (as in 4OS2 and 4DOS), see the SwapScrollKeys directive in 
  1357.  TCMDOS2.INI, or the corresponding option on the Command Line 1 page of the 
  1358.  configuration notebook.  SwapScrollKeys switches the keystroke mapping so that 
  1359.  the , , and PgUp keys manipulate the command history, and Ctrl-, Ctrl-, 
  1360.  Ctrl-PgUp, and Ctrl-PgDn are used to control the scrollback buffer.  For more 
  1361.  details see Scrolling and History Keystrokes. 
  1362.  
  1363.  You can search the command history list to find a previous command quickly 
  1364.  using command completion. 
  1365.  
  1366.  Just enter the first few characters of the command you want to find and press 
  1367.  Ctrl-.  You only need to enter enough characters to identify the command that 
  1368.  you want to find.  If you press the Ctrl-  key a second time, you will see 
  1369.  the previous command that matches.  The system will beep if there are no 
  1370.  matching commands.  The search process stops as soon as you type one of the 
  1371.  editing keys, whether or not the line is changed.  At that point, the line 
  1372.  you're viewing becomes the new line to match if you press Ctrl- again. 
  1373.  
  1374.  You can specify the size of the command history list on the Startup page of 
  1375.  the Configuration notebook, or with the History directive in TCMDOS2.INI. 
  1376.  When the list is full, the oldest commands are discarded to make room for new 
  1377.  ones.  You can also use the Command Line 1 page of the configuration notebook 
  1378.  HistMin directive in the .INI file to enable or disable history saves and to 
  1379.  specify the shortest command line that will be saved. 
  1380.  
  1381.  When you execute a command from the history, that command remains in the 
  1382.  history list in its original position.  The command is not copied to the end 
  1383.  of the list (unless you modify it).  If you want each command to be copied or 
  1384.  moved to the end of the list when it is re-executed, set HistCopy or HistMove 
  1385.  to Yes in TCMDOS2.INI or select Copy to End or Move to End on the Command Line 
  1386.  1 page of the configuration notebook.  If you select either of these options, 
  1387.  the list entry identified as "current" (the entry from which commands are 
  1388.  retrieved when you press Ctrl-Up Arrow) is also adjusted to refer to the end 
  1389.  of the history list after each recalled command is executed. 
  1390.  
  1391.  Local and Global Command History 
  1392.  
  1393.  The command history can be stored in either a "local" or "global" list. 
  1394.  
  1395.  With a local history list, any changes made to the history will only affect 
  1396.  the current copy of Take Command.  They will not be visible in other shells, 
  1397.  or other sessions. 
  1398.  
  1399.  With a global history list, all copies of Take Command will share the same 
  1400.  command history, and any changes made to the history in one copy will affect 
  1401.  all other copies.  Global lists are the default for Take Command.  You can 
  1402.  control the type of history list with the LocalHistory directive in 
  1403.  TCMDOS2.INI, and with the /L and /LH options of the START command. 
  1404.  
  1405.  If you select a global history list for Take Command you can share the history 
  1406.  among all copies of Take Command running in any session.  When you close all 
  1407.  Take Command sessions, the memory for the global history list is released, and 
  1408.  a new, empty history list is created the next time you start Take Command. 
  1409.  
  1410.  If you want the command history to be retained in memory even when no Take 
  1411.  Command session is running, see the SHRALIAS command, which retains the global 
  1412.  alias, command history, and directory history lists. 
  1413.  
  1414.  SHRALIAS retains the command history in memory, but cannot preserve it when 
  1415.  OS/2 itself is shut down.  To save history list when restarting OS/2, you must 
  1416.  store it in a file and reload it after the system restarts.  For details on 
  1417.  how to do so, see the HISTORY command. 
  1418.  
  1419.  
  1420. ΓòÉΓòÉΓòÉ 2.2.3. Command History Window ΓòÉΓòÉΓòÉ
  1421.  
  1422. You can view the command history in a scrollable command history window, and 
  1423. select the command to re-execute or modify from those displayed in the window. 
  1424.  
  1425. Command History Window Keys: 
  1426.  
  1427.         Ctrl-PgUp       (from the command line)  Open the command history 
  1428.                         window. 
  1429.          or Ctrl-PgDn 
  1430.                        Scroll the display up one line. 
  1431.                        Scroll the display down one line. 
  1432.                        Scroll the display left 4 columns. 
  1433.                        Scroll the display right 4 columns. 
  1434.         PgUp            Scroll the display up one page. 
  1435.         PgDn            Scroll the display down one page. 
  1436.         Ctrl-PgUp       Go to the beginning of the history list. 
  1437.          or Home 
  1438.         Ctrl-PgDn       Go to the end of the history list. 
  1439.          or End 
  1440.         Ctrl-D          Delete the selected line from the history list. 
  1441.         Enter           Execute the selected line. 
  1442.         Ctrl-Enter      Move the selected line to the command line for editing. 
  1443.          or Ctrl-Double Click 
  1444.  
  1445.  To activate the command history window press Ctrl-PgUp or Ctrl-PgDn at the 
  1446.  command line.  A window will appear in the upper right corner of the screen, 
  1447.  with the command you most recently executed marked with a highlight. (If you 
  1448.  just finished re-executing a command from the history, then the next command 
  1449.  in sequence will be highlighted.) 
  1450.  
  1451.  Once you have selected a command in the history window, press Enter or 
  1452.  double-click with the mouse to execute it immediately.  Press Ctrl- Enter or 
  1453.  hold down the Ctrl key while you double-click with the mouse to move the line 
  1454.  to the prompt for editing (you cannot edit the line directly in the history 
  1455.  window). 
  1456.  
  1457.  You can view a "filtered" history window by typing some characters on the 
  1458.  command line, then pressing Ctrl-PgUp or Ctrl-PgDn. Only those commands 
  1459.  matching the typed characters will be displayed in the window. 
  1460.  
  1461.  See Popup Windows for information on customizing window position and size. 
  1462.  
  1463.  If you prefer to use the PgUp key to access the command history without having 
  1464.  to press Ctrl (as in 4OS2 and 4DOS), see the SwapScrollKeys directive in 
  1465.  TCMDOS2.INI, or the corresponding option on the Command Line page of the 
  1466.  configuration notebook. SwapScrollKeys switches the keystroke mapping so that 
  1467.  the  and PgUp keys manipulate the command history, and Ctrl-, Ctrl-, 
  1468.  Ctrl-PgUp, and Ctrl-PgDn are used to control the scrollback buffer.  For more 
  1469.  details see Scrolling and History Keystrokes. 
  1470.  
  1471.  
  1472. ΓòÉΓòÉΓòÉ 2.2.4. Filename Completion ΓòÉΓòÉΓòÉ
  1473.  
  1474. Filename completion can help you by filling in a complete file name on the 
  1475. command line when you only remember or woant to type part of the name. Filename 
  1476. completion can be used at the command line, which is explained here, and in a 
  1477. filename completion window. 
  1478.  
  1479. Filename Completion Keys: 
  1480.  
  1481.         F8                  Get the previous matching filename. 
  1482.  
  1483.          or Shift-Tab 
  1484.  
  1485.         F9                  Get the next matching filename. 
  1486.  
  1487.          or Tab 
  1488.  
  1489.         Ctrl-Shift-Tab      Keep the current matching filename and display the 
  1490.                             next matching name immediately after the current 
  1491.                             one. 
  1492.  
  1493.          or F11 
  1494.  
  1495.  For example, if you know the name of a file begins AU but you can't remember 
  1496.  the rest of the name, type: 
  1497.  
  1498.           [c:\] copy au
  1499.  
  1500.  and then press the Tab key or F9 key.  Take Command will search the current 
  1501.  directory for filenames that begin AU and insert the first one onto the 
  1502.  command line in place of the AU that you typed. 
  1503.  
  1504.  If this is the file that you want, simply complete the command.  If Take 
  1505.  Command didn't find the file that you were looking for, press Tab or F9 again 
  1506.  to substitute the next filename that begins with AU.  When there are no more 
  1507.  filenames that match your pattern, the system will beep each time you press 
  1508.  Tab or F9. 
  1509.  
  1510.  If you go past the filename that you want, press Shift-Tab or F8 to back up 
  1511.  and return to the previous matching filename.  After you back up to the first 
  1512.  filename, the system will beep each time you press Shift-Tab or F8. 
  1513.  
  1514.  If you want to enter more than one matching filename on the same command line, 
  1515.  press Ctrl-Shift-Tab or F11 when each desired name appears.  This will keep 
  1516.  that name and place the next matching filename after it on the command line. 
  1517.  You can then use Tab (or F9) and Shift-Tab (or F8) and Ctrl-Shift-Tab (or F11) 
  1518.  to move through the remaining matching files. 
  1519.  
  1520.  The pattern you use for matching may contain any valid filename characters, as 
  1521.  well as wildcard characters and extended wildcards.  For example, you can copy 
  1522.  the first matching .TXT file by typing 
  1523.  
  1524.           [c:\] copy *.txt
  1525.  
  1526.  and then pressing Tab. 
  1527.  
  1528.  If you don't specify part of a filename before pressing Tab, the matching 
  1529.  pattern will be *.*.  If you type a filename without an extension, Take 
  1530.  Command will add "*.*" to the name.  It will also place a "*" after a partial 
  1531.  extension.  If you are typing a group of file names in an Include Lists, the 
  1532.  part of the include list at the cursor will be used as the pattern to match. 
  1533.  
  1534.  When filename completion is used at the start of the command line, it will 
  1535.  only match directories, executable files, and files with executable extensions 
  1536.  , since these are the only file names that it makes sense to use at the start 
  1537.  of a command.  If a directory is found, a "\" will be appended to it to enable 
  1538.  an automatic directory change. 
  1539.  
  1540.  Several topics are related to filename completion.  See 
  1541.  
  1542.              Appending Backslashes to Directory Names 
  1543.              Customizing Filename Completion 
  1544.              Filename Completion Window 
  1545.  
  1546.  
  1547. ΓòÉΓòÉΓòÉ 2.2.4.1. Appending Backslashes to Directory Names ΓòÉΓòÉΓòÉ
  1548.  
  1549. If you set the AppendToDir directive in the TCMDOS2.INI file, or the 
  1550. corresponding option on the Command Line 1 page of the configuration dialogs, 
  1551. Take Command will add a trailing backslash [\] to all directory names.  This 
  1552. feature can be especially handy if you use filename completion to specify files 
  1553. that are not in the current directory -- a succession of Tab (or F9) and 
  1554. Ctrl-Shift-Tab keystrokes can build a complete path to the file you want to 
  1555. work with. 
  1556.  
  1557. The following example shows the use of this technique to edit the file 
  1558. C:\DATA\FINANCE\MAPS.DAT.  The lines which include "<F9>" show where F9 (or 
  1559. Tab) is pressed; the other lines show how the command line appears after the 
  1560. previous F9 or Tab (the example is displayed on several lines here, but all 
  1561. appears at a single command prompt when you actually perform the steps): 
  1562.  
  1563.         1  [c:\] edit \da <F9>
  1564.         2  [c:\] edit \data\
  1565.         3  [c:\] edit \data\f <F9>
  1566.         4  [c:\] edit \data\frank.doc <F9>
  1567.         5  [c:\] edit \data\finance\
  1568.         6  [c:\] edit \data\finance\map <F9>
  1569.         7  [c:\] edit \data\finance\maps.dat
  1570.  
  1571. Note that F9 was pressed twice in succession on lines 3 and 4, because the file 
  1572. name displayed on line 3 was not what was needed ╨º we were looking for the 
  1573. FINANCE directory, which came up the second time F9 was pressed.  In this 
  1574. example, filename completion saves about half the keystrokes that would be 
  1575. required to type the name in full.  If you are using long file or directory 
  1576. names, the savings can be much greater. 
  1577.  
  1578.  
  1579. ΓòÉΓòÉΓòÉ 2.2.4.2. Customizing Filename Completion ΓòÉΓòÉΓòÉ
  1580.  
  1581. You can customize filename completion for any internal or external command or 
  1582. alias.  This allows the command processor to display filenames intelligently 
  1583. based on the command you are entering.  For example, you might want to see only 
  1584. .TXT files when you use filename completion in the EDIT command. 
  1585.  
  1586. To customize filename completion you can use the Command Line 1 page of the 
  1587. configuration dialogs, or set the FileCompletion directive manually in the 
  1588. TCMDOS2.INI file.  You can also use the FILECOMPLETION environment variable. 
  1589. If you use both, the environment variable will override the settings in your 
  1590. .INI file.  You may find it useful to use the environment variable for 
  1591. experimenting, then create permanent settings with the configuration dialogs or 
  1592. the FileCompletion directive. 
  1593.  
  1594. The format for both the environment variable and the TCMDOS2.INI file is: 
  1595.  
  1596.         cmd1:ext1 ext2 ...; cmd2: ...
  1597.  
  1598. where "cmd" is a command name and "ext" is a file extension (which may include 
  1599. wildcards) or one of the following file types: 
  1600.  
  1601.         DIRS        Directories 
  1602.         RDONLY      Read-only files 
  1603.         HIDDEN      Hidden files 
  1604.         SYSTEM      System files 
  1605.         ARCHIVE     Files modified since the last backup 
  1606.  
  1607.  The command name is the internal command, alias command, or executable file 
  1608.  name (without a path).  For example, to have file completion return only 
  1609.  directories for the CD command and only .C and .ASM files for a Windows editor 
  1610.  called WinEdit, you would use this setting for filename completion in the 
  1611.  configuration dialogs: 
  1612.  
  1613.           FileCompletion=cd:dirs; winedit:c asm
  1614.  
  1615.  To set the same values using the environment variable, you would use this 
  1616.  line: 
  1617.  
  1618.           [c:\] set filecompletion=cd:dirs; winedit:c asm
  1619.  
  1620.  With this setting in effect, if you type "CD " and then pressed Tab, Take 
  1621.  Command will return only directories, not files.  If you type "B " and press 
  1622.  Tab, you will see only names of .C and .ASM files. 
  1623.  
  1624.  Take Command does not check your command line for aliases before matching the 
  1625.  commands for customized file completion.  Instead, it ignores any path or file 
  1626.  extension information in the first word of the command, and then searches the 
  1627.  FILECOMPLETION environment variable and the FileCompletion directive the 
  1628.  TCMDOS2.INI file to find a match that will limit the files selected for 
  1629.  filename completion 
  1630.  
  1631.  
  1632. ΓòÉΓòÉΓòÉ 2.2.4.3. Filename Completion Window ΓòÉΓòÉΓòÉ
  1633.  
  1634. You can view filenames in a scrollable filename completion window and select 
  1635. the file you want to work with.  To activate the window, press F7 or Ctrl-Tab 
  1636. at the command line. You will see a window in the upper-right corner of the 
  1637. screen, with a sorted list of files that match any partial filename you have 
  1638. entered on the command line.  If you haven't yet entered a file name, the 
  1639. window will contain the name of all files in the current directory.  You can 
  1640. search for a name by typing the first few characters; see Popup Windows for 
  1641. details. (Ctrl-Tab will work only if your keyboard and keyboard driver support 
  1642. it.  If it does not work on your system, use F7 instead.) 
  1643.  
  1644. See Popup Windows for information on customizing window position and size. 
  1645.  
  1646. Filename Completion Window Keys: 
  1647.  
  1648.         F7                  (from the command line)  Open the filename 
  1649.                             completion window. 
  1650.          or Ctrl-Tab 
  1651.                            Scroll the display up one line. 
  1652.                            Scroll the display down one line. 
  1653.                             Scroll the display left 4 columns. 
  1654.                             Scroll the display right 4 columns. 
  1655.         PgUp                Scroll the display up one page. 
  1656.         PgDn                Scroll the display down one page. 
  1657.         Ctrl-PgUp           Go to the beginning of the filename list. 
  1658.          or Home 
  1659.         Ctrl-PgDn           Go to the end of the filename list. 
  1660.          or End 
  1661.         Enter               Insert the selected filename into the command line. 
  1662.          or Double click 
  1663.  
  1664.  
  1665. ΓòÉΓòÉΓòÉ 2.2.5. Automatic Directory Changes ΓòÉΓòÉΓòÉ
  1666.  
  1667. [Automatic directory changes are part of a set of comprehensive directory 
  1668. navigation features built into Take Command.  For a summary of these features, 
  1669. and more information on the Extended Directory Searches and CDPATH features 
  1670. mentioned below, see the Directory Navigation section.] 
  1671.  
  1672. The automatic directory change feature lets you change directories quickly from 
  1673. the command prompt, without entering an explicit CD or CDD command.  To do so, 
  1674. simply type the name of the directory you want to change to at the prompt, with 
  1675. a backslash [\] at the end.  For example: 
  1676.  
  1677.         [c:\] tcmd\
  1678.         [c:\tcmd]
  1679.  
  1680. This feature can make directory changes very simple when it's combined with 
  1681. Extended Directory Searches or CDPATH.  If you have enabled either of those 
  1682. features, Take Command will use them in searching for any directory you change 
  1683. to with an automatic directory change (see Directory Navigation for more 
  1684. information on CDPATH and Extended Directory Searches). 
  1685.  
  1686. For example, suppose Extended Directory Searches are enabled, and the directory 
  1687. WIN exists on drive E:.  You can change to this directory with a single word on 
  1688. the command line: 
  1689.  
  1690.         [c:\tcmd] win\
  1691.         [e:\win]
  1692.  
  1693. (Depending on the way Extended Directory Changes are configured, and the number 
  1694. of subdirectories on your disk whose names contain the string WIN, when you 
  1695. execute such a command you may see an immediate change as shown above, or a 
  1696. popup window which contains a list of subdirectories named WIN to choose from.) 
  1697.  
  1698. The text before the backslash can include a drive letter, a full path, a 
  1699. partial path, or a UNC name. Commands like "....\" can be used to move up the 
  1700. directory tree quickly (see Extended Parent Directory Names). Automatic 
  1701. directory changes save the current directory, so it can be recalled with a "CDD 
  1702. -" or "CD -" command.  For example, any of the following are valid automatic 
  1703. directory change entries: 
  1704.  
  1705.         [c:\] d:\data\finance\
  1706.         [c:\] archives\
  1707.         [c:\] ...\util\os2\
  1708.         [c:\] \\server\vol1\george\
  1709.  
  1710. The first and last examples change to the named directory.  The second changes 
  1711. to the ARCHIVES subdirectory of the current directory, and the third changes to 
  1712. the UTIL\OS2 subdirectory of the directory which is two levels "up" from the 
  1713. current directory in the tree. 
  1714.  
  1715.  
  1716. ΓòÉΓòÉΓòÉ 2.2.6. ┬áDirectory History Window ΓòÉΓòÉΓòÉ
  1717.  
  1718. [The directory history window is part of a set of compreshensive directory 
  1719. navigation features built into Take Command.  For a summary of thse features, 
  1720. and more information on enhanced directory navigation features, see Directory 
  1721. Navigation.] 
  1722.  
  1723. Directory History Window Keys: 
  1724.  
  1725.         F6              Open the directory history window. 
  1726.                        Scroll the display up one line. 
  1727.                        Scroll the display down one line. 
  1728.                         Scroll the display left 4 columns. 
  1729.                         Scroll the display right 4 columns. 
  1730.         PgUp            Scroll the display up one page. 
  1731.         PgDn            Scroll the display down one page. 
  1732.         Ctrl-PgUp       Go to the beginning of the directory list. 
  1733.          or Home 
  1734.         Ctrl-PgDn       Go to the end of the directory list. 
  1735.          or End 
  1736.         Ctrl-D          Delete the selected line from the directory list. 
  1737.         Enter           Change to the selected drive and directory. 
  1738.         Ctrl-Enter      Move the selected line to the command line for editing. 
  1739.  
  1740.  See Popup Windows for information on customizing window position and size. 
  1741.  
  1742.  The current directory is recorded automatically in the directory history list 
  1743.  just before each change to a new directory or drive. 
  1744.  
  1745.  You can view the directory history from a directory history window and change 
  1746.  to any drive and directory on the list.  To activate the directory history 
  1747.  window, press F6 at the command line.  You can then select a new directory 
  1748.  with the Enter key or by double-clicking with the mouse. 
  1749.  
  1750.  If the directory history list becomes full, old entries are deleted to make 
  1751.  room for new ones.  You can set the size of the list from the Startup page of 
  1752.  the configuration dialogs, or with the DirHistory directive in the TCMDOS2.INI 
  1753.  file or with the corresponding itmes on the Startup and Command Line pages of 
  1754.  the configuration notebook.  You can change the keys used in the window with 
  1755.  key mapping directives in the TCMDOS2.INI file. 
  1756.  
  1757.  In order to conserve space, each directory name is recorded just once in the 
  1758.  directory history, even if you move into and out of that directory several 
  1759.  times.  The directory history can be stored in either a "local" or "global" 
  1760.  list; see below for details. 
  1761.  
  1762.  When you switch directories the original directory is saved in the directory 
  1763.  history list, regardless of whether you change directories at the command 
  1764.  line, from within a batch file, or from within an alias.  However, directory 
  1765.  changes made by external directory navigation utilities or other external 
  1766.  programs are not recorded by Take Command. 
  1767.  
  1768.  Local and Global Directory History 
  1769.  
  1770.  The directory history can be stored in either a local or global list. 
  1771.  
  1772.  With a local directory history list, any changes made to the list will only 
  1773.  affect the current Take Command session.  They will not be visible in other 
  1774.  sessions. 
  1775.  
  1776.  With a global list, all Take Command sessions will share the same directory 
  1777.  history, and any changes made to the list in one copy will affect all other 
  1778.  copies.  Global lists are the default. 
  1779.  
  1780.  You can control the type of directory history list with the LocalDirHistory 
  1781.  directive in TCMDOS2.INI and with the /L and /LD options of the START command. 
  1782.  
  1783.  When you close all Take Command sessions, the memory for the global directory 
  1784.  history list is released, and a new, empty directory history list is created 
  1785.  the next time you start Take Command.  If you want the directory histy list to 
  1786.  be retained in memory even when no copy Take Command is running, you need to 
  1787.  execute the SHRALIAS command, which performs this service for the global 
  1788.  command history, directory history, and alias lists. 
  1789.  
  1790.  There is no fixed rule for deciding whether to use a local or global directory 
  1791.  history list.  Depending on your work style, you may find it most convenient 
  1792.  to use one type, or a mixture of types in different sessions.  We recommend 
  1793.  that you start with a global directory history, then modify it if you find a 
  1794.  situation where the default is not convenient. 
  1795.  
  1796.  
  1797. ΓòÉΓòÉΓòÉ 2.2.7. Multiple Commands ΓòÉΓòÉΓòÉ
  1798.  
  1799. You can type several commands on the same command line, separated by an 
  1800. ampersand [&].  For example, if you know you want to copy all of your .TXT 
  1801. files to drive A: and then run CHKDSK to be sure that drive A's file structure 
  1802. is in good shape, you could enter the following command: 
  1803.  
  1804.         [c:\] copy *.txt a: & chkdsk a:
  1805.  
  1806. You may put as many commands on the command line as you wish, as long as the 
  1807. total length of the command line does not exceed 1023 characters. 
  1808.  
  1809. You can use multiple commands in alias definitions and batch files and as well 
  1810. as from the command line. 
  1811.  
  1812. If you don't like using the default command separator, you can pick another 
  1813. character using the SETDOS /C command or the CommandSep directive in the 
  1814. TCMDOS2.INI file.  If you plan to share aliases or batch files between Take 
  1815. Command and 4DOS, 4OS2, or 4NT, see Special Character Compatibility for details 
  1816. about choosing compatible command separators for two or more products. 
  1817.  
  1818.  
  1819. ΓòÉΓòÉΓòÉ 2.2.8. Expanding and Disabling Aliases ΓòÉΓòÉΓòÉ
  1820.  
  1821. A few command line options are specifically related aliases, and are documened 
  1822. briefly here for completeness.  If you are not familiar with alises, see 
  1823. Aliases and the ALIAS command for complete details. 
  1824.  
  1825. You can expand an alias on the command line and view or edit the results by 
  1826. pressing Ctrl-F before the command is executed.  Doing so is especially useful 
  1827. when you are developing and debugging a complex alias or if you want to make 
  1828. sure that an alias that you may have forgotten won't change the intent of your 
  1829. command. 
  1830.  
  1831. At times, you may want to temporarily disable an alias that you have defined. 
  1832. To do so, precede the command with an asterisk [*].  For example, if you have 
  1833. an alias for DIR which changes the display format, you can use the following 
  1834. command to bypass the alias and display the directory in the standard format: 
  1835.  
  1836.         [c:\] *dir
  1837.  
  1838.  
  1839. ΓòÉΓòÉΓòÉ 2.2.9. Command-Line Length Limits ΓòÉΓòÉΓòÉ
  1840.  
  1841. When you first enter a command at the prompt or in an alias or batch file, it 
  1842. can be up to 1,023 characters long. 
  1843.  
  1844. As Take Command scans the command line and substitutes the contents of aliases 
  1845. and environment variables for their names, the line usually gets longer.  This 
  1846. expanded line is stored in an internal buffer which allows each individual 
  1847. command to grow to 1,023 characters during the expansion process. 
  1848.  
  1849. In addition, if you have multiple commands on a single line, during expansion 
  1850. the entire line can grow to as much as 2,047 characters.  If your use of 
  1851. aliases or environment variables causes the command line to exceed either of 
  1852. these limits as it is expanded, you will see a "Command line too long" error 
  1853. message and the remainder of the line will not be executed. 
  1854.  
  1855.  
  1856. ΓòÉΓòÉΓòÉ 2.3. File Selection ΓòÉΓòÉΓòÉ
  1857.  
  1858. Most internal commands (like COPY, DIR, etc.) work on a file or a group of 
  1859. files.  Besides typing the exact name of the file you want to work with, you 
  1860. can use several shorthand forms for naming or selecting files and the 
  1861. applications associated with them. 
  1862.  
  1863. Most of these features apply to Take Command commands only, and can not be used 
  1864. to pass file names to external programs unless those programs were specifically 
  1865. written to support these features. 
  1866.  
  1867. The file selection features are: 
  1868.  
  1869.     Extended Parent Directory Names 
  1870.     Wildcards 
  1871.     Date, Time, and Size Ranges 
  1872.     File Exclusion Ranges 
  1873.     Multiple Filenames 
  1874.     Include Lists 
  1875.     Executable Extensions 
  1876.  
  1877.  
  1878. ΓòÉΓòÉΓòÉ 2.3.1. Extended Parent Directory Names ΓòÉΓòÉΓòÉ
  1879.  
  1880. Take Command allows you to extend the traditional syntax for naming the parent 
  1881. directory, by adding additional [.] characters.  Each additional [.] represents 
  1882. an additional directory level above the current directory.  For example, 
  1883. .\FILE.DAT refers to a file in the current directory, ..\FILE.DAT refers to a 
  1884. file one level up (in the parent directory), and ...\FILE.DAT refers to a file 
  1885. two levels up (in the parent of the parent directory). If you are in the 
  1886. C:\DATA\FINANCE\JANUARY directory and want to copy the file LETTERS.DAT from 
  1887. the directory C:\DATA to drive A: 
  1888.  
  1889.         [C:\DATA\FINANCE\JANUARY] copy ...\LETTERS.DAT A:
  1890.  
  1891.  
  1892. ΓòÉΓòÉΓòÉ 2.3.2. Wildcards ΓòÉΓòÉΓòÉ
  1893.  
  1894. Wildcards let you specify a file or group of files by typing a partial 
  1895. filename.  The appropriate directory is scanned to find all of the files that 
  1896. match the partial name you have specified. 
  1897.  
  1898. Wildcards are usually used to specify which files should be processed by a 
  1899. command.  If you need to specify which files should not be processed see File 
  1900. Exclusion Ranges (for internal commands), or EXCEPT (for external commands). 
  1901.  
  1902. Most internal commands accept filenames with wildcards anywhere that a full 
  1903. filename can be used.  There are two wildcard characters, the asterisk [*] and 
  1904. the question mark [?], plus a special method of specifying a range of 
  1905. permissible characters. 
  1906.  
  1907. An asterisk [*] in a filename means "any zero or more characters in this 
  1908. position."  For example, this command will display a list of all files in the 
  1909. current directory: 
  1910.  
  1911.         [c:\] dir *.*
  1912.  
  1913. If you want to see all of the files with a .TXT extension, you could type this: 
  1914.  
  1915.         [c:\] dir *.txt
  1916.  
  1917. If you know that the file you are looking for has a base name that begins with 
  1918. ST and an extension that begins with .D, you can find it this way. Filenames 
  1919. such as STATE.DAT, STEVEN.DOC, and ST.D will all be displayed: 
  1920.  
  1921.         [c:\] dir st*.d*
  1922.  
  1923. Take Command also lets you use the asterisk to match filenames with specific 
  1924. letters somewhere inside the name.  The following example will display any file 
  1925. with a .TXT extension that has the letters AM together anywhere inside its base 
  1926. name.  It will, for example, display AMPLE.TXT, STAMP.TXT, CLAM.TXT, and 
  1927. AM.TXT: 
  1928.  
  1929.         [c:\] dir *am*.txt
  1930.  
  1931. A question mark [?] matches any single filename character.  You can put the 
  1932. question mark anywhere in a filename and use as many question marks as you 
  1933. need.  The following example will display files with names like LETTER.DOC, 
  1934. LATTER.DAT, and LITTER.DU: 
  1935.  
  1936.         [c:\] dir l?tter.d??
  1937.  
  1938. The use of an asterisk wildcard before other characters, and of the character 
  1939. ranges discussed below, are enhancements to the standard wildcard syntax, and 
  1940. are not likely to work properly with software other than Take Command, 4DOS, 
  1941. 4OS2, and 4NT. 
  1942.  
  1943. Advanced Wildcards 
  1944.  
  1945. "Extra" question marks in your wildcard specification are ignored if the file 
  1946. name is shorter than the wildcard specification.  For example, if you have 
  1947. files called LETTER.DOC, LETTER1.DOC, and LETTERA.DOC, this command will 
  1948. display all three names: 
  1949.  
  1950.         [c:\] dir letter?.doc
  1951.  
  1952. The file LETTER.DOC is included in the display because the "extra" question 
  1953. mark at the end of "LETTER?" is ignored when matching the shorter name LETTER. 
  1954.  
  1955. In some cases, the question mark wildcard may be too general.  You can also 
  1956. specify what characters you want to accept (or exclude) in a particular 
  1957. position in the filename by using square brackets. Inside the brackets, you can 
  1958. put the individual acceptable characters or ranges of characters.  For example, 
  1959. if you wanted to match LETTER0.DOC through LETTER9.DOC, you could use this 
  1960. command: 
  1961.  
  1962.         [c:\] dir letter[0-9].doc
  1963.  
  1964. You could find all files that have a vowel as the second letter in their name 
  1965. this way.  This example also demonstrates how to mix the wildcard characters: 
  1966.  
  1967.         [c:\] dir ?[aeiouy]*.*
  1968.  
  1969. You can exclude a group of characters or a range of characters by using an 
  1970. exclamation mark [!] as the first character inside the brackets. This example 
  1971. displays all filenames that are at least 2 characters long except those which 
  1972. have a vowel as the second letter in their names: 
  1973.  
  1974.         [c:\] dir ?[!aeiouy]*.*
  1975.  
  1976. The next example, which selects files such as AIP, BIP, and TIP but not NIP, 
  1977. demonstrates how you can use multiple ranges inside the brackets.  It will 
  1978. accept a file that begins with an A, B, C, D, T, U, or V: 
  1979.  
  1980.         [c:\] dir [a-dt-v]ip
  1981.  
  1982. You may use a question mark character inside the brackets, but its meaning is 
  1983. slightly different than a normal (unbracketed) question mark wildcard.  A 
  1984. normal question mark wildcard matches any character, but will be ignored when 
  1985. matching a name shorter than the wildcard specification, as described above. A 
  1986. question mark inside brackets will match any character, but will not be 
  1987. discarded when matching shorter filenames.  For example: 
  1988.  
  1989.         [c:\] dir letter[?].doc
  1990.  
  1991. will display LETTER1.DOC and LETTERA.DOC, but not LETTER.DOC. 
  1992.  
  1993. A pair of brackets with no characters between them [], or an exclamation point 
  1994. and question mark together [!?], will match only if there is no character in 
  1995. that position.  For example, 
  1996.  
  1997.         [c:\] dir letter[].doc
  1998.  
  1999. will not display LETTER1.DOC or LETTERA.DOC, but will display LETTER.DOC.  This 
  2000. is most useful for commands like 
  2001.  
  2002.         [c:\] dir /I"[]" *.btm
  2003.  
  2004. which will display a list of all .BTM files which don't have a description, 
  2005. because the empty brackets match only an empty description string (DIR /I 
  2006. selects files to display based on their descriptions). 
  2007.  
  2008. You can repeat any of the wildcard characters in any combination you desire 
  2009. within a single file name.  For example, the following command lists all files 
  2010. which have an A, B, or C as the third character, followed by zero or more 
  2011. additional characters, followed by a D, E, or F, followed optionally by some 
  2012. additional characters, and with an extension beginning with P or Q.  You 
  2013. probably won't need to do anything this complex, but we've included it to show 
  2014. you the flexibility of extended wildcards: 
  2015.  
  2016.         [c:\] dir ??[abc]*[def]*.[pq]*
  2017.  
  2018. You can also use the square bracket wildcard syntax to work around a conflict 
  2019. between HPFS filenames containing semicolons [;], and the use of a semicolon to 
  2020. indicate an include list . For example, if you have a file on an HPFS drive 
  2021. named C:\DATA\LETTER1;V2 and you enter this command: 
  2022.  
  2023.         [c:\] del \data\letter1;v2
  2024.  
  2025. you will not get the results you expect.  Instead of deleting the named file, 
  2026. Take Command will attempt to delete LETTER1 and then V2, because the semicolon 
  2027. indicates an include list.  However, if you use square brackets around the 
  2028. semicolon it will be interpreted as a filename character, and not as an include 
  2029. list separator.  For example, this command would delete the file named above: 
  2030.  
  2031.         [c:\] del \data\letter1[;]v2
  2032.  
  2033.  
  2034. ΓòÉΓòÉΓòÉ 2.3.3. Ranges ΓòÉΓòÉΓòÉ
  2035.  
  2036.             Date, Time, and Size Ranges 
  2037.             File Exclusion Ranges 
  2038.  
  2039.  
  2040. ΓòÉΓòÉΓòÉ 2.3.3.1. Date, Time, and Size Ranges ΓòÉΓòÉΓòÉ
  2041.  
  2042. Most internal commands which accept wildcards also allow date, time, and size 
  2043. ranges to further define the files that you wish to work with.  Take Command 
  2044. will examine each file's size and timestamps (a record of when the file was 
  2045. created, last modified, or last accessed) to determine which files meet the 
  2046. range criteria that you have specified. 
  2047.  
  2048. (Take Command for OS/2 also supports File Exclusion Ranges to exclude files 
  2049. from a command.  These are similar to date, time, and size ranges, but have a 
  2050. slightly different purpose and therefore are documented separately.) 
  2051.  
  2052. A range begins with the switch character (/), followed by a left square bracket 
  2053. ("[") and a character that specifies the range type:  "s" for a size range, "d" 
  2054. for a date range, or "t" for a time range.  The "s", "d", or "t" is followed by 
  2055. a start value, and an optional comma and end value.  The range ends with a 
  2056. right square bracket ("]").  For example, to select files between 100 and 200 
  2057. bytes long you could use the range /[s100,200]. 
  2058.  
  2059. See the individual range types for details on specifying ranges: 
  2060.  
  2061.     Date Ranges 
  2062.     Time Ranges 
  2063.     Size Ranges 
  2064.  
  2065. Using Ranges 
  2066.  
  2067. All ranges are inclusive.  For example, a size range which selects files from 
  2068. 10,000 to 20,000 bytes long will match files that are exactly 10,000 bytes and 
  2069. 20,000 bytes long, as well as all sizes in between; a date range that selects 
  2070. files last modified between 10-27-97 and 10-30-97 will include files modified 
  2071. on each of those dates, and on the two days in between. 
  2072.  
  2073. If you reverse range start and end values, Take Command will recognize the 
  2074. reversal, and will use the second (lower) value as the start point of the range 
  2075. and the first (higher) value as its end point.  For example, the range above 
  2076. for files between 10 and 200 bytes long could also be entered as /[s200,100]. 
  2077.  
  2078. If you combine two types of ranges, a file must satisfy both ranges to be 
  2079. included.  For example, /[d2-8-97,2-9-97] /[s1024,2048] means files last 
  2080. modified between February 8 and February 9, 1997, which are also between 1,024 
  2081. and 2,048 bytes long. 
  2082.  
  2083. When you use a date, time, or size range in a command, it should immediately 
  2084. follow the command name.  Unlike some command switches which apply to only part 
  2085. of the command line, the range usually applies to all file names specified for 
  2086. the command.  Any exceptions are noted in the descriptions of individual 
  2087. commands. 
  2088.  
  2089. For example, to get a directory of all the *.C files dated October 1, 1997, you 
  2090. could use this command: 
  2091.  
  2092.         [c:\] dir /[d10-1-97,+0] *.c
  2093.  
  2094. To delete all of the 0-byte files on your hard disk, you could use this 
  2095. command: 
  2096.  
  2097.         [c:\] del /[s0,0] *.* /s
  2098.  
  2099. And to copy all of the non-zero byte files that you changed yesterday or today 
  2100. to your floppy disk, you can use this command: 
  2101.  
  2102.         [c:\] copy /[d-1] /[s1] *.* a:
  2103.  
  2104. File systems which support long filenames maintain 3 sets of dates and times 
  2105. for each file: creation, last access, and last modification.  By default, date 
  2106. and time ranges work with the last modification time stamp.  You can use the 
  2107. "last access" (a) or "created" (c) time stamp in a date or time range with the 
  2108. syntax: 
  2109.  
  2110.         /[da...]
  2111.     or  /[dc...]
  2112.     or  /[ta...]
  2113.     or  /[tc...]
  2114.  
  2115. For example, to select files that were last accessed yesterday or today: 
  2116.  
  2117.         /[da-1]
  2118.  
  2119. Date, time, and size ranges can be used with the ATTRIB, COPY, DEL, DESCRIBE, 
  2120. DIR, EXCEPT, FFIND, FOR, LIST, MOVE, RD, REN, SELECT, and TYPE commands. They 
  2121. cannot be used with filename completion or in filename arguments for variable 
  2122. functions. 
  2123.  
  2124.  
  2125. ΓòÉΓòÉΓòÉ 2.3.3.1.1. Date Ranges ΓòÉΓòÉΓòÉ
  2126.  
  2127. Date ranges select files that were created or last modified at any time between 
  2128. the two dates.  For example, /[d12-1-97,12-5-97] selects files that were last 
  2129. modified between December 1, 1997, and December 5, 1997. 
  2130.  
  2131. The time for the starting date defaults to 00:00:00 and the time for the ending 
  2132. date defaults to 23:59:59.  You can alter these defaults, if you wish, by 
  2133. including a start and stop time inside the date range.  The time is separated 
  2134. from the date with an at sign [@]. For example, the range 
  2135. /[d7-1-97@8:00a,7-3-97@6:00p] selects files that were modified at any time 
  2136. between 8:00 am on July 1, 1997 and 6:00 PM on July 3, 1997.  If you prefer, 
  2137. you can specify the times in 24-hour format (e.g., @18:00 for the end time in 
  2138. the previous example).  The date format and the separator character used in the 
  2139. time may vary depending upon your country information. 
  2140.  
  2141. If you omit the second argument in a date range, Take Command substitutes the 
  2142. current date and time.  For example, /[d10-1-97] selects files dated between 
  2143. October 1, 1997 and today. 
  2144.  
  2145. You can use an offset value for either the beginning or ending date, or both. 
  2146. An offset begins with a plus sign [+] or a minus sign [- ] followed by an 
  2147. integer.  If you use an offset for the second value, it is calculated relative 
  2148. to the first.  If you use an offset for the first (or only) value, the current 
  2149. date is used as the basis for calculation.  For example: 
  2150.  
  2151.         Specification     Selects Files
  2152.         /[d10-27-97,+3]   modified between 10-27-97 and 10-30-97
  2153.         /[d10-27-97,-3]   modified between 10-24-97 and 10-27-97
  2154.         /[d-0]            modified today (from today minus zero days,
  2155.                           to today)
  2156.         /[d-1]            modified yesterday or today (from today
  2157.                           minus one day, to today)
  2158.         /[d-1,+0]         modified yesterday (from today minus one
  2159.                           day, to zero days after that)
  2160.  
  2161. As a shorthand way of specifying files modified today, you can also use /[d]; 
  2162. this has the same effect as the /[d-0] example shown above. 
  2163.  
  2164. To select files last modified n days ago or earlier, use /[d- n,1/1/80].  For 
  2165. example, to get a directory of all files last modified 3 days or more before 
  2166. today (i.e., those files not modified within the last 3 days), you could use 
  2167. this command: 
  2168.  
  2169.         [c:\] dir /[d-3,1/1/80]
  2170.  
  2171. This reversed date range (with the later date given first) will be handled 
  2172. correctly by Take Command.  It takes advantage of the facts that an offset in 
  2173. the start date is relative to today, and that the base or "zero" point for PC 
  2174. file dates is January 1, 1980, or earlier. 
  2175.  
  2176. You cannot use offsets in the time portion of a date range (the part after an 
  2177. at sign), but you can combine a time with a date offset.  For example, 
  2178. /[d12-8-97@12:00,+2@12:00] selects files that were last modified between noon 
  2179. on December 8 and noon on December 10, 1997.  Similarly, /[d-2@15:00,+1] 
  2180. selects files last modified between 3:00 PM the day before yesterday and the 
  2181. end of the day one day after that, i.e., yesterday.  The second time defaults 
  2182. to the end of the day because no time is given. 
  2183.  
  2184. OS/2 HPFS partitions keep track of the date a file was created, the date it was 
  2185. last modified (written), and the date it was last accessed.  You can specify 
  2186. which date and time is used in a date range by adding a (access), c (creation), 
  2187. or w (write) after the d in the range.  For example, to select all files 
  2188. created between February 1, 1997 and February 7, 1997 you would use 
  2189. /[dc2-1-97,2-7- 97].  If you don't specify which date and time to use, Take 
  2190. Command will use the date the file was last modified (written). 
  2191.  
  2192.  
  2193. ΓòÉΓòÉΓòÉ 2.3.3.1.2. Time Ranges ΓòÉΓòÉΓòÉ
  2194.  
  2195. A time range specifies a file modification time without reference to the date. 
  2196. For example, to select files modified between noon and 2:00 PM on any date, use 
  2197. /[t12:00p,2:00p].  The times in a time range can either be in 12-hour format, 
  2198. with a trailing "a" for AM or "p" for PM, or in 24-hour format. 
  2199.  
  2200. If you omit the second argument in a time range, you will select files that 
  2201. were modified between the first time and the current time, on any date.  You 
  2202. can also use offsets, beginning with a plus sign [+] or a minus sign [-] for 
  2203. either or both of the arguments in a time range.  The offset values are 
  2204. interpreted as minutes.  Some examples: 
  2205.  
  2206.         Specification      Selects Files
  2207.         /[t12:00p,+120]    modified between noon and 2:00
  2208.                            PM on any date
  2209.         /[t-120,+120]      modified between two hours ago and the
  2210.                            current time on any date
  2211.         /[t0:00,11:59]     modified in the morning on any date
  2212.  
  2213. The separator character used in the time may vary depending upon your country 
  2214. information. 
  2215.  
  2216. OS/2 HPFS partitions keep track of the time a file was created, the time it was 
  2217. last modified (written), and the time it was last accessed.  You can specify 
  2218. which time is used in a time range by adding a (access), c (creation), or w 
  2219. (write) after the d in the range.  For example, to select all files created 
  2220. between noon and 2 pm,  you would use /[tc12:00p,2:00p].  If you don't specify 
  2221. which time to use, Take Command will use the time the file was last modified 
  2222. (written). 
  2223.  
  2224.  
  2225. ΓòÉΓòÉΓòÉ 2.3.3.1.3. Size Ranges ΓòÉΓòÉΓòÉ
  2226.  
  2227. Size ranges simply select files whose size is between the limits given.  For 
  2228. example, /[s10000,20000] selects files between 10,000 and 20,000 bytes long. 
  2229.  
  2230. Either or both values in a size range can end with "k" to indicate thousands of 
  2231. bytes, "K" to indicate kilobytes (1,024 bytes), "m" to indicate millions of 
  2232. bytes, or "M" to indicate megabytes (1,048,576 bytes).  For example, the range 
  2233. above could be rewritten as /[s10k,20k]. 
  2234.  
  2235. All ranges are inclusive.  Both examples above will match files that are 
  2236. exactly 10,000 bytes and 20,000 bytes long, as well as all sizes in between. 
  2237.  
  2238. The second argument of a size range is optional.  If you use a single argument, 
  2239. like /[s10k], you will select files of that size or larger.  You can also 
  2240. precede the second argument with a plus sign [+]; when you do, it is added to 
  2241. the first value to determine the largest file size to include in the search. 
  2242. For example, /[s10k,+1k] selects files from 10,000 through 11,000 bytes in 
  2243. size. 
  2244.  
  2245. Some further examples of size ranges: 
  2246.  
  2247.         Specification    Selects Files
  2248.         /[s0,0]          of length zero(empty)
  2249.         /[s1M]           1 megabyte or more in length
  2250.         /[s10k,+200]     between 10,000 and 10,200 bytes
  2251.  
  2252.  
  2253. ΓòÉΓòÉΓòÉ 2.3.3.2. File Exclusion Ranges ΓòÉΓòÉΓòÉ
  2254.  
  2255. Most internal commands which accept wildcards also accept file exclusion ranges 
  2256. to further define the files that you wish to work with.  Take Command examines 
  2257. each file name and excludes files that match the names you have specified in a 
  2258. file exclusion range. 
  2259.  
  2260. A file exclusion range begins with the switch character (usually a slash), 
  2261. followed by a left square bracket and an exclamation mark ("[!") The range ends 
  2262. with a right square bracket ("]"). 
  2263.  
  2264. Inside the brackets, you can list one or more filenames to be excluded from the 
  2265. command.  The filenames can include wildcards and extended wildcards, but 
  2266. cannot include path names or drive letters. 
  2267.  
  2268. The following example will display all files in the current directory except 
  2269. backup files (files with the extension .BAK or .BK!): 
  2270.  
  2271.         [c:\] dir /[!*.bak *.bk!] *.*
  2272.  
  2273. You can combine file exclusion ranges with date, time, and size ranges.  This 
  2274. example displays all files that are 10K bytes or larger in size and that were 
  2275. created in the last 7 days, except .C and .H files: 
  2276.  
  2277.         [c:\] dir /[s10k] /[d-7] /[!*.c *.h] *.*
  2278. File exclusion ranges will only work for internal commands.  The EXCEPT command 
  2279. can be used to exclude files from processing by many external commands. 
  2280.  
  2281.  
  2282. ΓòÉΓòÉΓòÉ 2.3.4. Multiple Filenames ΓòÉΓòÉΓòÉ
  2283.  
  2284. Most file processing commands can work with multiple files at one time.  To use 
  2285. multiple file names, you simply list the files one after another on the command 
  2286. line, separated by spaces.  You can use wildcards in any or all of the 
  2287. filenames.  For example, to copy all .TXT and .DOC files from the current 
  2288. directory to drive A, you could use this command: 
  2289.  
  2290.         [c:\] copy *.txt *.doc a:
  2291.  
  2292. If the files you want to work with are not in the default directory, you must 
  2293. include the full path with each filename: 
  2294.  
  2295.         [c:\] copy a:\details\file1.txt a:\details\file1.doc
  2296. c:
  2297.  
  2298. Multiple filenames are handy when you want to match a group of files which 
  2299. cannot be defined with a single filename and wildcards.  They let you be very 
  2300. specific about which files you want to work with in a command. 
  2301.  
  2302. When you use multiple filenames with a command that expects both a source and a 
  2303. destination, like COPY or MOVE, be sure that you always include a specific 
  2304. destination on the command line.  If you don't, the command will assume that 
  2305. the last filename is the destination and may overwrite important files. 
  2306.  
  2307. Like extended wildcards and include lists, the multiple filename feature will 
  2308. work with internal commands but not with external programs, unless those 
  2309. programs have been written to handle multiple file names on the command line. 
  2310.  
  2311. If you have a list of files to process that's too long to put on the command 
  2312. line or too time-consuming to type, see the FOR and SELECT commands for other 
  2313. ways of passing multiple file names to a command. 
  2314.  
  2315.  
  2316. ΓòÉΓòÉΓòÉ 2.3.5. Include Lists ΓòÉΓòÉΓòÉ
  2317.  
  2318. Any internal command that accepts multiple filenames will also accept one or 
  2319. more include lists.  An include list is simply a group of filenames, with or 
  2320. without wildcards, separated by semicolons [;].  All files in the include list 
  2321. must be in the same directory.  You may not add a space on either side of the 
  2322. semicolon. 
  2323.  
  2324. For example, you can shorten this command which uses multiple file names: 
  2325.  
  2326.         [c:\] copy a:\details\file1.txt a:\details\file1.doc
  2327. c:
  2328.  
  2329. to this using an include list: 
  2330.  
  2331.         [c:\] copy a:\details\file1.txt;file1.doc c:
  2332.  
  2333. Include lists are similar to multiple filenames, but have three important 
  2334. differences.  First, you don't have to repeat the path to your files if you use 
  2335. an include list, because all of the included files must be in the same 
  2336. directory. 
  2337.  
  2338. Second, if you use include lists, you aren't as likely to accidentally 
  2339. overwrite files if you forget a destination path for commands like COPY, 
  2340. because the last name in the list will be part of the include list, and won't 
  2341. be seen as the destination file name. (Include lists can only be used as the 
  2342. source parameter -- the location files are coming from -- for COPY and other 
  2343. similar commands.  They cannot be used to specify a destination for files.) 
  2344.  
  2345. Third, multiple filenames and include lists are processed differently by the 
  2346. DIR and SELECT commands. If you use multiple filenames, all of the files 
  2347. matching the first filename are processed, then all of the files matching the 
  2348. second name, and so on.  When you use an include list, all files that match any 
  2349. entry in the include list are processed together, and will appear together in 
  2350. the directory display or SELECT list.  You can see this difference clearly if 
  2351. you experiment with both techniques and the DIR command. For example, 
  2352.  
  2353.         [c:\] dir *.txt *.doc
  2354.  
  2355. will list all the .TXT files with a directory header, the file list, and a 
  2356. summary of the total number of files and bytes used.  Then it will do the same 
  2357. for the .DOC files.  However, 
  2358.  
  2359.         [c:\] dir *.txt;*.doc
  2360.  
  2361. will display all the files in one list. 
  2362.  
  2363. Like extended wildcards and multiple filenames, the include list feature will 
  2364. work with internal commands, but not with external programs (unless they have 
  2365. been programmed especially to support it). 
  2366.  
  2367. The maximum length of an include list is 260 characters. 
  2368.  
  2369.  
  2370. ΓòÉΓòÉΓòÉ 2.3.6. Executable Extensions ΓòÉΓòÉΓòÉ
  2371.  
  2372. Normally, when you type a filename (as opposed to an alias or internal command 
  2373. name) as the first word on the command line, Take Command looks for a file with 
  2374. that name to execute. 
  2375.  
  2376. The file's extension may be .EXE or .COM to indicate that it contains a 
  2377. program, it may have a batch file extension like .BTM, or the file's contents 
  2378. may indicate that it is executable. 
  2379.  
  2380. You can add to this default list of extensions, and have Take Command take the 
  2381. action you want with files that are not executable programs or batch files. The 
  2382. action taken is always based on the file's extension.  For example, you could 
  2383. start your text editor whenever you type the name of a .DOC file, or start your 
  2384. database manager whenever you type the name of a .DAT file. 
  2385.  
  2386. You can use environment variables to define the internal command, external 
  2387. program, batch file, or alias to run for each defined file extension.  To 
  2388. create an executable extension use the SET command to create a new environment 
  2389. variable.  An environment variable is recognized as an executable extension if 
  2390. its name begins with a period. 
  2391.  
  2392. The syntax for creating an executable extension is: 
  2393.  
  2394.         set .ext=command [options]
  2395.  
  2396. This tells Take Command to run the specified command whenever you name a file 
  2397. with the extension .ext at the prompt.  .EXT is the executable file extension; 
  2398. command is the name of the internal command, external program, alias, or batch 
  2399. file to run; and [options] are any command-line startup options you want to 
  2400. specify for the program, batch file, or alias. 
  2401.  
  2402. For example, if you want to run a word processor called EDITOR whenever you 
  2403. type the name of a file that has an extension of .EDT, you could use this 
  2404. command: 
  2405.  
  2406.         [c:\] set .edt=c:\edit\editor.exe
  2407.  
  2408. If the command specified in an executable extension is a batch file or external 
  2409. program, Take Command will search the PATH for it if necessary. However, you 
  2410. can make sure that the correct program or batch file is used, and speed up the 
  2411. executable extension, by specifying the full name including drive, path, 
  2412. filename, and extension. 
  2413.  
  2414. To remove an executable extension, use the UNSET command to remove the 
  2415. corresponding variable. 
  2416.  
  2417. Once an executable extension is defined, any time you name a file with that 
  2418. extension the corresponding program, batch file, or alias is started, with the 
  2419. name of your file passed to it as a parameter. 
  2420.  
  2421. This example defines B.EXE (the Boxer text editor) as the processor for .C 
  2422. files: 
  2423.  
  2424.         [c:\] set .c=c:\boxer\b.exe -Mxyz
  2425.  
  2426. Now, if you have a file called HELLO.C and enter the command 
  2427.  
  2428.         [c:\] hello -i30
  2429.  
  2430. This will be expanded to: 
  2431.  
  2432.         c:\brief\b.exe -Mxyz hello.c -i30
  2433.  
  2434. Notice that the text from the .C environment variable is inserted at the 
  2435. beginning of the line, including any options, followed by the original file 
  2436. name plus its extension, and then the remainder of the original command line. 
  2437.  
  2438. In order for executable extensions to work, the command, program, batch file, 
  2439. or alias must be able to interpret the command line properly.  For example, if 
  2440. a program you want to run doesn't accept a file name on its command line as 
  2441. shown in these examples, then executable extensions won't work with that 
  2442. program. 
  2443.  
  2444. Executable extensions may include wildcards, so you could, for example, run 
  2445. your text editor for any file with an extension beginning with T by defining an 
  2446. executable extension called .T*.  Extended wildcards (e.g., DO[CT] for .DOC and 
  2447. .DOT files) may also be used. 
  2448.  
  2449. To remove an executable extension, use the UNSET command to remove the 
  2450. corresponding variable. 
  2451.  
  2452.  
  2453. ΓòÉΓòÉΓòÉ 2.4. ┬áDirectory Navigation ΓòÉΓòÉΓòÉ
  2454.  
  2455. Take Command and OS/2 remember both a current or default drive for your system 
  2456. as a whole, and a current or default directory for every drive in your system. 
  2457. The current directory on the current drive is sometimes called the current 
  2458. working directory. 
  2459.  
  2460. With traditional command processors, you change the current drive by typing the 
  2461. new drive letter plus a colon at the prompt, and you change the current working 
  2462. directory with the CD command.  Take Command supports those standard features, 
  2463. and offers a number of enhancements to make directory navigation much simpler 
  2464. and faster. 
  2465.  
  2466. This section begins with a summary of all Take Command directory navigation 
  2467. features.  It also provides detailed documentation on the enhanced directory 
  2468. search features: Extended Directory Searches and the CDPATH. 
  2469.  
  2470. The Take Command directory navigation features are in three groups: features 
  2471. which help Take Command find the directory you want, methods for initiating a 
  2472. directory change with a minimal amount of typing, and methods for returning 
  2473. easily to directories you've recently used.  Each group is summarized below. 
  2474.  
  2475. Finding Directories 
  2476.  
  2477. Traditional command processors require you to explicitly type the name of the 
  2478. directory you want to change to.  Take Command supports this method, and also 
  2479. offer two significant enhancements: 
  2480.  
  2481.              Extended Directory Searchesallow Take Command to search a 
  2482.              "database" of all the directories on your system to find the one 
  2483.              you want. 
  2484.  
  2485.              The CDPATH allows you to enter a specific list of directories to 
  2486.              be searched, rather than searching a database.  Use CDPATH instead 
  2487.              of Extended Directory Searches if you find the extended searches 
  2488.              too broad, or your hard drive has too many directories for an 
  2489.              efficient search. 
  2490.  
  2491.  Initiating a Directory Change 
  2492.  
  2493.  Take Command supports the traditional methods of changing directories, and 
  2494.  also offer several more flexible approaches: 
  2495.  
  2496.              Automatic directory changes allow you to type a directory name at 
  2497.              the prompt and switch to it automatically, without typing an 
  2498.              explicit CD or similar command. 
  2499.  
  2500.              The CD command can change directories on a single drive, and can 
  2501.              return to the most recently used directory. 
  2502.  
  2503.              The CDD command changes drive and directory at the same time, and 
  2504.              can return to the most recently used drive and directory. 
  2505.  
  2506.              The PUSHD command changes the drive and directory like CDD, and 
  2507.              records the previous directory in a directory "stack."  You can 
  2508.              view the stack with DIRS and return to the directory on the top of 
  2509.              the stack with POPD. 
  2510.  
  2511.  CDD, PUSHD, and automatic directory changes can also change to a network drive 
  2512.  and directory mapped to a drive letter or specified with a UNC name. 
  2513.  
  2514.  Returning to a Previous Directory 
  2515.  
  2516.  Traditional command processors do not remember previously-used directories, 
  2517.  and can only "return" to a directory by changing back to it with a standard 
  2518.  drive change or CD command.  Take Command supports three additional methods 
  2519.  for returning to a previous directory: 
  2520.  
  2521.              The CD - and CDD - commands can be used to return to the previous 
  2522.              working directory (the one you used immediately before the current 
  2523.              directory). Use these commands if you are working in two 
  2524.              directories and alternating between them. 
  2525.  
  2526.              The directory history window allows you to select one of several 
  2527.              recently-used directories from a popup list and return to it 
  2528.              immediately.  The window displays the contents of the directory 
  2529.              history list. 
  2530.  
  2531.              The POPD command will return to the last directory saved by PUSHD. 
  2532.              The directory stack holds 511 characters, enough for 20 to 40 
  2533.              typical drive and directory entries. 
  2534.  
  2535.  
  2536. ΓòÉΓòÉΓòÉ 2.4.1. Extended Directory Searches ΓòÉΓòÉΓòÉ
  2537.  
  2538. When you change directories with an automatic directory change, CD, CDD, or 
  2539. PUSHD command, Take Command must find the directory you want to change to.  To 
  2540. do so, it first uses the traditional method to find a new directory:  it checks 
  2541. to see whether you have specified either the name of an existing subdirectory 
  2542. below the current directory, or the name of an existing directory with a full 
  2543. path or a drive letter.  If you have, Take Command changes to that directory, 
  2544. and does no further searching. 
  2545.  
  2546. This traditional search method requires that you navigate manually through the 
  2547. directory tree, and type the entire name of each directory you want to change 
  2548. to.  Extended Directory Searches speed up the navigation process dramatically 
  2549. by allowing Take Command to find the directory you want, even if you only enter 
  2550. a small part of its name. 
  2551.  
  2552. When the traditional search method fails, Take Command tries to find the 
  2553. directory you requested via the CDPATH, then via an Extended Directory Search. 
  2554. This section covers only Extended Directory Searches, which are more flexible 
  2555. and more commonly used than CDPATH. 
  2556.  
  2557. Extended Directory Searches use a database of directory names to facilitate 
  2558. changing to the correct directory.  The database is used only if Extended 
  2559. Directory Searches are enabled, and if the explicit directory search and CDPATH 
  2560. search fail to find the directory you requested. 
  2561.  
  2562. An extended directory search automatically finds the correct path to the 
  2563. requested directory and changes to it if that directory exists in your 
  2564. directory database.  If more than one directory in the database matches the 
  2565. name you have typed, a popup window appears and you can choose the directory 
  2566. you want. 
  2567.  
  2568. You can control the position and size of the popup directory search window from 
  2569. the Command Line 2 page of the configuration dialogs, or with the CDDWinLeft, 
  2570. CDDWinTop, CDDWinWidth, and CDDWinHeight directives in the .INI file.  You can 
  2571. also change the keys used in the popup window with key mapping directives in 
  2572. the .INI file. 
  2573.  
  2574. To use extended directory searches, you must explicitly enable them (see below) 
  2575. and also create the directory database. 
  2576.  
  2577. The Extended Search Database 
  2578.  
  2579. To create or update the database of directory names, use the CDD /S command. 
  2580. When you create the database with CDD /S, you can specify which drives should 
  2581. be included.  If you enable Extended Directory Searches and do not create the 
  2582. database, it will be created automatically the first time it is required, and 
  2583. will include all local hard drives. 
  2584.  
  2585. The database is stored in the file JPSTREE.IDX, which is placed in the root 
  2586. directory of drive C: by default.  The same tree file is used by all JP 
  2587. Software command processors.  You can specify a different location for this 
  2588. file on the Command Line 2 page of the configuration notebook or the TreePath 
  2589. directive in the TCMDOS2.INI file.  If you are using two or more of our 
  2590. products on your computer and want to have different drives stored in the 
  2591. database for each, use the dialogs or the TreePath directive to place their 
  2592. database directories in different locations. 
  2593.  
  2594. If you use an internal command to create or delete a directory, the directory 
  2595. database is automatically updated to reflect the change to your directory 
  2596. structure.  The updates occur if Take Command can find the JPSTREE.IDX file in 
  2597. the root directory of drive C: or in the location specified by the TreePath 
  2598. directive. 
  2599.  
  2600. The internal commands which can modify the directory structure and cause 
  2601. automatic updates of the file are MD, RD, COPY /S, DEL /X, MOVE /S, and REN. 
  2602. The MD /N command can be used to create a directory without updating the 
  2603. directory database.  This is useful when creating a temporary directory which 
  2604. you do not want to appear in the database. 
  2605.  
  2606. Enabling Extended Searches 
  2607.  
  2608. To enable extended directory searches and control their operation, you must set 
  2609. the FuzzyCD directive in the TCMDOS2.INI file.  You can set FuzzyCD either from 
  2610. the Command Line 2 page of the configuration notebook, or by editing the .INI 
  2611. file manually. 
  2612.  
  2613.         If FuzzyCD = 0, extended searches are disabled, the JPSTREE database is 
  2614.                         ignored, and CD, CDD, PUSHD, and automatic directory 
  2615.                         changes search for directories using only explicit 
  2616.                         names and CDPATH.  This is the default. 
  2617.  
  2618.         If FuzzyCD = 1  and an extended search is required, then Take Command 
  2619.                         will search the JPSTREE database for directory names 
  2620.                         which exactly match the name you specified. 
  2621.  
  2622.         If FuzzyCD = 2  and an extended search is required, Take Command will 
  2623.                         search the database for exact matches first, just as 
  2624.                         when FuzzyCD = 1.  If the requested directory is not 
  2625.                         found, it will search the database a second time 
  2626.                         looking for directory names that begin with the name 
  2627.                         you specified. 
  2628.  
  2629.         If FuzzyCD = 3  and an extended search is required, the command 
  2630.                         processor will search the database for exact matches 
  2631.                         first, just as when FuzzyCD = 1.  If the requested 
  2632.                         directory is not found, it will search the database a 
  2633.                         second time looking for directory names that contain 
  2634.                         the name you specified anywhere within them. 
  2635.  
  2636.  For example, suppose that you have a directory called C:\DATA\MYDIR, CDPATH is 
  2637.  not set, and C:\DATA is not the current directory on drive C:.  The following 
  2638.  chart shows what CDD command you might use to change to this directory. 
  2639.  
  2640.           FuzzyCD
  2641.           Setting     CDD Command
  2642.              0        cdd c:\data\mydir
  2643.              1        cdd mydir
  2644.              2        cdd myd
  2645.              3        cdd yd
  2646.  
  2647.  An extended directory search is not used if you specify a full directory path 
  2648.  (one beginning with a backslash [\], or a drive letter and a backslash).  If 
  2649.  you use a name which begins with a drive letter (e.g. C:MYDIR), the extended 
  2650.  search will examine only directories on that drive. 
  2651.  
  2652.  Forcing an Extended Search with Wildcards 
  2653.  
  2654.  Normally you type a specific directory name for Take Command to locate, and 
  2655.  the search proceeds as described in the preceding sections.  However, you can 
  2656.  also force the command processor to perform an extended directory search by 
  2657.  using wildcard characters in the directory name.  If you use a wildcard, an 
  2658.  extended search will occur whether or not extended searches have been enabled. 
  2659.  
  2660.  When Take Command is changing directories and it finds wildcards in the 
  2661.  directory name, it skips the explicit search and CDPATH steps and goes 
  2662.  directly to the extended search. 
  2663.  
  2664.  If a single match is found, the change is made immediately.  If more than one 
  2665.  match is found, a popup window is displayed with all matching directories. 
  2666.  
  2667.  Wildcards can only be used in the final directory name in the path (after the 
  2668.  last backslash in the path name).  For example you can find COMM\*A*.* (all 
  2669.  directories whose parent directory is COMM and which have an A somewhere in 
  2670.  their names), but you cannot find CO?M\*A*.* because it uses a wildcard before 
  2671.  the last backslash. 
  2672.  
  2673.  If you use wildcards in the directory name as described here, and the extended 
  2674.  directory search database does not exist, it will be built automatically the 
  2675.  first time a wildcard is used.  You can update the database at any time with 
  2676.  CDD /S. 
  2677.  
  2678.  Internally, extended directory searches use wildcards to scan the directory 
  2679.  database.  If FuzzyCD is set to 2, an extended search looks for the name you 
  2680.  typed followed by an asterisk (i.e., DIRNAME*).  If FuzzyCD is set to 3, it 
  2681.  looks for the name preceded and followed by an asterisk (i.e., *DIRNAME*). 
  2682.  
  2683.  These internal wildcards will be used in addition to any wildcards you use in 
  2684.  the name.  For example if you search for ABC?DEF (ABC followed by any 
  2685.  character followed by DEF) and FuzzyCD is set to 3, Take Command will actually 
  2686.  search the directory database for *ABC?DEF*. 
  2687.  
  2688.  
  2689. ΓòÉΓòÉΓòÉ 2.4.2. CDPATH ΓòÉΓòÉΓòÉ
  2690.  
  2691. When you change directories with an automatic directory change or the CD, CDD, 
  2692. or PUSHD command, Take Command must find the directory you want to change to. 
  2693. To do so, it first uses the traditional method to find a new directory. 
  2694.  
  2695. When the traditional search method fails, Take Command tries to find the 
  2696. directory you requested via the CDPATH, then via an Extended Directory Search. 
  2697. This section covers only the CDPATH. 
  2698.  
  2699. Enabling both CDPATH and Extended Directory Searches can yield confusing 
  2700. results, so we recommend that you do not use both features at the same time. If 
  2701. you prefer to explicitly list where Take Command should look for directories, 
  2702. use CDPATH.  If you prefer to have Take Command look at all of the directory 
  2703. names on your disk, use Extended Directory Searches. 
  2704.  
  2705. CDPATH is an environment variable, and is similar to the PATH variable used to 
  2706. search for executable files:  it contains an explicit list of directories to 
  2707. search when attempting to find a new directory.  Take Command appends the 
  2708. specified directory name to each directory in CDPATH and attempts to change to 
  2709. that drive and directory.  It stops when it finds a match or when it reaches 
  2710. the end of the CDPATH list. 
  2711.  
  2712. CDPATH is ignored if a complete directory name (one beginning with a backslash 
  2713. [\]) is specified, or if a drive letter is included in the name. It is only 
  2714. used when a name is given with no drive letter or leading backslash. 
  2715.  
  2716. CDPATH provides a quick way to find commonly used subdirectories in an explicit 
  2717. list of locations.  You can create CDPATH with the SET command.  The format of 
  2718. CDPATH is similar to that of PATH:  a list of directories separated by 
  2719. semicolons [;]. For example, if you want the directory change commands to 
  2720. search the C:\DATA directory, the D:\SOFTWARE directory, and the root directory 
  2721. of drive E:\ for the subdirectories that you name, you should create CDPATH 
  2722. with this command: 
  2723.  
  2724.         [c:\] set cdpath=c:\data;d:\software;e:\
  2725.  
  2726. Suppose you are currently in the directory C:\WP\LETTERS\JANUARY, and you'd 
  2727. like to change to D:\SOFTWARE\UTIL.  You could change directories explicitly 
  2728. with the command: 
  2729.  
  2730.         [c:\wp\letters\january] cdd d:\software\util
  2731.  
  2732. However, because the D:\SOFTWARE directory is listed in your CDPATH variable as 
  2733. shown in the previous example (we'll assume it is the first directory in the 
  2734. list with a UTIL subdirectory), you can simply enter the command 
  2735.  
  2736.         [c:\wp\letters\january] cdd util
  2737. or, using an automatic directory change: 
  2738.  
  2739.         [c:\wp\letters\january] util\
  2740.  
  2741. to change to D:\SOFTWARE\UTIL. 
  2742.  
  2743. As it handles this request, Take Command looks first in the current directory, 
  2744. and attempts to find the C:\WP\LETTERS\JANUARY\UTIL subdirectory.  Then it 
  2745. looks at CDPATH, and appends the name you entered, UTIL, to each entry in the 
  2746. CDPATH variable ╨º in other words, it tries to change to C:\DATA\UTIL, then to 
  2747. D:\SOFTWARE\UTIL.  Because this change succeeds, the search stops and the 
  2748. directory change is complete. 
  2749.  
  2750.  
  2751. ΓòÉΓòÉΓòÉ 2.5. Other Features ΓòÉΓòÉΓòÉ
  2752.  
  2753. This section includes details these Take Command features: 
  2754.  
  2755.              Page and File Prompts 
  2756.  
  2757.              Redirection and Piping 
  2758.  
  2759.              Using the Keystack 
  2760.  
  2761.              ANSI Support 
  2762.  
  2763.              Critical Errors 
  2764.  
  2765.              Conditional Commands 
  2766.  
  2767.              Command Grouping 
  2768.  
  2769.              The Escape Character 
  2770.  
  2771.  
  2772. ΓòÉΓòÉΓòÉ 2.5.1. Page and File Prompts ΓòÉΓòÉΓòÉ
  2773.  
  2774. Several Take Command commands can generate prompts, which wait for you to press 
  2775. a key to view a new page or to perform a file activity. 
  2776.  
  2777. When Take Command is displaying information in page mode, for example with a 
  2778. DIR /P or SET /P command, it displays the message 
  2779.  
  2780.         Press Esc to Quit or any other key to continue...
  2781.  
  2782. At this prompt, you can press Esc, Ctrl-C, or Ctrl- Break if you want to quit 
  2783. the command.  You can press almost any other key to continue with the command 
  2784. and see the next page of information. 
  2785.  
  2786. During file processing, if you have activated prompting with a command like DEL 
  2787. /P, you will see this prompt before processing every file: 
  2788.  
  2789.         Y/N/R ?
  2790.  
  2791. You can answer this prompt by pressing Y for "Yes, process this file;"  N for 
  2792. "No, do not process this file;" R for "process the Remainder of the files 
  2793. without further prompting; or Esc for "cancel further processing for this 
  2794. argument."  You can also press Ctrl-C or Ctrl-Break at this prompt to cancel 
  2795. the remainder of the command. 
  2796.  
  2797. If you press Ctrl-C or Ctrl-Break while a batch file is running, you will see a 
  2798. "Cancel batch job" prompt.  For information on responses to this prompt see 
  2799. Interrupting a Batch File. 
  2800.  
  2801.  
  2802. ΓòÉΓòÉΓòÉ 2.5.2. Redirection and Piping ΓòÉΓòÉΓòÉ
  2803.  
  2804. This section covers redirection and piping.  You can use these features to 
  2805. change how Take Command and some application programs handle input and output. 
  2806.  
  2807. Internal commands and many external programs get their input from the 
  2808. computer's standard input device and send their output to the standard output 
  2809. device.  Some programs also send special messages to the standard error device. 
  2810. Normally, the keyboard is used for standard input and the video screen for both 
  2811. standard output and standard error. 
  2812.  
  2813. Redirection and piping allow you to change these assignments temporarily. 
  2814.  
  2815. Redirection changes the standard input, standard output, or standard error 
  2816. device for a program or command from the default device (the keyboard or 
  2817. screen), to another device or to a file. 
  2818.  
  2819. Piping changes the standard output and / or standard error device so that the 
  2820. output of one command becomes the standard input for another program or 
  2821. command. 
  2822.  
  2823.  
  2824. ΓòÉΓòÉΓòÉ 2.5.2.1. Redirection ΓòÉΓòÉΓòÉ
  2825.  
  2826. Redirection can be used to reassign the standard input, standard output, and 
  2827. standard error to a device like the printer or serial port, to a file or to the 
  2828. OS/2 clipboard.  You must use some discretion when you use redirection with a 
  2829. device; there is no way to get input from the printer, for example. 
  2830.  
  2831. Redirection always applies to a specific command, and lasts only for the 
  2832. duration of that command.  When the command is finished, the assignments for 
  2833. standard input, standard output, and standard error revert to whatever they 
  2834. were before the command. 
  2835.  
  2836. In the descritpions below, filename means either the name of a file or of an 
  2837. appropriate device (PRN, LPT1, LPT2, or LPT3 for printers; COM1 to COM4 for 
  2838. serial ports; CON for the keyboard and screen; CLIP for the clipboard, NUL for 
  2839. the "null" device, etc.). 
  2840.  
  2841. Here are the standard redirection options supported by Take Command (see below 
  2842. for additional redirection options using numeric file handles): 
  2843.  
  2844.         < filename          To get input from a file or device instead of from 
  2845.                             the keyboard 
  2846.         > filename          Redirect standard output to a file or device 
  2847.         >& filename         Redirect standard output and standard error to a 
  2848.                             file or device 
  2849.         >&> filename        Redirect standard error only to a file or device 
  2850.  
  2851.  If you want to append output to the end of an existing file, rather than 
  2852.  creating a new file, replace the first ">" in the output redirection symbol 
  2853.  with ">>" (use >>, >>&, and >>&>). 
  2854.  
  2855.  To use redirection, place the redirection symbol and filename at the end of 
  2856.  the command line, after the command name and any parameters.  For example, to 
  2857.  redirect the output of the DIR command to a file called DIRLIST, you could use 
  2858.  a command line like this: 
  2859.  
  2860.           [c:\] dir /b *.dat > dirlist
  2861.  
  2862.  You can use both input and output redirection for the same command, if both 
  2863.  are appropriate.  For example, this command sends input to SORT from the file 
  2864.  DIRLIST, and sends output from SORT to the file DIRLIST.SRT: 
  2865.  
  2866.           [c:\] sort < dirlist > dirlist.srt
  2867.  
  2868.  You can redirect text to or from the OS/2 clipboard by using the pseudo-device 
  2869.  name CLIP: (the colon is required). 
  2870.  
  2871.  If you redirect the output of a single internal command like DIR, the 
  2872.  redirection ends automatically when that command is done.  If you start a 
  2873.  batch file with redirection, all of the batch file's output is redirected, and 
  2874.  redirection ends when the batch file is done.  Similarly, if you use 
  2875.  redirection at the end of a command group, all of the output from the command 
  2876.  group is redirected, and redirection ends when the command group is done. 
  2877.  
  2878.  Advanced Redirection Options 
  2879.  
  2880.  When output is directed to a file with >, >&, or >&>, if the file already 
  2881.  exists, it will be overwritten.  You can protect existing files by using the 
  2882.  SETDOS /N1 command, the "Protect redirected output files" setting on the 
  2883.  Options 1 page of the configuration notebook, or the NoClobber directive in 
  2884.  the TCMDOS2.INI file. 
  2885.  
  2886.  When output is appended to a file with >>, >>&, or >>&>, the file will be 
  2887.  created if it doesn't already exist.  However, if NoClobber is set as 
  2888.  described above, append redirection will not create a new file; instead, if 
  2889.  the output file does not exist a "File not found" or similar error will be 
  2890.  displayed. 
  2891.  
  2892.  You can temporarily override the current setting of NoClobber by using an 
  2893.  exclamation mark [!] after the redirection symbol.  For example, to redirect 
  2894.  the output of DIR to the file DIROUT, and allow overwriting of any existing 
  2895.  file despite the NoClobber setting: 
  2896.  
  2897.           [c:\] dir >! dirout
  2898.  
  2899.  Redirection is fully nestable.  For example, you can invoke a batch file and 
  2900.  redirect all of its output to a file or device.  Output redirection on a 
  2901.  command within the batch file will take effect for that command only; when the 
  2902.  command is completed, output will revert to the redirected output file or 
  2903.  device in use for the batch file as a whole. 
  2904.  
  2905.  You can use redirection if you need to create a zero-byte file.  To do so, 
  2906.  enter  >filename as a command, with no actual command before the > character. 
  2907.  
  2908.  In addition to the redirection options above, Take Command also supports the 
  2909.  OS/2 CMD.EXE syntax: 
  2910.  
  2911.         n>file      Redirect handle n to the named file 
  2912.         n>&m        Redirect handle n to the same place as handle m 
  2913.  
  2914.  [n] and [m] are one-digit file handles between 0 and 9. You may not put any 
  2915.  spaces between the n and the >, or between the >, &, and m in the second form. 
  2916.  Take Command defines "0" as standard input, "1" as standard output, and "2" as 
  2917.  standard error.  Handles 3 to 9 will probably not be useful unless you have an 
  2918.  application which uses those handles for a specific, documented purpose, or 
  2919.  have opened a file with the %@FILEOPEN variable function and the file handle 
  2920.  is between 3 and 9. 
  2921.  
  2922.  The n>file syntax redirects output from handle n to a file.  You can use this 
  2923.  form to redirect two handles to different places.  For example: 
  2924.  
  2925.           [c:\] dir > outfile 2> errfile
  2926.  sends normal output to a file called OUTFILE and any error messages to a file 
  2927.  called ERRFILE. 
  2928.  
  2929.  The n>&m syntax redirects handle n to the same location as the previously 
  2930.  assigned handle m.  For example, to send standard error to the same file as 
  2931.  standard output, you could use this command: 
  2932.  
  2933.           [c:\] dir > outfile 2>&1
  2934.  
  2935.  Notice that you can perform the same operations by using standard Take Command 
  2936.  redirection features.  The two examples above could be written as 
  2937.  
  2938.           [c:\] dir > outfile >&> errfile
  2939.  and 
  2940.  
  2941.           [c:\] dir >&outfile
  2942.  
  2943.  
  2944. ΓòÉΓòÉΓòÉ 2.5.2.2. Piping ΓòÉΓòÉΓòÉ
  2945.  
  2946. You can create a "pipe" to send the standard output of one command to the 
  2947. standard input of another command: 
  2948.  
  2949.         command1 | command2             Send the standard output of command1 to 
  2950.                                         the standard input of command2 
  2951.         command1 |& command2            Send the standard output and standard 
  2952.                                         error of command1 to the standard input 
  2953.                                         of command2 
  2954.  
  2955.  For example, to take the output of the SET command (which displays a list of 
  2956.  your environment variables and their values) and pipe it to the SORT utility 
  2957.  to generate a sorted list, you would use the command: 
  2958.  
  2959.           [c:\] set | sort
  2960.  
  2961.  To do the same thing and then pipe the sorted list to the internal LIST 
  2962.  command for full-screen viewing: 
  2963.  
  2964.           [c:\] set | sort | list /s
  2965.  
  2966.  The TEE and Y commands are "pipe fittings" which add more flexibility to 
  2967.  pipes. 
  2968.  
  2969.  Like redirection, pipes are fully nestable.  For example, you can invoke a 
  2970.  batch file and send all of its output to another command with a pipe.  A pipe 
  2971.  on a command within the batch file will take effect for that command only; 
  2972.  when the command is completed, output will revert to the pipe in use for the 
  2973.  batch file as a whole.  You may also have 2 or more pipes operating 
  2974.  simultanesoulsy if, for example, you have the pipes running in different 
  2975.  sessions. 
  2976.  
  2977.  Take Command implements pipes by starting a new process for the receiving 
  2978.  program instead of using temporary files.  The sending and receiving programs 
  2979.  run simultaneously; the sending program writes to the pipe and the receiving 
  2980.  program reads from the pipe.  When the receiving program finishes reading and 
  2981.  processing the piped data, it ends automatically. 
  2982.  
  2983.  When you use pipes with Take Command make sure you think about any possible 
  2984.  consequences that can occur from using a separate process to run the receiving 
  2985.  program. 
  2986.  
  2987.  If you want to pipe information to a command inside an IFF, use command 
  2988.  grouping around the IFF command.  If you do not, piping will affect on the 
  2989.  first command after the IFF. 
  2990.  
  2991.  
  2992. ΓòÉΓòÉΓòÉ 2.5.3. Using the Keystack ΓòÉΓòÉΓòÉ
  2993.  
  2994. The Keystack overcomes two weaknesses of input redirection:  some programs 
  2995. ignore standard input and read the keyboard through the operating system, and 
  2996. input redirection doesn't end until the program or command terminates.  You 
  2997. can't, for example, use redirection to send the opening commands to a program 
  2998. and then type the rest of the commands yourself.  But the Keystack lets you do 
  2999. exactly that. 
  3000.  
  3001. The Keystack sends keystrokes to an application program.  Once the Keystack is 
  3002. empty, the program will receive the rest of its input from the keyboard.  The 
  3003. Keystack is useful when you want a program to take certain actions 
  3004. automatically when it starts.  It is most often used in batch files and 
  3005. aliases. 
  3006.  
  3007. The Keystack is invoked with the KEYSTACK command.  To place the letters, 
  3008. digits, and punctuation marks you would normally type for your program into the 
  3009. keystack, enclose them in double quotes: 
  3010.  
  3011.         [c:\] keystack "myfile"
  3012.  
  3013. Many other keys can be entered into the Keystack using their names.  This 
  3014. example puts the F1 key followed by the Enter key in the keystack: 
  3015.  
  3016.         [c:\] keystack F1 Enter
  3017.  
  3018. See Keys and Keynames for details on how key names are entered.  See the 
  3019. KEYSTACK command for information on using numeric key values along with or 
  3020. instead of key names, and other details about using the Keystack. 
  3021.  
  3022. You must start or activate the window for the program that will receive the 
  3023. characters before you place them into the Keystack.  See KEYSTACK for 
  3024. additional details; see ACTIVATE for information on activating a specific 
  3025. window. 
  3026.  
  3027.  
  3028. ΓòÉΓòÉΓòÉ 2.5.4. ANSI Support ΓòÉΓòÉΓòÉ
  3029.  
  3030. ANSI control sequences are standardized sequences of text characters which 
  3031. allow you to control colors on the screen, manipulate the cursor, and redefine 
  3032. keys.  You may have used ANSI sequences to display text or control the color 
  3033. and appearance of your prompt in DOS or OS/2 character mode. 
  3034.  
  3035. Take Command includes built-in support for most standard ANSI color and cursor 
  3036. control sequences (key substitutions are not supported).  To use Take Command's 
  3037. ANSI support you must enable it on the Display page of the configuration 
  3038. notebook, with the ANSI directive in the TCMDOS2.INI file, or with the SETDOS 
  3039. /A command.  You can determine whether ANSI support is enabled with the _ANSI 
  3040. internal variable. 
  3041.  
  3042. Several Take Command features provide simpler ways to accomplish the tasks 
  3043. usually performed with ANSI control sequences. For example, there are commands 
  3044. to set the screen colors, display text in specific colors, and position the 
  3045. cursor.  These commands are generally easier to understand and use than the 
  3046. corresponding ANSI control sequences.  However, we have included ANSI support 
  3047. in Take Command for situations where it is useful, such as when using the ECHO 
  3048. command, or in the PROMPT. 
  3049.  
  3050. See the ANSI Reference for more details on ANSI strings, and a reference list 
  3051. of ANSI sequences supported by Take Command for OS/2. 
  3052.  
  3053.  
  3054. ΓòÉΓòÉΓòÉ 2.5.5. Critical Errors ΓòÉΓòÉΓòÉ
  3055.  
  3056. OS/2 watches for physical errors during input and output operations.  Physical 
  3057. errors are those due to hardware problems, such as trying to read a floppy disk 
  3058. while the drive door is open. 
  3059.  
  3060. These errors are called critical errors because OS/2, Take Command, or your 
  3061. application program may not be able to proceed until the error is resolved. 
  3062.  
  3063. When a critical error occurs, you will see a popup window asking you to choose 
  3064. an error handling option.  The message comes from OS/2, and will typically 
  3065. offer you three choices: 
  3066.  
  3067.         Return error code to program 
  3068.  
  3069.             Tell the program that the operation failed.  This option returns an 
  3070.             error code to Take Command or to the application program that was 
  3071.             running when the error occurred.  Take Command generally stops the 
  3072.             current command when an operation fails. 
  3073.  
  3074.         End program/command/operation 
  3075.  
  3076.             Terminate the program which generated the error.  Use this option 
  3077.             with caution as it is likely to close Take Command or any other 
  3078.             program which caused an error. 
  3079.  
  3080.         Retry command or operation 
  3081.  
  3082.             Choose this option if you have corrected the problem. 
  3083.  
  3084.  
  3085. ΓòÉΓòÉΓòÉ 2.5.6. Conditional Commands ΓòÉΓòÉΓòÉ
  3086.  
  3087. When an internal command or external program finishes, it returns a result 
  3088. called the exit code.  Conditional commands allow you to perform tasks based 
  3089. upon the previous command's exit code.  Many programs return a 0 if they are 
  3090. successful and a non-zero value if they encounter an error. 
  3091.  
  3092. If you separate two commands by && (AND), the second command will be executed 
  3093. only if the first returns an exit code of 0. For example, the following command 
  3094. will only erase files if the BACKUP operation succeeds: 
  3095.  
  3096.         [c:\] backup c:\ a: && del c:\*.bak;*.lst
  3097.  
  3098. If you separate two commands by || (OR), the second command will be executed 
  3099. only if the first returns a non-zero exit code. For example, if the following 
  3100. BACKUP operation fails, then ECHO will display a message: 
  3101.  
  3102.         [c:\] backup c:\ a: || echo Error in the backup!
  3103.  
  3104. All internal commands return an exit code, but not all external programs do. 
  3105. Conditional commands will behave unpredictably if you use them with external 
  3106. programs which do not return an explicit exit code.  To determine whether a 
  3107. particular external program returns a meaningful exit code use an ECHO %? 
  3108. command immediately after the program is finished.  If the program's 
  3109. documentation does not discuss exit codes you may need to experiment with a 
  3110. variety of conditions to see how the exit code changes. 
  3111.  
  3112.  
  3113. ΓòÉΓòÉΓòÉ 2.5.7. Command Grouping ΓòÉΓòÉΓòÉ
  3114.  
  3115. Command grouping allows you to logically group a set of commands together by 
  3116. enclosing them in parentheses.  The parentheses are similar in function to the 
  3117. BEGIN and END block statements in some programming languages. 
  3118.  
  3119. There are two primary uses for command grouping.  One is to execute multiple 
  3120. commands in a place where normally only a single command is allowed.  For 
  3121. example, suppose you wanted to execute two different REN commands in all 
  3122. subdirectories of your hard disk.  You could do it like this: 
  3123.  
  3124.         [c:\] global ren *.wx1 *.wx0
  3125.         [c:\] global ren *.tx1 *.tx0
  3126.  
  3127. But with command grouping you can do the same thing in one command: 
  3128.  
  3129.         [c:\] global (ren *.wx1 *.wx0 & ren *.tx1 *.tx0)
  3130.  
  3131. The two REN commands enclosed in the parentheses appear to GLOBAL as if they 
  3132. were a single command, so both commands are executed for every directory, but 
  3133. the directories are scanned only once, not twice.  This kind of command 
  3134. grouping is most useful with the EXCEPT, FOR, GLOBAL, and IF commands.  When 
  3135. you use this approach in a batch file you must either place all of the commands 
  3136. in the group on one line, or place the opening parenthesis at the end of a line 
  3137. and place the commands on subsequent lines.  For example, the first two of 
  3138. these sequences will work properly, but the third will not: 
  3139.  
  3140.         for %f in (1 2 3) (echo hello %f & echo goodbye %f)
  3141.  
  3142.         for %f in (1 2 3) (
  3143.             echo hello %f
  3144.             echo goodbye %f
  3145.         )
  3146.  
  3147.         for %f in (1 2 3) (echo hello %f
  3148.         echo goodbye %f)
  3149.  
  3150. You can also use command grouping to redirect input or output for several 
  3151. commands without repeatedly using the redirection symbols.  For example, 
  3152. consider the following batch file fragment which places some header lines 
  3153. (including today's date) and directory displays in an output file using 
  3154. redirection.  The first ECHO command creates the file using >, and the other 
  3155. commands append to the file using >>: 
  3156.  
  3157.         echo Data files %_date > filelist
  3158.         dir *.dat >> filelist
  3159.         echo. >> filelist
  3160.         echo Text files %_date >> filelist
  3161.         dir *.txt >> filelist
  3162.  
  3163. Using command grouping, these commands can be written much more simply: 
  3164.  
  3165.         (echo Data files %_date & dir *.dat & echo. & echo Text files %_date & dir *.txt) > filelist
  3166.  
  3167. The redirection, which appears outside the parentheses, applies to all the 
  3168. commands within the parentheses.  Because the redirection is performed only 
  3169. once, the commands will run slightly faster than if each command was entered 
  3170. separately.  The same approach can be used for input redirection and for 
  3171. piping. 
  3172.  
  3173. You can also use command grouping in a batch file or at the prompt to split 
  3174. commands over several lines.  This last example is like the redirection example 
  3175. above, but is entered at the prompt.  Note the "More?" prompt after each 
  3176. incomplete line.  None of the commands are executed until the command group is 
  3177. completed with the closing parenthesis.  This example does not have to be 
  3178. entered on one line: 
  3179.  
  3180.         [c:\] (echo Data files %_date
  3181.         More? dir *.dat
  3182.         More? echo.
  3183.         More? echo Text files %_date
  3184.         More? dir *.txt) > filelist
  3185.         [c:\]
  3186.  
  3187. A group of commands in parentheses is like a long command line.  The total 
  3188. length of the group may not exceed 2,047 characters, whether the commands are 
  3189. entered from the prompt, an alias, or a batch file.  The limit includes the 
  3190. space required to expand aliases and environment variables used within the 
  3191. group.  In addition, each line you type at the normal prompt or the More? 
  3192. prompt, and each individual command within the line, must meet the usual 
  3193. 1,023-character line length limit. 
  3194.  
  3195.  
  3196. ΓòÉΓòÉΓòÉ 2.5.8. Escape Character ΓòÉΓòÉΓòÉ
  3197.  
  3198. Take Command recognizes a user-definable escape character.  This character 
  3199. gives the following character a special meaning; it is not the same as the 
  3200. ASCII ESC that is often used in ANSI and printer control sequences. 
  3201.  
  3202. The default escape character is a caret [^]. 
  3203.  
  3204. If you don't like using the default escape character, you can pick another 
  3205. character using the SETDOS /E command, the Options 1 page of the configuration 
  3206. dialogs, or the EscapeChar directive in the TCMDOS2.INI file.  If you plan to 
  3207. share aliases or batch files between 4DOS, 4OS2, 4NT and Take Command, see 
  3208. Special Character Compatibility for details about choosing compatible escape 
  3209. characters for two or more products. 
  3210.  
  3211. Ten special characters are recognized when they are preceded by the escape 
  3212. character.  The combination of the escape character and one of these characters 
  3213. is translated to a single character, as shown below.  These are primarily 
  3214. useful for redirecting codes to the printer.  The special characters which can 
  3215. follow the escape character are: 
  3216.  
  3217.         b   backspace 
  3218.         c   comma 
  3219.         e   the ASCII ESC character (ASCII 27) 
  3220.         f   form feed 
  3221.         k   back quote 
  3222.         n   line feed 
  3223.         q   double quote 
  3224.         r   carriage return 
  3225.         s   space 
  3226.         t   tab character 
  3227.  
  3228.  If you follow the escape character with any other character, the escape 
  3229.  character is removed and the second character is copied directly to the 
  3230.  command line.  This allows you to suppress the normal meaning of special 
  3231.  characters (such as ? * / \ | " ` > < and &). 
  3232.  
  3233.  For example, to display a message containing a > symbol, which normally 
  3234.  indicates redirection: 
  3235.  
  3236.           [c:\] echo 2 is ^> 4
  3237.  
  3238.  To send a form feed followed by the sequence ESC Y to the printer, you can use 
  3239.  this command: 
  3240.  
  3241.           [c:\] echos ^f^eY > prn
  3242.  
  3243.  The escape character has an additional use when it is the last character on 
  3244.  any line of a .BAT or .BTM  batch file.  Take Command recognizes this use of 
  3245.  the escape character to signal line continuation:  it removes the escape 
  3246.  character and appends the next line to the current line before executing it. 
  3247.  
  3248.  
  3249. ΓòÉΓòÉΓòÉ 3. Commands ΓòÉΓòÉΓòÉ
  3250.  
  3251. The following topics are a complete guide and reference to the commands that 
  3252. are available from the command line, in aliases, and in batch files.  Most of 
  3253. these commands are internal, which means that Take Command performs the 
  3254. activity you have requested without running another program.  (See internal and 
  3255. external commands.) 
  3256.  
  3257. Take Command offers over 90 internal commands.  These neither replace nor 
  3258. interfere with external commands like BACKUP, DISKCOPY, SCANDISK, or XCOPY. You 
  3259. can continue to use those utilities like you always have.  Take Command has 
  3260. been designed to be compatible with virtually all traditional internal 
  3261. commands, and to enhance most of those commands with additional options and 
  3262. capabilities.  Once you have installed Take Command, you can continue using the 
  3263. commands that you already know and get the same results. 
  3264.  
  3265. Most of these commands are either enhanced traditional commands or are entirely 
  3266. new (a few are the same as traditional commands).  If you are comfortable using 
  3267. traditional commands, you can switch to Take Command without making any changes 
  3268. in your habits.  But you will be missing a lot of the power of these 
  3269. enhancements and new commands unless you take a few minutes to see what's 
  3270. available here.  Make sure you don't skip a section of this reference just 
  3271. because you already know how to use a traditional command with the same name. 
  3272.  
  3273. If you come across terms or concepts in this section that you are unsure about, 
  3274. please refer to the Reference Information topic and its subtopics. 
  3275.  
  3276. The subtopics included in this topic are: 
  3277.  
  3278.     How to Use the Command Descriptions 
  3279.             includes an explanation of the command descriptions, the formating 
  3280.             conventions we use, and how to use the options available with each 
  3281.             command. 
  3282.  
  3283.     Command Categories 
  3284.             is a list of the available commands, organized so you can find the 
  3285.             command you are looking for most easily. 
  3286.  
  3287.     Commands by Name 
  3288.             is an alphabetic list of the available commands. 
  3289.  
  3290.  
  3291. ΓòÉΓòÉΓòÉ 3.1. How to Use the Command Descriptions ΓòÉΓòÉΓòÉ
  3292.  
  3293. Each of the internal commands is described in detail in the following topics. 
  3294. The descriptions are arranged alphabetically, and each includes examples that 
  3295. will help you learn to use the commands. 
  3296.  
  3297. The name of each command is followed by a sentence or two that briefly 
  3298. describes the command's purpose or major function.  That sentence should help 
  3299. you determine quickly whether you have found the command you are seeking. 
  3300.  
  3301. The next part of each description shows the command's format or syntax.  The 
  3302. format line uses certain conventions to describe how the command should be 
  3303. entered and to create reference points for the text describing the command: 
  3304.  
  3305.         Words in UPPER CASE must be spelled exactly as they are shown 
  3306.          (although you can type them in either upper or lower case, or a 
  3307.          combination).  If a word is shown partly in upper case (for example 
  3308.          BRIght), only the upper case portion is required, the rest is 
  3309.          optional. 
  3310.  
  3311.         Words shown in italics (for example source or filename) are meant to 
  3312.          be replaced by other words or values.  Each of these words is 
  3313.          explained directly beneath the format line and discussed in more 
  3314.          detail in the text description of the command.  When the word stands 
  3315.          for a file name, you can use a simple name like MYFILE.TXT, or include 
  3316.          a drive letter and/or a full path, like C:\MYDIR\MYFILE.TXT. 
  3317.  
  3318.         Items followed by an ellipsis (three periods [...]) may be repeated. 
  3319.          For example, filename... means you may enter one or more file names at 
  3320.          this point in the command. 
  3321.  
  3322.         Text shown in [square brackets] is optional.  Text outside of square 
  3323.          brackets must be entered literally (if it is capitalized) or replaced 
  3324.          by other words or values (if it is in italics).  For example, in this 
  3325.          hypothetical command: 
  3326.  
  3327.                           DOIT [/A /W] filename [NOW]
  3328.  
  3329.          the switches /A and /W and the keyword NOW are optional.  The filename 
  3330.          should be replaced by the appropriate name for the operation you want 
  3331.          to perform.  The switches and the keyword NOW at the end must be 
  3332.          entered as shown, if they are used.  For example, you could use "NOW", 
  3333.          "Now", or "now", but you could not abbreviate NOW to NO. 
  3334.  
  3335.         Vertical bars [|] represent a choice; you can pick one option or 
  3336.          another but not both.  For example, the following format shows that 
  3337.          the command may be followed by the word ON or the word OFF, but not 
  3338.          both: 
  3339.  
  3340.                           COMMAND [ ON | OFF ]
  3341.  
  3342.         A slash followed by a letter, like [/X], is an "option" or "switch" 
  3343.          which controls the effect of a command.  Many commands have several 
  3344.          switches, and you are usually free to use none, one, or several to 
  3345.          make a command behave as you wish.  If you use a single switch, you 
  3346.          must precede it with a slash.  If you use several switches, in most 
  3347.          cases you can put them together with one slash or use separate 
  3348.          slashes.  For example, if you wanted to use switches X, Y, and Z for a 
  3349.          command, you could type them three different ways: 
  3350.  
  3351.                           command /x /y /z
  3352.                           command /x/y/z
  3353.                           command /xyz
  3354.  
  3355.         A few switches, particularly in the DIR, SELECT, and START commands, 
  3356.          use two or more characters.  If you need to follow a multi-letter 
  3357.          switch with another switch, the second switch must have its own slash 
  3358.          to avoid ambiguity.  For example, you could use DIR /oa /d to force an 
  3359.          alphanumeric sort (/oa) and suppress directory colors (/d).  However, 
  3360.          if you try to put all the switches together (DIR /oad) Take Command 
  3361.          will not do what you want because the "d" will be interpreted as part 
  3362.          of the /o switch, where it would mean sort by date and time.  The 
  3363.          second slash eliminates this ambiguity. 
  3364.  
  3365.  Included in the format section is an explanation of each replaceable argument 
  3366.  and a one or two word explanation of each switch.  Many descriptions also list 
  3367.  related commands to help you find the exact command you want. 
  3368.  
  3369.  For file handling commands, a section called File Selection appears 
  3370.  immediately after the format section.  This section lists the file-handling 
  3371.  features that the command supports.  The list may include mention of extended 
  3372.  wildcards; multiple file names; include lists; and date, time, and size ranges 
  3373.  and file exclusion ranges. 
  3374.  
  3375.  Next, you'll find a description of the command's usage.  This description 
  3376.  normally starts with the basic functions of a command and gradually adds more 
  3377.  details.  We've also included many examples to help you see the command in 
  3378.  action. 
  3379.  
  3380.  The last part of each description is a detailed explanation of the options or 
  3381.  switches available for each command, in alphabetical order.  Occasionally, 
  3382.  we've included more examples in this section to demonstrate how a switch is 
  3383.  used or how multiple switches interact. 
  3384.  
  3385.  
  3386. ΓòÉΓòÉΓòÉ 3.2. Commands by Category ΓòÉΓòÉΓòÉ
  3387.  
  3388. The best way to learn about commands is to experiment with them.  The lists 
  3389. below categorize the available commands by topic and will help you find the 
  3390. ones that you need. 
  3391.  
  3392. System configuration: 
  3393.  
  3394.  
  3395.                  CHCP         CLS          COLOR        DATE
  3396.  
  3397.                  DIRHISTORY   FREE         HISTORY      KEYBD
  3398.  
  3399.                  KEYS         LOG          MEMORY       OPTION
  3400.  
  3401.                  PROMPT       REBOOT       SETDOS       TIME
  3402.  
  3403.                  VER          VERIFY       VOL
  3404.  
  3405.         File and directory management: 
  3406.  
  3407.  
  3408.                  ATTRIB       COPY         DEL          DESCRIBE
  3409.  
  3410.                  FFIND        LIST         MOVE         REN
  3411.  
  3412.                  SELECT       TOUCH        TREE         TYPE
  3413.  
  3414.         Subdirectory management: 
  3415.  
  3416.  
  3417.                  CD           CDD          DIR          DIRS
  3418.  
  3419.                  MD           POPD         PUSHD        RD
  3420.  
  3421.         Input and output: 
  3422.  
  3423.  
  3424.                  DRAWBOX      DRAWHLINE    DRAWVLINE    ECHO
  3425.  
  3426.                  ECHOERR      ECHOS        ECHOSERR     INKEY
  3427.  
  3428.                  INPUT        KEYSTACK     MSGBOX       QUERYBOX
  3429.  
  3430.                  SCREEN       SCRPUT       VSCRPUT
  3431.  
  3432.         Commands primarily for use in or with batch files and aliases (some 
  3433.         work only in batch files; see the individual commands for details): 
  3434.  
  3435.  
  3436.                  ALIAS        BEEP         CALL         CANCEL
  3437.  
  3438.                  DELAY        DO           ENDLOCAL     FOR
  3439.  
  3440.                  GLOBAL       GOSUB        GOTO         IF
  3441.  
  3442.                  IFF          LOADBTM      ON           PAUSE
  3443.  
  3444.                  QUIT         REM          RETURN       SETLOCAL
  3445.  
  3446.                  SHIFT        SWITCH       TEXT         UNALIAS
  3447.  
  3448.         Environment and path commands: 
  3449.  
  3450.  
  3451.                  DPATH        ESET         PATH         SET
  3452.  
  3453.                  UNSET
  3454.  
  3455.         Window Management 
  3456.  
  3457.  
  3458.                  ACTIVATE     TITLE        WINDOW
  3459.  
  3460.         Other commands: 
  3461.  
  3462.  
  3463.                  ?            DETACH       EXCEPT       EXIT
  3464.  
  3465.                  HELP         SHRALIAS     START        TEE
  3466.  
  3467.                  TIMER        Y
  3468.  
  3469.  
  3470. ΓòÉΓòÉΓòÉ 3.3. Commands by Name ΓòÉΓòÉΓòÉ
  3471.  
  3472. The following topics contain an explanation of each of Take Command's internal 
  3473. commands, arranged alphabetically by name.  You can browse through the list or 
  3474. jump directly to one of the following commands: 
  3475.  
  3476.          ? - List internal commands 
  3477.          ACTIVATE - Activate or change window state 
  3478.          ALIAS - Create or display aliases 
  3479.          ATTRIB - Change file attributes 
  3480.          BEEP - Beep the speaker 
  3481.          CALL - Execute one batch file from another 
  3482.          CANCEL - End all batch files 
  3483.          CD - Change directory 
  3484.          CDD - Change drive and directory 
  3485.          CHCP - Change the current code page 
  3486.          CLS - Clear the screen 
  3487.          COLOR - Change display colors 
  3488.          COPY - Copy files 
  3489.          DATE - Set the date 
  3490.          DEL - Delete files 
  3491.          DELAY - Pause for a specified time 
  3492.          DESCRIBE - Create file description 
  3493.          DETACH - Start a program in "detached" mode 
  3494.          DIR - Display directories 
  3495.          DIRHISTORY - Display the directory history 
  3496.          DIRS - Display the directory stack 
  3497.          DO - Loop in batch files 
  3498.          DPATH - Set data search path 
  3499.          DRAWBOX - Draw a box 
  3500.          DRAWHLINE - Draw horizontal line 
  3501.          DRAWVLINE - Draw a vertical line 
  3502.          ECHO - Display a message 
  3503.          ECHOS - Display a message with no CR/LF 
  3504.          ENDLOCAL - Restore saved environment 
  3505.          ESET - Edit variable or alias 
  3506.          EXCEPT - Exclude files from command 
  3507.          EXIT - Exit Take Command 
  3508.          FFIND - Search for files or text 
  3509.          FOR - Repeat a command 
  3510.          FREE - Display total and free disk space 
  3511.          GLOBAL - Execute command in all subdirectories 
  3512.          GOSUB - Call subroutine 
  3513.          GOTO - Branch within batch file 
  3514.          HELP - Call online help 
  3515.          HISTORY - Manage command history list 
  3516.          IF - Test condition 
  3517.          IFF - IFF / THEN / ELSE conditional test 
  3518.          INKEY - Input a character 
  3519.          INPUT - Input a string 
  3520.          KEYBD - Set keyboard toggles 
  3521.          KEYS - Enable/disable history list 
  3522.          KEYSTACK - Feed keystrokes to programs 
  3523.          LIST - Display file 
  3524.          LOADBTM - Switch batch file mode 
  3525.          LOG - Log commands to file 
  3526.          MD - Create a subdirectory 
  3527.          MEMORY - Display memory status 
  3528.          MOVE - Move files to another directory 
  3529.          MSGBOX - Display a message box prompt 
  3530.          ON - Trap errors in batch files 
  3531.          OPTION - Configure Take Command 
  3532.          PATH - Set the executable search path 
  3533.          PAUSE - Suspend batch file execution 
  3534.          POPD - Restore previous directory 
  3535.          PROMPT - Change command-line prompt 
  3536.          PUSHD - Save current directory 
  3537.          QUERYBOX - Popup dialog for input 
  3538.          QUIT - Exit batch file 
  3539.          RD - Remove subdirectory 
  3540.          REBOOT - Reboot or shutdown the computer 
  3541.          REM - Add comment to batch file 
  3542.          REN - Rename files 
  3543.          RETURN - Return from GOSUB 
  3544.          SCREEN - Position cursor 
  3545.          SCRPUT - Display text in color 
  3546.          SELECT - Select files for a command 
  3547.          SET - Set environment variables 
  3548.          SETDOS - Set the Take Command configuration 
  3549.          SETLOCAL - Save the environment 
  3550.          SHIFT - Shift batch parameters 
  3551.          SHRALIAS - Retain global lists 
  3552.          START - Start application in new session 
  3553.          SWITCH - Select commands to execute 
  3554.          TEE - "Tee" pipe fitting 
  3555.          TEXT - Display text in batch file 
  3556.          TIME - Set the system time 
  3557.          TIMER - Start or stop a stopwatch 
  3558.          TITLE - Set window title 
  3559.          TOUCH - Change date and time stamps 
  3560.          TREE - Display directory tree 
  3561.          TYPE - Display a file 
  3562.          UNALIAS - Remove aliases 
  3563.          UNSET - Remove environment variables 
  3564.          VER - Display version levels 
  3565.          VERIFY - Disk write verification 
  3566.          VOL - Display drive label 
  3567.          VSCRPUT - Display text in color vertically 
  3568.          WINDOW - Change the window state or title 
  3569.          Y - "Y" pipe fitting 
  3570.  
  3571.  
  3572. ΓòÉΓòÉΓòÉ 3.3.1. ? - List internal commands ΓòÉΓòÉΓòÉ
  3573.  
  3574.  Purpose:    Display a list of internal commands or prompt for a command. 
  3575.  
  3576.  Format:     ? ["prompt" command] 
  3577.              prompt :  Prompt text about whether to execute the command. 
  3578.              command : Command to be executed if the user answers Y. 
  3579.  
  3580.  Usage: 
  3581.  
  3582.  ? has two functions 
  3583.  
  3584.  When you use the ? command by itself, it displays a list of internal commands. 
  3585.  For help with any individual command, see the HELP command. 
  3586.  
  3587.  If you have disabled a command with SETDOS /I, it will not appear in the list. 
  3588.  
  3589.  The second function of ? is to prompt the user before executing a specific 
  3590.  line in a batch file.  If you add a prompt and a command, ? will display the 
  3591.  prompt followed by "(Y/N)?" and wait for the user's response.  If the user 
  3592.  presses "Y" or "y", the line will be executed. If the user presses "N" or "n", 
  3593.  the line will be ignored. 
  3594.  
  3595.  For example, the following command might be used in a batch file: 
  3596.  
  3597.           ? *Load the network* call netstart.btm
  3598.  
  3599.  When this command is executed, you will see the following prompt; if you 
  3600.  answer "Y", the CALL command will be executed: 
  3601.  
  3602.           Load the network (Y/N)?
  3603.  
  3604.  
  3605. ΓòÉΓòÉΓòÉ 3.3.2. ACTIVATE - Activate or change window state ΓòÉΓòÉΓòÉ
  3606.  
  3607.  Purpose:    Activate a window, change its state, or change its title. 
  3608.  
  3609.  Format:     ACTIVATE "window" [MAX | MIN | RESTORE | CLOSE ] 
  3610.  
  3611.              window :  Current title of window to work with. 
  3612.  
  3613.  See also:  START, TITLE, and WINDOW. 
  3614.  
  3615.  Usage: 
  3616.  
  3617.  Both the current name of the window and the new name, if any, must be enclosed 
  3618.  in double quotes.  The quotes will not appear as part of the title bar text. 
  3619.  
  3620.  If no options are used, the window named in the command will become the active 
  3621.  window and be able to receive keystrokes and mouse commands. 
  3622.  
  3623.  The MAX option expands the window to its maximum size, the MIN option reduces 
  3624.  the window to an icon, and the RESTORE option returns the window to its 
  3625.  default size and location on the desktop.  The CLOSE option closes the window 
  3626.  and ends the session running in the window. 
  3627.  
  3628.  This example maximizes and then renames the window called "Take Command": 
  3629.  
  3630.           [c:\] activate "Take Command" max
  3631.           [c:\] activate "Take Command" "TCMD"
  3632.  
  3633.  You can use wildcards,  in the window parameter.  This is useful with 
  3634.  applications that change their window title to reflect the file currently in 
  3635.  use. 
  3636.  
  3637.  ACTIVATE is often used before KEYSTACK to make sure the proper window receives 
  3638.  the keystrokes.  ACTIVATE works by sending the appropriate messages to the 
  3639.  named window.  If the window ignores or misinterprets the messages, ACTIVATE 
  3640.  may not have the effect you want.  - 
  3641.  
  3642.  
  3643. ΓòÉΓòÉΓòÉ 3.3.3. ALIAS - Create or display aliases ΓòÉΓòÉΓòÉ
  3644.  
  3645.  Purpose:    Create new command names that execute one or more commands or 
  3646.              redefine default options for existing commands; assign commands to 
  3647.              keystrokes; load or display the list of defined alias names. 
  3648.  
  3649.  Format:     ALIAS [/P /R file...] [name [=][value ]] 
  3650.  
  3651.              file :  One or more files to read for alias definitions. 
  3652.              name :  Name for an alias, or for the key to execute the alias. 
  3653.              value :  Text to be substituted for the alias name. 
  3654.  
  3655.              /P(ause)                 /R(ead alias file) 
  3656.  
  3657.  See also:  UNALIAS and Aliases. 
  3658.  
  3659.  Usage: 
  3660.  
  3661.  The ALIAS command lets you create new command names or redefine internal 
  3662.  commands.  It also lets you assign one or more commands to a single keystroke. 
  3663.  An alias is often used to execute a complex series of commands with a few 
  3664.  keystrokes or to create "in memory batch files" that run much faster than 
  3665.  disk-based batch files. 
  3666.  
  3667.  For example, to create a single-letter command D to display a wide directory, 
  3668.  instead of using the longer DIR /W, you could use the command: 
  3669.  
  3670.           [c:\] alias d = dir /w
  3671.  
  3672.  Now when you type a single d as a command, it will be translated into a DIR /W 
  3673.  command. 
  3674.  
  3675.  You can also define or modify aliases with the Alias dialog.  The dialog 
  3676.  allows you to enter the alias name and value into separate fields in a dialog 
  3677.  box, rather than using the ALIAS command.  All of the information in this 
  3678.  section also applies to aliases defined via the dialog, unless otherwise 
  3679.  noted. 
  3680.  
  3681.  If you define aliases for commonly used application programs, you can often 
  3682.  remove the directories they're stored in from the PATH. For example, if you 
  3683.  use Microsoft Word for Windows and had the C:\WINWORD directory in your path, 
  3684.  you could define the following alias: 
  3685.  
  3686.           [c:\] alias ww = c:\winword\winword.exe
  3687.  
  3688.  With this alias defined, you can probably remove C:\WINWORD from your path. 
  3689.  Word for Windows will now load much faster than it would if Take Command had 
  3690.  to search the PATH for it.  In addition, the PATH can be shorter, which will 
  3691.  speed up searches for other programs. 
  3692.  
  3693.  If you apply this technique for each application program, you can often reduce 
  3694.  your PATH to just two or three directories containing utility programs, and 
  3695.  significantly reduce the time it takes to load most software on your system. 
  3696.  Before removing a directory from the PATH, you will need to define aliases for 
  3697.  all the executable programs you commonly use which are stored in that 
  3698.  directory. 
  3699.  
  3700.  Aliases are stored in memory, and are not saved automatically when you turn 
  3701.  off your computer or end your current session.  See below for information on 
  3702.  saving and reloading your aliases. 
  3703.  
  3704.  Multiple Commands and Special Characters in Aliases 
  3705.  
  3706.  An alias can represent more than one command.  For example: 
  3707.  
  3708.           [c:\] alias letters = `cd \letters & tedit`
  3709.  
  3710.  creates a new command called LETTERS.  The command first uses CD to change to 
  3711.  a subdirectory called \LETTERS and then runs a program called TEDIT.  The 
  3712.  ampersand [&] is the command separator and indicates that the two commands are 
  3713.  distinct and should be executed sequentially. 
  3714.  
  3715.  Aliases make extensive use of the command separator, and the parameter 
  3716.  character, and may also use the escape character.  These characters differ 
  3717.  between 4OS2, 4DOS, and Take Command.  In the text and examples below, we use 
  3718.  the Take Command characters. If you want to use the same aliases under 
  3719.  different command processors, see Special Character Compatibility. 
  3720.  
  3721.  When an alias contains multiple commands, the commands are executed one after 
  3722.  the other.  However, if any of the commands run an external Windows or OS/2 
  3723.  application, you must be sure the alias will wait for the application to 
  3724.  finish before continuing with the other commands.  This behavior is controlled 
  3725.  by the Wait for completion setting on the Options 2 page of the configuration 
  3726.  notebook  or the ExecWait directive in the TCMDOS2.INI file. 
  3727.  
  3728.  When you type alias commands at the command line or in a batch file, you must 
  3729.  use back quotes [`] around the definition if it contains multiple commands, 
  3730.  parameters (discussed below), environment variables, redirection, or piping. 
  3731.  The back quotes prevent premature expansion of these arguments.  You may use 
  3732.  back quotes around other definitions, but they are not required. (You do not 
  3733.  need back quotes when your aliases are loaded from an ALIAS /R file; see below 
  3734.  for details.)  You also do not need back-quotes when entering an alias in the 
  3735.  Aliases dialog box.)  The examples in this section include back-quotes only 
  3736.  when they are required. 
  3737.  
  3738.  Nested Aliases 
  3739.  
  3740.  Aliases may invoke internal commands, external commands, or other aliases. 
  3741.  (However, an alias may not invoke itself, except in special cases where an IF 
  3742.  or IFF command is used to prevent an infinite loop.)  The two aliases below 
  3743.  demonstrate alias nesting (one alias invoking another).  The first line 
  3744.  defines an alias which runs Word for Windows in the E:\WINWORD subdirectory. 
  3745.  The second alias changes directories with the PUSHD command, runs the WP 
  3746.  alias, and then returns to the original directory with the POPD command: 
  3747.  
  3748.           [c:\] alias wp = e:\wp60\wpinword\winword.exe
  3749.           [c:\] alias w = `pushd c:\wp & wp & popd`
  3750.  
  3751.  The second alias above could have included the full path and name of the 
  3752.  WINWORD.EXE program instead of calling the WP alias.  However, writing two 
  3753.  aliases makes the second one easier to read and understand, and makes the 
  3754.  first alias available for independent use.  If you rename the WINWORD.EXE 
  3755.  program or move it to a new directory, only the first alias needs to be 
  3756.  changed. 
  3757.  
  3758.  Temporarily Disabling Aliases 
  3759.  
  3760.  If you put an asterisk [*] immediately before a command in the value of an 
  3761.  alias definition (the part after the equal sign), it tells Take Command not to 
  3762.  attempt to interpret that command as another (nested) alias.  An asterisk used 
  3763.  this way must be preceded by a space or the command separator and followed 
  3764.  immediately by an internal or external command name. 
  3765.  
  3766.  By using an asterisk, you can redefine the default options for any internal or 
  3767.  external command.  For example, suppose that you always want to use the DIR 
  3768.  command with the /2 (two column) and /P (pause at the end of each page) 
  3769.  options.  The following line will do just that: 
  3770.  
  3771.           [c:\] alias dir = *dir /2/p
  3772.  
  3773.  If you didn't include the asterisk, the second DIR on the line would be the 
  3774.  name of the alias itself, and Take Command would repeatedly re- invoke the DIR 
  3775.  alias, rather than running the DIR command.  This would cause an "Alias loop" 
  3776.  or "Command line too long" error. 
  3777.  
  3778.  An asterisk also helps you keep the names of internal commands from 
  3779.  conflicting with the names of external programs.  For example, suppose you 
  3780.  have a program called DESCRIBE.EXE.  Normally, the internal DESCRIBE command 
  3781.  will run anytime you type DESCRIBE.  But two simple aliases will give you 
  3782.  access to both the DESCRIBE.EXE program and the DESCRIBE command: 
  3783.  
  3784.           [c:\] alias describe = c:\winutil\describe.exe
  3785.           [c:\] alias filedesc = *describe
  3786.  
  3787.  The first line above defines DESCRIBE as an alias for the DESCRIBE.EXEprogram. 
  3788.  If you stopped there, the external program would run every time you typed 
  3789.  DESCRIBE and you would not have easy access to the internal DESCRIBE command. 
  3790.  The second line renames the internal DESCRIBE command as FILEDESC.  The 
  3791.  asterisk is needed in the second command to indicate that the following word 
  3792.  means the internal command DESCRIBE, not the DESCRIBE alias which runs your 
  3793.  external program. 
  3794.  
  3795.  Another way to understand the asterisk is to remember that a command is always 
  3796.  checked for an alias first, then for an internal or external command, or a 
  3797.  batch file (see Internal and External Commands).  The asterisk at the 
  3798.  beginning of a command name simply skips over the usual check for aliases when 
  3799.  processing that command, and allows Take Command to go straight to checking 
  3800.  for an internal command, external command, or batch file. 
  3801.  
  3802.  You can also use an asterisk before a command that you enter at the command 
  3803.  line or in a batch file.  If you do, that command won't be interpreted as an 
  3804.  alias.  This can be useful when you want to be sure you are running the true, 
  3805.  original command and not an alias with the same name, or temporarily defeat 
  3806.  the purpose of an alias which changes the meaning or behavior of a command. 
  3807.  For example, above we defined an alias for DIR which made directories display 
  3808.  in 2-column paged mode by default.  If you wanted to see a directory display 
  3809.  in the normal single-column, non-paged mode, you could enter the command *DIR 
  3810.  and the alias would be ignored during that one command. 
  3811.  
  3812.  You can also disable aliases temporarily with the SETDOS /X command. 
  3813.  
  3814.  Partial Alias Names 
  3815.  
  3816.  You can also use an asterisk in the name of an alias.  When you do, the 
  3817.  characters following the asterisk are optional when you invoke the alias 
  3818.  command.  (Use of an asterisk in the alias name is unrelated to the use of an 
  3819.  asterisk in the alias value discussed above.)  For example, with this alias: 
  3820.  
  3821.           [c:\] alias wher*eis = dir /sp
  3822.  
  3823.  the new command, WHEREIS, can be invoked as WHER, WHERE, WHEREI, or WHEREIS. 
  3824.  Now if you type: 
  3825.  
  3826.           [c:\] where myfile.txt
  3827.  
  3828.  The WHEREIS alias will be expanded to the command: 
  3829.  
  3830.           dir /sp myfile.txt
  3831.  
  3832.  Keystroke Aliases 
  3833.  
  3834.  If you want to assign an alias to a keystroke, use the key name on the left 
  3835.  side of the equal sign, preceded by an at sign [@]. For example, to assign the 
  3836.  command DIR /W to the F4 key, type 
  3837.  
  3838.           [c:\] alias @F4 = dir /w
  3839.  
  3840.  See Keys and Key Names for a complete listing of key names and a description 
  3841.  of the key name format. 
  3842.  
  3843.  You can not use Alt key names (e.g., Alt-D) for keystroke aliases because 
  3844.  these names are used by OS/2 for "accelerator" (shortcut) keys for menu items. 
  3845.  
  3846.  If you define a keystroke alias with a single at sign as shown above, then, 
  3847.  when you press the F4 key, the value of the alias (DIR /W above) will be 
  3848.  placed on the command line for you.  You can type additional parameters if you 
  3849.  wish and then press Enter to execute the command. With this particular alias, 
  3850.  you can define the files that you want to display after pressing F4 and before 
  3851.  pressing Enter to execute the command. 
  3852.  
  3853.  If you want the keystroke alias to take action automatically without waiting 
  3854.  for you to edit the command line or press Enter, you can begin the definition 
  3855.  with two at signs [@@].  Take Command will execute the alias "silently," 
  3856.  without displaying its text on the command line.  For example, this command 
  3857.  will assign an alias to the F11 key that uses the CDD command to take you back 
  3858.  to the previous default directory: 
  3859.  
  3860.           [c:\] alias @@f11 = cdd -
  3861.  
  3862.  When you define keystroke aliases, the assignments will only be in effect at 
  3863.  the command line, not inside application programs.  Be careful not to assign 
  3864.  aliases to keys that are already used at the command line (like F1for Help). 
  3865.  The command-line meanings take precedence and the keystroke alias will never 
  3866.  be invoked.  If you want to use one of the command- line keys for an alias 
  3867.  instead of its normal meaning, you must first disable its regular use with the 
  3868.  NormalKey or NormalEditKey directives in your .INI file. 
  3869.  
  3870.  You can also define a keystroke alias by using "@" or "@@" plus a scan code 
  3871.  for one of the permissible keys (see the Key Code Tables for a list of scan 
  3872.  codes).  In most cases it will be easier to use key names.  Scan codes should 
  3873.  only be used with unusual keyboards where a key name is not available for the 
  3874.  key you are using. 
  3875.  
  3876.  Displaying Aliases 
  3877.  
  3878.  If you want to see a list of all current ALIAS commands, type: 
  3879.  
  3880.           [c:\] alias
  3881.  
  3882.  You can also view the definition of a single alias.  For example, if you want 
  3883.  to see the definition of the alias LIST, you can type: 
  3884.  
  3885.           [c:\] alias list
  3886.  
  3887.  Saving and Reloading Your Aliases 
  3888.  
  3889.  You can save your aliases to a file called ALIAS.LST this way: 
  3890.  
  3891.           [c:\] alias > alias.lst
  3892.  
  3893.  You can then reload all the alias definitions in the file the next time you 
  3894.  boot up with the command: 
  3895.  
  3896.           [c:\] alias /r alias.lst
  3897.  
  3898.  This is much faster than defining each alias individually in a batch file.  If 
  3899.  you keep your alias definitions in a separate file which you load when your 
  3900.  system starts, you can edit them with a text editor, reload the edited file 
  3901.  with ALIAS /R, and know that the same alias list will be loaded the next time 
  3902.  you boot your computer. 
  3903.  
  3904.  When you define aliases in a file that will be read with the ALIAS /R command, 
  3905.  you do not need back quotes around the value, even if back quotes would 
  3906.  normally be required when defining the same alias at the command line or in a 
  3907.  batch file. 
  3908.  
  3909.  You can also save and reload your aliases using the Aliases dialog.  The 
  3910.  Export button in the dialog box is equivalent to the ALIAS > filename command 
  3911.  shown above, and the Import button is equivalent to the ALIAS /R command. 
  3912.  
  3913.  To remove an alias, use the UNALIAScommand. 
  3914.  
  3915.  Alias Parameters 
  3916.  
  3917.  Aliases can use command-line arguments or parameters like those in batch 
  3918.  files.  The command-line arguments are numbered from %0 to % 127.  %0 contains 
  3919.  the alias name.  It is up to the alias to determine the meaning of the other 
  3920.  parameters. You can use quotation marks to pass spaces, tabs, commas, and 
  3921.  other special characters in an alias parameter; see Argument Quotingfor 
  3922.  details. 
  3923.  
  3924.  Parameters that are referred to in an alias, but which are missing on the 
  3925.  command line, appear as empty strings inside the alias.  For example, if you 
  3926.  put two parameters on the command line, any reference in the alias to %3 or 
  3927.  any higher-numbered parameter will be interpreted as an empty string. 
  3928.  
  3929.  The parameter %n$ has a special meaning.  Take Command interprets it to mean 
  3930.  "the entire command line, from argument n to the end." If n is not specified, 
  3931.  it has a default value of 1, so %$means "the entire command line after the 
  3932.  alias name."  The special parameter %# contains the number of command-line 
  3933.  arguments. 
  3934.  
  3935.  For example, the following alias will change directories, perform a command, 
  3936.  and return to the original directory: 
  3937.  
  3938.           [c:\] alias in = `pushd %1 & %2$ & popd`
  3939.  
  3940.  When this alias is invoked as: 
  3941.  
  3942.           [c:\] in c:\comm mycomm zmodem /56K
  3943.  
  3944.  the first parameter, %1, has the value c:\comm. %2 is mycomm,  %3is zmodem, 
  3945.  and %4 is /56K. The command line expands into these three separate commands: 
  3946.  
  3947.           pushd c:\comm
  3948.           mycomm zmodem /56K
  3949.           popd
  3950.  
  3951.  This next example uses the IFF command to redefine the defaults for SET.  It 
  3952.  should be entered on one line: 
  3953.  
  3954.           [c:\] alias set = `iff %# == 0 then & *set /p & else
  3955.   & *set %$ & endiff`
  3956.  
  3957.  This modifies the SET command so that if SET is entered with no arguments, it 
  3958.  is replaced by SET /P (pause after displaying each page), but if SET is 
  3959.  followed by an argument, it behaves normally. Note the use of asterisks (*set) 
  3960.  to prevent alias loops. 
  3961.  
  3962.  If an alias uses parameters, command-line arguments will be deleted up to and 
  3963.  including the highest referenced argument.  For example, if an alias refers 
  3964.  only to %1 and %4, then the first and fourth arguments will be used, the 
  3965.  second and third arguments will be discarded, and any additional arguments 
  3966.  beyond the fourth will be appended to the expanded command (after the value 
  3967.  portion of the alias).  If an alias uses no parameters, all of the command- 
  3968.  line arguments will be appended to the expanded command. 
  3969.  
  3970.  Aliases also have full access to all variables in the environment, internal 
  3971.  variables, and variable functions.  For example, you can create a simple 
  3972.  command-line calculator this way: 
  3973.  
  3974.           [c:\] alias calc = `echo The answer is: %@eval[%$]`
  3975.  
  3976.  Now, if you enter: 
  3977.  
  3978.           [c:\] calc 5 * 6
  3979.  
  3980.  the alias will display: 
  3981.  
  3982.           The answer is: 30
  3983.  
  3984.  Expanding Aliases at the Prompt 
  3985.  
  3986.  You can expand an alias on the command line and view or edit the results by 
  3987.  pressing Ctrl-F after typing the alias name, but before the command is 
  3988.  executed.  This replaces the alias with its contents, and substitutes values 
  3989.  for each alias paramter, just as if you had pressed the Enter key.  However, 
  3990.  the command is not executed; it is simply redisplayed on the command line for 
  3991.  additional editing. 
  3992.  
  3993.  Ctrl-F is especially useful when you are developing and debugging a complex 
  3994.  alias, or if you want to make sure that an alias that you may have forgotten 
  3995.  won't change the effect of your command. 
  3996.  
  3997.  Local and Global Aliases 
  3998.  
  3999.  The aliases can be stored in either a "local" or "global" list. 
  4000.  
  4001.  With a local alias list, any changes made to the aliases will only affect the 
  4002.  current copy of Take Command.  They will not be visible in other sessions. 
  4003.  
  4004.  With a global alias list, all copies of Take Command will share the same alias 
  4005.  list, and any changes made to the aliases in one copy will affect all other 
  4006.  copies.  This is the default. 
  4007.  
  4008.  You can control the type of alias list from the Startup page of the 
  4009.  configuration dialogs, with the LocalAliases directive in the TCMDOS2.INI 
  4010.  file, with the /L and /LA options of the START commandand with the /L and /LA 
  4011.  startup options. 
  4012.  
  4013.  There is no fixed rule for determining whether to use a local or global alias 
  4014.  list.  Depending on your work style, you may find it most convenient to use 
  4015.  one type, or a mixture of types in different sessions or shells.  We recommend 
  4016.  that you start with the default approach, then modify it if you find a 
  4017.  situation where the default is not convenient. 
  4018.  
  4019.  Whenever you start a second copy of Take Command which uses a local alias 
  4020.  list, it inherits a copy of the aliases from the previous copy.. However, any 
  4021.  changes to the alias made in the second copy will affect only that copy.  If 
  4022.  you want changes made in a second copy of Take Command to affect the previous 
  4023.  copy, use a global alias list in both. 
  4024.  
  4025.  Retaining Global Aliases with SHRALIAS 
  4026.  
  4027.  If you select a global alias list you can share the aliases among all copies 
  4028.  of Take Command running in any session.  When you close all Take Command 
  4029.  sessions, the memory for the global alias list is released, and a new, empty 
  4030.  alias list is created the next time you start Take Command. 
  4031.  
  4032.  If you want the aliases to be retained in memory even when no Take Command 
  4033.  session is running, you need to execute the SHRALIAS command, which loads a 
  4034.  program to perform this service for the global alias list, the global command 
  4035.  history list, and the global directory history list.  You may find it 
  4036.  convenient to execute SHRALIAS from your TCSTART file 
  4037.  
  4038.  SHRALIAS retains the alias list in memory, but cannot preserve it when OS/2 
  4039.  itself is shut down.  To save your aliases when restarting OS/2, you must 
  4040.  store them in a file and reload them after the system restarts.  For details 
  4041.  on how to do so, see Saving and Reloading Your Aliases (above). 
  4042.  
  4043.  The UNKNOWN_CMD Alias 
  4044.  
  4045.  If you create an alias with the name UNKNOWN_CMD, it will be executed any time 
  4046.  Take Command would normally issue an "Unknown command" error message.  This 
  4047.  allows you to define your own "handler" for unknown commands.  When the 
  4048.  UNKNOWN_CMD alias is executed, the command line which generated the error is 
  4049.  passed to the alias for possible processing.  For example, to display the 
  4050.  command that caused the error: 
  4051.  
  4052.           alias unknown_cmd `echo Error in command "%&"`
  4053.  
  4054.  Use caution when you create the UNKNOWN_CMD alias.  If the alias contains an 
  4055.  unknown command, it will be called repeatedly and Take Command will loop up to 
  4056.  10 times, then display an "UNKNOWN_CMD loop" error. 
  4057.  
  4058.  Options: 
  4059.  
  4060.     /P      (Pause) This option is only effective when ALIAS is used to display 
  4061.             existing definitions.  It pauses the display after each page and 
  4062.             waits for a keystroke before continuing (see Page and File 
  4063.             Prompts). 
  4064.  
  4065.     /R      (Read file) This option loads an alias list from a file. The format 
  4066.             of the file is the same as that of the ALIAS display: 
  4067.  
  4068.                                 name=value
  4069.  
  4070.             where name is the name of the alias and value is its value.  You 
  4071.             can use an equal sign [=] or space to separate the name and value. 
  4072.             Back quotes are not required around the value. You can add comments 
  4073.             to the file by starting each comment line with a colon [:].  You 
  4074.             can load multiple files with one ALIAS /R command by placing the 
  4075.             names on the command line, separated by spaces: 
  4076.  
  4077.                                 [c:\] alias /r alias1.lst alias2.lst
  4078.  
  4079.             Each definition in an ALIAS /R file can be up to 2,047 characters 
  4080.             long.  The definitions can span multiple lines in the file if each 
  4081.             line, except the last, is terminated with an escape character. 
  4082.  
  4083.  
  4084. ΓòÉΓòÉΓòÉ 3.3.4. ATTRIB - Change file attributes ΓòÉΓòÉΓòÉ
  4085.  
  4086.  Purpose:    Change or view file and subdirectory attributes. 
  4087.  
  4088.  Format:     ATTRIB [/A:[[-]rhsda] /D /E /P /Q /S] [+|-[AHRS]] files ... 
  4089.  
  4090.              files :  A file, directory, or list of files or directories on 
  4091.              which to operate. 
  4092.  
  4093.              /A: (Attribute select)      /P(ause) 
  4094.              /D(irectories)              /Q(uiet) 
  4095.              /E (No error messages)      /S(ubdirectories) 
  4096.  
  4097.              Attribute flags: 
  4098.  
  4099.               +A     Set the archive attribute 
  4100.               -A     Clear the archive attribute 
  4101.               +H     Set the hidden attribute 
  4102.               -H     Clear the hidden attribute 
  4103.               +R     Set the read-only attribute 
  4104.               -R     Clear the read-only attribute 
  4105.               +S     Set the system attribute 
  4106.               -S     Clear the system attribute 
  4107.  
  4108.  File Selection: 
  4109.  
  4110.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  4111.  
  4112.  Usage: 
  4113.  
  4114.  Every file and subdirectory has 4 attributes that can be turned on (set) or 
  4115.  turned off (cleared):  Archive, Hidden, Read- only, and System. 
  4116.  
  4117.  The ATTRIB command lets you view, set, or clear attributes for any file, group 
  4118.  of files, or subdirectory. 
  4119.  
  4120.  You can view file attributes by entering ATTRIB without specifying new 
  4121.  attributes (i.e., without the [+|-[AHRS]] part of the format).  (You can also 
  4122.  view file attributes with the DIR /T command. 
  4123.  
  4124.  The primary use of ATTRIB is to set attributes.  For example, you can set the 
  4125.  read-only and hidden attributes for the file MEMO: 
  4126.  
  4127.           [c:\] attrib +rh memo
  4128.  
  4129.  Attribute options apply to the file(s) that follow the options on the ATTRIB 
  4130.  command line.  The example below shows how to set different attributes on 
  4131.  different files with a single command.  It sets the archive attribute for all 
  4132.  .TXT files, then sets the system attribute and clears the archive attribute 
  4133.  for TEST.COM: 
  4134.  
  4135.           [c:\] attrib +a *.txt +s -a test.com
  4136.  
  4137.  When you use ATTRIB on an HPFS drive, you must quote any file names which 
  4138.  contain whitespace or special characters. 
  4139.  
  4140.  To change directory attributes, use the /D switch.  If you give ATTRIB a 
  4141.  directory name instead of a file name, and omit /D, it will append "\*.*" to 
  4142.  the end of the name and act on all files in that directory, rather than acting 
  4143.  on the directory itself. 
  4144.  
  4145.  OS/2 also supports "D" (subdirectory) and "V" (volume label) attributes. These 
  4146.  attributes cannot be altered with ATTRIB; they are designed to be controlled 
  4147.  only by the operating system itself. 
  4148.  
  4149.  ATTRIB will ignore underlines in the new attribute (the [+|- [AHRS]] part of 
  4150.  the command).  For example, ATTRIB sees these 2 commands as identical: 
  4151.  
  4152.           [c:\] attrib +a filename
  4153.           [c:\] attrib +__A_ filename
  4154.  
  4155.  This allows you to use a string of attributes from either the @ATTRIB variable 
  4156.  function or from ATTRIB itself (both of which use underscores to represent 
  4157.  attributes that are not set) and send that string back to ATTRIB to set 
  4158.  attributes for other files.  For example, to clear the attributes of FILE2 and 
  4159.  then set its attributes to match those of FILE1 (enter this on one line): 
  4160.  
  4161.           [c:\] attrib -arhs file2 & attrib +%@attrib[file1] file2
  4162.  
  4163.  Options: 
  4164.  
  4165.     /A:     (Attribute select):  Select only those files that have the 
  4166.             specified attribute(s) set.  Preceding the attribute character with 
  4167.             a hyphen [-] will select files that do not have that attribute set. 
  4168.             The colon [:] after /A is required.  The attributes are: 
  4169.  
  4170.                          R  Read-only 
  4171.                          H  Hidden 
  4172.                          S  System 
  4173.                          D  Subdirectory 
  4174.                          A  Archive 
  4175.  
  4176.             If no attributes are listed at all (e.g., /A:), ATTRIB will select 
  4177.             all files and subdirectories including hidden and system files.  If 
  4178.             attributes are combined, all the specified attributes must match 
  4179.             for a file to be selected.  For example, /A:RHS will select only 
  4180.             those files with all three attributes set. 
  4181.  
  4182.             This switch specifies which files to select, not which attributes 
  4183.             to set.  For example, to remove the archive attribute from all 
  4184.             hidden files, you could use this command: 
  4185.  
  4186.                                 [c:\] attrib /a:h -a *.*
  4187.  
  4188.     /D      (Directories) If you use the /D option, ATTRIB will modify the 
  4189.             attributes of subdirectories in addition to files (yes, you can 
  4190.             have a hidden subdirectory): 
  4191.  
  4192.                                 [c:\] attrib /d +h c:\mydir
  4193.  
  4194.     /E      (No error messages) Suppress all non-fatal error messages, such as 
  4195.             "File Not Found."  Fatal error messages, such as "Drive not ready," 
  4196.             will still be displayed.  This option is most useful in batch files 
  4197.             and aliases. 
  4198.  
  4199.     /P      (Pause) Wait for a key to be pressed after each screen page before 
  4200.             continuing the display.  Your options at the prompt are explained 
  4201.             in detail under Page and File Prompts. 
  4202.  
  4203.     /Q      (Quiet) This option turns off ATTRIB's normal screen output. It is 
  4204.             most useful in batch files. 
  4205.  
  4206.     /S      (Subdirectories) If you use the /S option, the ATTRIB command will 
  4207.             be applied to all matching files in the current or named directory 
  4208.             and all of its subdirectories. 
  4209.  
  4210.  
  4211. ΓòÉΓòÉΓòÉ 3.3.5. BEEP - Beep the speaker ΓòÉΓòÉΓòÉ
  4212.  
  4213.  Purpose:    Beep the speaker or play simple music. 
  4214.  
  4215.  Format:     BEEP [frequency duration ...] 
  4216.  
  4217.              frequency :  The beep frequency in Hertz (cycles per second). 
  4218.              duration :  The beep length in 1/18th second intervals. 
  4219.  
  4220.  Usage: 
  4221.  
  4222.  BEEP generates a sound through your computer's speaker.  It is normally used 
  4223.  in batch files to signal that an operation has been completed, or that the 
  4224.  computer needs attention. 
  4225.  
  4226.  Because BEEP allows you to specify the frequency and duration of the sound, 
  4227.  you can also use it to play simple music or to create different kinds of 
  4228.  signals for the user. 
  4229.  
  4230.  You can include as many frequency and duration pairs as you wish. No sound 
  4231.  will be generated for frequencies less than 20 Hz, allowing you to insert 
  4232.  short delays.  The default value for frequency is 440 Hz; the default value 
  4233.  for duration is 2. 
  4234.  
  4235.  This batch file fragment runs a program called DEMO, then plays a few notes 
  4236.  and waits for you to press a key: 
  4237.  
  4238.           demo
  4239.           beep 440 4  600 2  1040 6
  4240.           pause Finished with the demo - hit a key
  4241.  
  4242.   The following table gives the frequency values for a five octave range 
  4243.  (middle C is 262 Hz): 
  4244.  
  4245.           ΓòöΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòñΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòñΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòñΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòñΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòñΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòù
  4246.           Γòæ C      Γöé  131  Γöé  262  Γöé  523  Γöé  1046  Γöé  2093 Γòæ
  4247.           Γòæ C#/Db  Γöé  139  Γöé  277  Γöé  554  Γöé  1108  Γöé  2217 Γòæ
  4248.           Γòæ D      Γöé  147  Γöé  294  Γöé  587  Γöé  1175  Γöé  2349 Γòæ
  4249.           Γòæ D#/Eb  Γöé  156  Γöé  311  Γöé  622  Γöé  1244  Γöé  2489 Γòæ
  4250.           Γòæ E      Γöé  165  Γöé  330  Γöé  659  Γöé  1318  Γöé  2637 Γòæ
  4251.           Γòæ F      Γöé  175  Γöé  349  Γöé  698  Γöé  1397  Γöé  2794 Γòæ
  4252.           Γòæ F#/Gb  Γöé  185  Γöé  370  Γöé  740  Γöé  1480  Γöé  2960 Γòæ
  4253.           Γòæ G      Γöé  196  Γöé  392  Γöé  784  Γöé  1568  Γöé  3136 Γòæ
  4254.           Γòæ G#/Ab  Γöé  208  Γöé  415  Γöé  831  Γöé  1662  Γöé  3322 Γòæ
  4255.           Γòæ A      Γöé  220  Γöé  440  Γöé  880  Γöé  1760  Γöé  3520 Γòæ
  4256.           Γòæ A#/Bb  Γöé  233  Γöé  466  Γöé  932  Γöé  1866  Γöé  3729 Γòæ
  4257.           Γòæ B      Γöé  248  Γöé  494  Γöé  988  Γöé  1973  Γöé  3951 Γòæ
  4258.           ΓòÜΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòºΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòºΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòºΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòºΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòºΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓò¥
  4259.  
  4260.  
  4261. ΓòÉΓòÉΓòÉ 3.3.6. CALL - Execute one batch file from another ΓòÉΓòÉΓòÉ
  4262.  
  4263.  Purpose:    Execute one batch file from within another. 
  4264.  
  4265.  Format:     CALL [/Q]  file 
  4266.  
  4267.              file :  The batch file to execute. 
  4268.  
  4269.              /Q(uiet) 
  4270.  
  4271.  See also:  CANCEL and QUIT. 
  4272.  
  4273.  Usage: 
  4274.  
  4275.  CALL allows batch files to call other batch files (batch file nesting).  The 
  4276.  calling batch file is suspended while the called (second) batch file runs. 
  4277.  When the second batch file finishes, the original batch file resumes execution 
  4278.  at the next command.  If you execute a batch file from inside another batch 
  4279.  file without using CALL, the first batch file is terminated before the second 
  4280.  one starts. 
  4281.  
  4282.  The following batch file fragment compares an input line to "wp" and calls 
  4283.  another batch file if it matches: 
  4284.  
  4285.           input  Enter your choice:  %%option
  4286.           if "%option" == "wp" call wp.bat
  4287.  
  4288.  Take Command supports batch file nesting up to ten levels deep. 
  4289.  
  4290.  The current ECHO state is inherited by a called batch file, except when the /Q 
  4291.  switch is used. 
  4292.  
  4293.  The called batch file should always either return (by executing its last line, 
  4294.  or using the QUIT command), or terminate batch file processing with CANCEL. Do 
  4295.  not restart or CALL the original batch file from within the called file as 
  4296.  this may cause an infinite loop or a stack overflow. 
  4297.  
  4298.  CALL returns an exit code which matches the batch file return code.  You can 
  4299.  test this exit code with the %_? or %? environment variable, and use it with 
  4300.  conditional commands (&& and ||). 
  4301.  
  4302.  Option: 
  4303.  
  4304.     /Q      (Quite):  Starts the new batch file with echo off, regardless of 
  4305.             the current batch file's echo state.  This switch is provided for 
  4306.             compatibility with CMD.EXE. 
  4307.  
  4308.  
  4309. ΓòÉΓòÉΓòÉ 3.3.7. CANCEL - End all batch files ΓòÉΓòÉΓòÉ
  4310.  
  4311.  Purpose:    Terminate batch file processing. 
  4312.  
  4313.  Format:     CANCEL [value] 
  4314.  
  4315.              value :  The numeric exit code to return to Take Command. 
  4316.  
  4317.  See also:  CALL and QUIT. 
  4318.  
  4319.  Usage: 
  4320.  
  4321.  The CANCEL command ends all batch file processing, regardless of the batch 
  4322.  file nesting level.  Use QUIT to end a nested batch file and return to the 
  4323.  previous batch file. 
  4324.  
  4325.  You can CANCEL at any point in a batch file.  If CANCEL is used from within an 
  4326.  alias it will end execution of both the alias and any batch files which are 
  4327.  running at the time. 
  4328.  
  4329.  The following batch file fragment compares an input line to "end" and 
  4330.  terminates all batch file processing if it matches: 
  4331.  
  4332.           input Enter your choice:  %%option
  4333.           if "%option" == "end" cancel
  4334.  
  4335.  If you specify a value, CANCEL will set the ERRORLEVEL or exit code to that 
  4336.  value (see the IF command, and the %? variable). 
  4337.  
  4338.  
  4339. ΓòÉΓòÉΓòÉ 3.3.8. CD - Change directory ΓòÉΓòÉΓòÉ
  4340.  
  4341.  Purpose:    Display or change the current directory. 
  4342.  
  4343.  Format:     CD [ path | - ] 
  4344.                 or 
  4345.              CHDIR [ path | - ] 
  4346.  
  4347.              path:  The directory to change to, including an optional drive 
  4348.              name. 
  4349.  
  4350.  See also:  CDD, MD, PUSHD, RD, and Directory Navigation. 
  4351.  
  4352.  Usage: 
  4353.  
  4354.  CD and CHDIR are synonyms.  You can use either one. 
  4355.  
  4356.  CD lets you navigate through a drive's subdirectory structure by changing the 
  4357.  current working directory.  If you enter CD and a directory name, the named 
  4358.  directory becomes the new current directory.  For example, to change to the 
  4359.  subdirectory C:\FINANCE\MYFILES: 
  4360.  
  4361.           [c:\] cd \finance\myfiles
  4362.           [c:\finance\myfiles]
  4363.  
  4364.  Every disk drive on the system has its own current directory. Specifying both 
  4365.  a drive and a directory in the CD command will change the current directory on 
  4366.  the specified drive, but will not change the default drive.  For example, to 
  4367.  change the default directory on drive A: 
  4368.  
  4369.           [c:\] cd a:\utility
  4370.           [c:\]
  4371.  
  4372.  Notice that this command does not change to drive A:.  Use the CDD command to 
  4373.  change the current drive and directory at the same time. 
  4374.  
  4375.  When you use CD to change to a directory on an HPFS drive, you must quote the 
  4376.  path name if it contains whitespace or special characters. 
  4377.  
  4378.  You can change to the parent directory with CD ..; you can also go up one 
  4379.  additional directory level with each additional [.]. For example, CD .... will 
  4380.  go up three levels in the directory tree (see Extended Parent Directory 
  4381.  Names).  You can move to a sibling directory -- one that branches from the 
  4382.  same parent directory as the current subdirectory -- with a command like CD 
  4383.  ..\newdir. 
  4384.  
  4385.  If you enter CD with no argument or with only a disk drive name, it will 
  4386.  display the current directory on the default or named drive. 
  4387.  
  4388.  If CD cannot change to the directory you have specified it will attempt to 
  4389.  search the CDPATH and the extended directory search database in order to find 
  4390.  a matching directory and switch to it.  You can also use wildcards in the path 
  4391.  to force an extended directory search.  Read the section on Directory 
  4392.  Navigation for complete details on these and other directory navigation 
  4393.  features. 
  4394.  
  4395.  CD saves the current directory before changing to a new directory. You can 
  4396.  switch back to the previous directory by entering CD -.  (There must be a 
  4397.  space between the CD command and the hyphen.)  You can switch back and forth 
  4398.  between two directories by repeatedly entering CD -.  The saved directory is 
  4399.  the same for both the CD and CDD commands.  Drive changes and automatic 
  4400.  directory changes also modify the saved directory, so you can use CD - to 
  4401.  return to a directory that you exited with an automatic directory change. 
  4402.  
  4403.  Directory changes made with CD are also recorded in the directory history list 
  4404.  and can be displayed in the directory history window, which allows you to 
  4405.  return quickly to a recently-used directory. 
  4406.  
  4407.  CD never changes the default drive.  If you change directories on one drive, 
  4408.  switch to another drive, and then enter CD -, the directory will be restored 
  4409.  on the first drive but the current drive will not be changed. 
  4410.  
  4411.  
  4412. ΓòÉΓòÉΓòÉ 3.3.9. CDD - Change drive and directory ΓòÉΓòÉΓòÉ
  4413.  
  4414.  Purpose:    Change the current disk drive and directory. 
  4415.  
  4416.  Format:     CDD [/A /S[drive...]] [path | - ] 
  4417.  
  4418.              path:  The name of the directory (or drive and directory) to 
  4419.              change to. 
  4420.              drive:  A drive or list of drives to include in the extended 
  4421.              directory search database. 
  4422.  
  4423.              /A(ll druves)            /S(earch tree) 
  4424.  
  4425.   See also:  CD, MD, PUSHD, RD, and Directory Navigation. 
  4426.  
  4427.  Usage: 
  4428.  
  4429.  CDD is similar to the CD command, except that it also changes the default disk 
  4430.  drive if one is specified.  CDD will change to the directory and drive you 
  4431.  name.  To change from the root directory on drive A to the subdirectory C:\WP: 
  4432.  
  4433.           [a:\] cdd c:\wp
  4434.           [c:\wp]
  4435.  
  4436.  You can change to the parent directory with CDD ..; you can also go up one 
  4437.  additional directory level with each additional [.]. For example, CDD .... 
  4438.  will go up three levels in the directory tree (see Extended Parent Directory 
  4439.  Names for details). 
  4440.  
  4441.  CDD can also change to a network drive and directory specified with a UNC 
  4442.  name. 
  4443.  
  4444.  When you use CDD to change to a directory on an NTFS drive, you must quote the 
  4445.  path name if it contains whitespace or special characters. 
  4446.  
  4447.  If CDD cannot change to the directory you have specified it will attempt to 
  4448.  search the CDPATH and the extended directory search database in order to find 
  4449.  a matching directory and switch to it.  You can also use wildcards in the path 
  4450.  to force an extended directory search.  Read the section on Directory 
  4451.  Navigation for complete details on these and other directory navigation 
  4452.  features.  CDD saves the current drive and directory before changing to a new 
  4453.  directory. You can switch back to the previous drive and directory by entering 
  4454.  CDD -  (there must be a space between the CDD command and the hyphen).  You 
  4455.  can switch back and forth between two drives and directories by repeatedly 
  4456.  entering CDD -.  The saved directory is the same for both the CD and CDD 
  4457.  commands.  Drive changes and automatic directory changes also modify the saved 
  4458.  directory, so you can use CDD - to return to a directory that you exited with 
  4459.  a drive change or an automatic directory change. 
  4460.  
  4461.  Directory changes made with CDD are also recorded in the directory history 
  4462.  list and can be displayed in the directory history window, which allows you to 
  4463.  return quickly to a recently-used directory. 
  4464.  
  4465.  Options: 
  4466.  
  4467.     /A      (All drives) When CDD is used with this option, it displays the 
  4468.             current directory on all drives from C: to the last drive in the 
  4469.             system.  You cannot move to a new drive and directory and use /A in 
  4470.             the same command. 
  4471.  
  4472.     /S      (Search tree) Builds or rebuilds the Extended Directory Search 
  4473.             database, JPSTREE.IDX.  You cannot move to a new drive and 
  4474.             directory and use /S in the same command. 
  4475.  
  4476.             To include all local hard drives in the database, use the command: 
  4477.  
  4478.                                 cdd /s
  4479.  
  4480.             To limit or add to the list of drives included in the database, 
  4481.             list the drives and network volume names after the /S switch.  For 
  4482.             example, to include drives C, D, E, and the network volume 
  4483.             \\server\dir1 in the database, use this command: 
  4484.  
  4485.                                 cdd /s cde \\server\dir1
  4486.  
  4487.             All non-hidden directories on the listed drives will be indexed; 
  4488.             you cannot restrict the database to certain directories within a 
  4489.             drive.  Each time you use /S, everything in the previous directory 
  4490.             database is replaced by the new database that is created. 
  4491.  
  4492.  
  4493. ΓòÉΓòÉΓòÉ 3.3.10. CHCP - Change the current code page ΓòÉΓòÉΓòÉ
  4494.  
  4495.  Purpose:    Display or change the current system code page. 
  4496.  
  4497.  Format:     CHCP [n ] 
  4498.  
  4499.              n :  A system code page number. 
  4500.  
  4501.  Usage: 
  4502.  
  4503.  Code page switching allows you to select different character sets for language 
  4504.  support. 
  4505.  
  4506.  If you enter CHCP without a number, the current active code page is displayed, 
  4507.  along with a list of all active code pages : 
  4508.  
  4509.           [c:\] chcp
  4510.           Active code page: 437
  4511.           Prepared code pages:  273 274 277 278 280 282 284 285 297 437 500
  4512.           850 860 863 865 932 942 852 857 861 870 871 1026 1004
  4513.  
  4514.  If you enter CHCP plus a code page number, the system code page is changed. 
  4515.  For example, to set the code page to multilingual: 
  4516.  
  4517.           [c:\] chcp 850
  4518.  
  4519.  CHCP only affects the current Take Command for OS/2 session, and any new 
  4520.  programs started from within that session; the active code page in other 
  4521.  sessions remains unchanged. 
  4522.  
  4523.  CHCP accepts one of the prepared system code pages.  An error message is 
  4524.  displayed if a code page is selected that has not been prepared for the 
  4525.  system. 
  4526.  
  4527.  See your OS/2 documentation for more information on CHCP. 
  4528.  
  4529.  
  4530. ΓòÉΓòÉΓòÉ 3.3.11. CLS - Clear the screen ΓòÉΓòÉΓòÉ
  4531.  
  4532.  Purpose:    Clear the window and move the cursor to the upper left corner; 
  4533.              optionally change the default display colors. 
  4534.  
  4535.  Format:     CLS [/C] [[BRIght] fg ON [BRIght] bg] 
  4536.  
  4537.              fg :  The new foreground color 
  4538.              bg :  The new background color 
  4539.  
  4540.              /C  Clear scrollback buffer 
  4541.  
  4542.  Usage: 
  4543.  
  4544.  CLS can be used to clear the screen without changing colors, or to clear the 
  4545.  screen and change the screen colors simultaneously. These two examples show 
  4546.  how to clear the screen to the default colors, and to bright white letters on 
  4547.  a blue background: 
  4548.  
  4549.           [c:\] cls
  4550.           [c:\] cls bright white on blue
  4551.  
  4552.  CLS is often used in batch files to clear the screen before displaying text. 
  4553.  
  4554.  See Colors and Color Names for details about colors. 
  4555.  
  4556.  Option: 
  4557.  
  4558.     /C      (Clear buffer)  Clears the entire scrollback buffer.  If /C is not 
  4559.             used, only the visible portion of the Take Command screen is 
  4560.             cleared. 
  4561.  
  4562.  
  4563. ΓòÉΓòÉΓòÉ 3.3.12. COLOR - Change display colors ΓòÉΓòÉΓòÉ
  4564.  
  4565.  Purpose:    Change the default display colors. 
  4566.  
  4567.  Format:     COLOR [BRIght] fg ON [ BRIght] bg 
  4568.  
  4569.              fg :  The new foreground color 
  4570.              bg :  The new background color 
  4571.  
  4572.  See also:  CLS, and Colors and Color Names for details about using colors. 
  4573.  
  4574.  Usage: 
  4575.  
  4576.  COLOR is normally used in batch files before displaying text. For example, to 
  4577.  set screen colors to bright white on blue, you can use this command: 
  4578.  
  4579.           [c:\] color bright white on blue
  4580.  
  4581.  
  4582. ΓòÉΓòÉΓòÉ 3.3.13. COPY - Copy files ΓòÉΓòÉΓòÉ
  4583.  
  4584.  Purpose:    Copy data between disks, directories, files, or physical hardware 
  4585.              devices (such as your printer or serial port). 
  4586.  
  4587.  Format:     COPY [/A:[[-]rhsda] /C /E /H /K /M /N /P /Q /R /S /T /U /V /X /Z] 
  4588.              source [+] ... [/A /B] destination [/A /B] 
  4589.  
  4590.              source :  A file or list of files or a device to copy from. 
  4591.              destination :  A file, directory, or device to copy to. 
  4592.  
  4593.              /A(SCII)                    /P(rompt) 
  4594.              /A:(ttribute select)        /Q(uiet) 
  4595.              /B(inary)                   /R(eplace) 
  4596.              /C(hanged)                  /S(ubdirectories) 
  4597.              /E (No error messages)      /T(otals) 
  4598.              /H(idden)                   /U(update) 
  4599.              /K(eep attributes)          /V(erify) 
  4600.              /M(odified)                 /X (clear archive) 
  4601.              /N(othing)                  /Z (overwrite) 
  4602.  
  4603.  See also:  ATTRIB, MOVE, and REN. 
  4604.  
  4605.  File Selection: 
  4606.  
  4607.  Supports extended wildcards, ranges, multiple file names, and include lists, 
  4608.  and the clipboard device (CLIP:).  Date, time, size, or exclude ranges 
  4609.  anywhere on the line apply to all source files. 
  4610.  
  4611.  Usage: 
  4612.  
  4613.  The COPY command accepts all traditional syntax and options and adds several 
  4614.  new features. 
  4615.  
  4616.  The simplest use of COPY is to make a copy of a file, like this example which 
  4617.  makes a copy of a file called FILE1.ABC: 
  4618.  
  4619.           [c:\] copy file1.abc file2.def
  4620.  
  4621.  You can also copy a file to another drive and/or directory.  The following 
  4622.  command copies FILE1 to the \MYDIR directory on drive E: 
  4623.  
  4624.           [c:\] copy file1 e:\mydir
  4625.  
  4626.  When you COPY files to or from an HPFS drive, you must quote any file names 
  4627.  which contain whitespace or special characters. 
  4628.  
  4629.  Copying Files 
  4630.  
  4631.  You can copy several files at once by using wildcards: 
  4632.  
  4633.           [c:\] copy *.txt e:\mydir
  4634.  
  4635.  You can also list several source files in one command.  The following command 
  4636.  copies 3 files from the current directory to the \MYDIR directory on drive E: 
  4637.  
  4638.           [c:\] copy file1 file2 file3 e:\mydir
  4639.  
  4640.  COPY also understands include lists, so you can specify several different 
  4641.  kinds of files in the same command.  This command copies the .TXT, .DOC, and 
  4642.  .BAT files from the E:\MYDIR directory to the root directory of drive A: 
  4643.  
  4644.           [c:\] copy e:\mydir\*.txt;*.doc;*.bat a:\
  4645.  
  4646.  If there is only one argument on the line, COPY assumes it is the source, and 
  4647.  uses the current drive and directory as the destination.  For example, the 
  4648.  following command copies all the .DAT files on drive A to the current 
  4649.  directory on drive C: 
  4650.  
  4651.           [c:\data] copy a:*.dat
  4652.  
  4653.  If there are two or more arguments on the line, separated by spaces, then COPY 
  4654.  assumes that the last argument is the destination and copies all source files 
  4655.  to this new location.  If the destination is a drive, directory, or device 
  4656.  name then the source files are copied individually to the new location.  If 
  4657.  the destination is a file name, the first source file is copied to the 
  4658.  destination, and any additional source files are then appended to the new 
  4659.  destination file. 
  4660.  
  4661.  For example, the first of these commands copies the .DAT files from the 
  4662.  current directory on drive A individually to C:\MYDIR (which must already 
  4663.  exist as a directory); the second appends all the .DAT files together into one 
  4664.  large file called C:\DATA (assuming C:\DATA is not a directory): 
  4665.  
  4666.           [c:\] copy a:*.dat c:\mydir\
  4667.           [c:\] copy a:*.dat c:\data
  4668.  
  4669.  When you copy to a directory, if you add a backslash [\] to the end of the 
  4670.  name as shown in the first example above, COPY will display an error message 
  4671.  if the name does not refer to an existing directory.  You can use this feature 
  4672.  to keep COPY from treating a mistyped destination directory name as a file 
  4673.  name and attempting to append all your source files to a destination file, 
  4674.  when you really meant to copy them individually to a destination directory. 
  4675.  
  4676.  To copy a file to a device such as the printer, use the device name as the 
  4677.  destination, for example: 
  4678.  
  4679.           [c:\] copy schedule.txt prn
  4680.  
  4681.  To copy to or from the clipboard use CLIP: as the device name.  Using CLIP: 
  4682.  with non-text data will produce unpredictable results. 
  4683.  
  4684.  Appending Files 
  4685.  
  4686.  A plus [+] tells COPY to append two or more files to a single destination 
  4687.  file.  If you list several source files separated with [+] and don't specify a 
  4688.  destination, COPY will use the name of the first source file as the 
  4689.  destination, and append each subsequent file to the first file. 
  4690.  
  4691.  For example, the following command will append the contents of C:\MEMO2 and 
  4692.  C:\MEMO3 to C:\MEMO1 and leave the combined contents in the file named 
  4693.  C:\MEMO1: 
  4694.  
  4695.           [c:\] copy memo1+memo2+memo3
  4696.  
  4697.  To append the same three files but store the result in BIGMEMO: 
  4698.  
  4699.           [c:\] copy memo1+memo2+memo3 bigmemo
  4700.  
  4701.  If no destination is specified, the destination file will always be created in 
  4702.  the current directory even if the first source file is in another directory or 
  4703.  on another drive.  For example, this command will append C:\MEM\MEMO2 and 
  4704.  C:\MEM\MEMO3 to D:\DATA\MEMO1, and leave the result in C:\MEM\MEMO1: 
  4705.  
  4706.           [c:\mem] copy d:\data\memo1+memo2+memo3
  4707.  
  4708.  You cannot append files to a device (such as a printer); if you try to do so, 
  4709.  COPY will ignore the [+] signs and copy the files individually.  If you 
  4710.  attempt to append several source files to a destination directory or disk, 
  4711.  COPY will append the files and place the copy in the new location with the 
  4712.  same name as the first source file. 
  4713.  
  4714.  Advanced Features 
  4715.  
  4716.  If your destination has wildcards in it, COPY will attempt to match them with 
  4717.  the source names.  For example, this command copies the .DAT files from drive 
  4718.  A to C:\MYDIR and gives the new copies the extension .DX: 
  4719.  
  4720.           [c:\] copy a:*.dat c:\mydir\*.dx
  4721.  
  4722.  This feature can give you unexpected results if you use it with multiple 
  4723.  source file names.  For example, suppose that drive A contains XYZ.DAT and 
  4724.  XYZ.TXT.  The command: 
  4725.  
  4726.           [c:\] copy a:\*.dat a:\*.txt c:\mydir\*.dx
  4727.  
  4728.  will copy A:XYZ.DAT to C:\MYDIR\XYZ.DX. Then it will copy A:XYZ.TXT to 
  4729.  C:\MYDIR\XYZ.DX, overwriting the first file it copied. 
  4730.  
  4731.  You can use date, time, and size ranges to further define the files that you 
  4732.  want to copy.  This example copies every file in the E:\MYDIR directory, which 
  4733.  was created or modified yesterday, and which is also 10,000 bytes or smaller 
  4734.  in size, to the root directory of drive A: 
  4735.  
  4736.           [c:\] copy /[d-1] /[s0,10000] e:\mydir\*.* a:\
  4737.  
  4738.  You can also use file exclusion ranges to restrict the list of files that 
  4739.  would normally be selected with wildcards.  This example copies every file in 
  4740.  the E:\MYDIR directory except backup (.BAK or .BK!) files: 
  4741.  
  4742.           [c:\] copy /[!*.bak;*.bk!] e:\mydir\*.* a:\
  4743.  
  4744.  COPY will normally process source files which do not have the hidden or system 
  4745.  attribute, and will ignore the read-only and archive attributes.  It will 
  4746.  always set the archive attribute and clear the read-only attribute of 
  4747.  destination files.  In addition, if the destination is an existing file with 
  4748.  the read-only attribute, COPY will generate an "Access Denied" error and 
  4749.  refuse to overwrite the file.  You can alter some of these behaviors with 
  4750.  switches (see the individual switch descriptions below for complete details): 
  4751.  
  4752.         /A: Forces COPY to process source files with the attributes you 
  4753.             specify. 
  4754.  
  4755.         /H  Forces COPY to process hidden and system source files, and 
  4756.             preserves the hidden and system attributes when creating 
  4757.             destination files. 
  4758.  
  4759.         /K  Retains the read-only attribute from each source file when creating 
  4760.             the destination file. 
  4761.  
  4762.         /Z  Forces COPY to overwrite an existing read-only destination file. 
  4763.  
  4764.  Use caution with /A:, /H, or /K when both the source and destination 
  4765.  directories contain file descriptions.  If the source specification matches 
  4766.  the description file name (normally DESCRIPT.ION), and you use a switch which 
  4767.  tells COPY to process hidden files, the DESCRIPT.ION file itself will be 
  4768.  copied, overwriting any existing descriptions in the destination directory. 
  4769.  For example, if the \DATA directory contains file descriptions this command 
  4770.  would overwrite any existing descriptions in the \SAVE directory: 
  4771.  
  4772.          [c:\data] copy /h d*.* \save\
  4773.  
  4774.  If you copy a file from a FAT volume to an HPFS volume, and you do not give an 
  4775.  explicit destination name (i.e., you are moving the file to the current 
  4776.  directory, or your destination name is made up entirely of wildcards), COPY 
  4777.  will look for a .LONGNAME extended attribute for the source file.  If it finds 
  4778.  that attribute, it will use the long filename for the destination file; 
  4779.  otherwise, it will use the short name. 
  4780.  
  4781.  Similarly, if you COPY files with long filenames from an HPFS volume to a FAT 
  4782.  volume, Take Command will create the destination files with short, 
  4783.  FAT-compatible names and save the long filenames in the .LONGNAME extended 
  4784.  attribute.  The short name is created by replacing special characters with 
  4785.  underscores, adding numeric digits to the filename (if necessary) to make the 
  4786.  new name unique, and truncating the name to fit with in the "8.3" FAT name 
  4787.  structure. 
  4788.  
  4789.  Options: 
  4790.  
  4791.     The /A(SCII) and /B(inary) options apply to the preceding filename and to 
  4792.     all subsequent filenames on the command line until the file name preceding 
  4793.     the next /A or /B, if any. The other options (/A:, /C, /E, /H, /K, /M, /N, 
  4794.     /P, /Q, /R, /S, /T, /U, /V, /X, /Z) apply to all filenames on the command 
  4795.     line, no matter where you put them.  For example, either of the following 
  4796.     commands could be used to copy a font file to the printer in binary mode: 
  4797.  
  4798.                 [c:\] copy /b myfont.dat prn
  4799.                 [c:\] copy myfont.dat /b prn
  4800.  
  4801.     Some options do not make sense in certain contexts, in which case COPY will 
  4802.     ignore them.  For example, you cannot prompt before replacing an existing 
  4803.     file when the destination is a device such as the printer -- there's no 
  4804.     such thing as an "existing file" on the printer.  If you use conflicting 
  4805.     output options, like /Q and /P, COPY will generally take a "conservative" 
  4806.     approach and give priority to the option which generates more prompts or 
  4807.     more information. 
  4808.  
  4809.     /A      (ASCII) If you use /A with a source filename, the file will be 
  4810.             copied up to, but not including, the first Ctrl-Z (Control-Z or 
  4811.             ASCII 26) character in the file (some application programs use the 
  4812.             Ctrl-Z to mark the end of a file).  If you use /A with a 
  4813.             destination filename, a Ctrl-Z will be added to the end of the 
  4814.             file.  /A is the default when appending files, or when the 
  4815.             destination is a device like NUL or PRN, rather than a disk file. 
  4816.  
  4817.     /A:     (Attribute select):  Select only those files that have the 
  4818.             specified attribute(s) set.  Preceding the attribute character with 
  4819.             a hyphen [-] will select files that do not have that attribute set. 
  4820.             The colon [:] after /A is required.  The attributes are: 
  4821.  
  4822.                          R  Read-only 
  4823.                          H  Hidden 
  4824.                          S  System 
  4825.                          D  Subdirectory 
  4826.                          A  Archive 
  4827.  
  4828.             If no attributes are listed at all (e.g., COPY /A:), COPY will 
  4829.             select all files and subdirectories including hidden and system 
  4830.             files (this is equivalent to COPY /H).  If attributes are combined, 
  4831.             all the specified attributes must match for a file to be selected. 
  4832.             For example, /A:RHS will select only those files with all three 
  4833.             attributes set. 
  4834.  
  4835.             See the cautionary note under Advanced Features above before using 
  4836.             /A: when both source and destination directories contain file 
  4837.             descriptions. 
  4838.  
  4839.     /B      (Binary) If you use /B with a source filename, the entire file is 
  4840.             copied; Ctrl-Z characters in the file do not affect the copy 
  4841.             operation.  Using /B with a destination filename prevents addition 
  4842.             of a Ctrl-Z to the end of the destination file. /B is the default 
  4843.             for normal file copies. 
  4844.  
  4845.     /C      (Changed files) Copy files only if the destination file exists and 
  4846.             is older than the source (see also /U).  This option is useful for 
  4847.             updating the files in one directory from those in another without 
  4848.             copying any newly created files. 
  4849.  
  4850.     /E      (No error messages)  Suppress all non-fatal error messages, such as 
  4851.             "File not found."  Fatal error messages, such as "Drive not ready," 
  4852.             will still be displayed.  This option is most useful in batch files 
  4853.             and aliases. 
  4854.  
  4855.     /H      (Hidden) Copy all matching files including those with the hidden 
  4856.             and/or system attribute set. 
  4857.  
  4858.             See the cautionary note under Advanced Features above before using 
  4859.             /H when both source and destination directories contain file 
  4860.             descriptions. 
  4861.  
  4862.     /K      (Keep attribute) To maintain compatibility with COMMAND.COM, 
  4863.             CMD.EXE, and Netware, COPY normally maintains the hidden and system 
  4864.             attributes, sets the archive attribute, and removes the read-only 
  4865.             attribute on the target file.  /K tells COPY to also maintain the 
  4866.             read-only attribute on the destination file. However, if the 
  4867.             destination is on a Novell Netware volume, this option will fail to 
  4868.             maintain the read-only attribute.  This is due to the way Netware 
  4869.             handles file attributes, and is not a problem in COPY. 
  4870.  
  4871.     /M      (Modified) Copy only those files with the archive attribute set, 
  4872.             i.e., those which have been modified since the last backup.  The 
  4873.             archive attribute of the source file will not be cleared after 
  4874.             copying; to clear it use the /X switch, or use ATTRIB. 
  4875.  
  4876.     /N      (Nothing) Do everything except actually perform the copy. This 
  4877.             option is useful for testing what the result of a complex COPY 
  4878.             command will be.  /N does not prevent creation of destination 
  4879.             subdirectories when it is used with /S. 
  4880.  
  4881.     /P      (Prompt) Ask the user to confirm each source file.  Your options at 
  4882.             the prompt are explained in detail under Page and File Prompts. 
  4883.  
  4884.     /Q      (Quiet) Don't display filenames or the total number of files 
  4885.             copied.  This option is most often used in batch files. 
  4886.  
  4887.     /R      (Replace) Prompt the user before overwriting an existing file. 
  4888.             Your options at the prompt are explained in detail under Page and 
  4889.             File Prompts. 
  4890.  
  4891.     /S      (Subdirectories) Copy the subdirectory tree starting with the files 
  4892.             in the source directory plus each subdirectory below that.  The 
  4893.             destination must be a directory; if it doesn't exist, COPY will 
  4894.             attempt to create it.  COPY will also attempt to create needed 
  4895.             subdirectories on the tree below the destination, including empty 
  4896.             source directories.  If COPY /S creates one or more destination 
  4897.             directories, they will be added automatically to the extended 
  4898.             directory search database. 
  4899.  
  4900.             If you attempt to use COPY /S to copy a subdirectory tree into part 
  4901.             of itself, COPY will detect the resulting infinite loop, display an 
  4902.             error message. and exit. 
  4903.  
  4904.     /T      (Totals) Turns off the display of filenames, like /Q, but does 
  4905.             display the total number of files copied. 
  4906.  
  4907.     /U      (Update) Copy each source file only if it is newer than a matching 
  4908.             destination file or if a matching destination file does not exist 
  4909.             (see also /C). This option is useful for keeping one directory 
  4910.             matched with another with a minimum of copying. 
  4911.  
  4912.     /V      (Verify) Verify each disk write.  This is the same as executing the 
  4913.             VERIFY ON command, but is only active during the COPY.  /V does not 
  4914.             read back the file and compare its contents with what was written; 
  4915.             it only verifies that the data written to disk is physically 
  4916.             readable. 
  4917.  
  4918.     /X      (Clear archive) Clears the archive attribute from the source file 
  4919.             after a successful copy.  This option is most useful if you are 
  4920.             using COPY to maintain a set of backup files. 
  4921.  
  4922.     /Z      (Overwrite)  Overwrites read-only destination files. Without this 
  4923.             option, COPY will fail with an "Access denied" error if the 
  4924.             destination file has its read-only attribute set.  This option 
  4925.             allows COPY to overwrite read-only files without generating any 
  4926.             errors. 
  4927.  
  4928.  
  4929. ΓòÉΓòÉΓòÉ 3.3.14. DATE - Set the date ΓòÉΓòÉΓòÉ
  4930.  
  4931.  Purpose:    Display and optionally change the system date. 
  4932.  
  4933.  Format:     DATE [mm-dd- yy] 
  4934.  
  4935.              mm :  The month (1 - 12). 
  4936.              dd :  The day (1 - 31). 
  4937.              yy :  The year (80 - 99 = 1980 - 1999, or a 4-digit year). 
  4938.  
  4939.  See also:  TIME. 
  4940.  
  4941.  Usage: 
  4942.  
  4943.  If you simply type DATE without any parameters, you will see the current 
  4944.  system date and time, and be prompted for a new date. Press Enter if you don't 
  4945.  wish to change the date.  If you type a new date, it will become the current 
  4946.  system date, which is included in the directory entry for each file as it is 
  4947.  created or altered: 
  4948.  
  4949.           [c:\] date
  4950.           Mon Dec 22, 1997  9:30:06
  4951.           Enter new date (mm-dd-yy):
  4952.  
  4953.  You can also enter a new system date by typing the DATE command plus the new 
  4954.  date on the command line: 
  4955.  
  4956.           [c:\] date 10-16-97
  4957.  
  4958.  You can use hyphens, slashes, or periods to separate the month, day, and year 
  4959.  entries.  The year can be entered as a 2-digit or 4-digit value.  Two-digit 
  4960.  years between 80 and 99 are interpreted as 1980 - 1999; values between 00 and 
  4961.  79 are interpreted as 2000 - 2079. 
  4962.  
  4963.  DATE adjusts the format it expects depending on your country settings.  When 
  4964.  entering the date, use the correct format for the country setting currently in 
  4965.  effect on your system. 
  4966.  
  4967.  
  4968. ΓòÉΓòÉΓòÉ 3.3.15. DEL - Delete files ΓòÉΓòÉΓòÉ
  4969.  
  4970.  Purpose:    Erase one file, a group of files, or entire subdirectories. 
  4971.  
  4972.  Format:     DEL [/A:[[-]rhsda] /E /F /N /P /Q /S /T /W /X /Y /Z] file... 
  4973.                 or 
  4974.              ERASE [/A:[[-]rhsda] /E /F /N /P /Q /S /T /W /X /Y /Z] file... 
  4975.  
  4976.              file :  The file, subdirectory, or list of files or subdirectories 
  4977.              to erase. 
  4978.  
  4979.              /A: (Attribute select)          /S(ubdirectories) 
  4980.              /E (No error messages)          /T(otal) 
  4981.              /F(orce delete)                 /W(ipe) 
  4982.              /N(othing)                      /X (remove empty subdirectories) 
  4983.              /P(rompt)                       /Y(es to all prompts) 
  4984.              /Q(uiet)                        /Z(ap hidden and read-only files) 
  4985.  
  4986.  File Selection: 
  4987.  
  4988.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  4989.  
  4990.  Usage: 
  4991.  
  4992.  DEL and ERASE are synonyms; you can use either one. 
  4993.  
  4994.  Use the DEL and ERASE commands with caution; the files and subdirectories that 
  4995.  you erase may be impossible to recover without specialized utilities and a lot 
  4996.  of work. 
  4997.  
  4998.  To erase a single file, simply enter the file name: 
  4999.  
  5000.           [c:\] del letters.txt
  5001.  
  5002.  You can also erase multiple files in a single command.  For example, to erase 
  5003.  all the files in the current directory with a .BAK or .PRN extension: 
  5004.  
  5005.           [c:\] del *.bak *.prn
  5006.  
  5007.  When you use DEL on an NTFS drive, you must quote any file names which contain 
  5008.  whitespace or special characters. 
  5009.  
  5010.  To exclude files from a DEL command, use a file exclusion range.  For example, 
  5011.  to delete all files in the current directory except those whose extension is 
  5012.  .TXT, use a command like this: 
  5013.  
  5014.           [c:\] del /[!*.TXT] *.*
  5015.  
  5016.  When using exclusion ranges or other more complex options you may want to use 
  5017.  the /N switch first, to preview the effects of the DEL without actually 
  5018.  deleting any files. 
  5019.  
  5020.  If you enter a subdirectory name, or a filename composed only of wildcards (* 
  5021.  and/or ?), DEL asks for confirmation (Y or N) unless you specified the /Y 
  5022.  option.  If you respond with a Y, DEL will delete all the files in that 
  5023.  subdirectory (hidden, system, and read-only files are only deleted if you use 
  5024.  the /Z option). 
  5025.  
  5026.  DEL displays the amount of disk space recovered, unless the /Q option is used 
  5027.  (see below).  It does so by comparing the amount of free disk space before and 
  5028.  after the DEL command is executed.  This amount may be incorrect if you are 
  5029.  using a deletion tracking system which stores deleted files in a hidden 
  5030.  directory, or if another program performs a file operation while the DEL 
  5031.  command is executing. 
  5032.  
  5033.  Remember that DEL removes file descriptions along with files.  Most deletion 
  5034.  tracking systems will not be able to save or recover a file's description, 
  5035.  even if they can save or recover the data in a file. 
  5036.  
  5037.  When a file is deleted, its disk space is returned to the operating system for 
  5038.  use by other files.  However, the contents of the file remain on the disk 
  5039.  until they are overwritten by another file.  If you wish to obliterate a file 
  5040.  or wipe its contents clean, use DEL /W, which overwrites the file with zeros 
  5041.  before deleting it.  Use this option with caution.  Once a file is 
  5042.  obliterated, it is impossible to recover. 
  5043.  
  5044.  DEL returns a non-zero exit code if no files are deleted, or if another error 
  5045.  occurs.  You can test this exit code with the %_? environment variable, and 
  5046.  use it with conditional commands (&& and ||). 
  5047.  
  5048.  Options: 
  5049.  
  5050.     /A:     (Attribute select):  Select only those files that have the 
  5051.             specified attribute(s) set.  Preceding the attribute character with 
  5052.             a hyphen [-] will select files that do not have that attribute set. 
  5053.             The colon [:] after /A is required.  The attributes are: 
  5054.  
  5055.                          R  Read-only 
  5056.                          H  Hidden 
  5057.                          S  System 
  5058.                          D  Subdirectory 
  5059.                          A  Archive 
  5060.  
  5061.             If no attributes are listed at all (e.g., DEL /A:), DEL will delete 
  5062.             all files and subdirectories including hidden and system files.  If 
  5063.             attributes are combined, all the specified attributes must match 
  5064.             for a file to be selected for deletion.  For example, /A:RHS will 
  5065.             select only those files with all three attributes set. 
  5066.  
  5067.     /E      (No error messages)  Suppress all non-fatal error messages, such as 
  5068.             "File Not Found."  Fatal error messages, such as "Drive not ready," 
  5069.             will still be displayed.  This option is most useful in batch files 
  5070.             and aliases. 
  5071.  
  5072.     /F      (Force delete) This option forces deletion of the file without 
  5073.             saving it to the DELDIR directory (if DELDIR is not in use, /F has 
  5074.             no effect). 
  5075.  
  5076.     /N      (Nothing) Do everything except actually delete the file(s).  This 
  5077.             is useful for testing what the result of a DEL would be. 
  5078.  
  5079.     /P      (Prompt) Prompt the user to confirm each erasure.  Your options at 
  5080.             the prompt are explained in detail under Page and File Prompts. 
  5081.  
  5082.     /Q      (Quiet) Don't display filenames as they are deleted, or the number 
  5083.             of files deleted or bytes freed.  See also /T. 
  5084.  
  5085.     /S      (Subdirectories) Delete the specified files in this directory and 
  5086.             all of its subdirectories.  This can be used to delete all the 
  5087.             files in a subdirectory tree or even a whole disk.  It should be 
  5088.             used with caution! 
  5089.  
  5090.     /T      (Total) Don't display filenames as they are deleted, but display 
  5091.             the total number of files deleted plus the amount of free disk 
  5092.             space recovered. 
  5093.  
  5094.     /W      (Wipe) Clear the file to zeros before deleting it.  Use this option 
  5095.             to completely obliterate a file's contents from your disk.  Once 
  5096.             you have used this option it is impossible to recover the file even 
  5097.             if you are using an undelete utility, because the contents of the 
  5098.             file are destroyed before it is deleted.  /W overwrites the file 
  5099.             only once; it does not adhere to security standards which require 
  5100.             multiple overwrites with varying data when destroying sensitive 
  5101.             information. 
  5102.  
  5103.     /X      (Remove empty subdirectories) Remove empty subdirectories after 
  5104.             deleting (only useful when used with /S).  If DEL deletes one or 
  5105.             more directories, they will be removed automatically from the 
  5106.             extended directory search database. 
  5107.  
  5108.     /Y      (Yes) The reverse of /P -- it assumes a Y response to everything, 
  5109.             including deleting an entire subdirectory tree. Take Command 
  5110.             normally prompts before deleting files when the name consists only 
  5111.             of wildcards or a subdirectory name ( see above); /Y overrides this 
  5112.             protection, and should be used with extreme caution! 
  5113.  
  5114.     /Z      (Zap) Delete read-only, hidden, and system files as well as normal 
  5115.             files.  Files with the read-only, hidden, or system attribute set 
  5116.             are normally protected from deletion; /Z overrides this protection, 
  5117.             and should be used with caution.  Because EXCEPT works by hiding 
  5118.             files, /Z will override an EXCEPT command.  However, files 
  5119.             specified in a file exclusion range will not be deleted by DEL /Z. 
  5120.  
  5121.             For example, to delete the entire subdirectory tree starting with 
  5122.             C:\UTIL, including hidden and read-only files, without prompting 
  5123.             (use this command with CAUTION!): 
  5124.  
  5125.                                 [c:\] del /sxyz c:\util\
  5126.  
  5127.  
  5128. ΓòÉΓòÉΓòÉ 3.3.16. DELAY - Pause for a specified time ΓòÉΓòÉΓòÉ
  5129.  
  5130.  Purpose:    Pause for a specified length of time. 
  5131.  
  5132.  Format:     DELAY [seconds ] 
  5133.  
  5134.              seconds :  The number of seconds to delay. 
  5135.  
  5136.  Usage: 
  5137.  
  5138.  DELAY is useful in batch file loops while waiting for something to occur.  To 
  5139.  wait for 10 seconds: 
  5140.  
  5141.           delay 10
  5142.  
  5143.  DELAY is most useful when you need to wait a specific amount of time for an 
  5144.  external event, or check a system condition periodically.  For example, this 
  5145.  batch file checks the battery status (as reported by your Advanced Power 
  5146.  Management drivers) every 15 seconds, and gives a warning when battery life 
  5147.  falls below 30%: 
  5148.  
  5149.           do forever
  5150.              iff %_apmlife lt 30 then
  5151.                 beep 440 4 880 4 440 4 880 4
  5152.                 echo Low Battery!!
  5153.              endiff
  5154.              delay 15
  5155.           enddo
  5156.  
  5157.  The seconds value can be as large as about 268 thousand seconds (8.5 years!). 
  5158.  
  5159.  For delays shorter than one second, use the BEEP command with an inaudible 
  5160.  frequency (below 20 Hz). 
  5161.  
  5162.  Take Command uses the minimum possible processor time during a DELAY, in order 
  5163.  to allow other applications full use of system resources. 
  5164.  
  5165.  You can cancel a delay by pressing Ctrl-C or Ctrl-Break. 
  5166.  
  5167.  
  5168. ΓòÉΓòÉΓòÉ 3.3.17. DESCRIBE - Create file description ΓòÉΓòÉΓòÉ
  5169.  
  5170.  Purpose:    Create, modify, or delete file and subdirectory descriptions. 
  5171.  
  5172.  Format:     DESCRIBE [/A:[[-]rhsda]] file [[/D]"description "] ... 
  5173.  
  5174.              file :  The file, directory, or list of files and directories to 
  5175.              operate on. 
  5176.              "description" :  The description to attach to the file. 
  5177.  
  5178.  /A: (Attribute select)/D(escription follows) 
  5179.  
  5180.  File Selection: 
  5181.  
  5182.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  5183.  
  5184.  Usage: 
  5185.  
  5186.  DESCRIBE adds descriptions to files and subdirectories. The descriptions are 
  5187.  displayed by DIR in single-column mode and by SELECT.  Descriptions let you 
  5188.  identify your files in much more meaningful ways than you can in an eight- 
  5189.  character filename. 
  5190.  
  5191.  You can also enter or modify descriptions with the Descriptions dialog.  The 
  5192.  dialog allows you to select a single file and modify its description using a 
  5193.  dialog box, rather than using the DESCRIBE command.  The information in this 
  5194.  section also applies to descriptions created via the dialog, unless otherwise 
  5195.  noted. 
  5196.  
  5197.  You enter a description on the command line by typing the DESCRIBE command, 
  5198.  the filename, and the description in quotation marks, like this: 
  5199.  
  5200.           [c:\] describe memo.txt "Memo to Bob about party"
  5201.  
  5202.  If you don't put a description on the command line, DESCRIBE will prompt you 
  5203.  for it: 
  5204.  
  5205.           [c:\] describe memo.txt
  5206.           Describe "memo.txt" : Memo to Bob about party
  5207.  
  5208.  If you use wildcards or multiple filenames with the DESCRIBE command and don't 
  5209.  include the description text, you will be prompted to enter a description for 
  5210.  each file.  If you do include the description on the command line, all 
  5211.  matching files will be given the same description. 
  5212.  
  5213.  If you use DESCRIBE on an HPFS drive, you must quote the file name if it 
  5214.  contains whitespace or special characters.  See File Names for additional 
  5215.  details. 
  5216.  
  5217.  If you enter a quoted description on the command line, and the text matches 
  5218.  the name of a file in the current directory, the command processor will treat 
  5219.  the string as a quoted file name, not as description text as you intended.  To 
  5220.  resolve this problem use the /D switch immediately prior to the quoted 
  5221.  description (with no intervening spaces).  For example, if the current 
  5222.  directory contains the files DATA.TST and "Test File", the first of these 
  5223.  commands will work as intended, but the second will not (in the second example 
  5224.  the string "test file" will be treated as a second file name, when it is 
  5225.  intended to be description text): 
  5226.  
  5227.           [c:\] describe data.tst /D"test file"
  5228.           [c:\] describe data.tst "test file"
  5229.  
  5230.  On HPFS drives you will not see file descriptions in a normal DIR display, 
  5231.  because DIR must leave space for the long filenames.  To view the 
  5232.  descriptions, use DIR /Z to display the directory in FAT format.  See the DIR 
  5233.  command for more details. 
  5234.  
  5235.  Each description can be up to 511 characters long.  You can change this limit 
  5236.  on the Options 1 page of the configuration notebook, or with the 
  5237.  DescriptionMax directive in TCMDOS2.INI.  In order to fit your descriptions on 
  5238.  a single line in a standard DIR display, keep them to 40 characters or less 
  5239.  (longer descriptions are wrapped in the DIR output).  DESCRIBE can edit 
  5240.  descriptions longer than DescriptionMax, but will not allow you to lengthen 
  5241.  the existing text. 
  5242.  
  5243.  The descriptions are stored in each directory in a hidden file called 
  5244.  DESCRIPT.ION.  Use the ATTRIB command to remove the hidden attribute from this 
  5245.  file if you need to copy or delete it.  (DESCRIPT.ION is always created as a 
  5246.  hidden file, but will not be re-hidden by Take Command if you remove the 
  5247.  hidden attribute.) 
  5248.  
  5249.  You can change the description file name with the INI_DescriptionName 
  5250.  directive in the TCMDOS2.INI file or the SETDOS command, and retrieve it with 
  5251.  the _DNAME internal variable.  Use caution when changing the description file 
  5252.  name, as changing the name from the default will make it difficult to transfer 
  5253.  file descriptions to another system. 
  5254.  
  5255.  The description file is modified appropriately whenever you perform an 
  5256.  internal command which affects it (such as COPY, MOVE, DEL, or RENAME), but 
  5257.  not if you use an external program (such as XCOPY or a visual shell).  You can 
  5258.  disable description processing on the Options 1 page of the configuration 
  5259.  notebook, with the Descriptions directive in the TCMDOS2.INI file, or with 
  5260.  SETDOS/D. 
  5261.  
  5262.  When you COPY or MOVE files between two directories, both of which have 
  5263.  descriptions, and you use switches which enable processing of hidden files (or 
  5264.  you have removed the hidden attribute from DESCRIPT.ION), you must use caution 
  5265.  to avoid overwriting existing file descriptions in the destination directory 
  5266.  with the DESCRIPT.ION file from the source directory.  See the notes under the 
  5267.  Advanced Features sections of COPY and MOVE for additional details. 
  5268.  
  5269.  Options: 
  5270.  
  5271.     /A:     (Attribute select):  Select only those files that have the 
  5272.             specified attribute(s) set.  Preceding the attribute character with 
  5273.             a hyphen [-] will select files that do not have that attribute set. 
  5274.             The colon [:] after /A is required.  The attributes are: 
  5275.  
  5276.                          R  Read-only 
  5277.                          H  Hidden 
  5278.                          S  System 
  5279.                          D  Subdirectory 
  5280.                          A  Archive 
  5281.  
  5282.             If no attributes are listed at all (e.g., /A:), DESCRIBE will 
  5283.             select all files and subdirectories including hidden and system 
  5284.             files.  If attributes are combined, all the specified attributes 
  5285.             must match for a file to be selected.  For example, /A:RHS will 
  5286.             select only those files with all three attributes set. 
  5287.  
  5288.     /D:     (Description follows) The quoted string immediately following this 
  5289.             switch is a description, not a file name. Use /D to avoid any 
  5290.             ambiguity in the meaning of quoted strings.  See the Usage section 
  5291.             above for details. 
  5292.  
  5293.  
  5294. ΓòÉΓòÉΓòÉ 3.3.18. DETACH - Start a program in "detached" mode ΓòÉΓòÉΓòÉ
  5295.  
  5296.  Purpose:    Start a DOS application or an OS/2 text-mode program in "detached" 
  5297.              mode. 
  5298.  
  5299.  Format:     DETACH command 
  5300.  
  5301.              command :  The name of a command to execute, including an optional 
  5302.              drive and path specification.  The name must be enclosed in 
  5303.              quotation marks if it contains whitespace or special characters. 
  5304.  
  5305.  See also:  START. 
  5306.  
  5307.  Usage: 
  5308.  
  5309.  When you start a program with DETACH, that program cannot use the keyboard, 
  5310.  mouse, or video display.  It is "detached" from the normal means of user input 
  5311.  and output.  However, you can redirect the program's standard I/O to other 
  5312.  devices if necessary, using redirection symbols.  In most cases, you should 
  5313.  only DETACH text-mode programs, since most graphical applications cannot run 
  5314.  without a screen or keyboard, or have their input and output redirected. 
  5315.  
  5316.  The command can be an internal command, external command, alias, or batch 
  5317.  file.  If it is not an external command, Take Command will detach a copy of 
  5318.  itself to execute the command. 
  5319.  
  5320.  For example, the following command will detach a copy of Take Command to run 
  5321.  the batch file XYZ.BTM: 
  5322.  
  5323.           [c:\] detach xyz.btm
  5324.  
  5325.  Once the program has started, Take Command returns to the prompt immediately. 
  5326.  It does not wait for a detached program to finish. 
  5327.  
  5328.  There is no standard way to stop a detached program.  If the program does not 
  5329.  terminate on its own you must reboot the system or use an appropriate task 
  5330.  manager or external utility to stop it. 
  5331.  
  5332.  Due to limitations in the way OS/2 starts detached processes, Take Command 
  5333.  cannot perform a true detach operation like that available from a 
  5334.  character-mode command processor such as 4OS2 or CMD.EXE.  Instead, it starts 
  5335.  the program in an invisible window.  If you require a true detached process 
  5336.  you must use a character-mode command processor to start it. 
  5337.  
  5338.  
  5339. ΓòÉΓòÉΓòÉ 3.3.19. DIR - Display directories ΓòÉΓòÉΓòÉ
  5340.  
  5341.  Purpose:    Display information about files and subdirectories. 
  5342.  
  5343.  Format:     DIR [/1 /2 /4 /A[[:][-]rhsda] /B /C /D /E /F /G /H /I"text" /J /K 
  5344.              /L /M /N /O[[:][-]adeginrsu] /P /R /S /T[:acw] /U /V /W /Z] 
  5345.              [file...] 
  5346.  
  5347.              file :  The file, directory, or list of files or directories to 
  5348.              display. 
  5349.  
  5350.              /1 (one column)                 /L(ower case) 
  5351.              /2 (two columns)                /M (suppress footer) 
  5352.              /4 (four columns)               /N(ew format) 
  5353.              /A(ttribute select)             /O(rder) 
  5354.              /B(are)                         /P(ause) 
  5355.              /D(isable color coding)         /R (disable wRap) 
  5356.              /E (use upper case)             /S(ubdirectories) 
  5357.              /F(ull path)                    /T (aTtribute) or (Time) 
  5358.              /G (allocated size)             /U (sUmmary information) 
  5359.              /H(ide dots)                    /V(ertical sort) 
  5360.              /I (match descriptions)         /W(ide) 
  5361.              /J(ustify names)                /Z (use FAT format) 
  5362.              /K (suppress header) 
  5363.  
  5364.  See also:  ATTRIB, DESCRIBE, SELECT, and SETDOS. 
  5365.  
  5366.  File Selection: 
  5367.  
  5368.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  5369.  
  5370.  Usage: 
  5371.  
  5372.  DIR can be used to display information about files from one or more of your 
  5373.  disk directories, in a wide range of formats.  Depending on the options 
  5374.  chosen, you can display the file name, attributes, and size; the time and date 
  5375.  of the last change to the file; and the file description. You can also display 
  5376.  information in 1, 2, 4, or 5 columns, sort the files several different ways, 
  5377.  use color to distinguish file types, and pause after each full screen. 
  5378.  
  5379.  The various DIR displays are controlled through options or switches.  The best 
  5380.  way to learn how to use the many options available with the DIR command is to 
  5381.  experiment.  You will soon know which options you want to use regularly.  You 
  5382.  can select those options permanently by using the ALIAS command. 
  5383.  
  5384.  For example, to display all the files in the current directory, in 2 columns, 
  5385.  sorted vertically (down one column then down the next), and with a pause at 
  5386.  the end of each page: 
  5387.  
  5388.           [c:\] dir /2/p/v
  5389.  
  5390.  To set up this format as the default, using an alias: 
  5391.  
  5392.           [c:\] alias dir=*dir /2/p/v
  5393.  
  5394.  When you use DIR on an NTFS drive, you must quote any file names which contain 
  5395.  whitespace or special characters. 
  5396.  
  5397.  The following sections group DIR's features together in several categories. 
  5398.  Many of the sections move from a general discussion to more technical 
  5399.  material.  If you find some of the information in a category too detailed for 
  5400.  your needs, feel free to skip to the beginning of the next section.  The 
  5401.  sections are: 
  5402.  
  5403.              Selecting Files 
  5404.              Default DIR Output Format 
  5405.              Switching Formats 
  5406.              Multiple Column Displays 
  5407.              Color-Coded Directories 
  5408.              Redirected Output 
  5409.              Other Notes 
  5410.              Options 
  5411.  
  5412.  Selecting Files 
  5413.  
  5414.  DIR can display information about a single file or about several, dozens, 
  5415.  hundreds, or thousands of files at once.  To display information about a 
  5416.  single file, just add the name of the file to the DIR command line: 
  5417.  
  5418.           [c:\] dir january.wks
  5419.  
  5420.  The simplest way to view information about several files at once is to use 
  5421.  wildcards.  DIR can work with traditional wildcard caracters (* and ?) and the 
  5422.  extended wildcards.  For example to display all of the .WKS files in the 
  5423.  current directory: 
  5424.  
  5425.           [c:\] dir *.wks
  5426.  
  5427.  To display all .TXT files whose names begin with A, B, or C: 
  5428.  
  5429.           [c:\] dir [abc]*.txt
  5430.  
  5431.  If you don't specify a filename, DIR defaults to *.* on traditional FAT 
  5432.  drives, and * NTFS drives.  This default displays all non-hidden files and 
  5433.  subdirectories in the current directory. 
  5434.  
  5435.  If you link two or more filenames together with spaces, DIR will display all 
  5436.  of the files that match the first name and then all of the files that match 
  5437.  the second name.  You may use a different drive and path for each filename. 
  5438.  This example lists all of the .WKS and then all of the .WK1 files in the 
  5439.  current directory: 
  5440.  
  5441.           [c:\] dir *.wks *.wk1
  5442.  
  5443.  If you use an include list to link multiple filenames, DIR will display the 
  5444.  matching filenames in a single listing.  Only the first filename in an include 
  5445.  list can have a path; the other files must be in the same path.  This example 
  5446.  displays the same files as the previous example, but the .WKS and .WK1 files 
  5447.  are intermixed: 
  5448.  
  5449.           [c:\] dir *.wks;*.wk1
  5450.  
  5451.  You can include files in the current or named directory plus all of its 
  5452.  subdirectories by using the /S option.  This example displays all of the .WKS 
  5453.  and .WK1 files in the D:\DATA directory and each of its subdirectories: 
  5454.  
  5455.           [c:\] dir /s d:\data\*.wks;*.wk1
  5456.  
  5457.  You can also select files by their attributes by using the /A option.  For 
  5458.  example, this command displays the names of all of the subdirectories of the 
  5459.  current directory: 
  5460.  
  5461.           [c:\] dir /a:d
  5462.  
  5463.  Finally, with the /I option, DIR can select files to display based on their 
  5464.  descriptions (see the DESCRIBE command for more information on file 
  5465.  descriptions).  DIR will display a file if its description matches the text 
  5466.  after the /I switch.  The search is not case sensitive.  You can use wildcards 
  5467.  and extended wildcards as part of the text.  For example, to display any file 
  5468.  described as a "Test File" you can use this command: 
  5469.  
  5470.           [c:\] dir /i"test file"
  5471.  
  5472.  If you want to display files that include the words "test file" anywhere in 
  5473.  their descriptions, use extended wildcards like this: 
  5474.  
  5475.           [c:\] dir /i"*test file*"
  5476.  
  5477.  To display only those files which do not have descriptions, use: 
  5478.  
  5479.           [c:\] dir /I"[]"
  5480.  
  5481.  In addition, you can use ranges to select or exclude specific sets of files. 
  5482.  For example, to display all files modified in the last week, all files except 
  5483.  those with a .BAK extension, and all files over 500 KB in size: 
  5484.  
  5485.           [c:\] dir /[d-7]
  5486.           [c:\] dir /[!*.bak]
  5487.           [c:\] dir /[s500K]
  5488.  
  5489.  You can, of course, mix any of these file selection techniques in whatever 
  5490.  ways suit your needs. 
  5491.  
  5492.  Default DIR Output Format 
  5493.  
  5494.  DIR's output varies based on the the type of volume or drive on which the 
  5495.  files are stored.  If the volume supports long file names (HPFS volumes), the 
  5496.  default DIR format contains 4 columns: the date of the last file modification 
  5497.  or write, the time of last write, the file size in bytes, and the file name. 
  5498.  The name is displayed as it is stored on the disk, in upper, lower, or mixed 
  5499.  case.  DIR will wrap filenames from one line to the next if they are too long 
  5500.  to fit the width of the display.  The standard output format is: 
  5501.  
  5502.      Volume in drive C is C - BOOTUP    Serial ...
  5503.      Directory of  C:\4DOS60\*.*
  5504.  
  5505.      10-24-96  12:17         <DIR>    .
  5506.      10-24-96  12:17         <DIR>    ..
  5507.      10-28-96   7:57             967  4dos 6.pif
  5508.      10-21-96  18:08         212,854  4DOS.COM
  5509.      11-02-96  10:08              45  4DOS.INI
  5510.  
  5511.  (See Switching Formats below for information on changing the standard long 
  5512.  filename format to allow room for file descriptions.) 
  5513.  
  5514.  On FAT volumes which do not support long file names, the default DIR format 
  5515.  contains 5 columns: the file name, the file size in bytes, the date of the 
  5516.  last write, the time of the last write, and the file's description.  File 
  5517.  names are listed in lower-case; directory names in upper case: 
  5518.  
  5519.      Volume in drive C is C - BOOTUP    Serial ...
  5520.      Directory of  C:\4DOS60\*.*
  5521.  
  5522.      .            <DIR>     10-24-96  12:17
  5523.      ..           <DIR>     10-24-96  12:17
  5524.      TEST         <DIR>     11-01-96  16:21
  5525.      4dos6.pif         967  10-28-96   7:57 4DOS PIF file
  5526.      4dos.com       212854  10-21-96  18:08 4DOS exe ...
  5527.      4dos.ini           45  11-02-96  10:08 4DOS conf ...
  5528.  
  5529.  DIR's output is normally sorted by name, with directories listed first.  You 
  5530.  can change the sort order with the /O option.  For example, these two commands 
  5531.  sort the output by date ╨º the first command lists the oldest file first; the 
  5532.  second command lists the oldest file last: 
  5533.  
  5534.           [c:\] dir /o:d
  5535.           [c:\] dir /o:-d
  5536.  
  5537.  When displaying file descriptions, DIR wraps long lines to fit on the screen. 
  5538.  DIR displays a maximum of 40 characters of text in each line of a description, 
  5539.  unless your screen width allows a wider display.  If you disable description 
  5540.  wrapping with the /R option, the description is truncated at the right edge of 
  5541.  the screen, and a right arrow [] is added at the end of the line to alert you 
  5542.  to the existence of additional description text. 
  5543.  
  5544.  Regardless of the volume type, DIR's default output is sorted.  It displays 
  5545.  directory names first, with "<DIR>" inserted instead of a file size, and then 
  5546.  filenames.  DIR assumes that sequences of digits should be sorted numerically 
  5547.  (for example, the file DRAW2 is listed before DRAW03 because 2 is numerically 
  5548.  smaller than 03), rather than strictly alphabetically (where DRAW2 would come 
  5549.  second because "2" is after "0" in alphanumeric order). 
  5550.  
  5551.   You can change the sort order with the /O option.  When DIR displays file 
  5552.  names in a multi-column format, it sorts file names horizontally unless you 
  5553.  use the /V option to display vertically sorted output. 
  5554.  
  5555.  DIR's display can be modified in many ways to meet different needs.  Most of 
  5556.  the following sections describes the various ways you can change DIR's output 
  5557.  format. 
  5558.  
  5559.  Switching Formats 
  5560.  
  5561.  On HPFS volumes, which support long file names, you can force DIR to use a 
  5562.  FAT-like format (file name first, followed by file information) with the /Z 
  5563.  option.  With this option, DIR  truncates long file names, if necessary, and 
  5564.  adds a right arrow [] to show that the name contains additional characters. 
  5565.  
  5566.  The standard long file name output format does not provide enough space to 
  5567.  show descriptions along with file names.  Therefore, if you wish to view file 
  5568.  descriptions as part of the DIR listing on a volume which supports long file 
  5569.  names, you must use the /Z option. 
  5570.  
  5571.  If you use the /B option, DIR displays just file names and omits the file 
  5572.  size, time stamp, and description for each file, for example: 
  5573.  
  5574.           [c:\] dir w* /b
  5575.           WINDOWS
  5576.           WINNT
  5577.           win311
  5578.           WINALIAS
  5579.           WINENV.BTM
  5580.           .....
  5581.  
  5582.  There are several ways to modify the display produced by /B.  The /F option is 
  5583.  similar to /B, but displays the full path and name of each file, instead of 
  5584.  just its name.  To view the same information for a directory and its 
  5585.  subdirectories use /B /S or /F /S. 
  5586.  
  5587.  Multiple Column Displays 
  5588.  
  5589.  DIR has three options, /2, /4, and /W, that create multi-column displays. 
  5590.  
  5591.  The /2 option creates a 2-column display.  On HPFS drives, only the name of 
  5592.  each file is displayed, with directory names placed in square brackets to 
  5593.  distinguish them from file names.  On drives which do not support long 
  5594.  filenames, or when /Z or /X is used (see below), the display includes the 
  5595.  short name, file size, and time stamp for each file. 
  5596.  
  5597.  The /4 option is similar to /2, but displays directory information in 4 
  5598.  columns.  On drives which do not support long filenames, or when /Z or /X is 
  5599.  used (see below), the display shows the file name and the file size in 
  5600.  kilobytes (KB) or megabytes (MB), with "<D>" in the size column for 
  5601.  directories. 
  5602.  
  5603.  The /W option displays directory information in 5 or more columns, depending 
  5604.  on your screen width.  Each entry in a DIR /W display contains either the name 
  5605.  of a file or the name of a directory.  Directory names are placed in square 
  5606.  brackets to distinguish them from file names. 
  5607.  
  5608.  If you use one of these options on an HPFS drive, and do not select an 
  5609.  alternate display format with /Z or /X, the actual number of columns will be 
  5610.  based on the longest name to be displayed and your screen width, and may be 
  5611.  less than the number you requested (for example, you might see only three 
  5612.  columns even though you used /4).  If the longest name is too long to fit in 
  5613.  on a single line the display will be reduced to one column, and each name will 
  5614.  be wrapped, with "extra" blank lines added so that each name takes the same 
  5615.  number of lines. 
  5616.  
  5617.  Color-Coded Directories 
  5618.  
  5619.  The DIR command can display each file name and the associated file information 
  5620.  in a different color, depending on the file's extension. 
  5621.  
  5622.  To choose the display colors, you must either use the SET command to create an 
  5623.  environment variable called COLORDIR, use the Commands page of the 
  5624.  configuration notebook, or use the ColorDir directive in your TCMDOS2.INI 
  5625.  file.  If you do not use the COLORDIR variable or the ColorDir directive, DIR 
  5626.  will use the default screen colors for all files. 
  5627.  
  5628.  If you use both the COLORDIR variable and the ColorDir directive, the 
  5629.  environment variable will override the settings in your TCMDOS2.INI file.  You 
  5630.  may find it useful to use the COLORDIR variable for experimenting, then to set 
  5631.  permanent directory colors with the ColorDir directive. 
  5632.  
  5633.  The format for both the COLORDIR environment variable and the ColorDir 
  5634.  directive in the .INI file is: 
  5635.  
  5636.           ext ... :ColorName; ...
  5637.  
  5638.  where "ext" is a file extension (which may include wildcards) or one of the 
  5639.  following file types: 
  5640.  
  5641.         DIRS        Directories 
  5642.         RDONLY      Read-only files 
  5643.         HIDDEN      Hidden files 
  5644.         SYSTEM      System files 
  5645.         ARCHIVE     Files modified since the last backup 
  5646.  
  5647.  and "ColorName" is any valid color name (see Colors and Color Names). 
  5648.  
  5649.  Unlike most color specifications, the background portion of the color name may 
  5650.  be omitted for directory colors.  If you don't specify a background color, DIR 
  5651.  will use the current screen background color. 
  5652.  
  5653.  For example, to display the .COM and .EXE files in red on the current 
  5654.  background, the .C and .ASM files in bright cyan on the current background, 
  5655.  and the read-only files in green on white (this should be entered on one 
  5656.  line): 
  5657.  
  5658.           [c:\] set colordir=com exe:red; c asm:bright cyan;
  5659.                rdonly:green on white
  5660.  
  5661.  Extended wildcards can be used in directory color specifications.  For 
  5662.  example, to display .BAK, .BAX, and .BAC files in red: 
  5663.  
  5664.           [c:\] set colordir=BA[KXC]:red
  5665.  
  5666.  Redirected Output 
  5667.  
  5668.  The output of the DIR command, like that of most other internal commands, can 
  5669.  be redirected to a file, printer, serial port, or other device.  However, you 
  5670.  may need to take certain DIR options into account when you redirect DIR's 
  5671.  output. 
  5672.  
  5673.  DIR wraps both long file names and file descriptions at the width of your 
  5674.  display.  Its redirected output will also wrap at the screen width.  Use the 
  5675.  /R option if you wish to disable wrapping of long descriptions. 
  5676.  
  5677.  If you redirect a color-coded directory to a file, DIR will remove the color 
  5678.  data as it sends the directory information to a file.  It will usually do the 
  5679.  same if you redirect output to a character device such as a printer or serial 
  5680.  port.  However, it is not always possible for DIR to tell whether or not a 
  5681.  device is a character device.  If you notice that non-colored lines are being 
  5682.  sent to the output device and colored lines are appearing on your screen, you 
  5683.  can use the /D option to temporarily disable color-coding when you redirect 
  5684.  DIR's output. 
  5685.  
  5686.  To redirect DIR output to the clipboard, use CLIP: as the output device name, 
  5687.  for example: 
  5688.  
  5689.           [c:\] dir *.exe > clip:
  5690.  
  5691.  Other Notes 
  5692.  
  5693.  If you have selected a specific country code for your system, DIR will display 
  5694.  the date in the format for that country.  The default date format is U.S. (mm- 
  5695.  dd-yy).  The separator character in the file time will also be affected by the 
  5696.  country code.  Thousands and decimal separators in numeric displays are 
  5697.  affected by the country code, and by the ThousandsChar and DecimalChar 
  5698.  settings selected on the Options 1 page of the configuration notebook, or in 
  5699.  the TCMDOS2.INI file. 
  5700.  
  5701.  DOS networks with large server volumes (over 2 GB) may report incorrect free 
  5702.  disk space values at the end of the DIR display.  If this occurs, it is 
  5703.  because the network software does not report the proper values to Take 
  5704.  Command. 
  5705.  
  5706.  Options: 
  5707.  
  5708.  Options on the command line apply only to the filenames which follow the 
  5709.  option, and options at the end of the line apply to the preceding filename 
  5710.  only.  This allows you to specify different options for different groups of 
  5711.  files, yet retains compatibility with the traditional DIR command when a 
  5712.  single filename is specified. 
  5713.  
  5714.     /1      Single column display - display the filename, size, date, time; 
  5715.             also displays the description on drives which do not support long 
  5716.             filenames.  This is the default.  If /T is used the attributes are 
  5717.             displayed instead of the description.  This option is most useful 
  5718.             if you wish to override a default /2, /4, or /W setting stored in 
  5719.             an alias. 
  5720.  
  5721.     /2      Two column display - display just the name on HPFS drives, or 
  5722.             display the filename, size, date, and time on other drives.  See 
  5723.             Multiple Column Displays above for more details. 
  5724.  
  5725.     /4      Four column display - display just the name on HPFS drives the 
  5726.             filename and size, in K (kilobytes) or M (megabytes) on other 
  5727.             drives, with files between 1 and 9.9 megabytes in size displayed in 
  5728.             tenths (i.e., "2.4M").  See Multiple Column Displays above for more 
  5729.             details. 
  5730.  
  5731.     /A      (Attribute select):  Display only those files that have the 
  5732.             specified attribute(s) set.  Preceding the attribute character with 
  5733.             a hyphen [-] will select files that do not have that attribute set. 
  5734.             The colon [:] after /A is optional.  The attributes are: 
  5735.  
  5736.                          R  Read-only 
  5737.                          H  Hidden 
  5738.                          S  System 
  5739.                          D  Subdirectory 
  5740.                          A  Archive 
  5741.  
  5742.             If no attributes are listed at all (e.g., DIR /A), DIR will display 
  5743.             all files and subdirectories including hidden and system files. If 
  5744.             attributes are combined, all the specified attributes must match 
  5745.             for a file to be included in the listing.  For example, /A:RHS will 
  5746.             display only those files with all three attributes set. 
  5747.  
  5748.     /B      (Bare)  Suppress the header and summary lines, and display file or 
  5749.             subdirectory names only, in a single column. This option is most 
  5750.             useful when you want to redirect a list of names to a file or 
  5751.             another program.  If you use /B with /S, DIR will show the full 
  5752.             path of each file (the same display as /F) instead of simply its 
  5753.             name and extension. 
  5754.  
  5755.     /D      (Disable color coding)  Temporarily disable directory color coding. 
  5756.             May be required when color-coded directories are used and DIR 
  5757.             output is redirected to a character device like the printer (e.g., 
  5758.             PRN or LPT1) or serial port (e.g., COM1 or COM2).  /D is not 
  5759.             required when DIR output is redirected to a file. 
  5760.  
  5761.     /E      Display filenames in upper case; also see SETDOS /U and the 
  5762.             UpperCase directive in TCMDOS2.INI. 
  5763.  
  5764.     /F      (Full path)  Display each filename with its drive letter and path 
  5765.             in a single column, without other information. 
  5766.  
  5767.     /G      (Allocation size) Display the allocated disk space instead of the 
  5768.             actual size of each file. 
  5769.  
  5770.     /H      (Hide dots)  Suppress the display of the "." and ".." directories. 
  5771.  
  5772.     /I      Display filenames by matching text in their descriptions. The text 
  5773.             can include wildcards and extended wildcards.  The search text must 
  5774.             be enclosed in quotation marks.  You can select all filenames that 
  5775.             have a description with /I"[?]*" or all filenames that do not have 
  5776.             a description with /I"[]". The /I option may be used to select 
  5777.             files even if descriptions are not displayed (for example, if /2 is 
  5778.             used). 
  5779.  
  5780.     /J      (Justify names)  Justify (align) filename extensions and display 
  5781.             them in the traditional format. 
  5782.  
  5783.     /K      Suppress the header (disk and directory name) display. 
  5784.  
  5785.     /L      (Lower case)  Display file and directory names in lower case; also 
  5786.             see SETDOS /U and the UpperCase directive in TCMDOS2.INI. 
  5787.  
  5788.     /M      Suppress the footer (file and byte count totals) display. 
  5789.  
  5790.     /N      (New format) Use the long filename display format, even if the 
  5791.             files are stored on a volume which does not support long filenames. 
  5792.             See also /Z. 
  5793.  
  5794.     /O      (Order) Set the sorting order.  You may use any combination of the 
  5795.             following sorting options; if multiple options are used, the 
  5796.             listing will be sorted with the first sort option as the primary 
  5797.             key, the next as the secondary key, and so on: 
  5798.  
  5799.                      -  Reverse the sort order for the next option 
  5800.                      a  Sort in ASCII order, not numerically, when there are 
  5801.                      digits in the name 
  5802.                      d  Sort by date and time (oldest first); for HPFS drives 
  5803.                      also see /T 
  5804.                      e  Sort by extension 
  5805.                      g  Group subdirectories first, then files 
  5806.                      i  Sort by file description 
  5807.                      n  Sort by filename (this is the default) 
  5808.                      r  Reverse the sort order for all options 
  5809.                      s  Sort by size 
  5810.                      u  Unsorted 
  5811.  
  5812.     /P      (Pause)  Wait for a key to be pressed after each screen page before 
  5813.             continuing the display.  Your options at the prompt are explained 
  5814.             in detail under Page and File Prompts. 
  5815.  
  5816.     /R      (disable wRap)  Forces long descriptions to be displayed on a 
  5817.             single line, rather than wrapped onto two or more lines.  Use /R 
  5818.             when output is redirected to a character device, such as a serial 
  5819.             port or the printer; or when you want descriptions truncated, 
  5820.             rather than wrapped, in the on-screen display. 
  5821.  
  5822.     /S      (Subdirectories)  Display file information from the current 
  5823.             directory and all of its subdirectories.  DIR will only display 
  5824.             headers and summaries for those directories which contain files 
  5825.             that match the filename(s), ranges, and attributes that you specify 
  5826.             on the command line. 
  5827.  
  5828.     /T      (aTtribute display)  Display the filenames, attributes, and 
  5829.             descriptions.  The descriptions will be wrapped onto the next line, 
  5830.             if necessary, unless you also use the /R (truncate) option.  If you 
  5831.             use both /T and /R, descriptions are truncated after 34 characters 
  5832.             on an 80-column display.  The attributes are displayed in the 
  5833.             format RHSDA, with the following meanings: 
  5834.  
  5835.                          R  Read-only 
  5836.                          H  Hidden 
  5837.                          S  System 
  5838.                          D  Directory 
  5839.                          A  Archive 
  5840.  
  5841.             If you wish to add another option after /T, you must start the next 
  5842.             option with a forward slash.  If you don't, Take Command will 
  5843.             interpret the /T as the /T:acw time display switch (see below) and 
  5844.             the following character as a valid or invalid time selector.  For 
  5845.             example: 
  5846.  
  5847.                                 [c:\] dir /tz       incorrect, will display error
  5848.                                 [c:\] dir /t/z      correct
  5849.  
  5850.     /T:acw  (Time display)  Specify which of the date and time fields on an 
  5851.             HPFS drive should be displayed and used for sorting: 
  5852.  
  5853.                          a  Last access time 
  5854.                          c  Creation time 
  5855.                          w  Last write time (default) 
  5856.  
  5857.     /U      (sUmmary information)  Only display the number of files, the total 
  5858.             file size, and the total amount of disk space used. 
  5859.  
  5860.     /V      (Vertical sort)  Display the filenames sorted vertically rather 
  5861.             than horizontally (use with the /2, /4 or /W options). 
  5862.  
  5863.     /W      (Wide)  Display filenames only, horizontally across the screen.  On 
  5864.             drives which do not support long filenames, /W displays as many 
  5865.             columns as it can fit into the Take Command window, using 16 
  5866.             characters in each column.  Otherwise (i.e., when long filenames 
  5867.             are displayed) the number of columns depends on the width of the 
  5868.             longest name in the listing.  See Multiple Column Displays above 
  5869.             for more details. 
  5870.  
  5871.     /Z      Display a directory on an HPFS drive in the tradtional FAT format, 
  5872.             with the filename at the left and the description at the right. 
  5873.             Long names will be truncated to 12 characters unless /X is also 
  5874.             used; if the name is longer than 12 characters, it will be followed 
  5875.             by a right arrow [] to show that one or more characters have been 
  5876.             truncated. 
  5877.  
  5878.  
  5879. ΓòÉΓòÉΓòÉ 3.3.20. ┬áDIRHISTORY - Display the directory history list ΓòÉΓòÉΓòÉ
  5880.  
  5881.  Purpose:    Display, add to, clear, or read the directory history list. 
  5882.  
  5883.  Format:     DIRHISTORY [ /A directory /F /P /R filename ] 
  5884.  
  5885.              directory :  The name of a directory to add to the directory 
  5886.              history. 
  5887.              filename :  The name of a file containing entries to be added to 
  5888.              the directory history. 
  5889.  
  5890.              /A(dd): pd./P(ause) 
  5891.              /F(ree)                  /R(ead file) 
  5892.  
  5893.  Usage: 
  5894.  
  5895.  Every time you change to a new directory or drive, Take Command records the 
  5896.  current directory in an internal directory history list.  The directory 
  5897.  history window allows you to use the list to return to a previous directory. 
  5898.  For general information, also see Directory Navigation. 
  5899.  
  5900.  The DIRHISTORY command lets you view and manipulate the directory history list 
  5901.  directly.  If no parameters are entered, DIRHISTORY will display the current 
  5902.  directory history list: 
  5903.  
  5904.           [c:\] dirhistory
  5905.  
  5906.  With the options explained below, you can clear the list, add new directories 
  5907.  to the list without changing to them, save the list in a file, or read a new 
  5908.  list from a file. 
  5909.  
  5910.  The number of directories saved in the directory history list depends on the 
  5911.  length of each directory name.  The list size can be specified at startup from 
  5912.  256 to 32767 characters by using the DirHistory directive in the .INI file. 
  5913.  The default size is 256 characters. 
  5914.  
  5915.  Your directory history list can be stored either locally (a separate history 
  5916.  list for each copy of Take Command) or globally (all copies of Take Command 
  5917.  share the same list).  For full details see the discussion of local and global 
  5918.  directory history lists in Directory History Window. 
  5919.  
  5920.  You can save the directory history list by redirecting the output of 
  5921.  DIRHISTORY to a file.  This example saves the history to a file called DIRHIST 
  5922.  and reads it back again. 
  5923.  
  5924.           [c:\] dirhistory > dirhist
  5925.           .....
  5926.           [c:\] dirhistory /r dirhist
  5927.  
  5928.  Because the directory history stores each name only once, you don't have to 
  5929.  delete its contents before reading back the file unless you want to delete the 
  5930.  directories that were visited by the intervening commands. 
  5931.  
  5932.  If you need to save your directory history at the end of each day's work, you 
  5933.  might use the first of these commands in your TCSTART.BTM or other startup 
  5934.  file, and the second in TCEXIT.BTM: 
  5935.  
  5936.           if exist c:\dirhist dirhistory /r c:\dirhist
  5937.           dirhistory > c:\dirhist
  5938.  
  5939.  This restores the previous history list if it exists, and saves the history 
  5940.  when Take Command exits. Options: 
  5941.  
  5942.     /A      (Add) Add a directory to the directory history list. 
  5943.  
  5944.     /F      (Free):  Erase all entries in the directory history list. 
  5945.  
  5946.     /P      (Prompt):  Wait for a key after displaying each page of the list. 
  5947.             Your options at the prompt are explained in detail under Page and 
  5948.             File Prompts. 
  5949.  
  5950.     /R      (Read):  Read the directory history from the specified file and 
  5951.             append it to the list currently held in memory. 
  5952.  
  5953.  
  5954. ΓòÉΓòÉΓòÉ 3.3.21. DIRS - Display the directory stack ΓòÉΓòÉΓòÉ
  5955.  
  5956.  Purpose:    Display the current directory stack. 
  5957.  
  5958.  Format:     DIRS 
  5959.  
  5960.  See also:  PUSHD, POPD, and Directory Navigation. 
  5961.  
  5962.  Usage: 
  5963.  
  5964.  The PUSHD command adds the current default drive and directory to the 
  5965.  directory stack, a list that Take Command maintains in memory.  The POPD 
  5966.  command removes the top entry of the directory stack and makes that drive and 
  5967.  directory the new default.  The DIRS command displays the contents of the 
  5968.  directory stack, with the most recent entries on top (i.e., the next POPD will 
  5969.  retrieve the first entry that DIRS displays). 
  5970.  
  5971.  For example, to change directories and then display the directory stack: 
  5972.  
  5973.           [c:\] pushd c:\database
  5974.           [c:\database] pushd d:\wordp\memos
  5975.           [d:\wordp\memos] dirs
  5976.           c:\database
  5977.           c:\
  5978.  
  5979.  The directory stack holds 511 characters, enough for 20 to 40 typical drive 
  5980.  and directory entries. 
  5981.  
  5982.  
  5983. ΓòÉΓòÉΓòÉ 3.3.22. DO - Loop in batch files ΓòÉΓòÉΓòÉ
  5984.  
  5985. DO 
  5986.  
  5987.  Purpose:    Create loops in batch files. 
  5988.  
  5989.  Format:     DO [n | FOREVER] 
  5990.                 or 
  5991.              DO varname = start TO end [BY n ] 
  5992.                 or 
  5993.              DO [WHILE | UNTIL] condition 
  5994.                 or 
  5995.              DO varname IN [ @ ] set 
  5996.                 commands 
  5997.              [ITERATE] 
  5998.              [LEAVE] 
  5999.                 commands 
  6000.              ENDDO 
  6001.  
  6002.              varname : The environment variable that will hold the loop 
  6003.              counter, filename, or line from a file. 
  6004.              n, start, end :  Integers between 0 and 2,147,483,647 inclusive, 
  6005.              or an internal variable or variable function that evaluates to 
  6006.              such a value. 
  6007.              condition :  A test to determine if the loop should be executed. 
  6008.              set : A set of values for the variable. 
  6009.              commands : One or more commands to execute each time through the 
  6010.              loop.  If you use multiple commands, they must be separated by 
  6011.              command separators or be placed on separate lines. 
  6012.  File Selection: 
  6013.  
  6014.  Supports extended wildcards, ranges, and include lists for the set. 
  6015.  
  6016.  Usage: 
  6017.  
  6018.  DO can only be used in batch files. 
  6019.  
  6020.  DO can be used to create 4 different kinds of loops.  The first, introduced by 
  6021.  DO n, is a counted loop.  The batch file lines between DO and ENDDO are 
  6022.  repeated n times.  For example: 
  6023.  
  6024.           do 5
  6025.             beep
  6026.           enddo
  6027.  
  6028.  You can also specify "forever" for n if you wish to create an endless loop 
  6029.  (you can use LEAVE or GOTO to exit such a loop; see below for details). 
  6030.  
  6031.  The second type of loop is similar to a "for loop" in programming languages 
  6032.  like BASIC.  DO creates an environment variable, varname, and sets it equal to 
  6033.  the value start (if varname already exists in the environment, it will be 
  6034.  overwritten).  DO then begins the loop process by comparing the value of 
  6035.  varname with the value of end. If varname is less than or equal to end, DO 
  6036.  executes the batch file lines up to the ENDDO.  Next, DO adds 1 to the value 
  6037.  of varname, or adds the value n if BY n is specified, and repeats the compare 
  6038.  and execute process until varname is greater than end. This example displays 
  6039.  the even numbers from 2 through 20: 
  6040.  
  6041.           do i = 2 to 20 by 2
  6042.             echo %i
  6043.           enddo
  6044.  
  6045.  DO can also count down, rather than up.  If n is negative, varname will 
  6046.  decrease by n with each loop, and the loop will stop when varname is less than 
  6047.  end.  For example, to display the even numbers from 2 through 20 in reverse 
  6048.  order, replace the first line of the example above with: 
  6049.  
  6050.           do i = 20 to 2 by -2
  6051.  
  6052.  The third type of loop is called a "while loop" or "until loop." DO evaluates 
  6053.  the condition, which can be any of the tests supported by the IF command, and 
  6054.  executes the lines between DO and ENDDO as long as the condition is true.  The 
  6055.  loop ends when the condition becomes false. 
  6056.  
  6057.  WHILE tests the condition at the start of the loop.  Therefore, if the 
  6058.  condition is false when the loop starts, the statements within the loop will 
  6059.  never be executed, and the batch file will continue with the statement after 
  6060.  the ENDDO. 
  6061.  
  6062.  UNTIL tests the condition at the end of the loop.  Therefore, if the condition 
  6063.  is false when the loop starts, the statements within the loop will still be 
  6064.  executed at least once.
  6065.  
  6066.  The fourth type of loop executes the lines between DO and ENDDO once for every 
  6067.  member of a set (this is similar to the set used in the FOR command). 
  6068.  Normally, the set is a list of files specified with wildcards.  For example: 
  6069.  
  6070.           do x in *.txt
  6071.  
  6072.  will execute the loop once for every .TXT file in the current directory; each 
  6073.  time through the loop the variable x will be set to the name of the next file 
  6074.  that matches the file specification. 
  6075.  
  6076.  If, between DO and ENDDO, you create a new file that could be included in the 
  6077.  list of files, it may or may not appear in an iteration of the DO loop. 
  6078.  Whether the new file appears depends on its physical location in the directory 
  6079.  structure, a condition over which Take Command has no control. 
  6080.  
  6081.  You can also execute the loop once for each line of text in a file by placing 
  6082.  an [@] in front of the file name.  If you have a file called DRIVES.TXT that 
  6083.  contains a list of drives on your computer, one drive name per line, you can 
  6084.  execute the loop once for each drive this way: 
  6085.  
  6086.           do x in @drives.txt
  6087.  
  6088.  To execute the loop once for each line of text in the clipboard, use CLIP: as 
  6089.  the file name (e.g. DO X IN @CLIP:).  CLIP: will not return any data unless 
  6090.  the clipboard contains text. 
  6091.  
  6092.  Two special commands, ITERATE and LEAVE, can be used inside a DO / ENDDO loop. 
  6093.  ITERATE ignores the remaining lines inside the loop and returns to the 
  6094.  beginning of loop for another iteration (unless DO determines that the loop is 
  6095.  finished).  LEAVE exits from the current DO loop and continues with the line 
  6096.  following ENDDO. Both ITERATE and LEAVE are most often used in an IF or IFF 
  6097.  command: 
  6098.  
  6099.           do while "%var" != "%val1"
  6100.             ...
  6101.             if "%var" == "%val2" leave
  6102.           enddo
  6103.  
  6104.  You can nest DO loops up to 15 levels deep. 
  6105.  
  6106.  The DO and ENDDO commands must be on separate lines, and cannot be placed 
  6107.  within a command group, or on the same line as other commands (this is the 
  6108.  reason DO cannot be used in aliases).  However, commands within the DO loop 
  6109.  can use command groups or the command separator in the normal way. 
  6110.  
  6111.  You can exit from all DO / ENDDO loops by using GOTO to a line past the last 
  6112.  ENDDO.  However, be sure to read the cautionary notes about GOTO and DO under 
  6113.  the GOTO command before using a GOTO inside any DO loop. 
  6114.  
  6115.  
  6116. ΓòÉΓòÉΓòÉ 3.3.23. DPATH - Set data search path ΓòÉΓòÉΓòÉ
  6117.  
  6118.  Purpose:    Specify the subdirectories which applications will search to find 
  6119.              files that are not in the current directory. 
  6120.  
  6121.  Format:     DPATH [directory [;directory...]] 
  6122.  
  6123.              directory :  The full name of a directory to include in the DPATH 
  6124.              (data path) setting. 
  6125.  
  6126.  See also:  PATH, SET, and ESET. 
  6127.  
  6128.  Usage: 
  6129.  
  6130.  When most OS/2 applications try to open a data file, they look for the file in 
  6131.  the current directory first.  If they fail to find the file there, they search 
  6132.  each of the directories in the DPATH setting in the order that they are 
  6133.  included.  Internal commands like TYPE do not search the DPATH directories for 
  6134.  files. 
  6135.  
  6136.  For example, the following DPATH command directs applications to look for 
  6137.  files in this order:  the current directory, the INIT directory on C, and the 
  6138.  CONFIG directory on D: 
  6139.  
  6140.           [c:\] dpath c:\init;d:\config
  6141.  
  6142.  The listing of directories to be searched can be set or viewed with DPATH. The 
  6143.  list is stored as an environment string with the variable name DPATH, and can 
  6144.  also be set or viewed with the SET command and edited with the ESET command. 
  6145.  
  6146.  Directory names in the DPATH must be separated with semicolons [;]. Take 
  6147.  Command will not shift directory names in the DPATH to upper case as it does 
  6148.  with those in the PATH setting.  If you want the names in the DPATH to be in 
  6149.  upper case you must enter them that way. 
  6150.  
  6151.  If you enter DPATH with no parameters, Take Command displays the current DPATH 
  6152.  search list. 
  6153.  
  6154.  
  6155. ΓòÉΓòÉΓòÉ 3.3.24. DRAWBOX - Draw a box ΓòÉΓòÉΓòÉ
  6156.  
  6157.  Purpose:    Draw a box on the screen. 
  6158.  
  6159.  Format:     DRAWBOX ulrow ulcol lrrow lrcol style [BRIght] fg ON [BRIght] bg 
  6160.              [FILL [BRIght] bgfill] [ZOOm] [SHAdow] 
  6161.  
  6162.              ulrow:  Row for upper left corner 
  6163.              ulcol:  Column for upper left corner 
  6164.              lrrow:  Row for lower right corner 
  6165.              lrcol:  Column for lower right corner 
  6166.              style:  Box drawing style: 
  6167.               0  No lines (box is drawn with blanks) 
  6168.               1  Single line 
  6169.               2  Double line 
  6170.               3  Single line on top and bottom, double on sides 
  6171.               4  Double line on top and bottom, single on sides 
  6172.              fg:  Foreground character color 
  6173.              bg:  Background character color 
  6174.              bgfill:  Background fill color (for the inside of the box) 
  6175.  
  6176.  See also:  DRAWHLINE and DRAWVLINE. 
  6177.  
  6178.  Usage: 
  6179.  
  6180.  DRAWBOX is useful for creating attractive screen displays in batch files. 
  6181.  
  6182.  For example, to draw a box around the edge of an 80x25 window with bright 
  6183.  white lines on a blue background: 
  6184.  
  6185.           drawbox 0 0 24 79 1 bri whi on blu fill blu
  6186.  
  6187.  See Colors and Color Names for details about colors. 
  6188.  
  6189.  If you use ZOOM, the box appears to grow in steps to its final size.  The 
  6190.  speed of the zoom operation depends on the speed of your video system. 
  6191.  
  6192.  If you use SHADOW, a drop shadow is created by changing the characters in the 
  6193.  row under the box and the 2 columns to the right of the box to normal 
  6194.  intensity text with a black background (this will make characters displayed in 
  6195.  black disappear entirely). 
  6196.  
  6197.  The row and column values are zero-based, so on a standard 25 line by 80 
  6198.  column display, valid rows are 0 - 24 and valid columns are 0 - 79.  The 
  6199.  maximum row value is determined by the current height of the Take Command 
  6200.  window.  The maximum column value is determined by the current virtual screen 
  6201.  width. 
  6202.  
  6203.  DRAWBOX checks for valid row and column values, and displays a "Usage" error 
  6204.  message if any values are out of range. 
  6205.  
  6206.  Unlike DRAWHLINE and DRAWVLINE, DRAWBOX does not automatically connect boxes 
  6207.  to existing lines on the screen with the proper connector characters.  If you 
  6208.  want to draw lines inside a box and have the proper connectors drawn 
  6209.  automatically, draw the box first, then use DRAWHLINE and DRAWVLINE to draw 
  6210.  the lines. 
  6211.  
  6212.  DRAWBOX uses the standard line and box drawing characters in the U.S. English 
  6213.  extended ASCII character set.  These characters are included in the English 
  6214.  language versions of standard monospaced fonts typically available under OS/2 
  6215.  (e.g. Courier, System Monospaced, or System VIO).  However, if your system is 
  6216.  configured for a different font, character set (code page), or country, or you 
  6217.  have replaced or modified the OS/2 default fonts, the box may not appear on 
  6218.  your screen as you expect. 
  6219.  
  6220.  
  6221. ΓòÉΓòÉΓòÉ 3.3.25. DRAWHLINE - Draw horizontal line ΓòÉΓòÉΓòÉ
  6222.  
  6223.  Purpose:    Draw a horizontal line on the screen. 
  6224.  
  6225.  Format:     DRAWHLINE row column len style [BRIght] fg ON [BRIght] bg 
  6226.  
  6227.              row:  Starting row 
  6228.              column:  Starting column 
  6229.              len:  Length of line 
  6230.              style:  Line drawing style: 
  6231.               1  Single line 
  6232.               2  Double line 
  6233.              fg:  Foreground character color 
  6234.              bg:  Background character color 
  6235.  
  6236.  See Colors and Color Names for details about colors. 
  6237.  
  6238.  See also:  DRAWBOX and DRAWVLINE. 
  6239.  
  6240.  Usage: 
  6241.  
  6242.  DRAWHLINE is useful for creating attractive screen displays in batch files. It 
  6243.  detects other lines and boxes on the display, and creates the appropriate 
  6244.  connector characters when possible (not all types of lines can be connected 
  6245.  with the available characters). 
  6246.  
  6247.  For example, the following command draws a double line along the top row of 
  6248.  the display with green characters on a blue background: 
  6249.  
  6250.           drawhline 0 0 80 2 green on blue
  6251.  
  6252.  The row and column values are zero-based, so on a standard 25 line by 80 
  6253.  column display, valid rows are 0 - 24 and valid columns are 0 - 79.  The 
  6254.  maximum row value is determined by the current height of the Take Command 
  6255.  window.  The maximum column value is determined by the current virtual screen 
  6256.  width.  DRAWHLINE checks for a valid row and column, and displays a "Usage" 
  6257.  error message if either value is out of range. 
  6258.  
  6259.  See Colors and Color Names for details about colors. 
  6260.  
  6261.  DRAWHLINE uses the standard line and box drawing characters in the U.S. 
  6262.  English extended ASCII character set.  These characters are included in the 
  6263.  English language versions of standard monospaced fonts typically available 
  6264.  under OS/2 (e.g. Courier, System Monospaced, or System VIO).  However, if your 
  6265.  system is configured for a different font, character set (code page), or 
  6266.  country, or you have replaced or modified the OS/2 default fonts, the line may 
  6267.  not appear on your screen as you expect. 
  6268.  
  6269.  
  6270. ΓòÉΓòÉΓòÉ 3.3.26. DRAWVLINE - Draw a vertical line ΓòÉΓòÉΓòÉ
  6271.  
  6272.  Purpose:    Draw a vertical line on the screen. 
  6273.  
  6274.  Format:     DRAWVLINE row column len style [BRIght] fg ON [BRIght] bg 
  6275.  
  6276.              row:  Starting row 
  6277.              column:  Starting column 
  6278.              len:  Length of line 
  6279.              style:  Line drawing style: 
  6280.               1  Single line 
  6281.               2  Double line 
  6282.              fg:  Foreground character color 
  6283.              bg:  Background character color 
  6284.  
  6285.  See also:  DRAWBOX and DRAWHLINE. 
  6286.  
  6287.  Usage: 
  6288.  
  6289.  DRAWVLINE is useful for creating attractive screen displays in batch files. It 
  6290.  detects other lines and boxes on the display, and creates the appropriate 
  6291.  connector characters when possible (not all types of lines can be connected 
  6292.  with the available characters). 
  6293.  
  6294.  For example, to draw a double width line along the left margin of the display 
  6295.  with bright red characters on a black background: 
  6296.  
  6297.           drawvline 0 0 25 2 bright red on black
  6298.  
  6299.  The row and column values are zero-based, so on a standard 25 line by 80 
  6300.  column display, valid rows are 0 - 24 and valid columns are 0 - 79.  The 
  6301.  maximum row value is determined by the current height of the Take Command 
  6302.  window.  The maximum column value is determined by the current virtual screen 
  6303.  width. 
  6304.  
  6305.  DRAWVLINE checks for a valid row and column, and displays a "Usage" error 
  6306.  message if either value is out of range. 
  6307.  
  6308.  See Colors and Color Names for details about colors. 
  6309.  
  6310.  DRAWVLINE uses the standard line and box drawing characters in the U.S. 
  6311.  English extended ASCII character set.  These characters are included in the 
  6312.  English language versions of standard monospaced fonts typically available 
  6313.  under OS/2 (e.g. Courier, System Monospaced, or System VIO).  However, if your 
  6314.  system is configured for a different font, character set (code page), or 
  6315.  country, or you have replaced or modified the OS/2 default fonts, the line may 
  6316.  not appear on your screen as you expect. 
  6317.  
  6318.  
  6319. ΓòÉΓòÉΓòÉ 3.3.27. ECHO - Display a message ΓòÉΓòÉΓòÉ
  6320.  
  6321.  Purpose:    Display a message, enable or disable batch file or command-line 
  6322.              echoing, or display the echo status. 
  6323.  
  6324.  Format:     ECHO [ON | OFF | message ] 
  6325.              ECHOERR message 
  6326.              message :  Text to display. 
  6327.  
  6328.  See also:  ECHOS, SCREEN, SCRPUT, SETDOS and TEXT. 
  6329.  
  6330.  Usage: 
  6331.  
  6332.  Take Command has a separate echo capability for batch files and for the 
  6333.  command line.  The command-line ECHO state is independent of the batch file 
  6334.  ECHO state; changing ECHO in a batch file has no effect on the display at the 
  6335.  command prompt, and vice versa. 
  6336.  
  6337.  To see the current echo state, use the ECHO command with no arguments.  This 
  6338.  displays either the batch file or command-line echo state, depending on where 
  6339.  the ECHO command is performed. 
  6340.  
  6341.  In a batch file, if you turn ECHO on, each line of the file is displayed 
  6342.  before it is executed.  If you turn ECHO off, each line is executed without 
  6343.  being displayed.  ECHO can also be used in a batch file to display a message 
  6344.  on the screen.  Regardless of the ECHO state, a batch file line that begins 
  6345.  with the [@] character will not be displayed.  To turn off batch file echoing, 
  6346.  without displaying the ECHO command, use this line: 
  6347.  
  6348.           @echo off
  6349.  
  6350.  ECHO commands in a batch file will send messages to the screen while the batch 
  6351.  file executes, even if ECHO is set OFF.  For example, this line will display a 
  6352.  message in a batch file: 
  6353.  
  6354.           echo Processing your print files...
  6355.  
  6356.  If you want to echo a blank line from within a batch file, enter: 
  6357.  
  6358.           echo.
  6359.  
  6360.  You cannot use the command separator character [&], or the redirection symbols 
  6361.  [| > <] in an ECHO message, unless you enclose them in quotes (see Argument 
  6362.  Quoting) or precede them with the escape character. 
  6363.  
  6364.  ECHO defaults to ON in batch files.  The current ECHO state is inherited by 
  6365.  called batch files.  You can change the default setting to ECHO OFF with the 
  6366.  SETDOS /V0 command or with the BatchEcho directive in the TCMDOS2.INI file. 
  6367.  
  6368.  If you turn the command-line ECHO on, each command will be displayed before it 
  6369.  is executed.  This will let you see the command line after expansion of all 
  6370.  aliases and variables.  The command-line ECHO is most useful when you are 
  6371.  learning how to use advanced features.  This example will turn command-line 
  6372.  echoing on: 
  6373.  
  6374.           [c:\] echo on
  6375.  
  6376.  ECHO defaults to OFF at the command line. 
  6377.  
  6378.  ECHOERR acts like ECHO but sends its output to the standard error device 
  6379.  STDERR (usually the screen) instead of the standard output device.  If the 
  6380.  standard output of a batch file is redirected to a file or another device with 
  6381.  >, ECHOERR will still generate a screen message.  See Redirection and Piping 
  6382.  for more information about the standard output and standard error devices and 
  6383.  redirection. 
  6384.  
  6385.  
  6386. ΓòÉΓòÉΓòÉ 3.3.28. ECHOS - Display a message with no CR/LF ΓòÉΓòÉΓòÉ
  6387.  
  6388.  Purpose:    Display a message without a trailing carriage return and line 
  6389.              feed. 
  6390.  
  6391.  Format:     ECHOS message 
  6392.              ECHOSERR message 
  6393.  
  6394.  See also:  ECHO, SCREEN, SCRPUT, TEXT, and VSCRPUT. 
  6395.  
  6396.  Usage: 
  6397.  
  6398.  ECHOS is useful for text output when you don't want to add a carriage return / 
  6399.  linefeed pair at the end of the line.  For example, you can use ECHOS when you 
  6400.  need to redirect control sequences to your printer; this example sends the 
  6401.  sequence Esc P to the printer on LPT1 (%= is translated to the Take Command 
  6402.  escape character, and %=e to an ASCII Esc; see Escape Character and = for 
  6403.  additional details): 
  6404.  
  6405.           [c:\]  echos %=eP > lpt1:
  6406.  
  6407.  You cannot use the command separator character [&] or the redirection symbols 
  6408.  [| > <] in an ECHOS message, unless you enclose them in quotes (see Argument 
  6409.  Quoting) or precede them with the escape character. 
  6410.  
  6411.  ECHOS does not translate or modify the message text.  For example, carriage 
  6412.  return characters are not translated to CR/LF pairs. ECHOS sends only the 
  6413.  characters you enter (after escape character and back quote processing).  The 
  6414.  only character you cannot put into an ECHOS message is the NUL character 
  6415.  (ASCII 0). 
  6416.  
  6417.  ECHOSERR acts like ECHOS but sends its output to the standard error device 
  6418.  (usually the screen) instead of the standard output device.  If the standard 
  6419.  output of a batch file is redirected to a file or another device with >, 
  6420.  ECHOSERR will still generate a screen message.  See Redirection and Piping for 
  6421.  more information about the standard output and standard error devices and 
  6422.  redirection. 
  6423.  
  6424.  
  6425. ΓòÉΓòÉΓòÉ 3.3.29. ENDLOCAL - Restore saved environment ΓòÉΓòÉΓòÉ
  6426.  
  6427.  Purpose:    Restore the saved disk drive, directory, environment, and alias 
  6428.              list. 
  6429.  
  6430.  Format:     ENDLOCAL 
  6431.  
  6432.  See also: SETLOCAL. 
  6433.  
  6434.  Usage: 
  6435.  
  6436.  The SETLOCAL command in a batch file saves the current disk drive, default 
  6437.  directory, all environment variables, the alias list, and the command 
  6438.  separator, escape character, parameter character, decimal separator, and 
  6439.  thousands separator. ENDLOCAL restores everything that was saved by the 
  6440.  previous SETLOCAL command. 
  6441.  
  6442.  For example, this batch file fragment saves everything, removes all aliases so 
  6443.  that user aliases will not affect batch file commands, changes the disk and 
  6444.  directory, changes the command separator, runs a program, and then restores 
  6445.  the original values: 
  6446.  
  6447.           setlocal
  6448.           unalias *
  6449.           cdd d:\test
  6450.           setdos /c~
  6451.           program ~ echo Done!
  6452.           endlocal
  6453.  
  6454.  SETLOCAL and ENDLOCAL are not nestable within a batch file.  However, you can 
  6455.  have multiple, separate SETLOCAL / ENDLOCAL pairs within a batch file, and 
  6456.  nested batch files can each have their own SETLOCAL / ENDLOCAL.  You cannot 
  6457.  use SETLOCAL and ENDLOCAL in an alias or at the command line. 
  6458.  
  6459.  An ENDLOCAL is performed automatically at the end of a batch file if you 
  6460.  forget to do so.  If you invoke one batch file from another without using 
  6461.  CALL, the first batch file is terminated, and an automatic ENDLOCAL is 
  6462.  performed; the second batch file inherits the settings as they were prior to 
  6463.  any SETLOCAL. 
  6464.  
  6465.  
  6466. ΓòÉΓòÉΓòÉ 3.3.30. ESET - Edit variable or alias ΓòÉΓòÉΓòÉ
  6467.  
  6468.  Purpose:    Edit environment variables and aliases. 
  6469.  
  6470.  Format:     ESET [/A] variable name... 
  6471.  
  6472.              variable name :  The name of an environment variable or alias to 
  6473.              edit. 
  6474.  
  6475.              /A(lias) 
  6476.  
  6477.  See also:  ALIAS, UNALIAS, SET, and UNSET. 
  6478.  
  6479.  Usage: 
  6480.  
  6481.  ESET allows you to edit environment variables and aliases using line editing 
  6482.  commands (see Command-Line Editing). 
  6483.  
  6484.  For example, to edit the executable file search path: 
  6485.  
  6486.           [c:\] eset path
  6487.           path=c:\;c:\dos;c:\util
  6488.  
  6489.  To create and then edit an alias: 
  6490.  
  6491.           [c:\] alias d = dir /d/j/p
  6492.           [c:\] eset d
  6493.           d=dir /d/j/p
  6494.  
  6495.  ESET will search for environment variables first and then aliases. If you have 
  6496.  an environment variable and an alias with the same name, ESET will edit the 
  6497.  environment variable and ignore the alias unless you use the /A option. 
  6498.  
  6499.  Environment variable and alias names are normally limited to 80 characters, 
  6500.  and their contents to 1,023 characters.  However, if you use special 
  6501.  techniques to create a longer environment variable, ESET will edit it provided 
  6502.  the variable contains no more than 2,047 characters of text. 
  6503.  
  6504.  If you have enabled global aliases (see ALIAS), any changes made to an alias 
  6505.  with ESET will immediately affect all other copies of Take Command which are 
  6506.  using the same alias list. 
  6507.  
  6508.  Option: 
  6509.  
  6510.     /A      (Alias) Edit the named alias even if an environment variable of the 
  6511.             same name exists.  If you have an alias and an environment variable 
  6512.             with the same name, you must use this switch to be able to edit the 
  6513.             alias. 
  6514.  
  6515.  
  6516. ΓòÉΓòÉΓòÉ 3.3.31. EXCEPT - Exclude files from command ΓòÉΓòÉΓòÉ
  6517.  
  6518.  Purpose:    Perform a command on all available files except those specified. 
  6519.  
  6520.  Format:     EXCEPT (file ) command 
  6521.  
  6522.              file :  The file or files to exclude from the command. 
  6523.              command :  The command to execute, including all appropriate 
  6524.              arguments and switches. 
  6525.  
  6526.  See also:  ATTRIB and File Exclusion Ranges. 
  6527.  
  6528.  File Selection: 
  6529.  
  6530.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  6531.  Ranges must appear immediately after the EXCEPT keyword. 
  6532.  
  6533.  Usage: 
  6534.  
  6535.  EXCEPT provides a means of executing a command on a group of files and/or 
  6536.  subdirectories, and excluding a subgroup from the operation. The command can 
  6537.  be an internal command or alias, an external command, or a batch file. 
  6538.  
  6539.  You may use wildcards to specify the files to exclude from the command.  The 
  6540.  first example erases all the files in the current directory except those 
  6541.  beginning with MEMO, and those whose extension is .WKS. The second example 
  6542.  copies all the files and subdirectories on drive C to drive D except those in 
  6543.  C:\MSC and C:\DOS, using the COPY command: 
  6544.  
  6545.           [c:\] except (memo*.* *.wks) erase *.*
  6546.           [c:\] except (c:\msc c:\dos) copy c:\*.* d:\ /s
  6547.  
  6548.  When you use EXCEPT on a HPFS drive, you must quote any file names inside the 
  6549.  parentheses which contain whitespace or special characters. 
  6550.  
  6551.  EXCEPT prevents operations on the specified file(s) by setting the hidden 
  6552.  attribute, performing the command, and then clearing the hidden attribute.  If 
  6553.  the command is aborted in an unusual way, you may need to use the ATTRIB 
  6554.  command to remove the hidden attribute from the file(s). 
  6555.  
  6556.  Caution:  EXCEPT will not work with programs or commands that ignore the 
  6557.  hidden attribute or which work explicitly with hidden files, including DEL /Z, 
  6558.  and the /H (process hidden files) switch available in some Take Command file 
  6559.  processing commands. 
  6560.  
  6561.  File exclusion ranges provide a faster and more flexible method of excluding 
  6562.  files from internal commands, and do not manipulate file attributes, as EXCEPT 
  6563.  does.  However, exclusion ranges can only be used with internal commands; you 
  6564.  must use EXCEPT for external commands. Date, time,and size ranges can be used 
  6565.  immediately after the word EXCEPT to further qualify which files should be 
  6566.  excluded from the command.  If the command is an internal command that 
  6567.  supports ranges, an independent range can also be used in the command itself. 
  6568.  You can also use a file exclusion range within the EXCEPT command; however, 
  6569.  this will select files to be excluded from EXCEPT, and therefore included in 
  6570.  execution of the command.  You can use command grouping to execute multiple 
  6571.  commands with a single EXCEPT.  For example, the following command copies all 
  6572.  files in the current directory whose extensions begin with .DA, except the 
  6573.  .DAT files, to the D:\SAVE directory, then changes the first two characters of 
  6574.  the extension of the copied files to .SA: 
  6575.  
  6576.           [c:\data] except (*.dat) (copy *.da* d:\save & ren *.da* *.sa*)
  6577.  
  6578.  If you use filename completion to enter the filenames inside the parentheses, 
  6579.  type a space after the open parenthesis before entering a partial filename or 
  6580.  pressing Tab. Otherwise, the command-line editor will treat the open 
  6581.  parenthesis as the first character of the filename to be completed. 
  6582.  
  6583.  
  6584. ΓòÉΓòÉΓòÉ 3.3.32. EXIT - Exit Take Command ΓòÉΓòÉΓòÉ
  6585.  
  6586.  Purpose:    Exit the current Take Command session. 
  6587.  
  6588.  Format:     EXIT [value ] 
  6589.  
  6590.              value :  The exit code to return. 
  6591.  
  6592.  Usage: 
  6593.  
  6594.  EXIT terminates the current copy of Take Command. 
  6595.  
  6596.  To close the session, or to return to the application that started Take 
  6597.  Command, type: 
  6598.  
  6599.           [c:\] exit
  6600.  
  6601.  If you specify a value, EXIT will return that value to the program that 
  6602.  started Take Command.  For example: 
  6603.  
  6604.           [c:\] exit 255
  6605.  
  6606.  The value is a number you can use to inform the program of some result, such 
  6607.  as the success or failure of a batch file.  It can range from 0 - 
  6608.  4,294,967,295. 
  6609.  
  6610.  
  6611. ΓòÉΓòÉΓòÉ 3.3.33. FFIND - Search for files or text ΓòÉΓòÉΓòÉ
  6612.  
  6613.  Purpose:    Search for files by name or contents. 
  6614.  
  6615.  Format:     FFIND [/A:[[-]rhsda] /B /C /D[list] /E /I /K /L /M 
  6616.              /O[[:][-]adeginrsu] /P /R /S /[ T | X ]"xx" /V file... 
  6617.  
  6618.              list :  A list of disk drive letters (without colons). 
  6619.              file :  The file, directory, or list of files or directories to 
  6620.              display. 
  6621.  
  6622.              /A(ttribute select)             /M (no footers) 
  6623.              /B(are)                         /O(rder) 
  6624.              /C(ase sensitive)               /P(ause) 
  6625.              /D(rive)                        /R(everse) 
  6626.              /E (upper case display)         /S(ubdirectories) 
  6627.              /I(gnore wildcards)             /T(ext search string) 
  6628.              /K (no headers)                 /V(erbose) 
  6629.              /L(ine numbers)                 /X["xx"] (hex display/search 
  6630.                                              string) 
  6631.  
  6632.  File Selection: 
  6633.  
  6634.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  6635.  
  6636.  Usage: 
  6637.  
  6638.  FFIND is a flexible search command that looks for files based on their names 
  6639.  and their contents. Depending on the options you choose, FFIND can display 
  6640.  filenames, matching text, or a combination of both in a variety of formats. 
  6641.  
  6642.  Most of the functions provided by FFIND are also available in the Find Files / 
  6643.  Text dialog, accessible from the Utilities menu.  You can use the FFIND 
  6644.  command, the dialog, or both, depending on your needs. 
  6645.  
  6646.  If you want to search for files by name, FFIND works much like the DIR 
  6647.  command.  For example, to generate a list of all the .BTM files in the current 
  6648.  directory, you could use the command 
  6649.  
  6650.           [c:\] ffind *.btm
  6651.  
  6652.  The output from this command is a list of full pathnames, followed by the 
  6653.  number of files found. 
  6654.  
  6655.  If you want to limit the output to a list of *.BTM files which contain the 
  6656.  string color, you could use this command instead: 
  6657.  
  6658.           [c:\] ffind /t"color" *.btm
  6659.  
  6660.  The output from this command is a list of files that contain the string color 
  6661.  along with the first line in each file that contains that string.  By default, 
  6662.  FFIND uses a case-insensitive search, so the command above will include files 
  6663.  that contain COLOR, Color, color, or any other combination of upper-case and 
  6664.  lower-case letters. 
  6665.  
  6666.  If you would rather see the last line of each file that contains the search 
  6667.  string, use the /R option, which forces FFIND to search from the end of each 
  6668.  file to the beginning.  This option will also speed up searches somewhat if 
  6669.  you are looking for text that will normally be at the end of a file, such as a 
  6670.  signature line: 
  6671.  
  6672.           [c:\] ffind /r /t"Sincerely," *.txt
  6673.  
  6674.  You can use Take Command's extended wildcards in the search string to increase 
  6675.  the flexibility of FFIND's search.  For example, the following command will 
  6676.  find .TXT files which contain either the string June or July (it will also 
  6677.  find Juny and Jule).  The /C option makes the search case-sensitive: 
  6678.  
  6679.           [c:\] ffind /c/t"Ju[nl][ey]" *.txt
  6680.  
  6681.  If you want to search for text that contains wildcard characters (*, ?, [, or 
  6682.  ]), you can use the /I option to force FFIND to interpret these as normal 
  6683.  characters instead of wildcards.  The following command, for example, finds 
  6684.  all .TXT files that contain a question mark: 
  6685.  
  6686.           [c:\] ffind /i/t"?" *.txt
  6687.  
  6688.  At times, you may need to search for data that cannot be represented by ASCII 
  6689.  characters.  You can use FFIND's /X option to represent the search string in 
  6690.  hexadecimal format (this option also changes the output to show hexadecimal 
  6691.  offsets rather than text lines).  With /X, the search must be represented by 
  6692.  pairs of hexadecimal digits separated by spaces; a search of this type is 
  6693.  always case-sensitive (in the example below, 41 63 65 is the hex code for 
  6694.  "Ace"): 
  6695.  
  6696.           [c:\] ffind /b"41 63 65" *.txt
  6697.  
  6698.  You can use FFIND's other options to further specify the files for which you 
  6699.  are searching and to modify the way in which the output is displayed. 
  6700.  
  6701.  When you use FFIND on an HPFS drive, you must quote any file names which 
  6702.  contain whitespace or special characters. 
  6703.  
  6704.  Options: 
  6705.  
  6706.     /A:     (Attribute select) Select only those files that have the specified 
  6707.             attribute(s) set.  Preceding the attribute character with a hyphen 
  6708.             [-] will select files that do not have that attribute set. The 
  6709.             colon [:] after /A is required.  The attributes are: 
  6710.  
  6711.                          R  Read-only 
  6712.                          H  Hidden 
  6713.                          S  System 
  6714.                          D  Subdirectory 
  6715.                          A  Archive 
  6716.  
  6717.             If no attributes are listed at all (e.g., FFIND /A: ...), FFIND 
  6718.             will select all files and subdirectories including hidden and 
  6719.             system files.  If attributes are combined, all the specified 
  6720.             attributes must match for a file to be selected. For example, 
  6721.             /A:RHS will select only those files with all three attributes set. 
  6722.  
  6723.     /B      (Bare) Display file names only and omit the text that matches the 
  6724.             search.  This option is only useful in combination with /T or /X, 
  6725.             which normally force FFIND to display file names and matching text. 
  6726.  
  6727.     /C      (Case sensitive) Perform a case-sensitive search.  This option is 
  6728.             only valid with /T, which defaults to a case-insensitive search. 
  6729.             It is not needed with a /X hexadecimal search, which is always 
  6730.             case-sensitive. 
  6731.  
  6732.     /D      (Drive)  Search all files on one or more drives.  If you use /D 
  6733.             without a list of drives, FFIND will search the drives specified in 
  6734.             the list of files.  If no drive letters are listed, FFIND will 
  6735.             search all of the current drive.  You can include a list of drives 
  6736.             or a range of drives to search as part of the /D option.  For 
  6737.             example, to search drives C:, D:, E:, and G:, you can use either of 
  6738.             these commands: 
  6739.  
  6740.                                 [c:\] ffind /dcdeg ...
  6741.                                 [c:\] ffind /dc-eg ...
  6742.  
  6743.             Drive letters listed after /D will be ignored when processing file 
  6744.             names which also include a drive letter.  For example, this command 
  6745.             displays all the .BTM files on C: and E:, but only the .BAT files 
  6746.             on D: 
  6747.  
  6748.                                 [c:\] ffind /s /dce *.btm d:\*.bat
  6749.  
  6750.     /E      Display filenames in the traditional upper case; also see SETDOS /U 
  6751.             and the UpperCase directive in TCMDOS2.INI. 
  6752.  
  6753.     /I      (Ignore wildcards) Only meaningful when used in conjunction with 
  6754.             the /T "text" option.  Suppresses the recognition of wildcard 
  6755.             characters in the search text.  This option is useful if you need 
  6756.             to search for characters that would normally be interpreted as 
  6757.             wildcards: *, ?, [, and ]. 
  6758.  
  6759.     /K      (No headers) Suppress the display of the header or filename for 
  6760.             each matching text line. 
  6761.  
  6762.     /L      (Line numbers) Include the line number for each text line 
  6763.             displayed. 
  6764.  
  6765.     /M      (No footers) Suppress the footer (the number of files and number of 
  6766.             matches) at the end of FFIND's display. 
  6767.  
  6768.     /O      (Order) Set the sorting order.  You may use any combination of the 
  6769.             following sorting options; if multiple options are used, the 
  6770.             listing will be sorted with the first sort option as the primary 
  6771.             key, the next as the secondary key, and so on: 
  6772.  
  6773.                          -  Reverse the sort order for the next option 
  6774.                          a  Sort in ASCII order, not numerically, when there 
  6775.                          are digits in the name 
  6776.                          d  Sort by date and time (oldest first); for HPFS 
  6777.                          drives also see /T 
  6778.                          e  Sort by extension 
  6779.                          g  Group subdirectories first, then files 
  6780.                          i  Sort by file description (ignored if /C or /O:c is 
  6781.                          used) 
  6782.                          n  Sort by filename (this is the default) 
  6783.                          r  Reverse the sort order for all options 
  6784.                          s  Sort by size 
  6785.                          u  Unsorted 
  6786.  
  6787.     /P      (Pause) Wait for a key to be pressed after each screen page before 
  6788.             continuing the display.  Your options at the prompt are explained 
  6789.             in detail under Page and File Prompts. 
  6790.  
  6791.     /R      (Reverse search) Only meaningful when used in conjunction with the 
  6792.             /T "text" or /X options.  Searches each file from the end backwards 
  6793.             to the beginning.  This option is useful if you want to display the 
  6794.             last occurrence of the search string in each file instead of the 
  6795.             first (the default).  It may also speed up searches for information 
  6796.             that is normally at the end of a file, such as a signature. 
  6797.  
  6798.     /S      (Subdirectories) Display matches from the current directory and all 
  6799.             of its subdirectories. 
  6800.  
  6801.     /T"text"(Text search) Specify the text search string. /T must be followed 
  6802.             by a text string in double quotes (e.g., /t"color").  FFIND will 
  6803.             perform a case- insensitive search unless you also use the /C 
  6804.             option.  For a hexadecimal search and/or hexadecimal display of the 
  6805.             location where the search string is found, see /X.  You can specify 
  6806.             a search string with either /T or /X, but not both. 
  6807.  
  6808.     /V      (Verbose) Show every matching line.  FFIND's default behavior is to 
  6809.             show only the first matching line then and then go on to the next 
  6810.             file.  This option is only valid with /T or /X. 
  6811.  
  6812.     /X["xx"](Hexadecimal display / search) Specify hexadecimal display and an 
  6813.             optional hexadecimal search string. 
  6814.  
  6815.             If /X is followed by one or more pairs of hexadecimal digits in 
  6816.             quotes (e.g., /x"44 63 65"), FFIND will search for that exact 
  6817.             sequence of characters or data bytes without regard to the meaning 
  6818.             of those bytes as text.  If those bytes are found, the offset is 
  6819.             displayed (in both decimal and hexadecimal).  A search of this type 
  6820.             will always be case-sensitive. 
  6821.  
  6822.             If /X is not followed by a hexadecimal search string it must be 
  6823.             used in conjunction with /T, and will change the output format to 
  6824.             display offsets (in both decimal and hexadecimal) rather than 
  6825.             actual text lines when the search string is found.  For example, 
  6826.             this command uses /T to display the first line in each .BTM file 
  6827.             containing the word hello: 
  6828.  
  6829.                                 [c:\] ffind /t"hello" *.btm
  6830.                                 ---- c:\test.btm:
  6831.                                 echo hello
  6832.  
  6833.                                 1 line in 1 file
  6834.  
  6835.             If you use the same command with /X, the offset is displayed 
  6836.             instead of the text: 
  6837.  
  6838.                                 [c:\] ffind /t"hello" /x *.btm
  6839.                                 ---- c:\test.btm:
  6840.                                 Offset: 26 (1Ah)
  6841.  
  6842.                                 1 line in 1 file
  6843.  
  6844.             You can specify a search string with either /T or /X, but not both. 
  6845.  
  6846.  
  6847. ΓòÉΓòÉΓòÉ 3.3.34. FOR - Repeat a command ΓòÉΓòÉΓòÉ
  6848.  
  6849.  Purpose:    Repeat a command for several values of a variable. 
  6850.  
  6851.  Format:     FOR [/A:[[-]rhsda] /F["options"] /H /L /R [path]] %var IN ([@] set 
  6852.              | start, step, end) [DO] command ... 
  6853.  
  6854.              options :  Parsing options for a "file parsing" FOR. 
  6855.              path :  The starting directory for a "recursive" FOR. 
  6856.              %var :  The variable to be used in the command ("FOR variable"). 
  6857.              set :  A set of values for the variable. 
  6858.              start :  The starting value for a "counted" FOR. 
  6859.              step :  The increment value for a "counted" FOR. 
  6860.              end :  The limit value for a "counted" FOR. 
  6861.              command :  A command or group of commands to be executed for each 
  6862.              value of the variable. 
  6863.  
  6864.              /A: (Attribute select)      /L  (counted loop) 
  6865.              /F(ile parsing)             /R(ecursive) 
  6866.              /H(ide dots) 
  6867.  
  6868.  File Selection: 
  6869.  
  6870.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  6871.  Ranges must appear immediately after the FOR keyword. 
  6872.  
  6873.  Usage: 
  6874.  
  6875.  FOR begins by creating a set.  It then executes a command for every member of 
  6876.  the set.  The command can be an internal command, an alias, an external 
  6877.  command, or a batch file.  The members of the set can be a list of file names, 
  6878.  text strings, a group of numeric values, or text read from a list of files. 
  6879.  
  6880.  When the set is made up of text or several separate file names (not an include 
  6881.  list), the elements must be separated by spaces, tabs, commas, or the switch 
  6882.  character (normally a slash [/]). 
  6883.  
  6884.  FOR includes a large number of options, some of which duplicate functions 
  6885.  available in other commands, and / or do not follow conventions you may find 
  6886.  in our other commands.  Most of these extra options are included for 
  6887.  compatibility with Windows NT 4.0's CMD.EXE.  However, we make them available 
  6888.  in all three of our products so that aliases and batch files which use them 
  6889.  can work under all products. 
  6890.  
  6891.  The first three sections below (Working with Files, Working with Text, and 
  6892.  Retrieving Text from Files) describe the traditional FOR command and the 
  6893.  enhancements to it which are part of Take Command.  The sections on Parsing 
  6894.  Text from Files and Counted FOR Loops describe features added for 
  6895.  compatibility with Windows NT 4.0. The section entitled Other Notes contains 
  6896.  information you may need if you use any aspect of the FOR command extensively. 
  6897.  
  6898.  Working with Files 
  6899.  
  6900.  Normally, the set is a list of files specified with wildcards.  For example, 
  6901.  if you use this line in a batch file: 
  6902.  
  6903.           for %x in (*.txt) do list %x
  6904.  
  6905.  then LIST will be executed once for each file in the current directory with 
  6906.  the extension .TXT.  The FOR variable %x is set equal to each of the file 
  6907.  names in turn, then the LIST command is executed for each file. (You could do 
  6908.  the same thing more easily with a simple LIST *.TXT.  We used FOR here so you 
  6909.  could get a feel for how it operates, using a simple example. Many of the 
  6910.  examples in this section are constructed in the same way.) 
  6911.  
  6912.  The set can include multiple files or an include list, like this: 
  6913.  
  6914.           for %x in (d:\*.txt;*.doc;*.asc) do type %x
  6915.  
  6916.  FOR supports wildcards and extended wildcards, as well as extended parent 
  6917.  directory names (e.g., ...\*.txt to process all of the .TXT files that are 
  6918.  contained in the directory 2 levels above the current directory). 
  6919.  
  6920.  When you use FOR on a HPFS drive, you must quote any file names within the set 
  6921.  which contain whitespace or special characters.  The same restriction applies 
  6922.  to names returned in the FOR variable, if you pass them to internal commands, 
  6923.  or other commands which require quoting filenames with whitespace.  FOR does 
  6924.  not quote returned names automatically, even if you included quotes in the 
  6925.  set. 
  6926.  
  6927.  If the set includes filenames, the file list can be further refined by using 
  6928.  date, time,  size and file exclusion ranges.  The range or ranges must be 
  6929.  placed immediately after the word FOR.  Ranges will be ignored if no wildcards 
  6930.  are used inside the parentheses. For example, this set is made up of all of 
  6931.  the *.TXT files that were created or updated on October 4, 1997: 
  6932.  
  6933.           for /[d10-4-97,+0] %x in (*.txt) do ...
  6934.  
  6935.  If the command is an internal command that supports ranges, an independent 
  6936.  range can also be used in the command itself. 
  6937.  
  6938.  You can also refine the list by limiting it with the /A: option to select only 
  6939.  files that have specific attributes. 
  6940.  
  6941.  By default, FOR works only with files in the current directory or a specified 
  6942.  directory.  With the /R option, FOR will also search for files in 
  6943.  subdirectories.  For example, to work with all of the .TXT files in the 
  6944.  current directory and its subdirectories: 
  6945.  
  6946.           for /r %x in (*.txt) do ...
  6947.  
  6948.  If you specify a directory name immediately after /R, FOR will start in that 
  6949.  directory and then search each of its subdirectories.  This example works with 
  6950.  all of the .BAK files on drive D: 
  6951.  
  6952.           for /r d:\ %x in (*.bak) do ...
  6953.  
  6954.  When you use wildcards to specify the set, FOR scans the directory and finds 
  6955.  each file which matches the wildcard name(s) you specified.  If, during the 
  6956.  processing of the FOR command, you create a file that could be included in the 
  6957.  set, it may or may not appear in a future interation of the same FOR command. 
  6958.  Whether the new file appears depends on its physical location in the directory 
  6959.  structure.  For example, if you use FOR to execute a command for all .TXT 
  6960.  files, and the command also creates one or more new .TXT files, those new 
  6961.  files may or may not be processed during the current FOR command, depending on 
  6962.  where they are placed in the physical structure of the directory.  This is an 
  6963.  operating system constraint over which Take Command has no control. Therefore, 
  6964.  in order to achieve consistent results you should construct FOR commands which 
  6965.  do not create files that could become part of the set for the current command. 
  6966.  
  6967.  Working with Text 
  6968.  
  6969.  The set can also be made up of text instead of file names.  For example, to 
  6970.  create three files named file1, file2, and file3, each containing a blank 
  6971.  line: 
  6972.  
  6973.           for %suffix in (1 2 3) do echo. > file%suffix
  6974.  
  6975.  You could also use the names of environment variables as the text.  This 
  6976.  example displays the name and content of several variables from the 
  6977.  environment (see Environment Variables and Functions for details on the use of 
  6978.  square brackets when expanding environment variables).  Enter this on one 
  6979.  line: 
  6980.  
  6981.           for %var in (path prompt comspec) do echo %var=%[%var]
  6982.  
  6983.  Retrieving Text from Files 
  6984.  
  6985.  FOR can extract text from files in two different ways.  The first method 
  6986.  extracts each line from each file in the set and places it in the variable. To 
  6987.  use this method, place an [@] at the beginning of the set, in front of the 
  6988.  file name or names. 
  6989.  
  6990.  For example, if you have a file called DRIVES.TXT that contains a list of 
  6991.  drives on your computer, one drive name per line (with a ":" after each drive 
  6992.  letter), you can print the free space on each drive this way: 
  6993.  
  6994.           for %d in (@drives.txt) do free %d > prn
  6995.  
  6996.  Because the [@] is also a valid filename character, FOR first checks to see if 
  6997.  the file exists with the [@] in its name (i.e., a file named @DRIVES.TXT).  If 
  6998.  so, the filename is treated as a normal argument.  If it doesn't exist, FOR 
  6999.  uses the filename (without the [@]) as the file from which to retrieve text. 
  7000.  
  7001.  If you use @CON as the filename, FOR will read from standard input (a 
  7002.  redirected input file) or from a pipe (see Redirection and Piping for more 
  7003.  information).  IF you use @CLIP: as the filename, FOR will read any text 
  7004.  available from the OS/2 clipboard. 
  7005.  
  7006.  Parsing Text from Files 
  7007.  
  7008.  The second method of working with text from files is to have FOR parse each 
  7009.  line of each file for you.  To begin a "file-parsing" FOR, you must use the /F 
  7010.  option and then include one or more file names in the set.  When you use this 
  7011.  form of FOR, the variable must be a single letter, for example, %a. 
  7012.  
  7013.  This method of parsing, included for compatibility with Windows NT 4.0's 
  7014.  CMD.EXE, can be cumbersome and inflexible.  For a more powerful method, use 
  7015.  FOR with @filename as the set to retrieve each line from the file, as 
  7016.  described in the previous section.  Then use variable functions like @INSTR, 
  7017.  @LEFT, @RIGHT, and @WORD to parse the line. 
  7018.  
  7019.  By default, FOR will extract the first word or token from each line and return 
  7020.  it in the variable.  For example, to display the first word on each line in 
  7021.  the file FLIST.TXT: 
  7022.  
  7023.           for /f %a in (flist.txt) do echo %a
  7024.  
  7025.  You can control the way FOR /F parses each line by specifying one or more 
  7026.  parsing options in a quoted string immediately after the /F.  The available 
  7027.  options are: 
  7028.  
  7029.         skip=n: FOR /F will skip "n" lines at the beginning of each file before 
  7030.                 parsing the remainder of the file. 
  7031.  
  7032.         tokens=n, m, ...:By default, FOR /F returns just the first word or 
  7033.                 "token" from each parsed line in the variable you named.  You 
  7034.                 can have it return more than one token in the variable, or 
  7035.                 return tokens in several variables, with this option. This 
  7036.                 option is followed by a list of numbers separated by commas. 
  7037.                 The first number tells FOR /F which token to return in the 
  7038.                 first variable, the second number tells it which to return in 
  7039.                 the second variable, etc.  The variables follow each other 
  7040.                 alphabetically starting with the variable you name on the FOR 
  7041.                 command line.  This example returns the first word of each line 
  7042.                 in each text file in %d, the second in %e, and the third in %f: 
  7043.  
  7044.                                         for /f "tokens=1,2,3" %d in (*.txt) do ...
  7045.  
  7046.                 You can also indicate a range of tokens by separating the 
  7047.                 numbers with a hyphen [-].  This example returns the first word 
  7048.                 of each line in %p, the second through fifth words in %q, and 
  7049.                 the eighth word in %r: 
  7050.  
  7051.                                         for /f "tokens=1,2-5,8" %p in (*.txt) do ...
  7052.  
  7053.                 To return the rest of the line in a variable, use a range that 
  7054.                 ends with a number higher than the last token in any line, such 
  7055.                 as 999.  This final example returns the first word of each line 
  7056.                 in %a and the remainder of each line (assuming that no line has 
  7057.                 more than 999 words!) in %b: 
  7058.  
  7059.                                         for /f "tokens=1,2-999" %a in (*.txt) do ...
  7060.  
  7061.         eol=c:  If FOR /F finds the character "c" in the line, it will assume 
  7062.                 that the character and any text following it are part of a 
  7063.                 comment and ignore the rest of the line. 
  7064.  
  7065.         delims=xxx..:By default, FOR /F sees spaces and tabs as word or token 
  7066.                 delimiters.  This option replaces those delimiters with all of 
  7067.                 the characters following the equal sign to the end of the 
  7068.                 string.  This option must therefore be the last one used in the 
  7069.                 quoted options string. 
  7070.  
  7071.  You can also use FOR /F to parse a single string instead of each line of a 
  7072.  file by using the string, in quotes, as the set.  For example, this command 
  7073.  will assign variable A to the string "this", B to "is", etc., then display 
  7074.  "this" (enter the command on one line): 
  7075.  
  7076.           for /f "tokens=1,2,3,4" %a in ("this is a test") do echo %a
  7077.  
  7078.  "Counted" FOR Loop 
  7079.  
  7080.  The "counted FOR" loop is included only for compatibility with Windows NT 
  7081.  4.0's CMD.EXE.  In most cases, you will find the DO command more useful for 
  7082.  performing counted loops. 
  7083.  
  7084.  In a counted FOR command, the set is made up of numeric values instead of text 
  7085.  or file names.  To begin a counted FOR command, you must use the /L option and 
  7086.  then include three values, separated by commas, in the set.  These are the 
  7087.  start, step, and end values.  During the first iteration of the FOR loop, the 
  7088.  variable is set equal to the start value.  Before each iteration, the variable 
  7089.  is increased by the step value.  The loop ends when the variable exceeds the 
  7090.  end value.  This example will print the numbers from 1 to 10: 
  7091.  
  7092.           for /l %val in (1,1,10) do echo %val
  7093.  
  7094.  This example will print the odd numbers from 1 to 10 (1, 3, 5, 7, and 9): 
  7095.  
  7096.           for /l %val in (1,2,10) do echo %val
  7097.  
  7098.  The step value can be negative.  If it is, the loop will end when the variable 
  7099.  is less than the end value. 
  7100.  
  7101.  Other Notes 
  7102.  
  7103.  You can use either % or %% in front of the variable name.  Either form will 
  7104.  work, whether the FOR command is typed from the command line or is part of an 
  7105.  alias or batch file (some traditional command processors require a single % if 
  7106.  FOR is used at the command line, but require %% if FOR is used in a batch 
  7107.  file).  The variable name can be up to 80 characters long.  The word DO is 
  7108.  optional. 
  7109.  
  7110.  If you use a single-character FOR variable name, that name is given priority 
  7111.  over any environment variable which starts with the same letter, in order to 
  7112.  maintain compatibility with the traditional FOR command.  For example, the 
  7113.  following command tries to add a: and b: to the end of the PATH, but will not 
  7114.  work as intended: 
  7115.  
  7116.           [c:\] for %p in (a: b:) do path %path;%p
  7117.  
  7118.  The "%p" in "%path" will be interpreted as the FOR variable %p followed by the 
  7119.  text "ath", which is not what was intended.  To get around this, use a 
  7120.  different letter or a longer name for the FOR variable, or use square brackets 
  7121.  around the variable name seeThe Environment. 
  7122.  
  7123.  The following example uses FOR with variable functions to delete the .BAK 
  7124.  files for which a corresponding .TXT file exists in the current directory: 
  7125.  
  7126.           [c:\docs] for %file in (*.txt) do del %@name[%file].bak
  7127.  
  7128.  The above command would not work properly on a HPFS drive, because the 
  7129.  returned FILE variable might contain whitespace.  To correct this problem, you 
  7130.  would need two sets of quotes, one for DEL and one for %@NAME: 
  7131.  
  7132.           [c:\docs] for %file in (*.txt) do del "%@name["%file"].bak"
  7133.  
  7134.  You can use command grouping to execute multiple commands for each element in 
  7135.  the set.  For example, the following command copies each .WKQ file in the 
  7136.  current directory to the D:\WKSAVE directory, then changes the extension of 
  7137.  each file in the current directory to .SAV: 
  7138.  
  7139.           [c:\text] for %file in (*.wkq) do (copy %file d:\wksave\
  7140.   & ren %file *.sav)
  7141.  
  7142.  In a batch file you can use GOSUB to execute a subroutine for every element in 
  7143.  the set.  Within the subroutine, the FOR variable can be used just like any 
  7144.  environment variable.  This is a convenient way to execute a complex sequence 
  7145.  of commands for every element in the set without CALLing another batch file. 
  7146.  
  7147.  One unusual use of FOR is to execute a collection of batch files or other 
  7148.  commands with the same parameter.  For example, you might want to have three 
  7149.  batch files all operate on the same data file.  The FOR command could look 
  7150.  like this: 
  7151.  
  7152.           [c:\] for %cmd in (filetest fileform fileprnt) do %cmd datafile
  7153.  
  7154.  This line will expand to three separate commands: 
  7155.  
  7156.           filetest datafile
  7157.           fileform datafile
  7158.           fileprnt datafile
  7159.  
  7160.  The variable that FOR uses (the %CMD in the example above) is created in the 
  7161.  environment and then erased when the FOR command is done.  For compatibility 
  7162.  with COMMAND.COM and CMD.EXE, a single- character FOR variable is created in a 
  7163.  special way that does not overwrite an existing environment variable with the 
  7164.  same name.  When using a multi- character variable name you must be careful 
  7165.  not to use the name of one of your environment variables as a FOR variable. 
  7166.  For example, a command that begins 
  7167.  
  7168.           [c:\] for %path in ...
  7169.  
  7170.  will write over your current path setting, then erase the path variable 
  7171.  completely when FOR is done. 
  7172.  
  7173.  FOR statements can be nested. 
  7174.  
  7175.  Options: 
  7176.  
  7177.     /A:     (Attribute select) Select only those files that have the specified 
  7178.             attribute(s) set.  /A: will be used only when processing wildcard 
  7179.             file names in the set.  It will be ignored for filenames without 
  7180.             wildcards or other items in the set.  Preceding the attribute 
  7181.             character with a hyphen [-] will select files that do not have that 
  7182.             attribute set.  The colon [:] after /A is required.  The attributes 
  7183.             are: 
  7184.  
  7185.                          R  Read-only 
  7186.                          H  Hidden 
  7187.                          S  System 
  7188.                          D  Subdirectory 
  7189.                          A  Archive 
  7190.  
  7191.             If no attributes are listed (e.g., FOR /A:...), FOR will process 
  7192.             all files including hidden and system files.  If attributes are 
  7193.             combined, all the specified attributes must match for a file to be 
  7194.             included.  For example, /A:RHS will include only those files with 
  7195.             all three attributes set. 
  7196.  
  7197.             For example, to process only those files with the archive attribute 
  7198.             set: 
  7199.  
  7200.                                 for /a:a %f in (*.*) echo %f needs a backup!
  7201.  
  7202.     /F      (File parsing)  Return one or more words or tokens from each line 
  7203.             of each file in the set.  The /F option can be followed by one or 
  7204.             more options in a quoted string which control how the parsing is 
  7205.             performed. See the details under Parsing Text From Files, above. 
  7206.     /H      (Hide dots) Suppress the assignment of the "." and ".." directories 
  7207.             to the FOR variable. 
  7208.     /L      (counted loop) Interpret the three values in the set as the start, 
  7209.             step, and end values of a counted loop.  See the details under 
  7210.             Counted FOR Loop, above. 
  7211.     /R      (Recursive)  Look in the current directory and all of its 
  7212.             subdirectories for files in the set.  If the /R is followed by a 
  7213.             directory name, look for files in that directory and all of its 
  7214.             subdirectories. 
  7215.  
  7216.  
  7217. ΓòÉΓòÉΓòÉ 3.3.35. FREE - Display total and free disk space ΓòÉΓòÉΓòÉ
  7218.  
  7219.  Purpose:    Display the total disk space, total bytes used, and total bytes 
  7220.              free on the specified (or default) drive(s). 
  7221.  
  7222.  Format:     FREE [drive: ... ] 
  7223.  
  7224.              drive :  One or more drives to include in the report. 
  7225.  
  7226.  See also:  MEMORY. 
  7227.  
  7228.  Usage: 
  7229.  
  7230.  FREE provides the same disk information as the external command CHKDSK, but 
  7231.  without the wait, since it does not check the integrity of the file and 
  7232.  directory structure of the disk. 
  7233.  
  7234.  A colon [:] is required after each drive letter. This example displays the 
  7235.  status of drives A and C: 
  7236.  
  7237.           [c:\] free a: c:
  7238.  
  7239.  If the volume serial number is available, it will appear after the drive label 
  7240.  or name. 
  7241.  
  7242.  
  7243. ΓòÉΓòÉΓòÉ 3.3.36. GLOBAL - Execute command in all subdirectories ΓòÉΓòÉΓòÉ
  7244.  
  7245.  Purpose:    Execute a command in the current directory and its subdirectories. 
  7246.  
  7247.  Format:     GLOBAL [/H /I /P /Q] command 
  7248.  
  7249.              command :  The command to execute, including arguments and 
  7250.              switches. 
  7251.  
  7252.              /H(idden directories) 
  7253.              /P(rompt) 
  7254.              /I(gnore exit codes) 
  7255.              /Q(uiet) 
  7256.  
  7257.  Usage: 
  7258.  
  7259.  GLOBAL performs the command first in the current directory and then in every 
  7260.  subdirectory under the current directory.  The command can be an internal 
  7261.  command, an alias, an external command, or a batch file. 
  7262.  
  7263.  This example copies the files in every directory on drive A to the directory 
  7264.  C:\TEMP: 
  7265.  
  7266.           [a:\] global copy *.* c:\temp
  7267.  
  7268.  If you use the /P option, GLOBAL will prompt for each subdirectory before 
  7269.  performing the command.  You can use this option if you want to perform the 
  7270.  command in most, but not all subdirectories of the current directory. 
  7271.  
  7272.  You can use command grouping to execute multiple commands in each 
  7273.  subdirectory.  For example, the following command copies each .TXT file in the 
  7274.  current directory and all of its subdirectories to drive A.  It then changes 
  7275.  the extension of each of the copied files to .SAV: 
  7276.  
  7277.           [c:\] global (copy *.txt a: & ren *.txt *.sav)
  7278.  
  7279.  Options: 
  7280.  
  7281.     /H      (Hidden directories) Forces GLOBAL to look for hidden directories. 
  7282.             If you don't use this switch, hidden directories are ignored. 
  7283.  
  7284.     /I      (Ignore exit codes) If this option is not specified, GLOBAL will 
  7285.             terminate if the command returns a non-zero exit code.  Use /I if 
  7286.             you want command to continue in additional subdirectories even if 
  7287.             it returns an error in one subdirectory.  Even if you use /I, 
  7288.             GLOBAL will normally halt execution if Take Command receives a 
  7289.             Ctrl-C or Ctrl-Break. 
  7290.  
  7291.     /P      (Prompt) Forces GLOBAL to prompt with each directory name before it 
  7292.             performs the command.  Your options at the prompt are explained in 
  7293.             detail under Page and File Prompts. 
  7294.  
  7295.     /Q      (Quiet) Do not display the directory names as each directory is 
  7296.             processed. 
  7297.  
  7298.  
  7299. ΓòÉΓòÉΓòÉ 3.3.37. GOSUB - Call subroutine ΓòÉΓòÉΓòÉ
  7300.  
  7301.  Purpose:    Execute a subroutine in the current batch file. 
  7302.  
  7303.  Format:     GOSUB label 
  7304.  
  7305.              label :  The batch file label at the beginning of the subroutine. 
  7306.  
  7307.  See also:  CALL, GOTO and RETURN. 
  7308.  
  7309.  Usage: 
  7310.  
  7311.  GOSUB can only be used in batch files. 
  7312.  
  7313.  Take Command allows subroutines in batch files.  A subroutine must start with 
  7314.  a label (a colon [:] followed by a label name) which appears on a line by 
  7315.  itself.  Case differences are ignored when matching labels.  Labels may be one 
  7316.  or more words long.  The subroutine must end with a RETURN statement. 
  7317.  
  7318.  The subroutine is invoked with a GOSUB command from another part of the batch 
  7319.  file.  After the RETURN, processing will continue with the command following 
  7320.  the GOSUB command.  For example, the following batch file fragment calls a 
  7321.  subroutine which displays the directory and returns: 
  7322.  
  7323.           echo Calling a subroutine
  7324.           gosub subr1
  7325.           echo Returned from the subroutine
  7326.           quit
  7327.           :subr1
  7328.           dir /a/w
  7329.           return
  7330.  
  7331.  GOSUB begins its search for the label on the next line of the batch file 
  7332.  (after the GOSUB command).  If the label is not found between the current 
  7333.  position and the end of the file, GOSUB will restart the search at the 
  7334.  beginning of the file.  If the label still is not found, the batch file is 
  7335.  terminated with the error message "Label not found." 
  7336.  
  7337.  GOSUB saves the IFF and DO states, so IFF and DO statements inside a 
  7338.  subroutine won't interfere with statements in the part of the batch file from 
  7339.  which the subroutine was called. 
  7340.  
  7341.  Subroutines can be nested. 
  7342.  
  7343.  
  7344. ΓòÉΓòÉΓòÉ 3.3.38. GOTO - Branch within batch file ΓòÉΓòÉΓòÉ
  7345.  
  7346.  Purpose:    Branch to a specified line inside the current batch file. 
  7347.  
  7348.  Format:     GOTO [/I] label 
  7349.  
  7350.              label :  The batch file label to branch to. 
  7351.  
  7352.              /I(FF and DO continue) 
  7353.  
  7354.  See also:  GOSUB. 
  7355.  
  7356.  Usage: 
  7357.  
  7358.  GOTO can only be used in batch files. 
  7359.  
  7360.  After a GOTO command in a batch file, the next line to be executed will be the 
  7361.  one immediately after the label.  The label must begin with a colon [:] and 
  7362.  appear on a line by itself. The colon is required on the line where the label 
  7363.  is defined, but is not required in the GOTO command itself.  Case differences 
  7364.  are ignored when matching labels. Labels may be one or more words long. 
  7365.  
  7366.  This batch file fragment checks for the existence of the file CONFIG.OS2.  If 
  7367.  the file exists, the batch file jumps to C_EXISTS and copies all the files 
  7368.  from the current directory to the root directory on A:.  Otherwise, it prints 
  7369.  an error message and exits. 
  7370.  
  7371.           if exist config.os2 goto C_EXISTS
  7372.           echo CONFIG.OS2 doesn't exist - exiting.
  7373.           quit
  7374.           :C_EXISTS
  7375.           copy *.* a:\
  7376.  
  7377.  GOTO begins its search for the label on the next line of the batch file (after 
  7378.  the GOTO command).  If the label is not found between the current position and 
  7379.  the end of the file, GOTO will restart the search at the beginning of the 
  7380.  file.  If the label still is not found, the batch file is terminated with the 
  7381.  error message "Label not found." 
  7382.  
  7383.  To avoid errors in the processing of nested statements and loops, GOTO cancels 
  7384.  all active IFF statements and DO / ENDDO loops unless you use /I. This means 
  7385.  that a normal GOTO (without /I) may not branch to any label that is between an 
  7386.  IFF and the corresponding ENDIFF or between a DO and the corresponding ENDDO. 
  7387.  
  7388.  For compatibility with Windows NT's CMD.EXE, the command 
  7389.  
  7390.           GOTO :EOF
  7391.  
  7392.  will end processing of the current batch file if the label :EOF does not 
  7393.  exist.  However, this is less efficient than using the QUIT or CANCEL command 
  7394.  to end a batch file. 
  7395.  
  7396.  Options: 
  7397.  
  7398.     /I      (IFF and DO continue) Prevents GOTO from canceling IFF statements 
  7399.             and DO loops.  Use this option only if you are absolutely certain 
  7400.             that your GOTO command is branching entirely within any current IFF 
  7401.             statement and any active DO / ENDDO block.  Using /I under any 
  7402.             other conditions will cause an error later in your batch file. 
  7403.  
  7404.             You cannot branch into another IFF statement, another DO loop, or a 
  7405.             different IFF or DO nesting level, whether you use the /I option or 
  7406.             not.  If you do, you will eventually receive an "unknown command" 
  7407.             error (or execution of the UNKNOWN_CMD alias) on a subsequent 
  7408.             ENDDO, ELSE, ELSEIFF, or ENDIFF statement. 
  7409.  
  7410.  
  7411. ΓòÉΓòÉΓòÉ 3.3.39. HELP - Call online help ΓòÉΓòÉΓòÉ
  7412.  
  7413.  Purpose:    Display help for internal commands, and optionally for external 
  7414.              commands. 
  7415.  
  7416.  Format:     HELP [topic ] 
  7417.  
  7418.              topic :  A help topic or internal command. 
  7419.  
  7420.  Usage: 
  7421.  
  7422.  Online help is available for Take Command.  The Take Command help system uses 
  7423.  the OS/2 help facility. 
  7424.  
  7425.  See The Take Command Help System for detailed information about getting help 
  7426.  at the command line and customizing Help for your system. 
  7427.  
  7428.  If you type the command HELP by itself (or press F1 when the command line is 
  7429.  empty), the table of contents is displayed.  If you type HELP plus a topic 
  7430.  name, that topic is displayed.  For example: 
  7431.  
  7432.           help copy
  7433.  
  7434.  displays information about the COPY command and its options. 
  7435.  
  7436.  You can configure the HELP command to display only the Take Command help (the 
  7437.  default), or to display other help "books" as well.  For details see the 
  7438.  HelpBook directive and your Introduction and Installation Guide. 
  7439.  
  7440.  
  7441. ΓòÉΓòÉΓòÉ 3.3.40. HISTORY - Manage command history list ΓòÉΓòÉΓòÉ
  7442.  
  7443.  Purpose:    Display, add to, clear, or read the history list. 
  7444.  
  7445.  Format:     HISTORY [/A command /F /P /R filename ] 
  7446.  
  7447.              command :  A command to be added to the history list. 
  7448.              filename :  The name of a file containing entries to be added to 
  7449.              the history list. 
  7450.  
  7451.              /A(dd)                   /P(ause) 
  7452.              /F(ree)                  /R(ead) 
  7453.  
  7454.              See also:  DIRHISTORY and LOG. 
  7455.  
  7456.              Usage: 
  7457.  
  7458.              Take Command keeps a list of the commands you have entered on the 
  7459.              command line.  See Command History and Recall for additional 
  7460.              details. 
  7461.  
  7462.              The HISTORY command lets you view and manipulate the command 
  7463.              history list directly.  If no parameters are entered, HISTORY will 
  7464.              display the current command history list: 
  7465.  
  7466.                                   [c:\] history
  7467.  
  7468.              With the options explained below, you can clear the list, add new 
  7469.              commands to the list without executing them, save the list in a 
  7470.              file, or read a new list from a file. 
  7471.  
  7472.              The number of commands saved in the history list depends on the 
  7473.              length of each command line.  The history list size can be 
  7474.              specified at startup from 256 to 32767 characters (see the History 
  7475.              directive).  The default size is 1024 characters. 
  7476.  
  7477.              Your history list can be stored either locally (a separate history 
  7478.              list for each copy of Take Command) or globally (all copies of 
  7479.              Take Command share the same list).  For full details see the 
  7480.              discussion of local and global history lists under Command History 
  7481.              and Recall. 
  7482.  
  7483.              You can use the HISTORY command as an aid in writing batch files 
  7484.              by redirecting the HISTORY output to a file and then editing the 
  7485.              file appropriately.  However, it is easier to use the LOG /H 
  7486.              command for this purpose. 
  7487.  
  7488.              You can disable the history list or specify a minimum command-line 
  7489.              length to save from the Command Line 1 page of the configuration 
  7490.              notebook, or with the HistMin directive in the TCMDOS2.INI file. 
  7491.  
  7492.              You can save the history list by redirecting the output of HISTORY 
  7493.              to a file. This example saves the command history to a file called 
  7494.              HISTFILE and reads it back again immediately.  If you leave out 
  7495.              the HISTORY /F command on the second line, the contents of the 
  7496.              file will be appended to the current history list instead of 
  7497.              replacing it: 
  7498.  
  7499.                                   [c:\] history > histfile
  7500.                                   [c:\] history /f
  7501.                                   [c:\] history /r histfile
  7502.  
  7503.              If you need to save your command history at the end of each day's 
  7504.              work, you might use the first of these commands in your 
  7505.              TCSTART.BTM or other startup file, and the second in TCEXIT.BTM: 
  7506.  
  7507.                                   if exist c:\histfile history /r c:\histfile
  7508.                                   history > c:\histfile
  7509.  
  7510.              This restores the previous history list if it exists, and saves 
  7511.              the history when Take Command exits. 
  7512.  
  7513.              Options: 
  7514.  
  7515.     /A      (Add) Add a command to the history list.  This performs the same 
  7516.             function as the Ctrl-K key at the command line (see Command History 
  7517.             and Recall ). 
  7518.  
  7519.     /F      (Free) Erase all entries in the command history list. 
  7520.  
  7521.     /P      (Prompt) Wait for a key after displaying each page of the list. 
  7522.             Your options at the prompt are explained in detail under Page and 
  7523.             File Prompts. 
  7524.  
  7525.     /R      (Read) Read the command history from the specified file and append 
  7526.             it to the history list currently held in memory.  Each line in the 
  7527.             file must fit within the command-line length limit). 
  7528.  
  7529.             If you are creating a HISTORY /R file by hand, and need to create 
  7530.             an entry that spans multiple lines in the file, you can do so by 
  7531.             terminating each line, except the last, with an escape character. 
  7532.             However, you cannot use this method to exceed the command- line 
  7533.             length limit. 
  7534.  
  7535.  
  7536. ΓòÉΓòÉΓòÉ 3.3.41. IF - Test condition ΓòÉΓòÉΓòÉ
  7537.  
  7538.  Purpose:    Execute a command if a condition or set of conditions is true. 
  7539.  
  7540.  Format:     IF [NOT] condition [.AND. | .OR. | .XOR. [NOT] condition ...] 
  7541.              command 
  7542.  
  7543.              condition :  A test to determine if the command should be 
  7544.              executed. 
  7545.              command :  The command to execute if the condition is true. 
  7546.  
  7547.  See also:  IFF and @IF. 
  7548.  
  7549.  Usage: 
  7550.  
  7551.  IF is normally used only in aliases and batch files.  It is always followed by 
  7552.  one or more conditions and then a command. First, the conditions are 
  7553.  evaluated.  If they are true, the command is executed.  Otherwise, the command 
  7554.  is ignored. If you add a NOT before a condition, the command is executed only 
  7555.  when the condition is false. 
  7556.  
  7557.  You can link conditions with .AND., .OR., or .XOR., and you can group 
  7558.  conditions with parentheses (see Combining Tests below).  You can also nest IF 
  7559.  statements. 
  7560.  
  7561.  The conditions can test strings, numbers, the existence of a file or 
  7562.  subdirectory, the exit code returned by the preceding external command, and 
  7563.  the existence of aliases and internal commands. 
  7564.  
  7565.  The command can be an alias, an internal command, an external command, or a 
  7566.  batch file.  The entire IF statement, including all conditions and the 
  7567.  command, must fit on one line. 
  7568.  
  7569.  Some examples of IF conditions and commands are included below; additional 
  7570.  examples can be found in the EXAMPLES.BTM file which came with Take Command. 
  7571.  
  7572.  You can use command grouping to execute multiple commands if the condition is 
  7573.  true.  For example, the following command tests if any .TXT files exist.  If 
  7574.  they do, they are copied to drive A: and their extensions are changed to .TXO: 
  7575.  
  7576.           if exist *.txt (copy *.txt a: & ren *.txt *.txo)
  7577.  
  7578.  (Note that the IFF command provides a more structured method of executing 
  7579.  multiple commands if a condition or set of conditions is true.) 
  7580.  
  7581.  When an IF test fails, the remainder of the command is discarded, and the 
  7582.  command processor normally continues with the next command on the line, or the 
  7583.  next line.  This behavior is not compatible with CMD.EXE, which discards all 
  7584.  remaining commands on the line when an IF test fails, including those after a 
  7585.  command separator or pipe character.  To change the behavior so that IF 
  7586.  affects all commands on the line, as in CMD.EXE, set DuplicateBugs to Yes in 
  7587.  the TCMDOS2.INI file. 
  7588.  
  7589.  For example, if DuplicateBugs is set to Yes (the default), the following 
  7590.  command will display nothing, because the second ECHO command is discarded 
  7591.  along with the first when the condition fails.  If DuplicateBugs is set to No, 
  7592.  it will display "hello": 
  7593.  
  7594.           [c:\] if 1 == 2 echo Wrong! & echo hello
  7595.  
  7596.  Conditions 
  7597.  
  7598.  The conditional tests listed in the following sections are available in both 
  7599.  the IF and IFF commands.  They fit into two categories:  string and numeric 
  7600.  tests, and status tests.  The tests can use environment variables, internal 
  7601.  variables and variable functions, file names, literal text, and numeric values 
  7602.  as their arguments. 
  7603.  
  7604.  String and Numeric Tests 
  7605.  
  7606.  Six test conditions can be used to test character strings. The same conditions 
  7607.  are available for both numeric and normal text strings (see below for 
  7608.  details).  In each case you enter the test as: 
  7609.  
  7610.           string1 operator string2
  7611.  
  7612.  The operator defines the type of test (equal, greater than or equal, and so 
  7613.  on).  You should always use spaces on both sides of the operator.  The 
  7614.  operators are: 
  7615.  
  7616.         EQ or ==        string1 equal to string2 
  7617.         NE or !=        string1 not equal to string2 
  7618.         LT              string1 less than string2 
  7619.         LE              string1 less than or equal to string2 
  7620.         GE              string1 greater than or equal to string2 
  7621.         GT              string1 greater than string2 
  7622.  
  7623.  When IF compares two character strings, it will use either a numeric 
  7624.  comparison or a string comparison.  A numeric comparison treats the strings as 
  7625.  numeric values and tests them arithmetically. A string comparison treats the 
  7626.  strings as text. 
  7627.  
  7628.  The difference between numeric and string comparisons is best explained by 
  7629.  looking at the way two values are tested.  For example, consider comparing the 
  7630.  values 2 and 19.  Numerically, 2 is smaller, but as a string it is "larger" 
  7631.  because its first digit is larger than the first digit of 19.  So the first of 
  7632.  these conditions will be true, and the second will be false: 
  7633.  
  7634.           if 2 lt 19 ...
  7635.           if "2" lt "19" ...
  7636.  
  7637.  IF determines which kind of test to do by examining the first character of 
  7638.  each string.  If both strings begin with a numeric character (a digit, sign, 
  7639.  or decimal point), a numeric comparison is used.  (If a string begins with a 
  7640.  decimal separator it is not considered numeric unless the next character is a 
  7641.  digit, and there are no more decimal separators within the string.  For 
  7642.  example, ".07" is numeric, but ".a" and ".07.01" are not.)  If either value is 
  7643.  non-numeric, a string comparison is used. To force a string comparison when 
  7644.  both values are or may be numeric, use double quotes around the values you are 
  7645.  testing, as shown above.  Because the double quote is not a numeric character, 
  7646.  IF performs a string comparison. 
  7647.  
  7648.  Case differences are ignored in string comparisons.  If two strings begin with 
  7649.  the same text but one is shorter, the shorter string is considered to be "less 
  7650.  than" the longer one.  For example, "a" is less than "abc", and "hello_there" 
  7651.  is greater than "hello". 
  7652.  
  7653.  When you compare text strings, you should always enclose the arguments in 
  7654.  double quotes in order to avoid syntax errors which may occur if one of the 
  7655.  argument values is empty. 
  7656.  
  7657.  Numeric comparisons work with both integer and decimal values.  The values to 
  7658.  be compared must contain only numeric digits, decimal points, and an optional 
  7659.  sign (+ or -).  The number may may contain up to 16 digits to the left of the 
  7660.  decimal point, and 8 digits to the right. 
  7661.  
  7662.  Internal variables and variable functions are very powerful when combined with 
  7663.  string and numeric comparisons.  They allow you to test the state of your 
  7664.  system, the characteristics of a file, date and time information, or the 
  7665.  result of a calculation.  You may want to review the variables and variable 
  7666.  functions when determining the best way to set up an IF test. 
  7667.  
  7668.  This batch file fragment runs a program called WEEKLY if today is Monday: 
  7669.  
  7670.           if "%_dow" == "mon" weekly
  7671.  
  7672.  This batch file fragment tests for a string value: 
  7673.  
  7674.           input "Enter your selection : " %%cmd
  7675.           if "%cmd" == "WP" goto wordproc
  7676.           if "%cmd" NE "GRAPHICS" goto badentry
  7677.  
  7678.  This example calls GO.BTM if the first two characters in the file MYFILE are 
  7679.  "GO": 
  7680.  
  7681.           if "%@left[2,%@line[myfile,0]]" == "GO" call go.btm
  7682.  
  7683.  
  7684.  Status Tests 
  7685.  
  7686.  These conditions test the system or command processor status. You can use 
  7687.  internal variables and variable functions to test many other parts of the 
  7688.  system status. 
  7689.  
  7690.         ERRORLEVEL [operator] n
  7691.             This test retrieves the exit code of the preceding external 
  7692.             program.  By convention, programs return an exit code of 0 when 
  7693.             they are successful and a number between 1 and 255 to indicate an 
  7694.             error (depending on the program you are running, the maximum return 
  7695.             value may be larger).  The condition can be any of the operators 
  7696.             listed above (EQ, !=, GT, etc.).  If no operator is specified, the 
  7697.             default is GE.  The comparison is done numerically. 
  7698.  
  7699.             Not all programs return an explicit exit code.  For programs which 
  7700.             do not, the behavior of ERRORLEVEL is undefined. 
  7701.  
  7702.         EXIST filename
  7703.             If the file exists, the condition is true. You can use wildcards in 
  7704.             the filename, in which case the condition is true if any file 
  7705.             matching the wildcard name exists. 
  7706.  
  7707.         ISALIAS aliasname
  7708.             If the name is defined as an alias, the condition is true. 
  7709.  
  7710.         ISDIR | DIREXIST path
  7711.             If the subdirectory exists, the condition is true.  For 
  7712.             compatibility with Novell DOS / OpenDOS, DIREXIST may be used as a 
  7713.             synonym for ISDIR. 
  7714.  
  7715.         ISINTERNAL command
  7716.             If the specified command is an active internal command, the 
  7717.             condition is true.  Commands can be activated and deactivated with 
  7718.             the SETDOS /I command. 
  7719.  
  7720.         ISLABEL label
  7721.             If the specified batch file label exists, the condition is true. 
  7722.             Labels may be one or more words long. 
  7723.  
  7724.         ISWINDOW "title"
  7725.             If the window with the title exists, the condition is true.  Double 
  7726.             quotes must be used around the title, which may contain wildcards 
  7727.             and extended wildcards. 
  7728.  
  7729.  The first batch file fragment below tests for the existence of A:\JAN.DOC 
  7730.  before copying it to drive C (this avoids an error message if the file does 
  7731.  not exist): 
  7732.  
  7733.           if exist a:\jan.doc copy a:\jan.doc c:\
  7734.  
  7735.  This example tests the exit code of the previous program and stops all batch 
  7736.  file processing if an error occurred: 
  7737.  
  7738.           if errorlevel == 0 goto success
  7739.           echo "External Error -- Batch File Ends!"
  7740.           cancel
  7741.  
  7742.  Combining Tests 
  7743.  
  7744.  You can negate the result of any test with NOT, and combine tests of any type 
  7745.  with .AND., .OR., and .XOR. 
  7746.  
  7747.  When two tests are combined with .AND., the result is true if both individual 
  7748.  tests are true.  When two tests are combined with .OR., the result is true if 
  7749.  either (or both) individual tests are true.  When two tests are combined with 
  7750.  .XOR., the result is true only if one of the tests is true and the other is 
  7751.  false. 
  7752.  
  7753.  This example runs a program called DATALOAD if today is Monday or Tuesday: 
  7754.  
  7755.           if "%_dow" == "Mon" .or. "%_dow" == "Tue" dataload
  7756.  
  7757.  Test conditions are always scanned from left to right; there is no implied 
  7758.  order of precedence, as there is in some programming languages.  You can, 
  7759.  however, force a specific order of testing by grouping conditions with 
  7760.  parentheses, for example: 
  7761.  
  7762.           if (%a == 1 .or. (%b == 2 .and. %c == 3)) echo something
  7763.  
  7764.  Parentheses can only be used when the portion of the condition inside the 
  7765.  parentheses contains at least one ".and.", ".or.", or ".xor.".  Parentheses on 
  7766.  a simple condition which does not combine two or more tests will be taken as 
  7767.  part of the string to be tested, and will probably make the test fail.  For 
  7768.  example, the first of these IF tests would fail; the second would succeed: 
  7769.  
  7770.           if (a == a) ...
  7771.           if (a == a .and. b == b) ...
  7772.  
  7773.  Parentheses can be nested. 
  7774.  
  7775.  
  7776. ΓòÉΓòÉΓòÉ 3.3.42. IFF - IFF / THEN / ELSE conditional test ΓòÉΓòÉΓòÉ
  7777.  
  7778.  Purpose:    Perform IF / THEN / ELSE conditional execution of commands. 
  7779.  
  7780.  Format:     IFF [NOT] condition [.AND. | .OR. | .XOR. [NOT] condition ...] 
  7781.              THEN & commands 
  7782.              [ELSEIFF condition THEN & commands ] ... 
  7783.              [ELSE & commands ] 
  7784.              ENDIFF 
  7785.  
  7786.              condition :  A test to determine if the command(s) should be 
  7787.              executed. 
  7788.              commands :  One or more commands to execute if the condition(s) is 
  7789.              true.  If you use multiple commands, they must be separated by 
  7790.              command separators or be placed on separate lines of a batch file. 
  7791.  
  7792.  See also:  IF and @IF. 
  7793.  
  7794.  Usage: 
  7795.  
  7796.  IFF is similar to the IF command, except that it can perform one set of 
  7797.  commands when a condition or set of conditions is true and a different set of 
  7798.  commands when the conditions are false. 
  7799.  
  7800.  IFF can execute multiple commands when the conditions are true or false; IF 
  7801.  normally executes only one command.  IFF imposes no limit on the number of 
  7802.  commands and is generally a "cleaner" and more structured command than IF. 
  7803.  
  7804.  IFF is always followed by one or more conditions.  If they are true, the 
  7805.  commands that follow the word THEN are executed. Additional conditions can be 
  7806.  tested with ELSEIFF.  If none of these conditions are true, the commands that 
  7807.  follow the word ELSE are executed.  After the selected commands (if any) are 
  7808.  executed, processing continues after the word ENDIFF. 
  7809.  
  7810.  If you add a NOT before the condition, the THEN commands are executed only 
  7811.  when the condition is false and the ELSE commands are executed only when the 
  7812.  condition is true. 
  7813.  
  7814.  The commands may be separated by command separators, or may be on separate 
  7815.  lines of a batch file.  You should include a command separator or a line break 
  7816.  after a THEN, before an ELSEIFF, and before and after an ELSE. 
  7817.  
  7818.  You can link conditions with .AND., .OR., or .XOR., and you can group 
  7819.  conditions with parentheses.  You can nest IFF statements up to 15 levels 
  7820.  deep.  The conditions can test strings or numbers, the existence of a file or 
  7821.  subdirectory, the errorlevel returned from the preceding external command, and 
  7822.  the existence of aliases and internal commands. 
  7823.  
  7824.  See the IF command for a list of the possible conditions and details on using 
  7825.  .AND, .OR, .XOR, and parentheses. 
  7826.  
  7827.  The commands can include any internal command, alias, external command, or 
  7828.  batch file. 
  7829.  
  7830.  The alias in this example checks to see if the argument is a subdirectory.  If 
  7831.  so, the alias deletes the subdirectory's files and removes it: 
  7832.  
  7833.           [c:\] alias prune `iff isdir %1 then & del /sxz %1 &
  7834.   else & echo Not a directory! & endiff`
  7835.  
  7836.  Be sure to read the cautionary notes about GOTO and IFF under the GOTO command 
  7837.  before using a GOTO inside an IFF statement. 
  7838.  
  7839.  If you pipe data to an IFF, the data will be passed to the command(s) 
  7840.  following the IFF, not to IFF itself. 
  7841.  
  7842.  
  7843. ΓòÉΓòÉΓòÉ 3.3.43. INKEY - Input a character ΓòÉΓòÉΓòÉ
  7844.  
  7845.  Purpose:    Get a single keystroke from the user and store it in an 
  7846.              environment variable. 
  7847.  
  7848.  Format:     INKEY [/C /D /K"keys" /P /Wn /X] [prompt ] %%varname 
  7849.  
  7850.              prompt :  Optional text that is displayed as a prompt. 
  7851.              varname :  The variable that will hold the user's keystroke. 
  7852.  
  7853.              /C(lear buffer) 
  7854.              /D(igits only) 
  7855.              /K(valid keystrokes) 
  7856.              /P(assword) 
  7857.              /W(ait) 
  7858.              /X (no carriage return) 
  7859.  
  7860.  See also:  INPUT, KEYSTACK, MSGBOX, and QUERYBOX. 
  7861.  
  7862.  Usage: 
  7863.  
  7864.  INKEY optionally displays a prompt.  Then it waits for a specified time or 
  7865.  indefinitely for a keystroke, and places the keystroke into an environment 
  7866.  variable.  It is normally used in batch files and aliases to get a menu choice 
  7867.  or other single-key input.  Along with the INPUT command, INKEY allows great 
  7868.  flexibility in reading input from within a batch file or alias. 
  7869.  
  7870.  If prompt text is included in an INKEY command, it is displayed while INKEY 
  7871.  waits for input. 
  7872.  
  7873.  INKEY works within the command line window.  If you prefer to use a dialog for 
  7874.  user input, see the MSGBOX and QUERYBOX commands. 
  7875.  
  7876.  The following batch file fragment prompts for a character and stores it in the 
  7877.  variable NUM: 
  7878.  
  7879.           inkey Enter a number from 1 to 9:  %%num
  7880.  
  7881.  INKEY reads standard input for the keystroke, so it will accept keystrokes 
  7882.  from a redirected file or from the KEYSTACK. You can supply a list of valid 
  7883.  keystrokes with the /K option. 
  7884.  
  7885.  Standard keystrokes with ASCII values between 1 and 255 are stored directly in 
  7886.  the environment variable.  Extended keystrokes (for example, function keys and 
  7887.  cursor keys) are stored as a string in decimal format, with a leading @ (for 
  7888.  example, the F1 key is @59). The Enter key is stored as an extended keystroke, 
  7889.  with the code @28.  See the Key Code Tables for a list of extended key codes. 
  7890.  
  7891.  To test for a non-printing ASCII keystroke returned by INKEY use the @ASCII 
  7892.  function to get the numeric value of the key.  For example, to test for Esc, 
  7893.  which has an ASCII value of 27: 
  7894.  
  7895.           inkey Enter a key:  %%key
  7896.           if "%@ascii[%key]" == "27" echo Esc pressed
  7897.  
  7898.  If you press Ctrl-C or Ctrl-Break while INKEY is waiting for a key, execution 
  7899.  of an alias will be terminated, and execution of a batch file will be 
  7900.  suspended while you are asked whether to cancel the batch job.  A batch file 
  7901.  you can handle Ctrl-C and Ctrl-Break itself with the ON BREAK command. 
  7902.  
  7903.  Options: 
  7904.  
  7905.     /C      (Clear buffer) Clears the keyboard buffer before INKEY accepts 
  7906.             keystrokes.  If you use this option, INKEY will ignore any 
  7907.             keystrokes which you type, either accidentally or intentionally, 
  7908.             before it is ready to accept input. 
  7909.  
  7910.     /D      (Digits only):  Prevents INKEY from accepting any keystroke except 
  7911.             a digit from 0 to 9. 
  7912.  
  7913.     /K"keys"Specify the permissible keystrokes.  The list of valid keystrokes 
  7914.             should be enclosed in double quotes.  For alphabetic keys the 
  7915.             validity test is not case sensitive.  You can specify extended keys 
  7916.             by enclosing their names in square brackets (within the quotes). 
  7917.             Enter this example on one line: 
  7918.  
  7919.                                 inkey /k"ab[Ctrl-F9]" Enter A, B, or Ctrl-F9 %%var
  7920.  
  7921.             See Keys and Key Names for a complete listing of the key names you 
  7922.             can use within the square brackets, and a description of the key 
  7923.             name format. 
  7924.  
  7925.             If an invalid keystroke is entered, Take Command will echo the 
  7926.             keystroke if possible, beep, move the cursor back one character, 
  7927.             and wait for another keystroke. 
  7928.  
  7929.     /P      (Password) Prevents INKEY from echoing the character. 
  7930.  
  7931.     /W      (Wait) Time-out period, in seconds, to wait for a response. If no 
  7932.             keystroke is entered by the end of the time-out period, INKEY 
  7933.             returns with the variable unchanged.  This allows you to continue 
  7934.             the batch file if the user does not respond in a given period of 
  7935.             time.  You can specify /W0 to return immediately if there are no 
  7936.             keys waiting in the keyboard buffer. 
  7937.  
  7938.             For example, the following batch file fragment waits up to 10 
  7939.             seconds for a character, then tests to see if a "Y" was entered: 
  7940.  
  7941.                                 set netmon=N
  7942.                                 inkey /K"YN" /w10 Network monitor (Y/N)?  %%net
  7943.                                 iff "%netmon" == "Y" then
  7944.                                   rem Commands to load the monitor program
  7945.                                 endiff
  7946.  
  7947.     /X      (No carriage return) Prevents INKEY from displaying a carriage 
  7948.             return and line feed after the user's entry. 
  7949.  
  7950.  
  7951. ΓòÉΓòÉΓòÉ 3.3.44. INPUT - Input a string ΓòÉΓòÉΓòÉ
  7952.  
  7953.  Purpose:    Get a string from the keyboard and save it in an environment 
  7954.              variable. 
  7955.  
  7956.  Format:     INPUT [/C /D /E /Ln /N /P /Wn /X] [prompt ] %%varname 
  7957.  
  7958.              prompt :  Optional text that is displayed as a prompt. 
  7959.              varname :  The variable that will hold the user's input. 
  7960.  
  7961.              /C(lear buffer)                 /N(o colors) 
  7962.              /D(igits only)                  /P(assword) 
  7963.              /E(dit)                         /W(ait) 
  7964.              /L(ength)                       /X (no carriage return) 
  7965.  
  7966.  See also:  INKEY, KEYSTACK, MSGBOX, and QUERYBOX. 
  7967.  
  7968.  Usage: 
  7969.  
  7970.  INPUT optionally displays a prompt.  Then it waits for a specified time or 
  7971.  indefinitely for your entry.  It places any characters you type into an 
  7972.  environment variable.  INPUT is normally used in batch files and aliases to 
  7973.  get multi-character input (for single-keystroke input, see INKEY). 
  7974.  
  7975.  INPUT works within the command line window.  If you prefer to use a dialog for 
  7976.  user input, see the MSGBOX and QUERYBOX commands. 
  7977.  
  7978.  If prompt text is included in an INPUT command, it is displayed while INPUT 
  7979.  waits for input.  Standard command-line editing keys may be used to edit the 
  7980.  input string as it is entered.  If you use the /P password option, INPUT will 
  7981.  echo asterisks instead of the keys you type. 
  7982.  
  7983.  All characters entered up to, but not including, the carriage return are 
  7984.  stored in the variable. 
  7985.  
  7986.  The following batch file fragment prompts for a string and stores it in the 
  7987.  variable FNAME: 
  7988.  
  7989.           input Enter the file name:  %%fname
  7990.  
  7991.  INPUT reads standard input, so it will accept text from a re-directed file or 
  7992.  from the KEYSTACK. 
  7993.  
  7994.  If you press Ctrl-C or Ctrl-Break while INPUT is waiting for input, execution 
  7995.  of an alias will be terminated, and execution of a batch file will be 
  7996.  suspended while you are asked whether to cancel the batch job.  A batch file 
  7997.  you can handle Ctrl-C and Ctrl-Break itself with the ON BREAK  command. 
  7998.  
  7999.  Options: 
  8000.  
  8001.     /C      (Clear buffer) Discard any keystrokes pending in the keyboard 
  8002.             buffer before INPUT begins accepting characters. 
  8003.  
  8004.     /D      (Digits only): Prevents INPUT from accepting any keystrokes except 
  8005.             digits from 0 to 9. 
  8006.  
  8007.     /E      (Edit) Allows you to edit an existing value.  If there is no 
  8008.             existing value for varname, INPUT proceeds as if /E had not been 
  8009.             used, and allows you to enter a new value. 
  8010.  
  8011.     /Ln     (Length) Sets the maximum number of characters which INPUT will 
  8012.             accept to "n".  If you attempt to enter more than this number of 
  8013.             characters, INPUT will beep and prevent further input (you will 
  8014.             still be able to edit the characters typed before the limit was 
  8015.             reached). 
  8016.  
  8017.     /N      (No color) Disables the display colors set by InputColor in the 
  8018.             TCMDOS2.INI file.  With this option, INPUT will use the default 
  8019.             display colors instead. 
  8020.  
  8021.     /P      (Password) Tells INPUT to echo asterisks, instead of the characters 
  8022.             you type. 
  8023.  
  8024.     /W      (Wait) Time-out period, in seconds, to wait for a response. If no 
  8025.             keystroke is entered by the end of the time-out period, INPUT 
  8026.             returns with the variable unchanged. This allows you to continue 
  8027.             the batch file if the user does not respond in a given period of 
  8028.             time.  If you enter a key before the time-out period, INPUT will 
  8029.             wait indefinitely for the remainder of the line.  You can specify 
  8030.             /W0 to return immediately if there are no keys waiting in the 
  8031.             keyboard buffer. 
  8032.  
  8033.     /X      (No carriage return) Prevents INPUT from displaying a carriage 
  8034.             return and line feed after the user's entry. 
  8035.  
  8036.  
  8037. ΓòÉΓòÉΓòÉ 3.3.45. KEYBD - Set keyboard toggles ΓòÉΓòÉΓòÉ
  8038.  
  8039.  Purpose:    Set the state of the keyboard toggles:  Caps Lock, Num Lock, and 
  8040.              Scroll Lock. 
  8041.  
  8042.  Format:     KEYBD [/Cn /Nn /Sn] 
  8043.  
  8044.              n :  0 to turn off the toggle, or 1 to turn on the toggle. 
  8045.              /C(aps lock) 
  8046.              /S(croll lock) 
  8047.              /N(um lock) 
  8048.  
  8049.  Usage: 
  8050.  
  8051.  Most keyboards have 3 toggle keys, the Caps Lock, Num Lock, and Scroll Lock. 
  8052.  The toggle key status is usually displayed by three lights at the top right 
  8053.  corner of the keyboard. 
  8054.  
  8055.  This command lets you turn any toggle key on or off.  It is most useful in 
  8056.  batch files and aliases if you want the keys set a particular way before 
  8057.  collecting input from the user. 
  8058.  
  8059.  For example, to turn off the Num Lock and Caps Lock keys, you can use this 
  8060.  command: 
  8061.  
  8062.           [c:\] keybd /c0 /n0
  8063.  
  8064.  If you use the KEYBD command with no switches, it will display the present 
  8065.  state of the toggle keys. 
  8066.  
  8067.  The toggle key state is typically the same for all sessions and changes made 
  8068.  with KEYBD in one session will therefore affect all other sessions. 
  8069.  
  8070.  Options: 
  8071.  
  8072.     /C      (Caps lock) Turn the Caps Lock key on or off. 
  8073.  
  8074.     /N      (Num lock) Turn the Num Lock key on or off. 
  8075.  
  8076.     /S      (Scroll lock) Turn the Scroll Lock key on or off. 
  8077.  
  8078.  
  8079. ΓòÉΓòÉΓòÉ 3.3.46. KEYS - Enable/disable history list ΓòÉΓòÉΓòÉ
  8080.  
  8081.  Purpose:    Enable, disable, or display the history list. 
  8082.  
  8083.  Format:     KEYS [ON | OFF | LIST] 
  8084.  
  8085.  See also:  HISTORY. 
  8086.  
  8087.  Usage: 
  8088.  
  8089.  This command is provided for compatibility with KEYS command in CMD.EXE, which 
  8090.  controls the history list in OS/2. The same functions are available by setting 
  8091.  the HistMin directive in the .INI file, and by using the HISTORY command. 
  8092.  
  8093.  The history list collects the commands you type for later recall, editing, and 
  8094.  viewing.  You can view the contents of the list through the history list 
  8095.  window or by typing any of the following commands: 
  8096.  
  8097.           [c:\] history
  8098.           [c:\] history /p
  8099.           [c:\] keys list
  8100.  
  8101.  The first command displays the entire history list.  The second displays the 
  8102.  entire list and pauses at the end of each full screen. The third command 
  8103.  produces the same output as the first, except that each line is numbered. 
  8104.  
  8105.  You can disable the collection and storage of commands in the history list by 
  8106.  typing: 
  8107.  
  8108.           [c:\] keys off
  8109.  
  8110.  You can turn the history back on with the command: 
  8111.  
  8112.           [c:\] keys on
  8113.  
  8114.  If you issue the KEYS command without any parameters, Take Command will show 
  8115.  you the current status of the history list. 
  8116.  
  8117.  
  8118. ΓòÉΓòÉΓòÉ 3.3.47. KEYSTACK - Feed keystrokes to programs ΓòÉΓòÉΓòÉ
  8119.  
  8120.  Purpose:    Feed keystrokes to a program or command automatically. 
  8121.  
  8122.  
  8123.  Format:     KEYSTACK [!] [/Wn] ["abc"] [keyname[n]] ... .br 
  8124.              !  Signal to clear the Keystack and the keyboard buffer. 
  8125.              "abc":  Literal characters to be placed in the Keystack. 
  8126.              keyname:  Name for a key to be placed in the Keystack. 
  8127.              n:  Number of times to repeat the named key. 
  8128.  
  8129.              /W(ait) 
  8130.  
  8131.  See also:  Using the Keystack. 
  8132.  
  8133.  Usage: 
  8134.  
  8135.  KEYSTACK takes a series of keystrokes and feeds them to a program or command 
  8136.  as if they were typed at the keyboard.  When the program has used all of the 
  8137.  keystrokes sent by KEYSTACK, it will begin to read the keyboard for input, as 
  8138.  it normally would. 
  8139.  
  8140.  KEYSTACK will send the keystrokes to the current active window.  If you want 
  8141.  to send keystrokes to another program (rather than have them function with 
  8142.  Take Command itself), you must start the program or ACTIVATE its window so it 
  8143.  can receive the keystrokes. You must do this before executing the KEYSTACK 
  8144.  command. 
  8145.  
  8146.  KEYSTACK is most often used for programs started from batch files.  In order 
  8147.  for KEYSTACK to work in a batch file, you must start the program with the 
  8148.  START command, then use the KEYSTACK command.  If you start the program 
  8149.  directly ╨º without using START ╨º the batch file will wait for the application 
  8150.  to complete before continuing and running the KEYSTACK command, and the 
  8151.  keystrokes will be placed in the buffer too late. 
  8152.  
  8153.  If you use KEYSTACK in an alias executed from the prompt, the considerations 
  8154.  are essentially the same, but depend on whether ExecWait is set.  If ExecWait 
  8155.  is not set, you can use KEYSTACK immediately after an application is started. 
  8156.  However, if ExecWait is set, the KEYSTACK command will not be executed until 
  8157.  the program has finished, and the keystrokes will be placed in the buffer too 
  8158.  late. 
  8159.  
  8160.  You may not be able to use KEYSTACK effectively if you have programs running 
  8161.  in the background which change the active window (for example, by popping up a 
  8162.  dialog box).  If a window pops up in the midst of your KEYSTACK sequence, 
  8163.  keystrokes stored in the KEYSTACK buffer may go to that window, and not to the 
  8164.  application you intended. 
  8165.  
  8166.  KEYSTACK will only work if the file KEYSTACK.EXE is in the same directory as 
  8167.  TCOS2.EXE, or a directory listed in your PATH.  If KEYSTACK.EXE cannot be 
  8168.  found, the KEYSTACK command will display an error message.  KEYSTACK can send 
  8169.  keystrokes to Presentation Manager applications and to character-mode 
  8170.  applications running in a window.  It cannot send keystrokes to DOS 
  8171.  applications, nor to character-mode applications running in a full-screen 
  8172.  session.  Characters entered within double quotes ("abc") will be stored "as 
  8173.  is" in the buffer.  The only items allowed outside double quotes are key 
  8174.  names, the ! and /W options, and a repeat count. 
  8175.  
  8176.  See Keys and key names for a complete listing of key names and a description 
  8177.  of the key name and numeric key code format.  If you want to send the same key 
  8178.  name or numeric code several times, you can follow it with a repeat count in 
  8179.  square brackets.  For example, to send the Enter key 4 times, you can use this 
  8180.  command: 
  8181.  
  8182.           keystack enter [4]
  8183.  
  8184.  The repeat count works only with individual keystrokes, or numeric keystroke 
  8185.  or character values.  It cannot be used with quoted strings. 
  8186.  
  8187.  An exclamation mark [!] will clear all pending keystrokes in the KEYSTACK 
  8188.  buffer. 
  8189.  
  8190.  For example, to start a word processor called Word and select the second item 
  8191.  on the second menu n the menu bar, you could use the command: 
  8192.  
  8193.           [d:\doc] keystack F10 Right Down "1" ^ word
  8194.  
  8195.  This places the keystrokes for F10 (change to the menu bar), right arrow (move 
  8196.  to the File menu), down arrow (display the file menu), and "1" (open the most 
  8197.  recently used file) into the buffer, then runs Word.  When Word starts it 
  8198.  receives these keystrokes and performs the appropriate actions. 
  8199.  
  8200.  You can store a maximum of 1,023 characters in the KEYSTACK buffer.  A delay 
  8201.  takes two character "slots" in the buffer.  A repeated character takes one 
  8202.  character slot per repetition. 
  8203.  
  8204.  Each time the KEYSTACK command is executed, it will clear any remaining 
  8205.  keystrokes stored by a previous KEYSTACK command. 
  8206.  
  8207.  You may need to experiment with your programs and insert delays (see the /W 
  8208.  option) to find the window activation and keystroke sequence that works for a 
  8209.  particular program. 
  8210.  
  8211.  Options: 
  8212.  
  8213.     /W      (Wait):  Delay the next keystroke in the KEYSTACK buffer by a 
  8214.             specified number of clock "ticks".  A clock tick is approximately 
  8215.             1/18 second.  The number of clock ticks to delay should be placed 
  8216.             immediately after the W, and must be between 1 and 65535 (65535 
  8217.             ticks is about 1 hour).  You can use the /W option as many times as 
  8218.             desired and at any point in the string of keystrokes except within 
  8219.             double quotes.  Some programs may need the delays provided by /Win 
  8220.             order to receive keystrokes properly from KEYSTACK. The only way to 
  8221.             determine what delay is needed is to experiment. 
  8222.  
  8223.  
  8224. ΓòÉΓòÉΓòÉ 3.3.48. LIST - Display file ΓòÉΓòÉΓòÉ
  8225.  
  8226.  Purpose:    Display a file, with forward and backward paging and scrolling. 
  8227.  
  8228.  Format:     LIST [/A:[[-]rhsda] /H /I /R /S /T /W /X] file... 
  8229.  
  8230.              file :  A file or list of files to display. 
  8231.  
  8232.              /A: (Attribute select)      /S(tandard input) 
  8233.              /H(igh bit off)             /T  (search for Text) 
  8234.              /I(gnore wildcards)         /W(rap) 
  8235.              /R(everse)                  /X (heX display mode) 
  8236.  
  8237.  See also:  TYPE. 
  8238.  
  8239.  File Selection: 
  8240.  
  8241.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  8242.  
  8243.  Usage: 
  8244.  
  8245.  LIST provides a fast and flexible way to view a file, without the overhead of 
  8246.  loading and using a text editor. 
  8247.  
  8248.  For example, to display a file called MEMO.DOC: 
  8249.  
  8250.           [c:\] list memo.doc
  8251.  
  8252.  LIST is most often used for displaying ASCII text files.  It can be used for 
  8253.  other files which contain non-alphabetic characters, but you may need to use 
  8254.  hex mode (see below) to read these files. 
  8255.  
  8256.  LIST displays files in the Take Command window.  The standard tool bar and 
  8257.  scroll bars are replaced with the LIST tool bar and scroll bars.  Use the 
  8258.  scroll bars or cursor pad to scroll through the file.  You can select the LIST 
  8259.  commands either with the mouse (on the tool bar and scrollbars) or from the 
  8260.  keyboard.  LIST recognizes the following keys and buttons: 
  8261.  
  8262.         Home                Display the first page of the file. 
  8263.         End                 Display the last page of the file. 
  8264.         Esc (Cont)          Exit the current file. 
  8265.         Ctrl-C (Quit)       Quit LIST. 
  8266.         Ctrl-PgUp.          Display previous file. 
  8267.         Ctrl-PgDn.          Display next file. 
  8268.                            Scroll up one line. 
  8269.                            Scroll down one line. 
  8270.                             Scroll left 8 columns. 
  8271.                             Scroll right 8 columns. 
  8272.         Ctrl                Scroll left 40 columns. 
  8273.         Ctrl                Scroll right 40 columns. 
  8274.         F1                  Display online help 
  8275.         B (Back)            Go back one file to the previous file in the 
  8276.                             current group of files. 
  8277.         F (Find)            Prompt and search for a string or a sequence of 
  8278.                             hexadecimal values. 
  8279.         Ctrl-F              Prompt and search for a string, searching backward 
  8280.                             from the end of the file. 
  8281.         G (Goto)            Go to a specific line, or, in hex mode, to a 
  8282.                             specific hexadecimal offset. 
  8283.         H (High)            Toggle the "strip high bit" (/H) option. 
  8284.         I (Info)            Display information on the current file (the full 
  8285.                             name, size, date, and time). 
  8286.         N (Next)            Find next matching string. 
  8287.         Ctrl-N              Find the previous matching string in the file. 
  8288.         O (Open)            Open a new file 
  8289.         P (Print)           Print selected text, the current page, or the 
  8290.                             entire file. 
  8291.         W (Wrap)            Toggle the "line wrap" (/W) option. 
  8292.         X (heX)             Toggle the hex-mode display (/X) option. 
  8293.  
  8294.  Text searches performed with F, N, Ctrl-F, and Ctrl-N, or with the 
  8295.  corresponding buttons, are not case- sensitive unless you check the "Match 
  8296.  case" box in the search dialog.  LIST remembers the search strings you have 
  8297.  used in the current Take Command session; to select a previous string, use the 
  8298.  drop-down arrow to the right of the string entry field (the N key and the Next 
  8299.  button search for the top item in this drop-down list). 
  8300.  
  8301.  When the search string is found LIST displays the line containing the string 
  8302.  at the top of the window, and highlights the string it found.  Any additional 
  8303.  occurrences of the string on the same display page are also highlighted. 
  8304.  Highlighting is intended for use with text files; in binary files the search 
  8305.  string will be found, but may not be highlighted properly. 
  8306.  
  8307.  If you want to search for specific hexadecimal values check the "Hex search" 
  8308.  box, and enter the search string as a sequence of 2-digit hexadecimal numbers 
  8309.  separated by spaces, for example 41 63 65 (these are the ASCII values for the 
  8310.  string "Ace"; see the ASCII Table for a complete list of standard ASCII 
  8311.  codes).  Hexadecimal searches are case-sensitive, and search for exactly the 
  8312.  string you enter. 
  8313.  
  8314.  You can use extended wildcards in the search string.  For example, you can 
  8315.  search for the string "to*day" to find the next line which contains the word 
  8316.  "to" followed by the word "day" later on the same line, or search for the 
  8317.  numbers "101" or "401" with the search string "[14]01".  If you begin the 
  8318.  search string with a back-quote [`], or enclose it in back-quotes, wildcard 
  8319.  characters in the string will be treated as normal text with no special 
  8320.  wildcard meaning. 
  8321.  
  8322.  You can use the /T switch to specify search text for the first file.  When you 
  8323.  do so, LIST begins a search as soon as the file is loaded.  Use /I to ignore 
  8324.  wildcards in the initial search string, and /R to make the initial search go 
  8325.  backwards from the end of the file.  When you LIST multiple files with a 
  8326.  single LIST command, these switches affect only the first file; they are 
  8327.  ignored for the second and subsequent files. 
  8328.  
  8329.  LIST normally allows long lines in the file to extend past the right edge of 
  8330.  the screen.  You can use the horizontal scrolling keys (see above) to view 
  8331.  text that extends beyond the screen width.  If you use the W command or /W 
  8332.  switch to wrap the display, each line is wrapped when it reaches the right 
  8333.  edge of the screen, and the horizontal scrolling keys are disabled. 
  8334.  
  8335.  To view text from the clipboard, use CLIP: as the file to be listed.  CLIP: 
  8336.  will not return any data unless the clipboard contains text. 
  8337.  
  8338.  If you print the file which LIST is displaying, the print format will match 
  8339.  the display format.  If you have switched to hexadecimal or wrapped mode, that 
  8340.  mode will be used for the printed output as well.  If you print in wrapped 
  8341.  mode, long lines will be wrapped at the width of the display.  If you print in 
  8342.  normal display mode without line wrap, long lines will be wrapped or truncated 
  8343.  by the printer, not by LIST.  Regardless of the display mode, LIST will bring 
  8344.  up a standard print dialog which allows you to print selected text, the 
  8345.  current page, or the entire file. 
  8346.  
  8347.  Advanced Features 
  8348.  
  8349.  If you specify a directory name instead of a filename as an argument, LIST 
  8350.  will display each of the files in that directory. 
  8351.  
  8352.  Most of the LIST keystrokes can be reassigned with TCMDOS2.INI file key 
  8353.  mapping  directives. 
  8354.  
  8355.  You can set the colors used by LIST with the ListColors directive in the 
  8356.  TCMDOS2.INI file, or the LIST Colors selection on the Commands page of the 
  8357.  configuration notebook.  If ListColors is not used, the LIST display will use 
  8358.  the current default colors. 
  8359.  
  8360.  By default, LIST sets tab stops every 8 columns.  You can change this behavior 
  8361.  with the TabStops directive in the TCMDOS2.INI file. 
  8362.  
  8363.  Options: 
  8364.  
  8365.     /A:     (Attribute select):  Select only those files that have the 
  8366.             specified attribute(s) set.  Preceding the attribute character with 
  8367.             a hyphen [-] will select files that do not have that attribute set. 
  8368.             The colon [:] after /A is required.  The attributes are: 
  8369.  
  8370.                            R  Read-only 
  8371.                            H  Hidden 
  8372.                            S  System 
  8373.                            D  Subdirectory 
  8374.                            A  Archive 
  8375.  
  8376.             If no attributes are listed at all (e.g., LIST /A:), LIST will 
  8377.             select all files and subdirectories including hidden and system 
  8378.             files.  If attributes are combined, all the specified attributes 
  8379.             must match for a file to be selected.  For example, /A:RHSwill 
  8380.             select only those files with all three attributes set. 
  8381.  
  8382.     /H      (High bit off) Strip the high bit from each character before 
  8383.             displaying.  This is useful when displaying files created by some 
  8384.             word processors that turn on the high bit for formatting purposes. 
  8385.             You can toggle this option on and off from within LIST with the H 
  8386.             key. 
  8387.  
  8388.     /I      (Ignore wildcards) Only meaningful when used in conjunction with 
  8389.             the /T" text" option.  Direct LIST to interpret characters such as 
  8390.             *, ?, [, and ] as literal characters instead of wildcard 
  8391.             characters.  /I affects only the initial search started by /T, not 
  8392.             subsequent searches started from within LIST. 
  8393.  
  8394.     /R      (Reverse) Only meaningful when used in conjuction with the /T 
  8395.             "text" option.  Directs LIST to search for text from the end of the 
  8396.             file instead of from the beginning of the file.  Using this switch 
  8397.             can speed up searches for text that is normally near the end of the 
  8398.             file, such as a signature.  /R affects only the initial search 
  8399.             started by /T, not subsequent searches started from within LIST. 
  8400.  
  8401.     /S      (Standard input) Read from standard input rather than a file.  This 
  8402.             allows you to redirect command output and view it with LIST. 
  8403.             Normally, LIST will detect input from a redirected command and 
  8404.             adjust automatically.  However, you may find circumstances when /S 
  8405.             is required.  For example, to use LIST to display the output of DIR 
  8406.             you could use either of these commands: 
  8407.  
  8408.                                 [c:\] dir | list
  8409.                                 [c:\] dir | list /s
  8410.  
  8411.     /T      (Text) Search for text in the first file. This option is the same 
  8412.             as pressing F, but it allows you to specify the search text on the 
  8413.             command line.  The text must be contained in quotation marks if it 
  8414.             contains spaces, punctuation, or wildcard characters.  For example, 
  8415.             to search for the string Take Command in the file README.DOC, you 
  8416.             can use this command: 
  8417.  
  8418.                                 [c:\] list /t"Take Command" readme.doc
  8419.  
  8420.             The search text may include wildcards and extended wildcards.  For 
  8421.             example, to search for the words Hello and John on the same line in 
  8422.             the file LETTER.DAT: 
  8423.  
  8424.                                 [c:\] list /t"Hello*John" letter.dat
  8425.  
  8426.             When you LIST multiple files with a single LIST command, /T only 
  8427.             initiates a search in the first file.  It is ignored for the second 
  8428.             and subsequent files.  Also see /I and /R. 
  8429.  
  8430.     /W      (Wrap) Wrap the text at the right edge of the screen. This option 
  8431.             is useful when displaying files that don't have a carriage return 
  8432.             at the end of each line.  The horizontal scrolling keys do not work 
  8433.             when the display is wrapped.  You can toggle this option on and off 
  8434.             from within LIST with the W key or the Wrap button on the tool bar. 
  8435.  
  8436.     /X      (hex mode):  Display the file in hexadecimal (hex) mode. This 
  8437.             option is useful when displaying executable files and other files 
  8438.             that contain non-text characters.  Each byte of the file is shown 
  8439.             as a pair of hex characters.  The corresponding text is displayed 
  8440.             to the right of each line of hexadecimal data.  You can toggle this 
  8441.             mode on and off from within LIST with the X key or the heX button 
  8442.             on the tool bar. 
  8443.  
  8444.  
  8445. ΓòÉΓòÉΓòÉ 3.3.49. LOADBTM - Switch batch file mode ΓòÉΓòÉΓòÉ
  8446.  
  8447.  Purpose:    Switch a batch file to or from BTM mode. 
  8448.  
  8449.  Format:     LOADBTM [ON | OFF] 
  8450.  
  8451.  Usage: 
  8452.  
  8453.  Take Command recognizes two kinds of batch files: .CMD and .BTM.  Batch files 
  8454.  executing in BTM mode run two to ten times faster than in CMD mode.  (However, 
  8455.  BTM mode should not be used for self-modifying batch files.)  Batch files 
  8456.  automatically start in the mode indicated by their extension. 
  8457.  
  8458.  The LOADBTM command turns BTM mode on and off.  It can be used to switch modes 
  8459.  in either a  .CMD or .BTM file. If you use LOADBTM with no argument, it will 
  8460.  display the current batch mode:  LOADBTM ON or LOADBTM OFF. 
  8461.  
  8462.  Using LOADBTM to repeatedly switch modes within a batch file is not efficient. 
  8463.  In most cases the speed gained by running some parts of the file in BTM mode 
  8464.  will be more than offset by the speed lost through repeated loading of the 
  8465.  file each time BTM mode is invoked. 
  8466.  
  8467.  LOADBTM can only be used within a batch file.  It is most often used to 
  8468.  convert a .CMD file to BTM mode without changing its extension. 
  8469.  
  8470.  
  8471. ΓòÉΓòÉΓòÉ 3.3.50. LOG - Log commands to file ΓòÉΓòÉΓòÉ
  8472.  
  8473.  Purpose:    Save a log of commands to a disk file. 
  8474.  
  8475.  Format:     LOG [/H /W file ] [ON | OFF | text ] 
  8476.  
  8477.              file :  The name of the file to hold the log. 
  8478.              text :  An optional message that will be added to the log. 
  8479.  
  8480.              /H(istory log) 
  8481.              /W(rite to) 
  8482.  
  8483.  See also:  HISTORY. 
  8484.  
  8485.  Usage: 
  8486.  
  8487.  LOG keeps a record of all internal and external commands you use, whether they 
  8488.  are executed from the prompt or from a batch file.  Each entry includes the 
  8489.  current system date and time, along with the actual command after any alias or 
  8490.  variable expansion.  You can use the log file as a record of your daily 
  8491.  activities. 
  8492.  
  8493.  LOG with the /H option keeps a similar record called a "history log".  The 
  8494.  history log records only commands entered at the prompt; it does not record 
  8495.  batch file commands.  In addition, the history log does not record the date 
  8496.  and time for each command, and it records commands before aliases and 
  8497.  variables are expanded. 
  8498.  
  8499.  The two logging options are independent.  You can have both a regular log and 
  8500.  a history log enabled simultaneously. 
  8501.  
  8502.  By default, LOG writes to the file OS2LOG in the root directory of the boot 
  8503.  drive.  The default file name for LOG /H is OS2HLOG.  You can set the default 
  8504.  log file names from the Options 2 page of the configuration notebook, or with 
  8505.  the LogName and HistLogName directives in the TCMDOS2.INI file. 
  8506.  
  8507.  Entering LOG or LOG /H with no parameters displays the name of the log file 
  8508.  and the log status (ON or OFF): 
  8509.  
  8510.           [c:\] log
  8511.           LOG (C:\COS2LOG) is OFF
  8512.  
  8513.  To enable or disable logging, add the word "ON" or "OFF" after the LOG 
  8514.  command: 
  8515.  
  8516.           [c:\] log on
  8517.  
  8518.  or 
  8519.  
  8520.           [c:\] log /h on
  8521.  
  8522.  Entering LOG or LOG /H with text writes a message to the log file, even if 
  8523.  logging is set OFF.  This allows you to enter headers in the log file: 
  8524.  
  8525.           [c:\] log "Started work on the database system"
  8526.  
  8527.  The LOG file format looks like this: 
  8528.  
  8529.           [mm-dd-yy  hh:mm:ss]  command
  8530.  
  8531.  The LOG /H output can be used as the basis for writing batch files.  Start LOG 
  8532.  /H, then execute the commands that you want the batch file to execute.  When 
  8533.  you are finished, turn LOG /H off.  The resulting file can be turned into a 
  8534.  batch file that performs the same commands with little or no editing. 
  8535.  
  8536.  Options: 
  8537.  
  8538.     /H      (History log) This option makes the other options on the command 
  8539.             line (after the /H) apply to the history log.  For example, to turn 
  8540.             on history logging and write to the file C:\LOG\HLOG: 
  8541.  
  8542.                                 [c:\] log /h /w c:\log\hlog
  8543.  
  8544.     /W      (Write) This switch specifies a different filename for the LOG or 
  8545.             LOG /H output.  It also automatically performs a LOG ON command. 
  8546.             For example, to turn logging on and write the log to 
  8547.             C:\LOG\LOGFILE: 
  8548.  
  8549.                                 [c:\] log /w c:\log\logfile
  8550.  
  8551.             Once you select a new file name with the LOG /W or LOG /H/W 
  8552.             command, LOG will use that file until you issue another LOG /W or 
  8553.             LOG /H/W command, or until you reboot your computer.  Turning LOG 
  8554.             or LOG /H off or on does not change the file name. 
  8555.  
  8556.  
  8557. ΓòÉΓòÉΓòÉ 3.3.51. MD - Create a subdirectory ΓòÉΓòÉΓòÉ
  8558.  
  8559.  Purpose:    Create a subdirectory. 
  8560.  
  8561.  Format:     MD [/N /S] path... 
  8562.                 or 
  8563.              MKDIR [/N /S] path... 
  8564.  
  8565.              path :  The name of one or more directories to create. 
  8566.  
  8567.              /N(o update) 
  8568.              /S(ubdirectories) 
  8569.  
  8570.  See also:  RD. 
  8571.  
  8572.  Usage: 
  8573.  
  8574.  MD and MKDIR are synonyms.  You can use either one. 
  8575.  
  8576.  MD creates a subdirectory anywhere in the directory tree.  To create a 
  8577.  subdirectory from the root, start the path with a backslash [\].  For example, 
  8578.  this command creates a subdirectory called MYDIR in the root directory: 
  8579.  
  8580.           [c:\] md \mydir
  8581.  
  8582.  If no path is given, the new subdirectory is created in the current directory. 
  8583.  This example creates a subdirectory called DIRTWO in the current directory: 
  8584.  
  8585.           [c:\mydir] md dirtwo
  8586.  
  8587.  To create a directory from the parent of the current directory (that is, to 
  8588.  create a sibling of the current directory), start the pathname with two 
  8589.  periods and a backslash [..\]. 
  8590.  
  8591.  When creating a directory on a HPFS drive, you must quote any path which 
  8592.  contains whitespace or special characters. 
  8593.  
  8594.  If MD creates one or more directories, they will be added automatically to the 
  8595.  extended directory search database unless the /N option is specified. 
  8596.  
  8597.  Option: 
  8598.     /N(No update)  Do not update the extended directory search database, 
  8599.     JPSTREE.IDX.  This is useful when creating a temporary directory which you 
  8600.     do not want to appear in the extended search database. /S(Subdirectories) 
  8601.     Allows you to create more than one directory at a time.  For example, if 
  8602.     you need to create the directory C:\ONE\TWO\THREE and none of the named 
  8603.     directories exist, you can use /S to have MD create all of the necessary 
  8604.     subdirectories in a single command (without the /S, this command will fail 
  8605.     because the parent directory C:\ONE\TWO does not exist): 
  8606.  
  8607.                 [c:\] md /s \one\two\three
  8608.  
  8609.  
  8610. ΓòÉΓòÉΓòÉ 3.3.52. MEMORY - Display memory status ΓòÉΓòÉΓòÉ
  8611.  
  8612.  Purpose:    Display the amount and status of Take Command and OS/2 memory. 
  8613.  
  8614.  Format:     MEMORY 
  8615.  
  8616.  Usage: 
  8617.  
  8618.  MEMORY lists the total physical and resident RAM, the largest free block in 
  8619.  RAM, the swap file size, the total and free environment and alias space, and 
  8620.  the total history space. 
  8621.  
  8622.  If the OS/2 swap file is not stored in the \OS2\SYSTEM directory of the boot 
  8623.  drive, you must use the SwapFilePath directive in TCMDOS2.INI or MEMORY will 
  8624.  not be able to display the swap file size. 
  8625.  
  8626.  
  8627. ΓòÉΓòÉΓòÉ 3.3.53. MOVE - Move files to another directory ΓòÉΓòÉΓòÉ
  8628.  
  8629.  Purpose:    Move files to a new directory and drive. 
  8630.  
  8631.  Format:     MOVE  [/A:[[-]rhsda] /C /D /E /F /H /M /N /P /Q /R /S /T /U /V] 
  8632.              source... destination 
  8633.  
  8634.              source :  A file or list of files to move. 
  8635.              destination :  The new location for the files. 
  8636.  
  8637.              /A:(ttribute select)            /P(rompt) 
  8638.              /C(hanged)                      /Q(uiet) 
  8639.              /D(irectory)                    /R(eplace) 
  8640.              /E (No error messages)          /S(ubdirectory tree) 
  8641.              /F(orce delete)                 /T(otal) 
  8642.              /H(idden and system)            /U(pdate) 
  8643.              /M(odified files)               /V(erify) 
  8644.              /N(othing) 
  8645.  
  8646.  See also:  COPY and RENAME. 
  8647.  
  8648.  File Selection: 
  8649.  
  8650.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  8651.  Ranges anywhere on the line apply to all source files. 
  8652.  
  8653.  Usage: 
  8654.  
  8655.  The MOVE command moves one or more files from one directory to another, 
  8656.  whether the directories are on the same drive or not.  It has the same effect 
  8657.  as copying the files to a new location and then deleting the originals.  Like 
  8658.  COPY and RENAME, MOVE works with single files, multiple files, and sets of 
  8659.  files specified with an include list. 
  8660.  
  8661.  The simplest MOVE command moves a single source file to a new location and, 
  8662.  optionally, gives it a new name.  These two examples both move one file from 
  8663.  drive C: to the root directory on drive A: 
  8664.  
  8665.           [c:\] move myfile.dat a:\
  8666.           [c:\] move myfile.dat a:\savefile.dat
  8667.  
  8668.  In both cases, MYFILE.DAT is removed from drive C: after it has been copied to 
  8669.  drive A:.  If a file called MYFILE.DAT in the first example, or SAVEFILE.DAT 
  8670.  in the second example, already existed on drive A:, it would be overwritten. 
  8671.  (This demonstrates the difference between MOVE and RENAME.  MOVE will move 
  8672.  files between drives and will overwrite the destination file if it exists; 
  8673.  RENAME will not.) 
  8674.  
  8675.  When you move a single file, the destination can be a directory name or a file 
  8676.  name.  If it is a directory name, and you add a backslash [\] to the end of 
  8677.  the name, MOVE will display an error message if the name does not refer to an 
  8678.  existing directory.  You can use this feature to keep MOVE from treating a 
  8679.  mistyped destination directory name as a file name, and attempting to move the 
  8680.  source file to that name. 
  8681.  
  8682.  If you MOVE multiple files, the destination must be a directory name.  MOVE 
  8683.  will move each file into the destination directory with its original name.  If 
  8684.  the destination is not a directory, MOVE will display an error message and 
  8685.  exit).  For example, if C:\FINANCE\MYFILES is not a directory, this command 
  8686.  will display an error; otherwise, the files will be moved to that directory:: 
  8687.  
  8688.           [c:\] move *.wks *.txt c:\finance\myfiles
  8689.  
  8690.  The /D option can be used for single or multiple file moves; it checks to see 
  8691.  whether the destination is a directory, and will prompt to see if you want to 
  8692.  create the destination directory if it doesn't exist. 
  8693.  
  8694.  If MOVE creates one or more destination directories, they will be added 
  8695.  automatically to the extended directory search database. 
  8696.  
  8697.  Be careful when you use MOVE with the SELECT command.  If you SELECT multiple 
  8698.  files and the target is not a directory (for example, because of a 
  8699.  misspelling), MOVE will assume it is a file name.  In this case each file will 
  8700.  be moved in turn to the target file, overwriting the previous file, and then 
  8701.  the original will be erased before the next file is moved.  At the end of the 
  8702.  command, all of the original files will have been erased and only the last 
  8703.  file will exist as the target file. 
  8704.  
  8705.  You can avoid this problem by using square brackets with SELECT instead of 
  8706.  parentheses (be sure that you don't allow the command line to get too long -- 
  8707.  watch the character count in the upper left corner while you're selecting 
  8708.  files).  MOVE will then receive one list of files to move instead of a series 
  8709.  of individual filenames, and it will detect the error and halt.  You can also 
  8710.  add a backslash [\] to the end of the destination name to ensure that it is 
  8711.  the name of a subdirectory (see above). 
  8712.  
  8713.  Advanced Features and Options 
  8714.  
  8715.  MOVE first attempts to rename the file(s), which is the fastest way to move 
  8716.  files between subdirectories on the same drive.  If that fails (e.g., because 
  8717.  the destination is on a different drive or already exists), MOVE will copy the 
  8718.  file(s) and then delete the originals. 
  8719.  
  8720.  If MOVE must physically copy the files and delete the originals, rather than 
  8721.  renaming them (see above), then some disk space may be freed on the source 
  8722.  drive.  The free space may be the result of moving the files to another drive, 
  8723.  or of overwriting a larger destination file with a smaller source file.  MOVE 
  8724.  displays the amount of disk space recovered unless the /Q option is used (see 
  8725.  below).  It does so by comparing the amount of free disk space before and 
  8726.  after the MOVE command is executed.  However, this amount may be incorrect if 
  8727.  you are using a deletion tracking system which retains deleted files for later 
  8728.  recovery, or if another program performs a file operation while the MOVE 
  8729.  command is executing. 
  8730.  
  8731.  When physically copying files, MOVE preserves the hidden, system, and read- 
  8732.  only attributes of the source files, and sets the archive attribute of the 
  8733.  destination files.  However, if the files can be renamed, and no copying is 
  8734.  required, then the source file attributes are not changed. 
  8735.  
  8736.  Use caution with the /A: and /H switches (both of which can allow MOVE to 
  8737.  process hidden files) when you are physically moving files and both the source 
  8738.  and destination directories contain file descriptions.  If the source file 
  8739.  specification matches the description file name (normally DESCRIPT.ION), and 
  8740.  you tell MOVE to process hidden files, the DESCRIPT.ION file itself will be 
  8741.  moved, overwriting any existing descriptions in the destination directory. 
  8742.  For example, if the C:\DATA directory contains file descriptions this command 
  8743.  would overwrite any existing descriptions in the D:\SAVE directory: 
  8744.  
  8745.          [c:\data] move /h d*.* d:\save\
  8746.  
  8747.  (If you remove the hidden attribute from the DESCRIPT.ION file the same 
  8748.  caution applies even if you do not use /A: or /H, as DESCRIPT.ION is then 
  8749.  treated like any other file.) 
  8750.  
  8751.  If you move a file from a FAT volume to an HPFS volume, and you do not give an 
  8752.  explicit destination name (i.e., you are moving the file to the current 
  8753.  directory, or your destination name is made up entirely of wildcards), MOVE 
  8754.  will look for a .LONGNAME extended attribute for the source file.  If it finds 
  8755.  that attribute, it will use the long filename for the destination file.  If it 
  8756.  does not, it will use the short name. 
  8757.  
  8758.  Similarly, if you MOVE files with long filenames from an HPFS volume to a FAT 
  8759.  volume, Take Command will create the destination files with short, 
  8760.  FAT-compatible names and save the long filenames in the .LONGNAME extended 
  8761.  attribute. The short name is created by replacing special characters with 
  8762.  underscores, adding numeric digits to the filename (if necessary) to make the 
  8763.  new name unique, and truncating the name to fit with in the "8.3" FAT name 
  8764.  structure. 
  8765.  
  8766.  Options: 
  8767.  
  8768.     /A:     (Attribute select) Select only those files that have the specified 
  8769.             attribute(s) set.  Preceding the attribute character with a hyphen 
  8770.             [-] will select files that do not have that attribute set.  The 
  8771.             colon [:] after /A is required.  The attributes are: 
  8772.  
  8773.                          R  Read-only 
  8774.                          H  Hidden 
  8775.                          S  System 
  8776.                          D  Subdirectory 
  8777.                          A  Archive 
  8778.  
  8779.             If no attributes are listed at all (e.g., MOVE /A: ...), MOVE will 
  8780.             select all files and subdirectories including hidden and system 
  8781.             files.  If attributes are combined, all the specified attributes 
  8782.             must match for a file to be selected.  For example, /A:RHS will 
  8783.             select only those files with all three attributes set. 
  8784.  
  8785.             See the cautionary note under Advanced Features and Options above 
  8786.             before using /A: when both source and destination directories 
  8787.             contain file descriptions. 
  8788.  
  8789.     /C      (Changed files) Move files only if the destination file exists and 
  8790.             is older than the source (see also /U).  This option is useful for 
  8791.             updating the files in one directory from those in another without 
  8792.             moving any newly-created files. 
  8793.  
  8794.     /D      (Directory) Requires that the destination be a directory.  If the 
  8795.             destination does not exist, MOVE will prompt to see if you want to 
  8796.             create it.  If the destination exists as a file, MOVE will fail 
  8797.             with an "Access denied" error.  Use this option to avoid having 
  8798.             MOVE accidentally interpret your destination name as a file name 
  8799.             when it's really a mistyped directory name. 
  8800.  
  8801.     /E      (No error messages) Suppress all non-fatal error messages, such as 
  8802.             "File Not Found."  Fatal error messages, such as "Drive not ready," 
  8803.             will still be displayed.  This option is most useful in batch files 
  8804.             and aliases. 
  8805.  
  8806.     /F      (Force delete) This option forces deletion of the source file 
  8807.             without saving it to the DELDIR directory (if DELDIR is not in use, 
  8808.             /F has no effect).  /F is only effective when MOVE must copy the 
  8809.             source file(s) and delete the originals (i.e., if the destination 
  8810.             is on a different drive or the destination file already exists). 
  8811.             If the files are simply renamed, /F has no effect. 
  8812.  
  8813.     /H      (Hidden) Move all files, including hidden and system files. 
  8814.  
  8815.             See the cautionary note under Advanced Features and Options above 
  8816.             before using /H when both source and destination directories 
  8817.             contain file descriptions. 
  8818.  
  8819.     /M      (Modified files) Move only files that have the archive bit set. 
  8820.             The archive bit will remain set after the MOVE; to clear it use 
  8821.             ATTRIB. 
  8822.  
  8823.     /N      (Nothing) Do everything except actually move the file(s). This 
  8824.             option is most useful for testing what a complex MOVE command will 
  8825.             do. /N does not prevent creation of destination subdirectories when 
  8826.             it is used with /S. 
  8827.  
  8828.     /P      (Prompt) Prompt the user to confirm each move.  Your options at the 
  8829.             prompt are explained in detail under Page and File Prompts. 
  8830.  
  8831.     /Q      (Quiet) Don't display filenames, the total number of files moved, 
  8832.             or the amount of disk space recovered, if any.  This option is most 
  8833.             often used in batch files.  See also /T. 
  8834.  
  8835.     /R      (Replace) Prompt for a Y or N response before overwriting an 
  8836.             existing destination file. 
  8837.  
  8838.     /S      (Subdirectories) Move an entire subdirectory tree to another 
  8839.             location.  MOVE will attempt to create the destination directories 
  8840.             if they don't exist, and will remove empty subdirectories after the 
  8841.             move.  When /D is used with /S, you will be prompted if the first 
  8842.             destination directory does not exist, but subdirectories below that 
  8843.             will be created automatically by MOVE.  If MOVE /S creates one or 
  8844.             more destination directories, they will be added automatically to 
  8845.             the extended directory search database. 
  8846.  
  8847.             If you attempt to use /S to move a subdirectory tree into part of 
  8848.             itself, MOVE will detect the resulting infinite loop, display an 
  8849.             error message and exit. 
  8850.  
  8851.     /T      (Total) Don't display filenames as they are moved, but display the 
  8852.             total number of files deleted and the amount of free disk space 
  8853.             recovered, if any. 
  8854.  
  8855.     /U      (Update) Move each source file only if it is newer than a matching 
  8856.             destination file or if a matching destination file does not exist 
  8857.             (also see /C).  This option is useful for moving new or changed 
  8858.             files from one directory to another. 
  8859.  
  8860.     /V      (Verify) Verify each disk write.  This is the same as executing the 
  8861.             VERIFY ON command, but is only active during the MOVE.  /V does not 
  8862.             read back the file and compare its contents with what was written; 
  8863.             it only verifies that the data written to disk is physically 
  8864.             readable. 
  8865.  
  8866.  
  8867. ΓòÉΓòÉΓòÉ 3.3.54. MSGBOX - Display a message box prompt ΓòÉΓòÉΓòÉ
  8868.  
  8869.  Purpose:    Display a message box and return the user's response. 
  8870.  
  8871.  Format:     MSGBOX OK | OKCANCEL | YESNO | YESNOCANCEL ["title"] prompt 
  8872.  
  8873.              title : Text for the title of the message box. 
  8874.              prompt : Text that will appear inside the message box. 
  8875.  
  8876.  See also:  INKEY, INPUT, and QUERYBOX. 
  8877.  
  8878.  Usage: 
  8879.  
  8880.  MSGBOX can display one of 4 kinds of message boxes and wait for the user's 
  8881.  response.  You can use title and prompt to display any text you wish.  If no 
  8882.  title is specified, the program name ("Take Command for OS/2") is used as the 
  8883.  title.  Take Command automatically sizes and locates the box on the screen. 
  8884.  
  8885.  The message box may have 1, 2, or 3 response buttons.  The command MSGBOX OK 
  8886.  creates a single-button box; the user must simply acknowledge the prompt text. 
  8887.  
  8888.  The OKCANCEL and YESNO forms have 2 buttons each.  The YESNOCANCEL form has 3 
  8889.  buttons.  The button the user chooses is returned in the Take Command variable 
  8890.  %_?.  Be sure to save the return value in another variable or test it 
  8891.  immediately, because the value of %_? changes with every internal command. 
  8892.  
  8893.  The following list shows the value returned for each selection: 
  8894.  
  8895.           Yes:    10
  8896.           No:     11
  8897.           OK:     10
  8898.           Cancel: 12
  8899.  
  8900.  If you exit the message box without selecting one of these options, MSGBOX 
  8901.  will set %_? to 0.  If there is an error in the MSGBOX command itself, %_? 
  8902.  will be set to 1 for a syntax error or 2 for any other error. 
  8903.  
  8904.  For example, to display a Yes or No message box and take action depending on 
  8905.  the result, you could use commands like this: 
  8906.  
  8907.           msgbox yesno "Copy" Copy all files to A:?
  8908.           if %_? == 10 copy *.* a:
  8909.  
  8910.  MSGBOX creates a popup dialog box.  If you prefer to retrieve input from 
  8911.  inside the command line window, see the INKEY and INPUT commands. 
  8912.  
  8913.  
  8914. ΓòÉΓòÉΓòÉ 3.3.55. ON - Trap errors in batch files ΓòÉΓòÉΓòÉ
  8915.  
  8916.  Purpose:    Execute a command in a batch file when a specific condition 
  8917.              occurs. 
  8918.  
  8919.  Format:     ON BREAK [command ] 
  8920.                 or 
  8921.              ON ERROR [command ] 
  8922.                 or 
  8923.              ON ERRORMSG [command ] 
  8924.  
  8925.  Usage: 
  8926.  
  8927.  ON can only by used in batch files. 
  8928.  
  8929.  ON sets a "watchdog" that remains in effect for the duration of the current 
  8930.  batch file.  Whenever a BREAK or ERROR condition occurs after ON has been 
  8931.  executed, the command is automatically executed. 
  8932.  
  8933.  ON sets a "watchdog" that remains in effect for the duration of the current 
  8934.  batch file.  Whenever a BREAK or ERROR condition occurs after ON has been 
  8935.  executed, the corresponding command is automatically executed. 
  8936.  
  8937.  ON BREAK will execute the command if the user presses Ctrl-C or Ctrl-Break. 
  8938.  
  8939.  ON ERROR and ON ERRORMSG will execute the command after any critical error, 
  8940.  operating system error (such as a disk write error, or a Take Command error 
  8941.  (such as a COPY command that fails to copy any files, or the use of an invalid 
  8942.  command option). 
  8943.  
  8944.  ON ERROR executes the command immediately after the error occurs, without 
  8945.  displaying any command processor error message (operating system errors may 
  8946.  still be displayed).  ON ERRORMSG displays the appropriate error message, then 
  8947.  executes the command.  If both are specified, ON ERROR will take precedence, 
  8948.  and ON ERRORMSG will be ignored.  The remainder of this section discusses both 
  8949.  settings, using the term "ON ERROR[MSG]". 
  8950.  
  8951.  ON BREAK and ON ERROR[MSG] are independent of each other.  You can use either 
  8952.  one, or both, in any batch file. 
  8953.  
  8954.  Each time ON BREAK or ON ERROR[MSG] is used, it defines a new command to be 
  8955.  executed for a break or error, and any old command is discarded.  If you use 
  8956.  ON BREAK or ON ERROR[MSG] with no following command, that type of error 
  8957.  handling is disabled. Error handling is also automatically disabled when the 
  8958.  batch file exits. 
  8959.  
  8960.  ON BREAK and ON ERROR[MSG] only affect the current batch file.  If you CALL 
  8961.  another batch file, the first batch file's error handling is suspended, and 
  8962.  the CALLed file must define its own error handling. When control returns to 
  8963.  the first batch file, its error handling is reactivated. 
  8964.  
  8965.  The command can be any command that can be used on a batch file line by 
  8966.  itself.  Frequently, it is a GOTO or GOSUB command.  For example, the 
  8967.  following fragment traps any user attempt to end the batch file by pressing 
  8968.  Ctrl-C or Ctrl-Break.  It scolds the user for trying to end the batch file, 
  8969.  then continues: 
  8970.  
  8971.           on break gosub gotabreak
  8972.           do i = 1 to 1000
  8973.             echo %i
  8974.           enddo
  8975.           quit
  8976.           :gotabreak
  8977.           echo Hey!  Stop that!!
  8978.           return
  8979.  
  8980.  You can use a command group as the command if you want to execute multiple 
  8981.  commands, for example: 
  8982.  
  8983.           on break (echo Oops, got a break! & quit)
  8984.  
  8985.  ON BREAK and ON ERROR[MSG] always assume that you want to continue executing 
  8986.  the batch file.  After the command is executed, control automatically returns 
  8987.  to the next command in the batch file (the command after the one that was 
  8988.  interrupted by the break or error).  To avoid continuing the batch file after 
  8989.  a break or error is for the command can transfer control with GOTO, end the 
  8990.  batch file with QUIT or CANCEL, or start another batch file (without CALLing 
  8991.  it). 
  8992.  
  8993.  When handling an error condition with ON ERROR[MSG], you may find it useful to 
  8994.  use internal variables, particularly %_? and %_SYSERR, to help determine the 
  8995.  cause of the error. 
  8996.  
  8997.  The ON ERROR[MSG] command will not be invoked if an error occurs while reading 
  8998.  or writing redirected input, output, or a pipe. 
  8999.  
  9000.  Caution:  If a break or error occurs while the command specified in ON BREAK 
  9001.  or ON ERROR[MSG] is executing, the command will be restarted. This means you 
  9002.  must use caution to avoid or handle any possible errors in the commands 
  9003.  invoked by ON ERROR[MSG], since such errors can cause an infinite loop. 
  9004.  
  9005.  
  9006. ΓòÉΓòÉΓòÉ 3.3.56. OPTION - Configure Take Command ΓòÉΓòÉΓòÉ
  9007.  
  9008.  Purpose:    Modify Take Command configuration. 
  9009.  
  9010.  Format:     OPTION [//optname=value ...] 
  9011.  
  9012.              optname :  An INI file directive to set or modify. 
  9013.              value :  A new value for that directive. 
  9014.  
  9015.  See also:  The TCMDOS2.INI file. 
  9016.  
  9017.  Usage: 
  9018.  
  9019.  OPTION displays a settings notebook which allows you to modify many of the 
  9020.  configuration options stored in the TCMDOS2.INI file. 
  9021.  
  9022.  When you exit from the notebook, you can select Save to save your changes in 
  9023.  the .INI file for use in the current session and all future sessions, select 
  9024.  OK to use your changes in the current session only, or select Cancel to 
  9025.  discard the changes. 
  9026.  
  9027.  OPTION does not preserve comments when saving modified settings in the .INI 
  9028.  file.  To be sure .INI file comments are preserved, put them on separate lines 
  9029.  in the file.  See TCMDOS2.INI for additional details. 
  9030.  
  9031.  Setting Individual Options 
  9032.  
  9033.  If you follow the OPTION command with one or more sequences of a double slash 
  9034.  mark [//] followed by an option=value setting, the OPTION notebook will not 
  9035.  appear.  Instead, the new settings will take effect immediately, and will be 
  9036.  in effect for the current session only.  This example turns off batch file 
  9037.  echo and changes the input colors to bright cyan on black: 
  9038.  
  9039.           [c:\] option //BatchEcho = No //InputColors = bri cya on bla
  9040.  
  9041.  Option names and values may contain whitespace.  However, you cannot enter an 
  9042.  option value which contains the "//" string. 
  9043.  
  9044.  This feature is most useful for testing settings quickly, and in aliases or 
  9045.  batch files which depend on certain options being in effect. 
  9046.  
  9047.  Changes made with // are temporary.  They will not be saved in the .INI file, 
  9048.  even if you subsequently load the option notebook and select Save. 
  9049.  
  9050.  
  9051. ΓòÉΓòÉΓòÉ 3.3.57. PATH - Set the executable search path ΓòÉΓòÉΓòÉ
  9052.  
  9053.  Purpose:    Display or alter the list of directories that Take Command will 
  9054.              search for executable files, batch files, and files with 
  9055.              executable extensions that are not in the current directory. 
  9056.  
  9057.  Format:     PATH [directory[;directory ...]] 
  9058.  
  9059.              directory :  The full name of a directory to include in the path 
  9060.              setting. 
  9061.  
  9062.  See also:  ESET and SET. 
  9063.  
  9064.  Usage: 
  9065.  
  9066.  When Take Command is asked to execute an external command, it first looks for 
  9067.  the file in the current directory.  If it fails to find an executable file in 
  9068.  the current directory, it then searches each of the directories specified in 
  9069.  the PATH setting. 
  9070.  
  9071.  For example, after the following PATH command, Take Command will search for an 
  9072.  executable file in four directories:  the current directory, then the root 
  9073.  directory on drive C, then the BIN subdirectory on C, and then the UTIL 
  9074.  subdirectory on C: 
  9075.  
  9076.           [c:\] path c:\;c:\bin;c:\util
  9077.  
  9078.  The list of directories to search is stored as an environment string, and can 
  9079.  also be set or viewed with SET, and edited with ESET. 
  9080.  
  9081.  Directory names in the path must be separated by semicolons [;]. Each 
  9082.  directory name is shifted to upper case to maintain compatibility with 
  9083.  programs which can only recognize upper case directory names in the path.  If 
  9084.  you modify your path with the SET or ESET command, you may include directory 
  9085.  names in lower case.  These may cause trouble with some programs, which assume 
  9086.  that all path entries have been shifted to upper case. 
  9087.  
  9088.  On HPFS drives, some directory names may include spaces or other special 
  9089.  characters.  Unlike other commands where quotes are required, such names 
  9090.  should not be quoted in the PATH. 
  9091.  
  9092.  If you enter PATH with no parameters, the current path is displayed: 
  9093.  
  9094.           [c:\] path
  9095.           PATH=C:\;C:\BIN;C:\UTIL
  9096.  
  9097.  Entering PATH and a semicolon clears the search path so that only the current 
  9098.  directory is searched for executable files (this is the default at system 
  9099.  startup). 
  9100.  
  9101.  Some applications also use the PATH to search for their data files. 
  9102.  
  9103.  If you include an explicit file extension on a command name (for example, 
  9104.  WP.EXE), the search will find files with that name and extension in the 
  9105.  current directory and every directory in the path. It will not locate other 
  9106.  executable files with the same base name (e.g., WP.COM). 
  9107.  
  9108.  If you have an entry in the path which consists of a single period [.], the 
  9109.  current directory will not be searched first, but instead will be searched 
  9110.  when Take Command reaches the "." in the path. This allows you to delay the 
  9111.  search of the current directory for executable files and files with executable 
  9112.  extensions.  In rare cases, this feature may not be compatible with 
  9113.  applications which use the path to find their files; if you experience a 
  9114.  problem, you will have to remove the "." from the path while using any such 
  9115.  application. 
  9116.  
  9117.  To create a path longer than the command-line length limit, use PATH 
  9118.  repeatedly to append additional directories to the path: 
  9119.  
  9120.           path [first list of directories]
  9121.           path %path;[second list of directories]
  9122.           ...
  9123.  
  9124.  You cannot use this method to extend the path beyond 2,042 characters (the 
  9125.  internal buffer limit, with room for "PATH ").  It is usually more efficient 
  9126.  to use aliases to load application programs than to create a long PATH.  See 
  9127.  ALIAS for details. 
  9128.  
  9129.  If you specify an invalid directory in the path, it will be skipped and the 
  9130.  search will continue with the next directory in the path. 
  9131.  
  9132.  
  9133. ΓòÉΓòÉΓòÉ 3.3.58. PAUSE - Suspend batch file execution ΓòÉΓòÉΓòÉ
  9134.  
  9135.  Purpose:    Suspend batch file or alias execution. 
  9136.  
  9137.  Format:     PAUSE [text ] 
  9138.  
  9139.              text :  The message to be displayed as a user prompt. 
  9140.  
  9141.  Usage: 
  9142.  
  9143.  A PAUSE command will suspend execution of a batch file or alias, giving you 
  9144.  the opportunity to change disks, turn on the printer, etc. 
  9145.  
  9146.  PAUSE waits for any key to be pressed and then continues execution.  You can 
  9147.  specify the text that PAUSE displays while it waits for a keystroke, or let it 
  9148.  use the default message: 
  9149.  
  9150.           Press any key when ready...
  9151.  
  9152.  For example, the following batch file fragment prompts the user before erasing 
  9153.  files: 
  9154.  
  9155.           pause Press Ctrl-C to abort, any other key to erase all .LST files
  9156.           erase *.lst
  9157.  
  9158.  If you press Ctrl-C or Ctrl-Break while PAUSE is waiting for a key, execution 
  9159.  of an alias will be terminated, and execution of a batch file will be 
  9160.  suspended while you are asked whether to cancel the batch job.  A batch file 
  9161.  can handle Ctrl-C and Ctrl-Break itself with the ON BREAK  command. 
  9162.  
  9163.  
  9164. ΓòÉΓòÉΓòÉ 3.3.59. POPD - Restore previous directory ΓòÉΓòÉΓòÉ
  9165.  
  9166.  Purpose:    Return to the disk drive and directory at the top of the directory 
  9167.              stack. 
  9168.  
  9169.  Format:     POPD [*] 
  9170.  
  9171.  See also:  DIRS , PUSHD and Directory Navigation. 
  9172.  
  9173.  Usage: 
  9174.  
  9175.  Each time you use the PUSHD command, it saves the current disk drive and 
  9176.  directory on the internal directory stack.  POPD restores the last drive and 
  9177.  directory that was saved with PUSHD and removes that entry from the stack. You 
  9178.  can use these commands together to change directories, perform some work, and 
  9179.  return to the starting drive and directory. 
  9180.  
  9181.  Directory changes made with POPD are recorded in the directory history list 
  9182.  and can be displayed in the directory history window.  Read the section on 
  9183.  Directory Navigation for complete details on this and other directory 
  9184.  navigation features. 
  9185.  
  9186.  This example saves and changes the current disk drive and directory with 
  9187.  PUSHD, and then restores it.  The current directory is shown in the prompt: 
  9188.  
  9189.           [c:\] pushd d:\database\test
  9190.           [d:\database\test] pushd c:\wordp\memos
  9191.           [c:\wordp\memos] pushd a:\123
  9192.           [a:\123] popd
  9193.           [c:\wordp\memos] popd
  9194.           [d:\database\test] popd
  9195.           [c:\]
  9196.  
  9197.  You can use the DIRS command to see the complete list of saved drives and 
  9198.  directories (the directory stack). 
  9199.  
  9200.  The POPD command followed by an asterisk [*] clears the directory stack 
  9201.  without changing the current drive and directory. 
  9202.  
  9203.  If the directory on the top of the stack is not on the current drive, POPD 
  9204.  will switch to the drive and directory on the top of the stack without 
  9205.  changing the default directory on the current drive. 
  9206.  
  9207.  
  9208. ΓòÉΓòÉΓòÉ 3.3.60. PROMPT - Change command-line prompt ΓòÉΓòÉΓòÉ
  9209.  
  9210.  Purpose:    Change the command-line prompt. 
  9211.  
  9212.  Format:     PROMPT [text ] 
  9213.  
  9214.              text :  Text to be used as the new command-line prompt. 
  9215.  
  9216.  Usage: 
  9217.  
  9218.  You can change and customize the command-line prompt at any time. The prompt 
  9219.  can include normal text, and system information such as the current drive and 
  9220.  directory, the time and date, and the amount of memory available. You can 
  9221.  create an informal "Hello, Bob!" prompt or an official-looking prompt full of 
  9222.  impressive information. 
  9223.  
  9224.  The prompt text can contain special commands in the form $?, where ? is one of 
  9225.  the characters listed below: 
  9226.  
  9227.         b     The vertical bar character [|]. 
  9228.         c     The open parenthesis [(]. 
  9229.         d     Current date, in the format:  Fri  12-12- 97 (the month, day, and 
  9230.               year are formatted according to your current country settings). 
  9231.         D     Current date, in the format:  Fri  Dec 12, 1997. 
  9232.         e     The ASCII ESC character (decimal 27). 
  9233.         f     The close parenthesis [)]. 
  9234.         g     The > character. 
  9235.         h     Backspace over the previous character. 
  9236.         l     The < character. 
  9237.         m     Time in hours and minutes using 24-hour format. 
  9238.         M     Time in hours and minutes using the default country format. 
  9239.         n     Current drive letter. 
  9240.         p     Current directory on drive (lower case): (including drive 
  9241.               letter), in lower case. 
  9242.         P     Current directory on drive (upper case on drives which do not 
  9243.               support long file names, directory names shown in mixed case as 
  9244.               stored on HPFS drives).: (including drive letter), in upper case. 
  9245.         q     The = character. 
  9246.         r     The numeric exit code of the last external command. 
  9247.         s     The space character. 
  9248.         t     Current 24-hour time, in the format hh:mm:ss. 
  9249.         T     Current 12-hour time, in the format hh:mm:ss[a|p]. 
  9250.         v     Operating system version number, in the format 3.10. 
  9251.         xd:   Current directory on drive d:, in lower case, including the drive 
  9252.               letter. (Uses the actual case of the directory name as stored on 
  9253.               the disk for HPFS drives). 
  9254.         Xd:   Current directory on drive d:, in upper case, including the drive 
  9255.               letter. 
  9256.         z     Current shell nesting level.  The first copy of Take Command is 
  9257.               shell 0, and each subsequent copy increments the level by 1. 
  9258.         +     Display one + character for each directory on the PUSHD directory 
  9259.               stack. 
  9260.         $     The $ character. 
  9261.         _     CR/LF (go to beginning of a new line). 
  9262.  
  9263.  For example, to set the prompt to the current date and time, with a ">" at the 
  9264.  end: 
  9265.  
  9266.           [c:\] prompt $d $t $g
  9267.           Fri  Jun 6, 1997 10:29:19 >
  9268.  
  9269.  The Take Command prompt can be set in TCSTART, or in any batch file that runs 
  9270.  when Take Command starts.  The Take Command default prompt is [$n](drive name 
  9271.  in square brackets) on floppy drives, and [$p] (current drive and directory in 
  9272.  square brackets) on all other drives. 
  9273.  
  9274.  If you enter PROMPT with no arguments, the prompt will be reset to its default 
  9275.  value.  The PROMPT command sets the environment variable PROMPT, so to view 
  9276.  the current prompt setting use the command: 
  9277.  
  9278.           [c:\] set prompt
  9279.  
  9280.  (If the prompt is not set at all, the PROMPT environment variable will not be 
  9281.  used, in which case the SET command above will give a "Not in environment" 
  9282.  error.) 
  9283.  
  9284.  Along with literal text and special characters, you can include the text of 
  9285.  any environment variable, internal variable, or variable function in a prompt. 
  9286.  For example, if you want to include the size of the largest free memory block 
  9287.  in the command prompt, plus the current drive and directory, you could use 
  9288.  this command: 
  9289.  
  9290.           [c:\] prompt (%%@dosmem[K]K) [$p]
  9291.           (31043K) [c:\data]
  9292.  
  9293.  Notice that the @DOSMEM function is shown with two leading percent signs [%]. 
  9294.  If you used only one percent sign, the @DOSMEM function would be expanded once 
  9295.  when the PROMPT command was executed, instead of every time the prompt is 
  9296.  displayed.  As a result, the amount of memory would never change from the 
  9297.  value it had when you entered the PROMPT command.  You can also use back 
  9298.  quotes to delay expanding the variable function until the prompt is displayed: 
  9299.  
  9300.           [c:\] prompt `(%@dosmem[K]K) [$p]`
  9301.  
  9302.  You can use this feature along with the @EXEC variable function to create a 
  9303.  complex prompt which not only displays information but executes commands.  For 
  9304.  example, to execute an alias which checks battery status each time the prompt 
  9305.  is displayed (enter the alias on one line): 
  9306.  
  9307.           [c:\] alias cbatt `if %_apmlife lt 30 beep 440 4 880 4 440 4 880
  9308.   4`
  9309.           [c:\] prompt `%@exec[@cbatt]$p$g`
  9310.  
  9311.  You can include ANSI escape sequences in the PROMPT text using Take Command's 
  9312.  built-in ANSI support. This example uses ANSI sequences to set a prompt that 
  9313.  displays the shell level, date, time and path in color on the top line of the 
  9314.  screen (enter the command as one line): 
  9315.  
  9316.           [c:\] prompt $e[s$e[1;1f$e[41;1;37m$e[K[$z] $d
  9317.                 Time: $t$h$h$h  Path: $p$e[u$e[0;32m$n$g
  9318.  
  9319.  
  9320. ΓòÉΓòÉΓòÉ 3.3.61. PUSHD - Save current directory ΓòÉΓòÉΓòÉ
  9321.  
  9322.  Purpose:    Save the current disk drive and directory, optionally changing to 
  9323.              a new drive and directory. 
  9324.  
  9325.  Format:     PUSHD [path ] 
  9326.  
  9327.              path :  The name of the new default drive and directory. 
  9328.  
  9329.  See also:  DIRS, POPD and Directory Navigation. 
  9330.  
  9331.  Usage: 
  9332.  
  9333.  PUSHD saves the current drive and directory on a "last in, first out" 
  9334.  directory stack.  The POPD command returns to the last drive and directory 
  9335.  that was saved by PUSHD.  You can use these commands together to change 
  9336.  directories, perform some work, and return to the starting drive and 
  9337.  directory.  The DIRS command displays the contents of the directory stack. 
  9338.  
  9339.  To save the current drive and directory, without changing directories, use the 
  9340.  PUSHD command by itself, with no path. 
  9341.  
  9342.  If a path is specified as part of the PUSHD command, the current drive and 
  9343.  directory are saved and PUSHD changes to the specified drive and directory. 
  9344.  If the path includes a drive letter, PUSHD changes to the specified directory 
  9345.  on the new drive without changing the current directory on the original drive. 
  9346.  
  9347.  This example saves the current directory and changes to C:\WORDP\MEMOS, then 
  9348.  returns to the original directory: 
  9349.  
  9350.           [c:\] pushd \wordp\memos
  9351.           [c:\wordp\memos] popd
  9352.           [c:\]
  9353.  
  9354.  When you use PUSHD to change to a directory on an HPFS drive, you must quote 
  9355.  the path name if it contains whitespace or special characters. 
  9356.  
  9357.  PUSHD can also change to a network drive and directory specified with a UNC 
  9358.  name. 
  9359.  
  9360.  If PUSHD cannot change to the directory you have specified it will attempt to 
  9361.  search the CDPATH and the extended directory search database.  You can also 
  9362.  use wildcards in the path to force an extended directory search.  Read the 
  9363.  section on Directory Navigation for complete details on these and other 
  9364.  directory navigation features. 
  9365.  
  9366.  Directory changes made with PUSHD are also recorded in the directory history 
  9367.  list and can be displayed in the directory history window. 
  9368.  
  9369.  The directory stack can hold up to 511 characters, or between 20 and 40 
  9370.  typical entries (depending on the length of the names).  If you exceed this 
  9371.  limit, the oldest entry is removed before adding a new entry. 
  9372.  
  9373.  
  9374. ΓòÉΓòÉΓòÉ 3.3.62. QUERYBOX - Popup dialog for input ΓòÉΓòÉΓòÉ
  9375.  
  9376.  Purpose:    Use a dialog box to get an input string from the user and save it 
  9377.              in an environment variable. 
  9378.  
  9379.  Format:     QUERYBOX /E /Ln ["title"] prompt %%varname 
  9380.  
  9381.              title: Text for the title bar of the dialog box. 
  9382.              prompt: Text that will appear inside the dialog box. box. 
  9383.              varname : Variable name where the input will be saved. 
  9384.  
  9385.              /E (dit existing value) 
  9386.              /L (maximum Length) 
  9387.  
  9388.  See also:  INKEY, INPUT, and MSGBOX. 
  9389.  
  9390.  Usage: 
  9391.  
  9392.  QUERYBOX displays a dialog box with a prompt, an optional title, and a string 
  9393.  input field.  Then it waits for your entry, and places any characters you type 
  9394.  into an environment variable.  QUERYBOX is normally used in batch files and 
  9395.  aliases to get string input. 
  9396.  
  9397.  QUERYBOX is similar to INPUT, except that it appears as a popup dialog box. If 
  9398.  you prefer to work within the command line window, see the INKEY and INPUT 
  9399.  commands. 
  9400.  
  9401.  Standard command-line editing keys may be used to edit the input string as it 
  9402.  is entered.  All characters entered up to, but not including, the carriage 
  9403.  return are stored in the variable. 
  9404.  
  9405.  This example prompts for a string and store it in the variable NAME: 
  9406.  
  9407.           querybox "File Name" Enter a name:  %%name
  9408.  
  9409.  If you press Ctrl-C or Ctrl-Break while QUERYBOX is waiting for input, 
  9410.  execution of an alias will be terminated, and execution of a batch file will 
  9411.  be suspended while you are asked whether to cancel the batch job.  A batch 
  9412.  file can handle Ctrl-C and Ctrl-Break itself with ON BREAK. 
  9413.  
  9414.  Options: 
  9415.  
  9416.     /E      (Edit existing value) Allows you to edit an existing value.  If 
  9417.             there is no existing value for varname, QUERYBOX allows you to 
  9418.             enter a new value. 
  9419.  
  9420.     /Ln     (Length) Sets the maximum number of characters which QUERYBOX will 
  9421.             accept to "n". 
  9422.  
  9423.  
  9424. ΓòÉΓòÉΓòÉ 3.3.63. QUIT - Exit batch file ΓòÉΓòÉΓòÉ
  9425.  
  9426.  Purpose:    Terminate the current batch file. 
  9427.  
  9428.  Format:     QUIT [value ] 
  9429.  
  9430.              value :  The numeric exit code to Take Command or to the previous 
  9431.              batch file. 
  9432.  
  9433.  See also:  CANCEL. 
  9434.  
  9435.  Usage: 
  9436.  
  9437.  QUIT provides a simple way to exit a batch file before reaching the end of the 
  9438.  file.  If you QUIT a batch file called from another batch file, you will be 
  9439.  returned to the previous file at the line following the original CALL. 
  9440.  
  9441.  This example batch file fragment checks to see if the user entered "quit" and 
  9442.  exits if true. 
  9443.  
  9444.           input  Enter your choice :  %%option
  9445.           if  "%option" == "quit"  quit
  9446.  
  9447.  QUIT only ends the current batch file.  To end all batch file processing, use 
  9448.  the CANCEL command. 
  9449.  
  9450.  If you specify a value, QUIT will set the ERRORLEVEL or exit code to that 
  9451.  value.  For information on exit codes see the IF command, and the %? variable. 
  9452.  
  9453.  You can also use QUIT to terminate an alias.  If you QUIT an alias while 
  9454.  inside a batch file, QUIT will end both the alias and the batch file and 
  9455.  return you to the command prompt or to the calling batch file. 
  9456.  
  9457.  
  9458. ΓòÉΓòÉΓòÉ 3.3.64. RD - Remove subdirectory ΓòÉΓòÉΓòÉ
  9459.  
  9460.  Purpose:    Remove one or more subdirectories. 
  9461.  
  9462.  Format:     RD path... 
  9463.                 or 
  9464.              RMDIR path... 
  9465.  
  9466.              path :  The name of one or more subdirectories to remove. 
  9467.  
  9468.  See also:  MD. 
  9469.  
  9470.  File Selection: 
  9471.  
  9472.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  9473.  
  9474.  Usage: 
  9475.  
  9476.  RD and RMDIR are synonyms.  You can use either one. 
  9477.  
  9478.  RD removes directories from the directory tree.  For example, to remove the 
  9479.  subdirectory MEMOS from the subdirectory WP, you can use this command: 
  9480.  
  9481.           [c:\] rd \wp\memos
  9482.  
  9483.  Before using RD, you must delete all files and subdirectories (and their 
  9484.  files) in the path you want to remove.  Remember to remove hidden and 
  9485.  read-only files as well as normal files (you can use DEL /Z to delete hidden 
  9486.  and read-only files). 
  9487.  
  9488.  You cannot use wildcards in the path. 
  9489.  
  9490.  When removing a directory on an HPFS drive, you must quote any path which 
  9491.  contains whitespace or special characters. 
  9492.  
  9493.  If RD deletes one or more directories, they will be deleted automatically from 
  9494.  the extended directory search database. 
  9495.  
  9496.  You cannot remove the root directory, the current directory (.), any directory 
  9497.  above the current directory in the directory tree, or any directory in use by 
  9498.  another process. 
  9499.  
  9500.  
  9501. ΓòÉΓòÉΓòÉ 3.3.65. REBOOT - Reboot or shutdown the computer ΓòÉΓòÉΓòÉ
  9502.  
  9503.  Purpose:    Do a system reboot. 
  9504.  
  9505.  Format:     REBOOT [/S /V] 
  9506.  
  9507.              /S(hutdown) 
  9508.              /V(erify) 
  9509.  
  9510.  Usage: 
  9511.  
  9512.  REBOOT will restart your computer.  It normally performs a warm reboot, which 
  9513.  is comparable to pressing Ctrl-Alt-Delete.  The following example prompts you 
  9514.  to verify the reboot, then does a warm boot: 
  9515.  
  9516.           [c:\] reboot /v
  9517.  
  9518.  REBOOT defaults to performing a warm boot, with no prompting. 
  9519.  
  9520.  REBOOT flushes the disk buffers, resets the drives, and waits one second 
  9521.  before rebooting, to allow disk caching programs to finish writing any cached 
  9522.  data.  Take Command issues the proper commands to shut down OS/2 before 
  9523.  rebooting. 
  9524.  
  9525.  Options: 
  9526.  
  9527.     /S      (Shutdown) Shut down the system, but do not reboot.  This option is 
  9528.             equivalent to clicking the "Shutdown" choice on the OS/2 Workplace 
  9529.             Shell popup menu. 
  9530.  
  9531.     /V      (Verify) Prompt for confirmation (Y or N) before rebooting or 
  9532.             taking the action specified by other REBOOT options. 
  9533.  
  9534.  
  9535. ΓòÉΓòÉΓòÉ 3.3.66. REM - Add comment to batch file ΓòÉΓòÉΓòÉ
  9536.  
  9537.  Purpose:    Put a comment in a batch file. 
  9538.  
  9539.  Format:     REM [comment ] 
  9540.  
  9541.              comment :  The text to include in the batch file. 
  9542.  
  9543.  Usage: 
  9544.  
  9545.  The REM command lets you place a remark or comment in a batch file.  Batch 
  9546.  file comments are useful for documenting the purpose of a batch file and the 
  9547.  procedures you have used.  For example: 
  9548.  
  9549.           rem This batch file provides a
  9550.           rem menu-based system for accessing
  9551.           rem word processing utilities.
  9552.           rem
  9553.           rem Clear the screen and get selection
  9554.           cls
  9555.  
  9556.  REM must be followed by a space or tab character and then your comment. 
  9557.  Comment lines can be up to 1,023 characters long.  Take Command will normally 
  9558.  ignore everything on the line after the REM command, including quote 
  9559.  characters, redirection symbols, and other commands (see below for the 
  9560.  exception to this rule). 
  9561.  
  9562.  If ECHO is ON, the comment is displayed.  Otherwise, it is ignored. If ECHO is 
  9563.  ON and you don't want to display the line, preface the REM command with an at 
  9564.  sign [@]. 
  9565.  
  9566.  You can also place a comment in a batch file by starting the comment line with 
  9567.  two colons [::].  In essence this creates a batch file "label" without a valid 
  9568.  label name.  Such comments are processed slightly faster than those entered 
  9569.  with REM, because they do not require the command processor to handle a 
  9570.  command. 
  9571.  
  9572.  When debugging a batch file, you may find it convenient to use REM to 
  9573.  temporarily disable certain commands.  Simply add "REM " at the start of any 
  9574.  command to convert it temporarily to a comment. 
  9575.  
  9576.  You can use REM to create a zero-byte file if you use a redirection symbol 
  9577.  immediately after the REM command.  For example, to create the zero-byte file 
  9578.  C:\FOO: 
  9579.  
  9580.           [c:\] rem>foo
  9581.  
  9582.  (This capability is included for compatibility with traditional command 
  9583.  processors.  A simpler method for creating a zero-byte file with Take Command 
  9584.  is to use >filename as a command, with no actual command before the [>] 
  9585.  redirection character.) 
  9586.  
  9587.  
  9588. ΓòÉΓòÉΓòÉ 3.3.67. REN - Rename files ΓòÉΓòÉΓòÉ
  9589.  
  9590.  Purpose:    Rename files or subdirectories. 
  9591.  
  9592.  Format:     REN [/A:[[-]rhsda] /E /N /P /Q /S /T] old_name... new_name 
  9593.                 or 
  9594.              RENAME [/A:[[-]rhsda] /E /N /P /Q /S /T] old_name... new_name 
  9595.  
  9596.              old_name :  Original name of the file(s) or subdirectory. 
  9597.              new_name :  New name to use, or new path on the same drive. 
  9598.  
  9599.              /A: (Attribute select)          /Q(uiet) 
  9600.              /E (No error messages)          /S(ubdirectory) 
  9601.              /N(othing)                      /T(otal) 
  9602.              /P(rompt) 
  9603.  
  9604.  See also:  COPY and MOVE. 
  9605.  
  9606.  File Selection: 
  9607.  
  9608.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  9609.  
  9610.  Usage: 
  9611.  
  9612.  REN and RENAME are synonyms.  You may use either one. 
  9613.  
  9614.  REN lets you change the name of a file or a subdirectory, or move one or more 
  9615.  files to a new subdirectory on the same drive.  (If you want to move files to 
  9616.  a different drive, use MOVE.) 
  9617.  
  9618.  In its simplest form, you simply give REN the old_name of an existing file or 
  9619.  subdirectory and then a new_name.  The new_name must not already exist -- you 
  9620.  can't give two files the same name (unless they are in different directories). 
  9621.  The first example renames the file MEMO.TXT to MEM.TXT.  The second example 
  9622.  changes the name of the \WORD directory to \WP: 
  9623.  
  9624.           [c:\] rename memo.txt mem.txt
  9625.           [c:\] rename \word \wp
  9626.  
  9627.  If you use REN to rename a directory, the extended directory search database 
  9628.  will be automatically updated to reflect the change. 
  9629.  
  9630.  When you rename files on an HPFS drive, you must quote any file names which 
  9631.  contain whitespace or special characters. 
  9632.  
  9633.  You can also use REN to rename a group of files that you specify with 
  9634.  wildcards, as multiple files, or in an include list.  When you do, the 
  9635.  new_name must use one or more wildcards to show what part of each filename to 
  9636.  change.  Both of the next two examples change the extensions of multiple files 
  9637.  to .SAV: 
  9638.  
  9639.           [c:\] ren config.sys autoexec.bat tcstart.btm *.sav
  9640.           [c:\] ren *.txt *.sav
  9641.  
  9642.  REN can move files to a different subdirectory on the same drive. When it is 
  9643.  used for this purpose, REN requires one or more filenames for the old_name and 
  9644.  a directory name for the new_name: 
  9645.  
  9646.           [c:\] ren memo.txt \wp\memos\
  9647.           [c:\] ren oct.dat nov.dat \data\save\
  9648.  
  9649.  The final backslash in the last two examples is optional.  If you use it, you 
  9650.  force REN to recognize the last argument as the name of a directory, not a 
  9651.  file.  The advantage of this approach is that if you accidentally mistype the 
  9652.  directory name, REN will report an error instead of renaming your files in a 
  9653.  way that you didn't intend. 
  9654.  
  9655.  Finally, REN can move files to a new directory and change their name at the 
  9656.  same time if you specify both a path and file name for new_name. In this 
  9657.  example, the files are renamed with an extension of .SAV as they are moved to 
  9658.  a new directory: 
  9659.  
  9660.           [c:\] ren *.dat \data\save\*.sav
  9661.  
  9662.  Also, you cannot rename a subdirectory to a new location on the directory 
  9663.  tree. 
  9664.  
  9665.  REN does not change a file's attributes.  The new_namefile(s) will have the 
  9666.  same attributes as old_name. 
  9667.  
  9668.  Options: 
  9669.  
  9670.     /A:     (Attribute select) Select only those files that have the specified 
  9671.             attribute(s) set.  Preceding the attribute character with a hyphen 
  9672.             [-] will select files that do not have that attribute set.  The 
  9673.             colon [:] after /A is required.  The attributes are: 
  9674.  
  9675.                          R  Read-only 
  9676.                          H  Hidden 
  9677.                          S  System 
  9678.                          D  Subdirectory 
  9679.                          A  Archive 
  9680.  
  9681.             If no attributes are listed at all (e.g., REN /A: ...), REN will 
  9682.             select all files and subdirectories including hidden and system 
  9683.             files.  If attributes are combined, all the specified attributes 
  9684.             must match for a file to be selected.  For example, /A:RHS will 
  9685.             select only those files with all three attributes set. 
  9686.  
  9687.     /E      (No error messages)  Suppress all non-fatal error messages, such as 
  9688.             "File Not Found."  Fatal error messages, such as "Drive not ready," 
  9689.             will still be displayed.  This option is most useful in batch 
  9690.             files. 
  9691.  
  9692.     /N      (Nothing) Do everything except actually rename the file(s).  This 
  9693.             option is useful for testing what a REN command will actually do. 
  9694.  
  9695.     /P      (Prompt) Prompt the user to confirm each rename operation.  Your 
  9696.             options at the prompt are explained in detail under Page and File 
  9697.             Prompts. 
  9698.  
  9699.     /Q      (Quiet) Don't display filenames  or the number of files renamed. 
  9700.             This option is most often used in batch files.  See also /T. 
  9701.  
  9702.     /S      (Subdirectory) Normally, you can rename a subdirectory only if you 
  9703.             do not use any wildcards in the new_name.  This prevents 
  9704.             subdirectories from being renamed inadvertently when a group of 
  9705.             files is being renamed with wildcards.  /S will let you rename a 
  9706.             subdirectory even when you use wildcards.  /S does not cause REN to 
  9707.             process files in the current directory and all subdirectories as it 
  9708.             does in some other file processing commands.  To rename files 
  9709.             throughout a directory tree, use a GLOBAL REN. 
  9710.  
  9711.     /T      (Total) Don't display filenames as they are renamed, but report the 
  9712.             number of files renamed.  See also /Q. 
  9713.  
  9714.  
  9715. ΓòÉΓòÉΓòÉ 3.3.68. RETURN - Return from GOSUB ΓòÉΓòÉΓòÉ
  9716.  
  9717.  Purpose:    Return from a GOSUB (subroutine) in a batch file. 
  9718.  
  9719.  Format:     RETURN [value] 
  9720.  
  9721.              value :  The exit code from 0 to 255 to return to the command 
  9722.              processor or to the previous batch file. 
  9723.  
  9724.  See also:  GOSUB. 
  9725.  
  9726.  Usage: 
  9727.  
  9728.  Take Command allows subroutines in batch files. 
  9729.  
  9730.  A subroutine begins with a label (a colon followed by one or more words) and 
  9731.  ends with a RETURN command. 
  9732.  
  9733.  The subroutine is invoked with a GOSUB command from another part of the batch 
  9734.  file.  When a RETURN command is encountered the subroutine terminates, and 
  9735.  execution of the batch file continues on the line following the original 
  9736.  GOSUB.  If RETURN is encountered without a GOSUB, Take Command will display a 
  9737.  "Missing GOSUB" error. 
  9738.  
  9739.  The following batch file fragment calls a subroutine which displays the files 
  9740.  in the current directory: 
  9741.  
  9742.           echo Calling a subroutine
  9743.           gosub subr1
  9744.           echo Returned from the subroutine
  9745.           quit
  9746.           :subr1
  9747.           dir /a/w
  9748.           return
  9749.  
  9750.  If you specify a value, RETURN will set the ERRORLEVEL or exit code to that 
  9751.  value.  For information on exit codes see the IF command, and the %? variable. 
  9752.  
  9753.  
  9754. ΓòÉΓòÉΓòÉ 3.3.69. SCREEN - Position cursor ΓòÉΓòÉΓòÉ
  9755.  
  9756.  Purpose:    Position the cursor on the screen and optionally display a 
  9757.              message. 
  9758.  
  9759.  Format:     SCREEN row column [text] 
  9760.  
  9761.              row :  The new row location for the cursor. 
  9762.              column :  The new column location for the cursor. 
  9763.              text :  Optional text to display at the new cursor location. 
  9764.  
  9765.  See also:  ECHO, SCRPUT, TEXT, and VSCRPUT. 
  9766.  
  9767.  Usage: 
  9768.  
  9769.  SCREEN allows you to create attractive screen displays in batch files.  You 
  9770.  use it to specify where a message will appear on the screen.  You can use 
  9771.  SCREEN to create menu and other similar displays, logos, etc. The following 
  9772.  batch file fragment displays a menu: 
  9773.  
  9774.           @echo off
  9775.           cls
  9776.           screen 3 10 Select a number from 1 to 4:
  9777.           screen 6 20  1 - Word Processing
  9778.           ...
  9779.  
  9780.  SCREEN does not change the screen colors.  To display text in specific colors, 
  9781.  use SCRPUT or VSCRPUT.  SCREEN always leaves the cursor at the end of the 
  9782.  displayed text. 
  9783.  
  9784.  The row and column values are zero-based, so on a 25 line by 80 column 
  9785.  display, valid rows are 0 - 24 and valid columns are 0 - 79.  The maximum row 
  9786.  value is determined by the current height of the Take Command window.  The 
  9787.  maximum column value is determined by the virtual screen width.  SCREEN checks 
  9788.  for a valid row and column, and displays a "Usage" error message if either 
  9789.  value is out of range.  You can also specify the row and column as offsets 
  9790.  from the current cursor position.  Begin the value with a plus sign [+] to 
  9791.  move the cursor down or to the right, or with a minus sign [-] to move the 
  9792.  cursor up or to the left. This example prints a string 3 lines above the 
  9793.  current position, in absolute column 10: 
  9794.  
  9795.           screen -3 10 Hello, World!
  9796.  
  9797.  If you specify 999 for the row, SCREEN will center the text vertically on the 
  9798.  display.  If you specify 999 for the column, SCREEN will center the text 
  9799.  horizontally.  This example prints a message at the center of the Take Command 
  9800.  window: 
  9801.  
  9802.           screen 999 999 Hello, World
  9803.  
  9804.  
  9805. ΓòÉΓòÉΓòÉ 3.3.70. SCRPUT - Display text in color ΓòÉΓòÉΓòÉ
  9806.  
  9807.  Purpose:    Position text on the screen and display it in color. 
  9808.  
  9809.  Format:     SCRPUT row col [BRIght] fg ON [BRIght] bg text 
  9810.  
  9811.              row:  Starting row 
  9812.              col:  Starting column 
  9813.              fg:  Foreground text color 
  9814.              bg:  Background text color 
  9815.              text:  The text to display 
  9816.  
  9817.  See also:  ECHO, SCREEN, TEXT, and VSCRPUT. 
  9818.  
  9819.  Usage: 
  9820.  
  9821.  SCRPUT allows you to create attractive screen displays in batch files.  You 
  9822.  use it to specify where a message will appear on the screen and what colors 
  9823.  will be used to display the message text.  You can use SCRPUT to create menu 
  9824.  displays, logos, etc. 
  9825.  
  9826.  SCRPUT works like SCREEN, but allows you to specify the display colors.  See 
  9827.  Colors and Color Names for details about colors.
  9828.  
  9829.  The row and column are zero-based, so on a 25 line by 80 column display, valid 
  9830.  rows are 0 - 24 and valid columns are 0 - 79.  The maximum row is determined 
  9831.  by the current height of the Take Command window; the maximum column is 
  9832.  determined by the current virtual screen width.  SCRPUT displays an error if 
  9833.  either the row or column is out of range. 
  9834.  
  9835.  You can also specify the row and column as offsets from the current cursor 
  9836.  position.  Begin the value with a plus sign [+] to move down the specified 
  9837.  number of rows or to the right the specified number of columns, or with a 
  9838.  minus sign [-] to move up or to the left. 
  9839.  
  9840.  If you specify 999 for the row, SCRPUT will center the text vertically in the 
  9841.  Take Command window.  If you specify 999 for the column, SCRPUT will center 
  9842.  the text horizontally. 
  9843.  
  9844.  SCRPUT does not move the cursor when it displays the text. 
  9845.  
  9846.  The following batch file fragment displays part of a menu, in color: 
  9847.  
  9848.           cls white on blue
  9849.           scrput 6 20 bri red on blu 1 - Word Processing
  9850.           scrput 7 20 bri yel on blu 2 - Spreadsheet
  9851.  
  9852.  
  9853. ΓòÉΓòÉΓòÉ 3.3.71. SELECT - Select files for a command ΓòÉΓòÉΓòÉ
  9854.  
  9855.  Purpose:    Interactively select files for a command. 
  9856.  
  9857.  Format:     SELECT [/A[[:][-]rhsda] /E /H /I"text" /J /L /O[:] [-]adeginrsu 
  9858.              /T:acw /Z] [command ] ... (files ...)... 
  9859.  
  9860.              command :  The command to execute with the selected files. 
  9861.              files :  The files from which to select.  File names may be 
  9862.              enclosed in either parentheses or square brackets.  The difference 
  9863.              is explained below. 
  9864.  
  9865.              /A(ttribute select)             /J(ustify names) 
  9866.              /D(isable color coding)         /L(ower case) 
  9867.              /E (use upper case)             /O(rder) 
  9868.              /H(ide dots)                    /T(ime) 
  9869.              /I (match descriptions)         /Z (use FAT format) 
  9870.  
  9871.  File Selection: 
  9872.  
  9873.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  9874.  Ranges must appear immediately after the SELECT keyword. 
  9875.  
  9876.  Usage: 
  9877.  
  9878.  SELECT allows you to select files for internal and external commands by using 
  9879.  a full-screen "point and shoot" display.  You can have SELECT execute a 
  9880.  command once for each file you select, or have it create a list of files for a 
  9881.  command to work with.  The command can be an internal command, an alias, an 
  9882.  external command, or a batch file. 
  9883.  
  9884.  If you use parentheses around the files, SELECT executes the command once for 
  9885.  each file you have selected.  During each execution, one of the selected files 
  9886.  is passed to the command as an argument.  If you use square brackets around 
  9887.  files, the SELECTed files are combined into a single list, separated by 
  9888.  spaces.  The command is then executed once with the entire list presented as 
  9889.  part of its command-line arguments. 
  9890.  
  9891.  Using the SELECT File List 
  9892.  
  9893.  When you execute the SELECT command, the file list is displayed in a full- 
  9894.  window format which includes a top-line status bar and shows the command to be 
  9895.  executed, the number of files marked, and the number of Kbytes in those files. 
  9896.  
  9897.  SELECT uses the cursor up, cursor down, PgUp, and PgDn keys to scroll through 
  9898.  the file list.  You can also use character matching to find specific files, 
  9899.  just as you can in any popup window.  While the file list is displayed you can 
  9900.  enter any of the following keys to select or unselect files, display files, 
  9901.  execute the command, or exit: 
  9902.  
  9903.         + or space      Select a file, or unselect a marked file. 
  9904.         -               Unselect a marked file. 
  9905.         *               Reverse all of the current marks (except those on 
  9906.                         subdirectories).  If no files have been marked you can 
  9907.                         use * to mark all of the files. 
  9908.         /               Unselect all files. 
  9909.         Enter           Execute the command with the marked files, or with the 
  9910.                         currently highlighted file if no files have been 
  9911.                         marked. 
  9912.         Esc             Skip the files in the current display and go on to the 
  9913.                         next file specification inside the parentheses or 
  9914.                         brackets (if any). 
  9915.         Ctrl-C          Cancel the current SELECT command entirely. 
  9916.          or Ctrl-Break 
  9917.  
  9918.  On FAT drives the file list is shown in standard FAT directory format, with 
  9919.  names at the left an descriptions at the right.  On HPFS drives the format is 
  9920.  similar but more space is allowed for the name, and the description is not 
  9921.  shown.  In this format long names are truncated if they do not fit in the 
  9922.  allowable space.  For a short-name format (including descriptions) on HPFS 
  9923.  drives, use the /Z switch. 
  9924.  
  9925.  When displaying descriptions in the short filename format, SELECT adds a right 
  9926.  arrow [] at the end of the line if the description is too long to fit on the 
  9927.  screen.  This symbol will alert you to the existence of additional description 
  9928.  text.  You can use the left and right arrow keys to scroll the description 
  9929.  area of the screen horizontally and view the additional text. 
  9930.  
  9931.  You can set the default colors used by SELECT on the Commands page of the 
  9932.  configuration notebook, or with the SelectColors directive in the TCMDOS2.INI 
  9933.  file.  If SelectColors is not used, the SELECT display will use the current 
  9934.  default colors. 
  9935.  
  9936.  Creating SELECT Commands 
  9937.  
  9938.  In the simplest form of SELECT, you merely specify the command and then the 
  9939.  list of files from which you will make your selection(s).  For example: 
  9940.  
  9941.           [c:\] select copy (*.com *.exe) a:\
  9942.  
  9943.  will let you select from among the .COM files on the current drive, and will 
  9944.  then invoke the COPY command to copy each file you select to drive A:.  After 
  9945.  the .COM files are done, the operations will be repeated for the .EXE files. 
  9946.  
  9947.  If you want to select from a list of all the .COM and .EXE files mixed 
  9948.  together, create an include list inside the parentheses by inserting a 
  9949.  semicolon: 
  9950.  
  9951.           [c:\] select copy (*.com;*.exe) a:\
  9952.  
  9953.  Finally, if you want the SELECT command to send a single list of files to 
  9954.  COPY, instead of invoking COPY once for each file you select, put the file 
  9955.  names in square brackets instead of parentheses: 
  9956.  
  9957.           [c:\] select copy [*.com;*.exe] a:\
  9958.  
  9959.  If you use brackets, you have to be sure that the resulting command (the word 
  9960.  COPY, the list of files, and the destination drive in this example) does not 
  9961.  exceed the command line length limit of 1,023 characters for all commands. The 
  9962.  current line length is displayed by SELECT while you are marking files to help 
  9963.  you to conform to these limits. 
  9964.  
  9965.  The parentheses or brackets enclosing the file name(s) can appear anywhere 
  9966.  within the command; SELECT assumes that the first set of parentheses or 
  9967.  brackets it finds is the one containing the list of files from which you wish 
  9968.  to make your selection. 
  9969.  
  9970.  When you use SELECT on an HPFS drive, you must quote any file names inside the 
  9971.  parentheses which contain whitespace or special characters.  For example, to 
  9972.  copy selected files from the "Program Files" directory to the E:\SAVE 
  9973.  directory: 
  9974.  
  9975.           [c:\] select copy ("Program Files\*.*") e:\save\
  9976.  
  9977.  File names passed to the command will be quoted automatically if they contain 
  9978.  whitespace or special characters. 
  9979.  
  9980.  The list of files from which you wish to select can be further refined by 
  9981.  using date, time, size, and file exclusion ranges.  The range(s) must be 
  9982.  placed immediately after the word SELECT.  If the command is an internal 
  9983.  command that supports ranges, an independent range can also be used in the 
  9984.  command itself. 
  9985.  
  9986.  You cannot use command grouping to make SELECT execute several commands, 
  9987.  because SELECT will assume that the parentheses are marking the list of files 
  9988.  from which to select, and will display an error message or give incorrect 
  9989.  results if you try to use parentheses for command grouping instead.  (You can 
  9990.  use a SELECT command inside command grouping parentheses, you just can't use 
  9991.  command grouping to specify a group of commands for SELECT to execute.) 
  9992.  
  9993.  Advanced Topics 
  9994.  
  9995.  If you don't specify a command, the selected filename(s) will become the 
  9996.  command.  For example, this command defines an alias called UTILS that selects 
  9997.  from the executable files in the directory C:\UTIL, and then executes them in 
  9998.  the order marked: 
  9999.  
  10000.           [c:\] alias utils select (c:\util\*.com;*.exe;*.btm;*.bat)
  10001.  
  10002.  If you want to use filename completion to enter the filenames inside the 
  10003.  parentheses, type a space after the opening parenthesis.  Otherwise, the 
  10004.  command-line editor will treat the open parenthesis as the first character of 
  10005.  the filename. 
  10006.  
  10007.  With the /I option, you can select files based on their descriptions.  SELECT 
  10008.  will display files if their description matches the text after the /I switch. 
  10009.  The search is not case sensitive.  You can use wildcards and extended 
  10010.  wildcards as part of the text. 
  10011.  
  10012.  When sorting file names and extensions for the SELECT display, Take Command 
  10013.  normally assumes that sequences of digits should be sorted numerically (for 
  10014.  example, the file DRAW2 would come before DRAW03 because 2 is numerically 
  10015.  smaller than 03), rather than strictly alphabetically (where DRAW2 would come 
  10016.  second because "2" comes after "0").  You can defeat this behavior and force a 
  10017.  strict alphabetic sort with the /O:a option. 
  10018.  
  10019.  Options: 
  10020.  
  10021.     /A      (Attribute select) Select only those files that have the specified 
  10022.             attribute(s) set.  Preceding the attribute character with a hyphen 
  10023.             [-] will select files that do not have that attribute set.  The 
  10024.             colon [:] after /A is optional.  The attributes are: 
  10025.  
  10026.                          R  Read-only 
  10027.                          H  Hidden 
  10028.                          S  System 
  10029.                          D  Subdirectory 
  10030.                          A  Archive 
  10031.  
  10032.             If no attributes are listed at all (e.g., SELECT /A ...), SELECT 
  10033.             will display all files and subdirectories including hidden and 
  10034.             system files.  If attributes are combined, all the specified 
  10035.             attributes must match for a file to be included in the listing. 
  10036.             For example, /A:RHS will display only those files with all three 
  10037.             attributes set. 
  10038.  
  10039.     /E      (use upper case)  Display filenames in upper case; also see SETDOS 
  10040.             /U and the UpperCase  directive in the TCDMOS2.INI file. 
  10041.  
  10042.     /H      (Hide dots)  Suppress the display of the "." and ".." directories 
  10043.  
  10044.     /I      (match descriptions)  Display filenames by matching text in their 
  10045.             descriptions.  The text can include wildcards and extended 
  10046.             wildcards.  The search text must be enclosed in quotation marks. 
  10047.             You can select all filenames that have a description with /I"[?]*", 
  10048.             or all filenames that do not have a description with /I"[]". 
  10049.  
  10050.     /J      (Justify names) Justify (align) filename extensions and display 
  10051.             them in the traditional format. 
  10052.  
  10053.     /L      (Lower case)  Display file and directory names in lower case; also 
  10054.             see SETDOS /U and the UpperCase directive in the TCMDOS2.INI file. 
  10055.  
  10056.     /O      (Order)  Set the sort order for the files.  The order can be any 
  10057.             combination of the following options: 
  10058.  
  10059.               -  Reverse the sort order for the next option 
  10060.               a  Sort in ASCII order, not numerically, when there are digits in 
  10061.             the name 
  10062.               d  Sort by date and time (oldest first); for HPFS drives also see 
  10063.             /T 
  10064.               e  Sort by extension 
  10065.               g  Group subdirectories first, then files 
  10066.               i  Sort by file description 
  10067.               n  Sort by filename (this is the default) 
  10068.               r  Reverse the sort order for all options 
  10069.               s  Sort by size 
  10070.               u  Unsorted 
  10071.  
  10072.     /T:acw  (Time display) Specify which of the date and time fields on an HPFS 
  10073.             drive should be displayed and used for sorting: 
  10074.               a  last access date and time 
  10075.               c  creation date and time 
  10076.               w  last write date and time (default) 
  10077.  
  10078.     /Z      Display HPFS filenames in the traditional FAT format, with the 
  10079.             filename at the left and the description at the right.  Long names 
  10080.             will be truncated to 12 characters; if the name is longer than 12 
  10081.             characters, it will be followed by a right arrow []. 
  10082.  
  10083.  
  10084. ΓòÉΓòÉΓòÉ 3.3.72. SET - Set environment variables ΓòÉΓòÉΓòÉ
  10085.  
  10086.  Purpose:    Display, create, modify, or delete environment variables. 
  10087.  
  10088.  Format:     SET [/P /R file...] [name [=][value]] 
  10089.  
  10090.              file :  One or more files containing variable definitions. 
  10091.              name :  The name of the environment variable to define or modify. 
  10092.              value :  The new value for the variable. 
  10093.  
  10094.              /R(ead from file)       /P(ause) 
  10095.  
  10096.  See also:  ESET and UNSET. 
  10097.  
  10098.  Usage: 
  10099.  
  10100.  Every program and command inherits an environment, which is a list of variable 
  10101.  names, each of which is followed by an equal sign and some text. Many programs 
  10102.  use entries in the environment to modify their own actions. Take Command 
  10103.  itself uses several environment variables. 
  10104.  
  10105.  You can also create or modify environment variables with the Environment 
  10106.  dialog.  The dialog allows you to enter the variable name and value into 
  10107.  separate fields in a dialog box, rather than using the SET command.  All of 
  10108.  the information in this section also applies to variables defined via the 
  10109.  dialog, unless otherwise noted. 
  10110.  
  10111.  If you simply type the SET command with no options or arguments, it will 
  10112.  display all the names and values currently stored in the environment. 
  10113.  Typically, you will see an entry called PATH, an entry called CMDLINE, and 
  10114.  whatever other environment variables you and your programs have established: 
  10115.  
  10116.           [c:\] set
  10117.           PATH=C:\;C:\OS2;C:\OS2\SYSTEM;C:\UTIL
  10118.           CMDLINE=C:\TCMD200\TCSTART.CMD
  10119.  
  10120.  To add a variable to the environment, type SET, a space, the variable name, an 
  10121.  equal sign, and the value: 
  10122.  
  10123.           [c:\] set mine=c:\finance\myfiles
  10124.  
  10125.  The variable name is converted to upper case by Take Command.  The text after 
  10126.  the equal sign will be left just as you entered it.  If the variable already 
  10127.  exists, its value will be replaced with the new text that you entered. 
  10128.  
  10129.  Normally you should not put a space on either side of the equal sign.  A space 
  10130.  before the equal sign will become part of the name ; a space after the equal 
  10131.  sign will become part of the value. 
  10132.  
  10133.  If you use SET to create a variable with the same name as one of the Take 
  10134.  Command internal variables, you will disable the internal variable.  If you 
  10135.  later execute a batch file or alias that depends on that internal variable, it 
  10136.  may not operate correctly. 
  10137.  
  10138.  To display the contents of a single variable, type SET plus the variable name: 
  10139.  
  10140.           [c:\] set mine
  10141.  
  10142.  You can edit environment variables with the ESET command.  To remove variables 
  10143.  from the environment, use UNSET, or type SET plus a variable name and an equal 
  10144.  sign: 
  10145.  
  10146.           [c:\] set mine=
  10147.  
  10148.  The variable name is limited to a maximum of 80 characters.  The name and 
  10149.  value together cannot be longer than 1,023 characters. 
  10150.  
  10151.  The size of the environment is set automatically and increased as necessary as 
  10152.  you add variables.  You do not need to specify the size as you do under 4DOS 
  10153.  or some traditional command processors. 
  10154.  
  10155.  Take Command for OS/2 supports the "pseudo-variables" BeginLIBPath and 
  10156.  EndLIBPath introduced in OS/2 Warp.  If you use either of these as a variable 
  10157.  name, Take Command will pass the commands on to the operating system, but the 
  10158.  variables will not appear in the environment.  See your OS/2 documentation for 
  10159.  more information about these variables. 
  10160.  
  10161.  Options: 
  10162.  
  10163.     /P      (Pause) Wait for a key to be pressed after each screen page before 
  10164.             continuing the display.  Your options at the prompt are explained 
  10165.             in detail under Page and File Prompts. 
  10166.  
  10167.     /R      (Read) Read environment variables from a file.  This is much faster 
  10168.             than loading variables from a batch file with multiple SET 
  10169.             commands.  Each entry in the file must fit within the 1,023-byte 
  10170.             command-line length limit for Take Command.  The file is in the 
  10171.             same format as the SET display (i.e., name=value), so SET /R can 
  10172.             accept as input a file generated by redirecting SET output.  For 
  10173.             example, the following commands will save the environment variables 
  10174.             to a file, and then reload them from that file: 
  10175.  
  10176.                                 set > varlist
  10177.                                 set /r varlist
  10178.  
  10179.             You can load variables from multiple files by listing the filenames 
  10180.             individually after the /R.  You can add comments to a variable file 
  10181.             by starting the comment line with a colon [:]. 
  10182.  
  10183.             If you are creating a SET /R file by hand, and need to create an 
  10184.             entry that spans multiple lines in the file, you can do so by 
  10185.             terminating each line, except the last, with an escape character. 
  10186.             However, you cannot use this method to exceed the command- line 
  10187.             length limit. 
  10188.  
  10189.  
  10190. ΓòÉΓòÉΓòÉ 3.3.73. SETDOS - Set the Take Command configuration ΓòÉΓòÉΓòÉ
  10191.  
  10192.  Purpose:    Display or set the Take Command configuration. 
  10193.  
  10194.  Format:     SETDOS [/A? /C? /D? /E? /Fn.n /G?? /I+|- command /M? /N? /P? /R? 
  10195.              S?:? /U? /V? /X[+|-]n /Y?] 
  10196.  
  10197.              /A(NSI)                       /N(o clobber) 
  10198.              /C(ompound)                   /P(arameter character) 
  10199.              /D(escriptions)               /S(hape of cursor) 
  10200.              /E(scape character)           /U(pper case) 
  10201.              /F(@EVAL format)              /V(erbose) 
  10202.              /G  (numeric separators)      /X (expansion) 
  10203.              /I(nternal commands)          /Y (debug batch file) 
  10204.              /M(ode for editing) 
  10205.  
  10206.  Usage: 
  10207.  
  10208.  SETDOS allows you to customize certain aspects of Take Command to suit your 
  10209.  personal tastes or the configuration of your system.  Each of these options is 
  10210.  described below. 
  10211.  
  10212.  You can display the value of all SETDOS options by entering the SETDOS command 
  10213.  with no parameters. 
  10214.  
  10215.  Most of the SETDOS options can be initialized when Take Command executes the 
  10216.  TCMDOS2.INI file, and can also be changed from the configuration notebook. The 
  10217.  name of the corresponding directive and the Configuration Notebook page is 
  10218.  listed in square brackets [ ] with each option below; if none is listed, that 
  10219.  option cannot be set from the TCMDOS2.INI file and / or the dialogs.  You can 
  10220.  also define the SETDOS options in your TCSTART or other startup file (see 
  10221.  Automatic Batch Files), in aliases, or at the command line. 
  10222.  
  10223.  Options: 
  10224.  
  10225.     /A      (ANSI) [ANSI, Display page]  The ANSI option determines whether 
  10226.             Take Command's ANSI support is enabled.  /A1 enables ANSI string 
  10227.             processing in the Take Command window; the default of /A0 disables 
  10228.             ANSI strings. 
  10229.  
  10230.     /C      (Compound character) [CommandSep, Options 1 page]  This option sets 
  10231.             the character used for separating multiple commands on the same 
  10232.             line.  The default is the ampersand [&]. You cannot use any of the 
  10233.             redirection characters (| > <), or the blank, tab, comma, or equal 
  10234.             sign as the command separator.  The command separator is saved by 
  10235.             SETLOCAL and restored by ENDLOCAL.  The following example changes 
  10236.             the separator to a tilde [~]: 
  10237.  
  10238.                                 [c:\] setdos /c~
  10239.  
  10240.             If you want to share batch files or aliases among several 4DOS, 
  10241.             4OS2, 4NT, and Take Command, see the %+ variable, which retrieves 
  10242.             the current command separator, and Special Character Compatibility 
  10243.             for details on using compatible command separators for all the 
  10244.             products you use. 
  10245.  
  10246.     /D      (Descriptions)  [Descriptions and DescriptionName, Options 1 page] 
  10247.             This option controls whether file processing commands like COPY, 
  10248.             DEL, MOVE, and REN process file descriptions along with the files 
  10249.             they belong to.  /D1 turns description processing on, which is the 
  10250.             default.  /D0 turns description processing off. 
  10251.  
  10252.             You can also use /D to set the name of the hidden file in each 
  10253.             directory that contains file descriptions.  To do so, follow /D 
  10254.             with the filename in quotes: 
  10255.  
  10256.                                 [c:\] setdos /d"files.bbs"
  10257.  
  10258.             Use this option with caution because changing the name of the 
  10259.             description file will make it difficult to transfer file 
  10260.             descriptions to another system.  This option is provided for 
  10261.             bulletin board system operators and others who have special needs. 
  10262.  
  10263.     /E      (Escape character) [EscapeChar, Options 1 page]  This option sets 
  10264.             the character used to suppress the normal meaning of the following 
  10265.             character.  Any character following the escape character will be 
  10266.             passed unmodified to the command.  The default escape character is 
  10267.             a caret [^].  You cannot use any of the redirection characters (| > 
  10268.             <) or the blank, tab, comma, or equal sign as the escape character. 
  10269.             The escape character is saved by SETLOCAL and restored by ENDLOCAL. 
  10270.             Certain characters (b, c, e, f, k, n, r, s, and t) have special 
  10271.             meanings when immediately preceded by the escape character. 
  10272.  
  10273.             If you want to share batch files or aliases among 4DOS, 4OS2, 4NT, 
  10274.             and Take command, see the %= variable, which retrieves the current 
  10275.             escape character, and Special Character Compatibility for details 
  10276.             on using compatible escape characters for all the products you use. 
  10277.  
  10278.     /F      (Format for @EVAL)  [EvalMax, EvalMin, Options 2 page]  This option 
  10279.             lets you set default decimal precision for the @EVAL variable 
  10280.             function.  The maximum precision is 16 digits to the left of the 
  10281.             decimal point and up to 8 digits to the right of the decimal point. 
  10282.  
  10283.             The general form of this option is /Fx.y, where the x value sets 
  10284.             the minimum number of digits to the right of the decimal place and 
  10285.             the y value sets the maximum number of digits.  You can use =x,y 
  10286.             instead of =x.y if the comma is your decimal separator.  Both 
  10287.             values can range from 0 to 8; if x is greater than y, it is 
  10288.             ignored.  You can specify either or both values: /F2.5, /F2, and 
  10289.             /F.5 are all valid entries.  See the @EVAL function if you want to 
  10290.             set the precision for a single computation. 
  10291.  
  10292.     /G      (Numeric separators) [DecimalChar, ThousandsChar, Options 1 page] 
  10293.             This option sets the decimal and thousands separator characters. 
  10294.             The format is /Gxy where x is the new decimal separator and y is 
  10295.             the new thousands separator.  Both characters must be included. 
  10296.             The only valid settings are /G., (period is the decimal separator, 
  10297.             comma is the thousands separator); /G,. (the reverse); or /G0 to 
  10298.             remove any custom setting and use the default separators associated 
  10299.             with your current country code (this is the default). 
  10300.  
  10301.             The decimal separator is used for @EVAL, numeric IF and IFF tests, 
  10302.             version numbers, and other similar uses.  The thousands separator 
  10303.             is used for numeric output, and is skipped when performing 
  10304.             calculations in @EVAL. 
  10305.  
  10306.     /I      (Internal) This option allows you to disable or enable internal 
  10307.             commands.  To disable a command, precede the command name with a 
  10308.             minus [-].  To re-enable a command, precede it with a plus [+]. 
  10309.             For example, to disable the internal LIST command to force Take 
  10310.             Command to use an external command: 
  10311.  
  10312.                                 [c:\] setdos /i-list
  10313.  
  10314.  
  10315.     /M      (Mode) [EditMode, Command Line 1 page]  This option controls the 
  10316.             initial line editing mode.  To start in overstrike mode at the 
  10317.             beginning of each command line, use /M0 (the default).  To start in 
  10318.             insert mode, use /M1. 
  10319.  
  10320.     /N      (No clobber) [NoClobber, Options 1 page] This option controls 
  10321.             output redirection).  /N0 means existing files will be overwritten 
  10322.             by output redirection (with >) and that appending (with >>) does 
  10323.             not require the file to exist already.  This is the default.  /N1 
  10324.             means existing files may not be overwritten by output redirection, 
  10325.             and that when appending the output file must exist.  A /N1 setting 
  10326.             can be overridden with the [!] character. 
  10327.  
  10328.     /P      (Parameter character) [ParameterChar, Options 1 page]  This option 
  10329.             sets the character used after a percent sign to specify all or all 
  10330.             remaining command-line arguments in a batch file or alias (e.g., %$ 
  10331.             or %n$). The default is the dollar sign [$].  If you want to share 
  10332.             batch files or aliases among 4DOS, 4OS2, 4NT, and Take Command, see 
  10333.             Special Character Compatibility for details on selecting compatible 
  10334.             parameter characters for all the products you use. 
  10335.  
  10336.     /S      (Shape) [CursorOver, CursorIns, Command Line 1 page]  The SHAPE 
  10337.             option sets the cursor width.  The format is /So:i where o is the 
  10338.             width for overstrike mode, and i is the width for insert mode.  The 
  10339.             width is entered as a percentage of the total character width.  The 
  10340.             default values are 100:15 (a 100% or block cursor for overstrike 
  10341.             mode, and a 15% or thin line cursor for insert mode).  Because of 
  10342.             the way video drivers remap the cursor shape, you may not get a 
  10343.             smooth progression in the cursor size from 0% - 100%.  You can 
  10344.             retrieve the current cursor shape values with the %_CI and %_CO 
  10345.             internal variables. 
  10346.  
  10347.     /U      (Upper) [UpperCase, Options 1 page]  This option controls the 
  10348.             default case (upper or lower) for filenames displayed by internal 
  10349.             commands like COPY and DIR.  /U0 displays file names in lower case 
  10350.             (the default). /U1 displays file names in the traditional upper 
  10351.             case. The /U setting is ignored for filenames on HPFS drives. 
  10352.             Names on such drives are always displayed in the case in which they 
  10353.             are stored. 
  10354.  
  10355.     /V      (Verbose) [BatchEcho, Options 1 page] The VERBOSE option controls 
  10356.             the default for command echoing in batch files.  /V0 disables 
  10357.             echoing of batch file commands unless ECHO is explicitly set ON. 
  10358.             /V1, the default setting, enables echoing of batch file commands 
  10359.             unless ECHO is explicitly set OFF. 
  10360.     /V2     forces echoing of all batch file commands, even if ECHO is set OFF 
  10361.             or the line begins with an "@".  This allows you to turn echoing on 
  10362.             for a batch file without editing the batch file and removing the 
  10363.             ECHO OFF command(s) within it.  /V2 is intended for debugging, and 
  10364.             can be set with SETDOS, but not with the BatchEcho directive in 
  10365.             TCMDOS2.INI.  See also Batch File Debugging and the /Y option 
  10366.             below. 
  10367.  
  10368.     /X[+|-]n(expansion and special characters)  This option enables and 
  10369.             disables alias and environment variable expansion, and controls 
  10370.             whether special characters have their usual meaning or are treated 
  10371.             as text.  It is most often used in batch files to process text 
  10372.             strings which may contain special characters.  See Batch File 
  10373.             String Processing for further details on string processing in batch 
  10374.             files, and Internal and External Commands for details on alias 
  10375.             expansion, variable expansion, and special characters. 
  10376.  
  10377.             The features enabled or disabled by /X are numbered.  All features 
  10378.             are enabled when Take Command starts, and you can re-enable all 
  10379.             features at any time by using /X0.  To disable a particular 
  10380.             feature, use /X-n, where n is the feature number from the list 
  10381.             below. To re-enable the feature, use /X+n.  To enable or disable 
  10382.             multiple individual features, list their numbers in sequence after 
  10383.             the  + or - (e.g., /X-345 to disable features 3, 4, and 5). 
  10384.  
  10385.             The features are: 
  10386.  
  10387.               1  All alias expansion. 
  10388.               2  Nested alias expansion only. 
  10389.               3  All variable expansion (environment variables and batch and 
  10390.             alias parameters) 
  10391.               4  Nested variable expansion only. 
  10392.               5  Multiple commands, conditional commands, and piping (affects 
  10393.             the command separator, ||, &&, |, and &). 
  10394.               6  Redirection (affects <, >, >&, >&>, etc.). 
  10395.               7  Quoting (double back-quotes [`] and double quotes ["]) and 
  10396.             square brackets. 
  10397.               8  Escape character. 
  10398.  
  10399.             If nested alias expansion is disabled, the first alias of a command 
  10400.             is expanded but any aliases it invokes are not expanded.  If nested 
  10401.             variable expansion is disabled, each variable is expanded once, but 
  10402.             variables containing the names of other variables are not expanded 
  10403.             further. 
  10404.  
  10405.             For example, to disable all features except alias expansion while 
  10406.             you are processing a text file containing special characters: 
  10407.  
  10408.                                 setdos /x-35678
  10409.                                 ... [perform text processing here]
  10410.                                 setdos /x0
  10411.  
  10412.     /Y      (debug batch file) /Y1 enables the built-in batch file debugger. 
  10413.             The debuggger allows you to "single-step" through a batch file line 
  10414.             by line, with the file displayed in a popup window as it executes. 
  10415.             For complete details on using the debugger see Batch File Debugging 
  10416.             (this topic also covers additional debugging techniques which do 
  10417.             not require stepping through each line individually). 
  10418.  
  10419.             To start the debugger, insert a SETDOS /Y1 command at the beginning 
  10420.             of the portion of the batch file you want to debug, and a SETDOS 
  10421.             /Y0 command at the end. 
  10422.  
  10423.             You cannot use the batch debugger with REXX files or EXTPROC files. 
  10424.             It can only be used with normal Take Command batch files. 
  10425.  
  10426.             You can also invoke SETDOS /Y1 from the prompt, but because the 
  10427.             debugger is automatically turned off whenever the command processor 
  10428.             returns to the prompt, you must enter the SETDOS command and the 
  10429.             batch file name on the same line, for example: 
  10430.  
  10431.                                 [c:\] setdos /y1 & mybatch.btm
  10432.  
  10433.  
  10434. ΓòÉΓòÉΓòÉ 3.3.74. SETLOCAL - Save the environment ΓòÉΓòÉΓòÉ
  10435.  
  10436.  Purpose:    Save a copy of the current disk drive, directory, environment, 
  10437.              alias list, and special characters. 
  10438.  
  10439.  Format:     SETLOCAL 
  10440.  
  10441.  See also:  ENDLOCAL. 
  10442.  
  10443.  Usage: 
  10444.  
  10445.  SETLOCAL is used in batch files to save the default disk drive and directory, 
  10446.  the environment, the alias list, and the command separator, escape character, 
  10447.  parameter character, decimal separator, and thousands separator.  You can then 
  10448.  change their values and later restore the original values with ENDLOCAL. 
  10449.  
  10450.  For example, this batch file fragment saves everything, removes all aliases so 
  10451.  that user aliases will not affect batch file commands, changes the disk, 
  10452.  changes the command separator, runs a program, and then restores the original 
  10453.  values: 
  10454.  
  10455.           setlocal
  10456.           unalias *
  10457.           cdd d:\test
  10458.           setdos /c~
  10459.           program ~ echo Done!
  10460.           endlocal
  10461.  
  10462.  SETLOCAL and ENDLOCAL are not nestable within a batch file. However, you can 
  10463.  have multiple SETLOCAL / ENDLOCAL pairs within a batch file, and nested batch 
  10464.  files can each have their own SETLOCAL / ENDLOCAL.  You cannot use SETLOCAL in 
  10465.  an alias or at the command line. 
  10466.  
  10467.  An ENDLOCAL is performed automatically at the end of a batch file if you 
  10468.  forget to do so.  If you invoke one batch file from another without using 
  10469.  CALL, the first batch file is terminated, and an automatic ENDLOCAL is 
  10470.  performed; the second batch file inherits the settings as they were prior to 
  10471.  any SETLOCAL. 
  10472.  
  10473.  
  10474. ΓòÉΓòÉΓòÉ 3.3.75. SHIFT - Shift batch parameters ΓòÉΓòÉΓòÉ
  10475.  
  10476.  Purpose:    Allows the use of more than 127 parameters in a batch file. 
  10477.  
  10478.  Format:     SHIFT [n | /n] 
  10479.  
  10480.              n :  Number of positions to shift. 
  10481.  
  10482.  Usage: 
  10483.  
  10484.  SHIFT is provided for compatibility with older batch files, where it was used 
  10485.  to access more than 10 parameters.  Take Command supports 128 parameters (%0 
  10486.  to %127), so you may not need to use SHIFT for batch files running exclusively 
  10487.  under JP Software command processors. 
  10488.  
  10489.  SHIFT moves each of the batch file parameters n positions to the left.  The 
  10490.  default value for n is 1.  SHIFT 1 moves the parameter in %1 to position %0, 
  10491.  the parameter in %2 becomes %1, etc.  You can reverse a SHIFT by giving a 
  10492.  negative value for n(i.e., after SHIFT -1, the former %0 is restored, %0 
  10493.  becomes %1, %1 becomes %2, etc.). 
  10494.  
  10495.  SHIFT also affects the parameters %n$ (command-line tail) and %# (number of 
  10496.  command arguments). 
  10497.  
  10498.  For example, create a batch file called TEST.BAT: 
  10499.  
  10500.           echo %1 %2 %3 %4
  10501.           shift
  10502.           echo %1 %2 %3 %4
  10503.           shift 2
  10504.           echo %1 %2 %3 %4
  10505.           shift -1
  10506.           echo %1 %2 %3 %4
  10507.  
  10508.  Executing TEST.BAT produces the following results: 
  10509.  
  10510.           [c:\] test one two three four five six seven
  10511.  
  10512.           one two three four
  10513.           two three four five
  10514.           four five six seven
  10515.           three four five six
  10516.  
  10517.  If you add a slash before the value n, the value determines the postion at 
  10518.  which to begin the shift.  For example: 
  10519.  
  10520.           shift /2
  10521.  
  10522.  leaves parameters %0 and %1 unchanged, and moves the value of %3 to postion 
  10523.  %2, %4 to %3, etc.  The value after the slash cannot be negative. and shifts 
  10524.  performed with the slash cannot be undone later in the batch file. 
  10525.  
  10526.  
  10527. ΓòÉΓòÉΓòÉ 3.3.76. SHRALIAS - Retain global lists ΓòÉΓòÉΓòÉ
  10528.  
  10529.  Purpose:    Retains global command history, directory history, and alias lists 
  10530.              in memory when the command processor is not running. 
  10531.  
  10532.  Format:     SHRALIAS [/U] 
  10533.  
  10534.              /U(nload) 
  10535.  
  10536.  Usage: 
  10537.  
  10538.  When you close all Take Command sessions, the memory for the global command 
  10539.  history, global directory history, and global alias list is released.  If you 
  10540.  want the lists to be retained in memory even when Take Command is not running, 
  10541.  you need to execute SHRALIAS. 
  10542.  
  10543.  The SHRALIAS command starts and initializes SHRALIAS.EXE, a small program 
  10544.  which remains active and retains global lists when Take Command is not 
  10545.  running.  In order to start the program, SHRALIAS must be able to find 
  10546.  SHRALIAS.EXE either in the same directory as Take Command, or in a directory 
  10547.  in your path.  You cannot run SHRALIAS.EXE directly, it must be run by the 
  10548.  SHRALIAS command. 
  10549.  
  10550.  Once SHRALIAS has been executed, the global lists will be retained in memory 
  10551.  until you use SHRALIAS /U to unload the lists, or until you shut down your 
  10552.  operating system. 
  10553.  
  10554.  SHRALIAS will not work unless you have at least one copy of Take Command 
  10555.  running with global alias, command history, and directory history lists 
  10556.  enabled.  If the required global lists are not found, SHRALIAS will display an 
  10557.  error. 
  10558.  
  10559.  If you start SHRALIAS from a temporary Take Command session which exits after 
  10560.  starting SHRALIAS, the Take Command session may terminate and discard the 
  10561.  shared lists before SHRALIAS can attach to them.  In this case SHRALIAS.EXE 
  10562.  will not be loaded.  If you experience this problem, add a short delay with 
  10563.  the DELAY command after SHRALIAS is loaded and before your session exits. 
  10564.  
  10565.  For more information about global history and alias lists, see the relevant 
  10566.  sections in Command History and Recall, Directory History Window, and the 
  10567.  ALIAS command. 
  10568.  
  10569.  Option: 
  10570.  
  10571.     /U      (Unload)  Shuts down SHRALIAS.EXE.  If SHRALIAS is not loaded 
  10572.             again, the memory used by global command history, directory 
  10573.             history, and alias lists will be released when the last copy of 
  10574.             Take Command exits. 
  10575.  
  10576.  
  10577. ΓòÉΓòÉΓòÉ 3.3.77. START - Start application in new session ΓòÉΓòÉΓòÉ
  10578.  
  10579.  Purpose:    Start a program in another session or window. 
  10580.  
  10581.  Format:     START ["program title"] [/B[G] /C /DOS[=optfile] /F[G] /FS /I 
  10582.              /ICON=iconfile /INV /K /L /LA /LD /LH /MAX /MIN /N /PGM progname 
  10583.              /PM /POS=row,col,width,height /TTY /WAIT /WIN /WIN3[=optfile] 
  10584.              /WIN3S[=optfile]] [command] 
  10585.  
  10586.              program title :  Title to appear on title bar. 
  10587.              optfile :  Option settings file. 
  10588.              iconfile :  Name of icon (.ICO ) file. 
  10589.              progname :  Program name (not the session name). 
  10590.              command :  Command to be executed. 
  10591.  
  10592.              /B[G] (background session)      /LH (local history list) 
  10593.              /C(lose when done)              /MAX(imized) 
  10594.              /DOS (DOS session)              /MIN(imized) 
  10595.              /F[G] (foreground session)      /N(o command processor) 
  10596.              /FS (full screen)               /PGM (program name) 
  10597.              /I(nherit environment)          /PM (PM application) 
  10598.              /ICON (.ICO file)               /POS(ition of window) 
  10599.              /INV(isible)                    /TTY (run in TCMD window) 
  10600.              /K(eep when done)               /WAIT(for session to finish) 
  10601.              /L(ocal lists)                  /WIN (dowed session) 
  10602.              /LA (local aliases)             /WIN3 (Windows enhanced mode) 
  10603.              /LD (local dir history)         /WIN3S (Windows standard mode) 
  10604.  
  10605.  See also:  DETACH. 
  10606.  
  10607.  Usage: 
  10608.  
  10609.  START is used to begin a new OS/2 session, and optionally run a program in 
  10610.  that session.  If you use START with no parameters, it will begin a new Take 
  10611.  Command session.  If you add a command, START will begin a new session or 
  10612.  window and execute that command. 
  10613.  
  10614.  START will return to the Take Command prompt immediately (or continue a batch 
  10615.  file), without waiting for the program to complete, unless you use /WAIT.  The 
  10616.  program title, if it is included, will appear on the title bar, and on the 
  10617.  OS/2 Window List.  The program title must be enclosed in quotation marks and 
  10618.  cannot exceed 60 characters.  If the program title is omitted, the program 
  10619.  name will be used as the title. 
  10620.  
  10621.  START always assumes that the first quoted string on the command line is the 
  10622.  program title; if there is a second quoted string it is assumed to be the 
  10623.  command.  As a result, if the name of the program you are starting is a long 
  10624.  filename containing whitespace (and must therefore be quoted), you cannot 
  10625.  simply place it on the command line.  If you do, as the first quoted string it 
  10626.  will be interpreted as the program title, not the command.  To address this, 
  10627.  use the /PGM switch to indicate explicitly that the quoted string is the 
  10628.  program name, or include a title before the program name.  For example, to 
  10629.  start the program "C:\Program Files\Proc.Exe" you could use either of the 
  10630.  first two commands below, but the third command would not work: 
  10631.  
  10632.           [c:\] start /PGM "C:\Program Files\Proc.Exe"
  10633.           [c:\] start "test" "C:\Program Files\Proc.Exe"
  10634.           [c:\] start "C:\Program Files\Proc.Exe"
  10635.  
  10636.  /MAX, /MIN, and /POS allow you to start a character-mode windowed session in a 
  10637.  maximized window, a minimized window, or a window with a specified position 
  10638.  and size.  The default is to let the operating environment choose the position 
  10639.  and size of the window. 
  10640.  
  10641.  /C allows you to close the session when the command is finished (the default 
  10642.  for graphical sessions); /K allows you to keep the session open and go to a 
  10643.  prompt (the default for character mode sessions). 
  10644.  
  10645.  Options: 
  10646.  
  10647.     /BG         (BackGround session) The session is started as a background 
  10648.                 session. /BG may be abbreviated to /B. 
  10649.  
  10650.     /C          (Close) The session or window is closed when the application 
  10651.                 ends. 
  10652.  
  10653.     /DOS[=filename] (DOS session) Start a DOS session. 
  10654.  
  10655.                 If you include the =filename, OS/2 will load DOS settings from 
  10656.                 the specified file.  You can also alter the DOS settings for a 
  10657.                 session with environment variables of the form 
  10658.                 DosSetting.name=value, without using a settings file. 
  10659.  
  10660.                 Starting a session with specific DOS settings is an 
  10661.                 undocumented feature which was implemented within OS/2 with 
  10662.                 little error checking.  It is included in START because it 
  10663.                 substantially eases a complex task, but you must experiment 
  10664.                 carefully to ensure that the settings you select will work 
  10665.                 properly on the systems on which you plan to use them. 
  10666.                 Incorrect settings may be ignored, but they may also hang your 
  10667.                 session or stop the entire system.  Be sure your experiments 
  10668.                 are not conducted while critical tasks are in process. 
  10669.  
  10670.                 Each line in the file must have a name, an equal sign [=], and 
  10671.                 a value.  The names are those shown in OS/2's DOS Settings 
  10672.                 dialog box.  Do not use spaces on either side of the equal 
  10673.                 sign. 
  10674.  
  10675.                 The names in the DOS Settings dialog box will vary depending on 
  10676.                 the device drivers and other settings in your CONFIG.SYS file, 
  10677.                 though many are available on all systems.  You must ensure that 
  10678.                 the names you use are valid for the systems on which you use 
  10679.                 them.  For example, if you replace IBM's COM.SYS and VCOM.SYS 
  10680.                 with different communications drivers, the COM_ settings will 
  10681.                 probably not be valid for the new drivers.  If you have a 
  10682.                 settings file which contains settings defined by a particular 
  10683.                 driver, and use it on a system where the corresponding driver 
  10684.                 is not loaded, the results are undefined. 
  10685.  
  10686.                 The values in your settings file must be numeric for settings 
  10687.                 which show a numeric value under DOS Settings (e.g., 
  10688.                 DOS_FILES=30), and must be text strings for settings shown with 
  10689.                 a string (e.g., DOS_SHELL=C:\4DOS.COM C:\4DOS /P).  Strings 
  10690.                 should be entered without trailing blanks.  For values shown as 
  10691.                 multiple choice on the DOS Settings page you must specify a 
  10692.                 numeric value, typically "0" for Off and "1" for On (e.g., 
  10693.                 DOS_HIGH=1).  Items with choices other than Off and On may use 
  10694.                 different values, or may not work at all; experimentation is 
  10695.                 usually required to find out what works.  Using strings for 
  10696.                 choice items (e.g., DOS_HIGH=ON) will not work, and can hang 
  10697.                 your system.  This is due to the internal operation of OS/2, 
  10698.                 and is not a problem in Take Command. 
  10699.  
  10700.                 A typical DOS settings file might look like this: 
  10701.  
  10702.                                         DOS_FILES=30
  10703.                                         DOS_HIGH=1
  10704.                                         DOS_SHELL=C:\4DOS\4DOS.COM C:\4DOS /P
  10705.                                         MOUSE_EXCLUSIVE_ACCESS=0
  10706.                                         VIDEO_FASTPASTE=1
  10707.  
  10708.                 You can include comments in a settings file by beginning any 
  10709.                 line with a colon [:]. 
  10710.  
  10711.     /FG         (ForeGround session) Start the session as the foreground 
  10712.                 session. /FG may be abbreviated to /F. 
  10713.  
  10714.     /FS         (Full Screen) Start the session as a full-screen session. 
  10715.  
  10716.     /I          (Inherit environment) Inherit the default environment specified 
  10717.                 in CONFIG.SYS, if any, rather than the current environment. 
  10718.  
  10719.     /ICON=filenameUse the specified icon file.  If you don't use /ICON, the 
  10720.                 displayed icon will be the one found or assigned by OS/2. 
  10721.  
  10722.     /INV        (Invisible) Start the session or window as invisible.  No icon 
  10723.                 will appear and the session will only be accessible through the 
  10724.                 Window List. 
  10725.  
  10726.     /K          (Keep session or window at end) Continue the session or window 
  10727.                 after the application program ends.  Use the EXIT command to 
  10728.                 end the session. 
  10729.  
  10730.     /L          (Local lists) Start Take Command with local alias, history, and 
  10731.                 directory history lists.  This option combines the effects of 
  10732.                 /LA, /LD, and /LH (below). 
  10733.  
  10734.     /LA         (Local Alias list) Start Take Command with a local alias list. 
  10735.                 See ALIAS for information on local and global aliases. 
  10736.  
  10737.     /LD         (Local Directory history) Start Take Command with a local 
  10738.                 directory history list.  See Directory History Window for more 
  10739.                 information. 
  10740.  
  10741.     /LH         (Local History list) Start Take Command with a local history 
  10742.                 list. See Command History and Recall for information on local 
  10743.                 and global history lists. 
  10744.  
  10745.     /MAX        (Maximized) Start the session or window maximized. 
  10746.  
  10747.     /MIN        (Minimized) Start the session or window minimized. 
  10748.  
  10749.     /N          (No command processor) Start an OS/2 program directly, without 
  10750.                 a command processor.  The command cannot be an internal command 
  10751.                 or batch file. This is the default for PM applications. 
  10752.  
  10753.     /PGM        (Program name) The string following this option is the program 
  10754.                 name.  Use /PGM to allow START to differentiate between a 
  10755.                 quoted long filename and a quoted title for the session. 
  10756.  
  10757.     /PM         (Presentation Manager) Start a program in the PM session. 
  10758.  
  10759.     /POS        (Position) Start the window at the specified screen position. 
  10760.                 The syntax is /POS=x, y, width, height where the values are 
  10761.                 specified in pixels or pels.  x and y refer to the position of 
  10762.                 the bottom left corner of the window relative to the bottom 
  10763.                 left corner of the screen. 
  10764.  
  10765.     /TTY        (TTY Application) Run a DOS or character-mode OS/2 program 
  10766.                 under Take Command's TTY Application support.  Use this option 
  10767.                 to force an application to run under Take Command s TTY 
  10768.                 application support, even if the program has not been 
  10769.                 specifically enabled as a TTY application.  For complete 
  10770.                 details on TTY applications see your Introduction and 
  10771.                 Installation Guide, Starting Character-Mode Applications. 
  10772.  
  10773.     /WAIT       Wait for the new session or window to finish before continuing. 
  10774.                 This switch is ignored when starting DOS programs under 
  10775.                 WIN-OS/2, because there is no way for Take Command to determine 
  10776.                 when a DOS program run under WIN-OS/2 has finished. 
  10777.  
  10778.     /WIN        (Windowed) Start the session in a window. 
  10779.  
  10780.     /WIN3[=filename] (Windows enhanced mode) Run the program in an 
  10781.                 enhanced-mode Windows 3.x session.  The session will run 
  10782.                 seamless (on the OS/2 desktop).  (To start a Windows 
  10783.                 application in full-screen mode, use /FS rather than /WIN3.) 
  10784.                 You can include an equal sign and the name of an options file 
  10785.                 to set options for the specific session and application (see 
  10786.                 /DOS= above for details).  The setting names in the file should 
  10787.                 be taken from those shown in OS/2's WIN-OS/2 Settings dialog 
  10788.                 box. 
  10789.  
  10790.     /WIN3S[=filename] (Windows standard mode) Equivalent to /WIN3, but runs the 
  10791.                 program in standard mode rather than enhanced mode. 
  10792.  
  10793.  
  10794. ΓòÉΓòÉΓòÉ 3.3.78. SWITCH - Select commands to execute ΓòÉΓòÉΓòÉ
  10795.  
  10796.  Purpose:    Select commands to execute based on a value. 
  10797.  
  10798.  Format:     SWITCH expression 
  10799.              CASE value1 [.OR. value2] ... 
  10800.                commands 
  10801.              CASE value3 
  10802.                commands 
  10803.              [DEFAULT 
  10804.                commands] 
  10805.              ENDSWITCH 
  10806.  
  10807.              expression :  An environment variable, internal variable, variable 
  10808.              function, text string, or a combination of these elements, that is 
  10809.              used to select a group of commands. 
  10810.              value1, value2, etc. :  A value to test or multiple values 
  10811.              connected with .OR. 
  10812.              commands :  One or more commands to execute if the expression 
  10813.              matches the value.  If you use multiple commands, they must be 
  10814.              separated by command separators or placed on separate lines of a 
  10815.              batch file. 
  10816.  
  10817.  See also:  IF and IFF 
  10818.  
  10819.  Usage: 
  10820.  
  10821.  SWITCH can only be used in batch files.  It allows you to select a command or 
  10822.  group of commands to execute based on the possible values of a variable or a 
  10823.  combination of variables and text. 
  10824.  
  10825.  The SWITCH command is always followed by an expression created from 
  10826.  environment variables, internal variables, variable functions, and text 
  10827.  strings, and then by a sequence of CASE statements matching the possible 
  10828.  values of that expression.  If one of the values in a CASE statement matches 
  10829.  the expression, the commands following that CASE statement are executed, and 
  10830.  all subsequent CASE statements and the commands which follow them are ignored. 
  10831.  If no matches are found, the commands following the optional DEFAULT statement 
  10832.  are executed.  If there are no matches and there is no DEFAULT statement, no 
  10833.  commands are executed by SWITCH. 
  10834.  
  10835.  After all of the commands following the CASE or DEFAULT statement are 
  10836.  executed, the batch file continues with the commands that follow ENDSWITCH. 
  10837.  
  10838.  You must include a command separator or new line after the expression, before 
  10839.  each CASE or DEFAULT statement, before each command, and before ENDSWITCH. 
  10840.  You can link values in a CASE statement only with .OR. (but not with .AND. or 
  10841.  .XOR.). 
  10842.  
  10843.  For example, the following batch file fragment displays one message if the 
  10844.  user presses A, another if user presses B or C, and a third if the user 
  10845.  presses any other key: 
  10846.  
  10847.           inkey Enter a keystroke: %%key
  10848.           switch %key
  10849.           case A
  10850.              echo It's an A
  10851.           case B .or. C
  10852.              echo It's either B or C
  10853.           default
  10854.              echo It's not A, B, or C
  10855.           endswitch
  10856.  
  10857.  In the example above, the value of a single environment variable was used for 
  10858.  the expression.  You will probably find that this is the best method to use in 
  10859.  most situations.  However, you can use other kinds of expressions if 
  10860.  necessary.  The first example below selects a command to execute based on the 
  10861.  length of a variable, and the second bases the action on a quoted text string 
  10862.  stored in an environment variable: 
  10863.  
  10864.           switch %@len[%var1]
  10865.           case 0
  10866.               echo Missing var1
  10867.           case 1
  10868.               echo Single character
  10869.           ...
  10870.           endswitch
  10871.  
  10872.           switch "%string1"
  10873.           case "This is a test"
  10874.               echo Test string
  10875.           case "The quick brown fox"
  10876.               echo It's the fox
  10877.           ...
  10878.           endswitch
  10879.  
  10880.  The SWITCH and ENDSWITCH commands must be on separate lines, and cannot be 
  10881.  placed within a command group, or on the same line as other commands (this is 
  10882.  the reason SWITCH cannot be used in aliases).  However, commands within the 
  10883.  SWITCH block can use command groups or the command separator in the normal 
  10884.  way. 
  10885.  
  10886.  SWITCH commands can be nested. 
  10887.  
  10888.  You can exit from all SWITCH / ENDSWITCH processing by using GOTO to a line 
  10889.  past the last ENDSWITCH. 
  10890.  
  10891.  
  10892. ΓòÉΓòÉΓòÉ 3.3.79. TEE - "Tee" pipe fitting ΓòÉΓòÉΓòÉ
  10893.  
  10894.  Purpose:    Copy standard input to both standard output and a file. 
  10895.  
  10896.  Format:     TEE [/A] file... 
  10897.  
  10898.              file :  One or more files that will receive the "tee- d" output. 
  10899.  
  10900.              /A(ppend) 
  10901.  
  10902.  See also:  Y and the redirection options. 
  10903.  
  10904.  Usage: 
  10905.  
  10906.  TEE is normally used to "split" the output of a program so that you can see it 
  10907.  on the display and also save it in a file.  It can also be used to capture 
  10908.  intermediate output before the data is altered by another program or command. 
  10909.  
  10910.  TEE gets its input from standard input (usually the piped output of another 
  10911.  command or program), and sends out two copies:  one goes to standard output, 
  10912.  the other to the file or files that you specify. TEE is not likely to be 
  10913.  useful with programs which do not use standard output, because these programs 
  10914.  cannot send output through a pipe. 
  10915.  
  10916.  For example, to search the file DOC for any lines containing the string "Take 
  10917.  Command", make a copy of the matching lines in TC.DAT, sort the lines, and 
  10918.  write them to the output file TCS.DAT (enter this on one line): 
  10919.  
  10920.           [c:\] find "Take Command" doc | tee tc.dat |
  10921.   sort > tcs.dat
  10922.  
  10923.  If you are typing at the keyboard to produce the input for TEE, you must enter 
  10924.  a Ctrl-Z to terminate the input. 
  10925.  
  10926.  When using TEE with a pipe under Take Command, the programs on the two ends of 
  10927.  the pipe run simultaneously, not sequentially as in 4DOS. 
  10928.  
  10929.  See Piping for more information on pipes. 
  10930.  
  10931.  Option: 
  10932.  
  10933.     /A      (Append) Append the output to the file(s) rather than overwriting 
  10934.             them. 
  10935.  
  10936.  
  10937. ΓòÉΓòÉΓòÉ 3.3.80. TEXT - Display text in batch file ΓòÉΓòÉΓòÉ
  10938.  
  10939.  Purpose:    Display a block of text in a batch file. 
  10940.  
  10941.  Format:     TEXT 
  10942.                 . 
  10943.                 . 
  10944.                 . 
  10945.              ENDTEXT 
  10946.  
  10947.  See also:  ECHO, SCREEN, SCRPUT, and VSCRPUT. 
  10948.  
  10949.  Usage: 
  10950.  
  10951.  TEXT can only be used in batch files. 
  10952.  
  10953.  The TEXT command is useful for displaying menus or multi-line messages.  TEXT 
  10954.  will display all subsequent lines in the batch file until terminated by 
  10955.  ENDTEXT.  Both TEXT and ENDTEXT must be entered as the only command on the 
  10956.  line. 
  10957.  
  10958.  To redirect the entire block of text, use redirection on the TEXT command 
  10959.  itself, but not on the actual text lines or the ENDTEXT line.  No environment 
  10960.  variable expansion or other processing is performed on the lines between TEXT 
  10961.  and ENDTEXT; they are displayed exactly as they are stored in the batch file. 
  10962.  
  10963.  You can use a CLS or COLOR command to set the screen color before executing 
  10964.  the TEXT command. 
  10965.  
  10966.  The following batch file fragment displays a simple menu: 
  10967.  
  10968.           @echo off & cls
  10969.           screen 2 0
  10970.           text
  10971.           Enter one of the following:
  10972.           1 - Spreadsheet
  10973.           2 - Word Processing
  10974.           3 - Utilities
  10975.           4 - Exit
  10976.           endtext
  10977.           inkey /k"1234" Enter your selection:  %%key
  10978.  
  10979.  
  10980. ΓòÉΓòÉΓòÉ 3.3.81. TIME - Set the system time ΓòÉΓòÉΓòÉ
  10981.  
  10982.  Purpose:    Display or set the current system time. 
  10983.  
  10984.  Format:     TIME [hh [:mm[:ss]]] [AM | PM] 
  10985.  
  10986.              hh :  The hour (0 - 23). 
  10987.              mm :  The minute (0 - 59). 
  10988.              ss :  The second (0 - 59). 
  10989.  
  10990.  See also:  DATE. 
  10991.  
  10992.  Usage: 
  10993.  
  10994.  If you don't enter any parameters, TIME will display the current system time 
  10995.  and prompt you for a new time.  Press Enter if you don't wish to change the 
  10996.  time; otherwise, enter the new time:. 
  10997.  
  10998.           [c:\] time
  10999.           Mon  Dec 22, 1997  9:30:10
  11000.           New time (hh:mm:ss):
  11001.  
  11002.  TIME defaults to 24-hour format, but you can optionally enter the time in 12- 
  11003.  hour format by appending "a", "am", "p", or "pm" to the time you enter. 
  11004.  
  11005.  For example, to enter the time as 9:30 am: 
  11006.  
  11007.           [c:\] time 9:30 am
  11008.  
  11009.  OS/2 adds the system time and date to the directory entry for every file you 
  11010.  create or modify.  If you keep both the time and date accurate, you will have 
  11011.  a record of when you last updated each file. 
  11012.  
  11013.  
  11014. ΓòÉΓòÉΓòÉ 3.3.82. TIMER - Start or stop a stopwatch ΓòÉΓòÉΓòÉ
  11015.  
  11016.  Purpose:    TIMER is a system stopwatch. 
  11017.  
  11018.  Format:     TIMER [ON] [/1 /2 /3 /S] 
  11019.  
  11020.              ON:  Force the stopwatch to restart 
  11021.  
  11022.              /1 (stopwatch #1)           /3 (stopwatch #3) 
  11023.              /2 (stopwatch #2)           /S(plit) 
  11024.  
  11025.  Usage: 
  11026.  
  11027.  The TIMER command turns a system stopwatch on and off.  When you first run 
  11028.  TIMER, the stopwatch starts: 
  11029.  
  11030.           [c:\] timer
  11031.           Timer 1 on:  12:21:46
  11032.  
  11033.  When you run TIMER again, the stopwatch stops and the elapsed time is 
  11034.  displayed: 
  11035.  
  11036.           [c:\] timer
  11037.           Timer 1 off:  12:21:58
  11038.           Elapsed time: 0:00:12.06
  11039.  
  11040.  There are three stopwatches available (1, 2, and 3) so you can time multiple 
  11041.  overlapping events.  By default, TIMER uses stopwatch #1. 
  11042.  
  11043.  TIMER is particularly useful for timing events in batch files.  For example, 
  11044.  to time both an entire batch file, and an intermediate section of the same 
  11045.  file, you could use commands like this: 
  11046.  
  11047.           rem Turn on timer 1
  11048.           timer
  11049.           rem Do some work here
  11050.           rem Turn timer 2 on to time the next section
  11051.           timer /2
  11052.           rem Do some more work
  11053.           echo Intermediate section completed
  11054.           rem Display time taken in intermediate section
  11055.           timer /2
  11056.           rem Do some more work
  11057.           rem Now display the total time
  11058.           timer
  11059.  
  11060.  The smallest interval TIMER can measure depends on the operating system you 
  11061.  are using, your hardware, and the interaction between the two.  However, it 
  11062.  should never be greater than .06 second.  The largest interval is 23 hours, 59 
  11063.  minutes, 59.99 seconds. 
  11064.  
  11065.  Options: 
  11066.  
  11067.     /1      Use timer #1 (the default). 
  11068.     /2      Use timer #2. 
  11069.     /3      Use timer #3. 
  11070.     /S      (Split) Display a split time without stopping the timer. To display 
  11071.             the current elapsed time but leave the timer running: 
  11072.  
  11073.                                 [c:\] timer /s
  11074.                                 Timer 1 elapsed: 0:06:40.63
  11075.  
  11076.     ON:     Start the timer regardless of its previous state (on or off). 
  11077.             Otherwise the TIMER command toggles the timer state (unless /S is 
  11078.             used). 
  11079.  
  11080.  
  11081. ΓòÉΓòÉΓòÉ 3.3.83. TITLE - Set window title ΓòÉΓòÉΓòÉ
  11082.  
  11083.  Purpose:    Change the window title. 
  11084.  
  11085.  Format:     TITLE "title" 
  11086.  
  11087.              title: The new window title. 
  11088.  
  11089.  See also:  ACTIVATE and WINDOW. 
  11090.  
  11091.  Usage: 
  11092.  
  11093.  TITLE changes the text that appears in the caption bar at the top of the Take 
  11094.  Command window.  It is included for compatibility with traditional character- 
  11095.  mode command processors (like CMD.EXE). You can also change the window title 
  11096.  with the WINDOW command or the ACTIVATE command. 
  11097.  
  11098.  To change the title of the current window to "Take Command Test": 
  11099.  
  11100.           [c:\] title "Take Command Test"
  11101.  
  11102.  
  11103. ΓòÉΓòÉΓòÉ 3.3.84. TOUCH - Change date and time stamps ΓòÉΓòÉΓòÉ
  11104.  
  11105.  Purpose:    Change a file's date and time stamps. 
  11106.  
  11107.  Format:     TOUCH [/C /D[acw][mm-dd-yy] /E /F /Q /T[acw][hh:mm] file... 
  11108.  
  11109.              file :  One or more files whose date and/or time stamps are to be 
  11110.              changed. 
  11111.  
  11112.  /C(reate file) /F(orce read-only files) 
  11113.  /D(ate)     /Q(uiet) 
  11114.  /E (No error messages) /T(ime) 
  11115.  
  11116.  File Selection: 
  11117.  
  11118.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  11119.  
  11120.  Usage: 
  11121.  
  11122.  TOUCH is used to change the date and / or time of a file.  You can use it to 
  11123.  be sure that particular files are included or excluded from an internal 
  11124.  command, backup program, compiler MAKE utility , or other program that selects 
  11125.  files based on their time and date stamps, or to set a group of files to the 
  11126.  same date and time for consistency. 
  11127.  
  11128.  TOUCH should be used with caution, and in most cases should only be used on 
  11129.  files you create.  Many programs depend on file dates and times to perform 
  11130.  their work properly.  In addition, many software manufacturers use file dates 
  11131.  and times to signify version numbers.  Indiscriminate changes to date and time 
  11132.  stamps can lead to confusion or incorrect behavior of other software. 
  11133.  
  11134.  TOUCH normally works with existing files, and will display an error if the 
  11135.  file you specify does not exist, or has the read-only attribute set.  To 
  11136.  create the file if it does not already exist, use the /C switch.  To force a 
  11137.  date and time change for read-only files, use the /F switch. 
  11138.  
  11139.  TOUCH displays the date, time, and full name of each file whose timestamp is 
  11140.  modified.  To disable this output, use /Q. 
  11141.  
  11142.  If you don't specify a date or a time, TOUCH will default to the current date 
  11143.  and time.  For example, to set the time stamp of all .C files in the current 
  11144.  directory to the current date and time: 
  11145.  
  11146.           [d:\] touch *.c
  11147.            6-12-97 11:13:58  D:\SOURCE\MAIN.C
  11148.            6-12-97 11:13:58  D:\SOURCE\INIT.C
  11149.            ...
  11150.  
  11151.  If you specify a date but not a time, the time will default to the current 
  11152.  time from your system clock.  Similarly, if you specify a time but not a date, 
  11153.  the date will be obtained from the system clock. 
  11154.  
  11155.  On HPFS volumes, TOUCH sets the "modified" or "last write" date and time by 
  11156.  default.  By adding an a, c, or w to the /D or /T switch, you can set the last 
  11157.  access, creation, or last write date and time stamps that are maintained for 
  11158.  each file;  see the Options section below for additional details. 
  11159.  
  11160.  Options: 
  11161.  
  11162.     /C      (Create file)  Create the file (as a zero-byte file) if it does not 
  11163.             already exist.  You cannot use wildcards with /C, but you can 
  11164.             create multiple files by listing them individually on the command 
  11165.             list. 
  11166.  
  11167.     /D      (Date)  Specify the date that will be set for the selected files. 
  11168.             If the date is not specified, TOUCH will use the current date.  For 
  11169.             HPFS files use /Da, /Dc, or /Dw, followed by the date, to specify 
  11170.             the last access, creation, or last write date stamp.  The date must 
  11171.             be entered using the proper format for your current country 
  11172.             settings. 
  11173.  
  11174.     /E      (No error messages)  Suppress all non-fatal error messages, such as 
  11175.             "File not found."  Fatal error messages, such as "Drive not ready," 
  11176.             will still be displayed.  This option is most useful in batch 
  11177.             files. 
  11178.  
  11179.     /F      (Force read-only files)  Remove the read-only attribute from each 
  11180.             file before changing the date and time, and restore it afterwards. 
  11181.             Without /F, attempting to change the date and time on a read-only 
  11182.             file will usually cause an error. 
  11183.  
  11184.     /Q      (Quiet)  Do not display the new date and time and the full name for 
  11185.             each file. 
  11186.  
  11187.     /T      (Time)  Specify the time that will be set for the selected files in 
  11188.             hh:mm format.  If the time is not specified, TOUCH will use the 
  11189.             current time.  For HPFS files, you can use /Ta, /Tc, or /Tw, 
  11190.             followed by the time, to specify the last access, creation, or last 
  11191.             write time stamp. 
  11192.  
  11193.  
  11194. ΓòÉΓòÉΓòÉ 3.3.85. TREE - Display directory tree ΓòÉΓòÉΓòÉ
  11195.  
  11196.  Purpose:    Display a graphical directory tree. 
  11197.  
  11198.  Format:     TREE [/A /B /F /H /P /S /T[:acw]] dir... 
  11199.  
  11200.              dir :  dir:  The directory to use as the start of the tree.  If 
  11201.              more than one directory is specified, TREE will display a 
  11202.              directory tree for each. 
  11203.  
  11204.  /A:(SCII)   /P(ause) 
  11205.  /B(are)     /S (file size) 
  11206.  /F(iles)    /T(time and date) 
  11207.  /H(idden directories) 
  11208.  
  11209.  File Selection: 
  11210.  
  11211.  Supports extended wildcards, ranges, multiple directory names, and include 
  11212.  lists. 
  11213.  
  11214.  Usage: 
  11215.  
  11216.  The TREE command displays a graphical representation of the directory tree 
  11217.  using standard or extended ASCII characters.  For example, to display the 
  11218.  directory structure on drive C: 
  11219.  
  11220.           c:\ tree c:\
  11221.  
  11222.  TREE uses the standard line drawing characters in the U.S. English extended 
  11223.  ASCII character set.  If your system is configured for a different country or 
  11224.  language, or if you use a font which does not include these line drawing 
  11225.  characters, the connecting lines in the tree display may not appear correctly 
  11226.  on your screen.  To correct the problem, use /A, or configure Take Command to 
  11227.  use a font, such as System VIO, which contains standard extended ASCII 
  11228.  characters. 
  11229.  
  11230.  You can print the display, save it in a file, or view it with LIST by using 
  11231.  standard redirection symbols.  Be sure to review the /A option before 
  11232.  attempting to print the TREE output.  The options, discussed below, specify 
  11233.  the amount of information included in the display. 
  11234.  
  11235.  Options: 
  11236.  
  11237.     /A      (ASCII)  Display the tree using standard ASCII characters.  You can 
  11238.             use this option if you want to save the directory tree in a file 
  11239.             for further processing or print the tree on a printer which does 
  11240.             not support the graphical symbols that TREE normally uses. 
  11241.  
  11242.     /B      (Bare)  Display the full pathname of each directory, without any of 
  11243.             the line-drawing characters. 
  11244.  
  11245.     /F      (Files)  Display files as well as directories.  If you use this 
  11246.             option, the name of each file is displayed beneath the name of the 
  11247.             directory in which it resides. 
  11248.  
  11249.     /H      (Hidden)  Display hidden as well as normal directories. If you 
  11250.             combine /H and /F, hidden files are also displayed. 
  11251.  
  11252.     /P      (Pause)  Wait for a key to be pressed after each screen page before 
  11253.             continuing the display.  Your options at the prompt are explained 
  11254.             in detail under Page and File Prompts. 
  11255.  
  11256.     /S      (Size)  Display the size of each file.  This option is only useful 
  11257.             when combined with /F. 
  11258.  
  11259.     /T      (Time and date) Display the time and date for each directory.  If 
  11260.             you combine /T and /F, the time and date for each file will also be 
  11261.             displayed.  For HPFS files, the time and date of the last write 
  11262.             will be shown by default.  You can select a specific time and date 
  11263.             stamp by using the following variations of /T: 
  11264.  
  11265.             /T:a         last access date and time (access time is not saved on 
  11266.                          LFN volumes) 
  11267.             /T:c         creation date and time 
  11268.             /T:w         last write date and time (default) 
  11269.  
  11270.  
  11271. ΓòÉΓòÉΓòÉ 3.3.86. TYPE - Display a file ΓòÉΓòÉΓòÉ
  11272.  
  11273.  Purpose:    Display the contents of the specified file(s). 
  11274.  
  11275.  Format:     TYPE [/A:[[-]rhsda] /L /P] file... 
  11276.  
  11277.              file :  The file or list of files that you want to display. 
  11278.  
  11279.  /A: (Attribute select) /P(ause) 
  11280.  /L(ine numbers) 
  11281.  
  11282.  See also:  LIST. 
  11283.  
  11284.  File Selection: 
  11285.  
  11286.  Supports extended wildcards, ranges, multiple file names, and include lists. 
  11287.  
  11288.  Usage: 
  11289.  
  11290.  The TYPE command displays a file.  It is normally only useful for displaying 
  11291.  ASCII text files.  Executable files (.COM and .EXE ) and many data files may 
  11292.  be unreadable when displayed with TYPE because they include non-alphanumeric 
  11293.  characters. 
  11294.  
  11295.  To display the files MEMO1 and MEMO2: 
  11296.  
  11297.           [c:\] type /p memo1 memo2
  11298.  
  11299.  You can press Ctrl-S to pause TYPE's display and then any key to continue. 
  11300.  
  11301.  To display text from the clipboard use CLIP: as the file name.  CLIP: will not 
  11302.  return any data if the clipboard does not contain text. 
  11303.  
  11304.  You will probably find LIST to be more useful for displaying files on the 
  11305.  screen.  However, the TYPE /L command used with redirection is useful if you 
  11306.  want to add line numbers to a file, for example: 
  11307.  
  11308.           [c:\] type /l myfile > myfile.num
  11309.  
  11310.  Options: 
  11311.  
  11312.     /A:     (Attribute select) Select only those files that have the specified 
  11313.             attribute(s) set.  Preceding the attribute character with a hyphen 
  11314.             [-] will select files that do not have that attribute set.  The 
  11315.             colon [:] after /A is required.  The attributes are: 
  11316.  
  11317.                           R  Read-only 
  11318.                           H  Hidden 
  11319.                           S  System 
  11320.                           D  Subdirectory 
  11321.                           A  Archive 
  11322.  
  11323.             If no attributes are listed at all (e.g., TYPE /A: ...), TYPE will 
  11324.             select all files and subdirectories including hidden and system 
  11325.             files.  If attributes are combined, all the specified attributes 
  11326.             must match for a file to be selected.  For example, /A:RHS will 
  11327.             select only those files with all three attributes set. 
  11328.  
  11329.     /L      (Line numbers) Display a line number preceding each line of text. 
  11330.  
  11331.     /P      (Pause) Prompt after displaying each page.  Your options at the 
  11332.             prompt are explained in detail under Page and File Prompts. 
  11333.  
  11334.  
  11335. ΓòÉΓòÉΓòÉ 3.3.87. UNALIAS - Remove aliases ΓòÉΓòÉΓòÉ
  11336.  
  11337.  Purpose:    Remove aliases from the alias list. 
  11338.  
  11339.  Format:     UNALIAS [/Q /R file...] alias... 
  11340.                 or 
  11341.              UNALIAS * 
  11342.  
  11343.              alias :  One or more aliases to remove from memory. 
  11344.              file :  One or more files to read for alias definitions. 
  11345.  
  11346.  /Q(uiet)    /R(ead file) 
  11347.  
  11348.  See also:  ALIAS and ESET. 
  11349.  
  11350.  Usage: 
  11351.  
  11352.  Take Command maintains a list of the aliases that you have defined.  The 
  11353.  UNALIAS command will remove aliases from that list.  You can remove one or 
  11354.  more aliases by name, or you can delete the entire alias list by using the 
  11355.  command UNALIAS *.  For example, to remove the alias DDIR: 
  11356.  
  11357.           [c:\] unalias ddir
  11358.  
  11359.  To remove all the aliases: 
  11360.  
  11361.           [c:\] unalias *
  11362.  
  11363.  If you keep aliases in a file that can be loaded with the ALIAS /R command, 
  11364.  you can remove the aliases by using the UNALIAS /R command with the same file 
  11365.  name: 
  11366.  
  11367.           [c:\] unalias /r alias.lst
  11368.  
  11369.  This is much faster than removing each alias individually in a batch file, and 
  11370.  can be more selective than using UNALIAS *. 
  11371.  
  11372.  You can also remove individual aliases with the Alias dialog.  Options: 
  11373.  
  11374.     /Q      (Quiet) Prevents UNALIAS from displaying an error message if one or 
  11375.             more of the aliases does not exist.  This option is most useful in 
  11376.             batch files, for removing a group of aliases when some of the 
  11377.             aliases may not have been defined. 
  11378.  
  11379.     /R      (Read)  Read the list of aliases to remove from a file. The file 
  11380.             format should be the same format as that used by the ALIAS /R 
  11381.             command.  You can use multiple files with one UNALIAS /R command by 
  11382.             placing the names on the command line, separated by spaces: 
  11383.  
  11384.                                 [c:\] unalias /r alias1.lst alias2.lst
  11385.  
  11386.  
  11387. ΓòÉΓòÉΓòÉ 3.3.88. UNSET - Remove environment variables ΓòÉΓòÉΓòÉ
  11388.  
  11389.  Purpose:    Remove variables from the environment. 
  11390.  
  11391.  Format:     UNSET  [/Q /R file...] name... 
  11392.                 or 
  11393.              UNSET * 
  11394.  
  11395.              file :  One or more files containing variable definitions. 
  11396.              name :  One or more variables to remove from the environment. 
  11397.  
  11398.  /Q(uiet)    /R(ead from file) 
  11399.  
  11400.  See also:  ESET and SET. 
  11401.  
  11402.  Usage: 
  11403.  
  11404.  UNSET removes one or more variables from the environment.  For example, to 
  11405.  remove the environment variable CMDLINE: 
  11406.  
  11407.           [c:\] unset cmdline
  11408.  
  11409.  If you use the command UNSET *, all of the environment variables will be 
  11410.  deleted: 
  11411.  
  11412.           [c:\] unset *
  11413.  
  11414.  You can also remove individual variables from the environment with the 
  11415.  Environment dialog. 
  11416.  
  11417.   UNSET can be used in a batch file, in conjunction with the SETLOCAL and 
  11418.  ENDLOCAL commands, to clear the environment of variables that may cause 
  11419.  problems for applications run from that batch file. 
  11420.  
  11421.  For more information on environment variables, see the SET command and the 
  11422.  general discussion of the environment. 
  11423.  
  11424.  Use caution when removing environment variables, and especially when using 
  11425.  UNSET *.  Many programs will not work properly without certain environment 
  11426.  variables; for example, Take Command uses PATH and CDPATH. 
  11427.  
  11428.  Options: 
  11429.  
  11430.     /Q      (Quiet) Prevents UNSET from displaying an error message if one or 
  11431.             more of the variables does not exist.  This option is most useful 
  11432.             in batch files, for removing a group of variables when some of the 
  11433.             variables may not have been defined. 
  11434.  
  11435.     /R      (Read)  Read environment variables to UNSET from a file. This much 
  11436.             faster than using multiple UNSET commands in a batch file, and can 
  11437.             be more selective than UNSET *.  The file format should be the same 
  11438.             format as that used by the SET /R command. 
  11439.  
  11440.  
  11441. ΓòÉΓòÉΓòÉ 3.3.89. VER - Display version levels ΓòÉΓòÉΓòÉ
  11442.  
  11443.  Purpose:    Display the current command processor and operating system 
  11444.              versions. 
  11445.  
  11446.  Format:     VER [/R] 
  11447.  
  11448.              /R(evision level) 
  11449.  
  11450.  Usage: 
  11451.  
  11452.  Version numbers consist of a one-digit major version number, a period, and a 
  11453.  one- or two-digit minor version number.  VER uses the default decimal 
  11454.  separator defined by the current country information.  The VER command 
  11455.  displays both version numbers: 
  11456.  
  11457.           [c:\] ver
  11458.           Take Command for OS/2 2.00A   OS/2 Version is 4.00
  11459.  
  11460.  Option: 
  11461.  
  11462.     /R      (Revision level) Display the Take Command and OS/2 internal 
  11463.             revision levels, plus your Take Command serial number and 
  11464.             registered name. 
  11465.  
  11466.  
  11467. ΓòÉΓòÉΓòÉ 3.3.90. VERIFY - Disk write verification ΓòÉΓòÉΓòÉ
  11468.  
  11469.  Purpose:    Enable or disable disk write verification or display the 
  11470.              verification state. 
  11471.  
  11472.  Format:     VERIFY [ON | OFF] 
  11473.  
  11474.  Usage: 
  11475.  
  11476.  OS/2 maintains an internal verify flag.  When the flag is on, OS/2 attempts to 
  11477.  verify each disk write by making sure that the data written to the disk can be 
  11478.  read back successfully into the computer.  It does not compare the data in 
  11479.  memory with the data actually placed on disk to fully verify the disk write 
  11480.  process. 
  11481.  
  11482.  If used without any parameters, VERIFY will display the state of the verify 
  11483.  flag: 
  11484.  
  11485.           [c:\] verify
  11486.           VERIFY is OFF
  11487.  
  11488.  VERIFY is off when the system boots up.  Once it is turned on with the VERIFY 
  11489.  ON command, it stays on until you use the VERIFY OFF command or until you 
  11490.  reboot. 
  11491.  
  11492.  Verification will slow your disk write operations slightly (the effect is not 
  11493.  usually noticeable). 
  11494.  
  11495.  
  11496. ΓòÉΓòÉΓòÉ 3.3.91. VOL - Display drive label ΓòÉΓòÉΓòÉ
  11497.  
  11498.  Purpose:    Display disk volume label(s). 
  11499.  
  11500.  Format:     VOL [d :] ... 
  11501.  
  11502.              d:  The drive or drives to search for labels. 
  11503.  
  11504.  Usage: 
  11505.  
  11506.  Each disk may have a volume label, created when the disk is formatted or with 
  11507.  the external LABEL command.  Also, every floppy disk formatted with DOS 
  11508.  version 4.0 or above or with OS/2 has a volume serial number. 
  11509.  
  11510.  The VOL command will display the volume label and, if available, the volume 
  11511.  serial number of a disk volume.  If the disk doesn't have a volume label, VOL 
  11512.  will report that it is "unlabeled."  If you don't specify a drive, VOL 
  11513.  displays information about the current drive: 
  11514.  
  11515.           [c:\] vol
  11516.           Volume in drive C: is MYHARDDISK
  11517.  
  11518.  If available, the volume serial number will appear after the drive label or 
  11519.  name. 
  11520.  
  11521.  To display the disk labels for drives A and B: 
  11522.  
  11523.           [c:\] vol a: b:
  11524.           Volume in drive A: is unlabeled
  11525.           Volume in drive B: is BACKUP_2
  11526.  
  11527.  
  11528. ΓòÉΓòÉΓòÉ 3.3.92. VSCRPUT - Display text in color vertically ΓòÉΓòÉΓòÉ
  11529.  
  11530.  Purpose:    Display text vertically in the specified color. 
  11531.  
  11532.  Format:     VSCRPUT row col [BRIght] fg ON [BRIght] bg text 
  11533.  
  11534.              row :  Starting row. 
  11535.              col :  Starting column. 
  11536.              fg :  Foreground text color. 
  11537.              bg :  Background text color. 
  11538.              text :  The text to display. 
  11539.  
  11540.  See also:  SCRPUT. 
  11541.  
  11542.  Usage: 
  11543.  
  11544.  VSCRPUT writes text vertically on the screen rather than horizontally.  It can 
  11545.  be used for simple graphs and charts generated by batch files. 
  11546.  
  11547.  Like the SCRPUT command, VSCRPUT uses the colors you specify to write the 
  11548.  text.  See Colors and Color Names for details about colors and color names. 
  11549.  
  11550.  The row and column are zero-based, so on a 25 line by 80 column display, valid 
  11551.  rows are 0 - 24 and valid columns are 0 - 79.  The maximum row value is 
  11552.  determined by the current height of the Take Command window; the maximum 
  11553.  column value is determined by the current virtual screen width.  VSCRPUT 
  11554.  displays an error if either the the row or the column is out of range. 
  11555.  
  11556.  You can also specify the row and column as offsets from the current cursor 
  11557.  position.  Begin the value with a plus sign [+] to move down the specified 
  11558.  number of rows or to the right the specified number of columns before 
  11559.  displaying text, or with a minus sign [-] to move up or to the left. 
  11560.  
  11561.  If you specify 999 for the row, VSCRPUT will center the text vertically in the 
  11562.  Take Command window.  If you specify 999 for the column, VSCRPUT will center 
  11563.  the text horizontally. 
  11564.  
  11565.  VSCRPUT does not move the cursor when it displays the text. 
  11566.  
  11567.  The following batch file fragment displays an X and Y axis and labels them: 
  11568.  
  11569.           cls bright white on blue
  11570.           drawhline 20 10 40 1 bright white on blue
  11571.           drawvline 2 10 19 1 bright white on blue
  11572.           scrput 21 20 bright red on blue X axis
  11573.           vscrput 8 9 bright red on blue Y axis
  11574.  
  11575.  
  11576. ΓòÉΓòÉΓòÉ 3.3.93. WINDOW - Change the window state or title ΓòÉΓòÉΓòÉ
  11577.  
  11578.  Purpose:    Minimize or maximize the current window, restore the default 
  11579.              window size, or change the window title. 
  11580.  
  11581.  Format:     WINDOW [MIN | MAX | RESTORE | /POS=row,col,width,height | "title"] 
  11582.  
  11583.              title :  A new title for the window. 
  11584.  
  11585.              /POS(ition) 
  11586.  
  11587.  See also: ACTIVATE and TITLE. 
  11588.  
  11589.  Usage: 
  11590.  
  11591.  WINDOW is used to control the appearance and title of the current window. 
  11592.  WINDOW MIN reduces the window to an icon, WINDOW MAX enlarges it to its 
  11593.  maximum size, and WINDOW RESTORE returns the window to its default size and 
  11594.  location on the desktop. 
  11595.  
  11596.  You can use the /POS option to set the location and size of the window on the 
  11597.  desktop.  The row and column values of the /POS option select the window's 
  11598.  origin while the width and height values determine its size. 
  11599.  
  11600.  If you specify a new title, the title text must be enclosed in double quotes. 
  11601.  The quotes will not appear as part of the actual title. 
  11602.  
  11603.  You can only specify one WINDOW option at a time.  The different options 
  11604.  cannot be combined in a single WINDOW command.  To perform multiple 
  11605.  operations, use multiple WINDOW commands. 
  11606.  
  11607.  Option: 
  11608.  
  11609.     /POS    (Position) Set the window screen position and size. The syntax is 
  11610.             /POS=row, col, width, height, where the values are specified in 
  11611.             pixels or pels.  row and col refer to the position of the bottom 
  11612.             left corner of the window relative to the bottom left corner of the 
  11613.             screen. 
  11614.  
  11615.  
  11616. ΓòÉΓòÉΓòÉ 3.3.94. Y - "Y" pipe fitting ΓòÉΓòÉΓòÉ
  11617.  
  11618.  Purpose:    Copy standard input to standard output, and then copy the 
  11619.              specified file(s) to standard output. 
  11620.  
  11621.  Format:     Y file ... 
  11622.  
  11623.              file :  The file or list of files to send to standard output. 
  11624.  
  11625.  See also:  TEE. 
  11626.  
  11627.  Usage: 
  11628.  
  11629.  The Y command copies input from standard input (usually the keyboard) to 
  11630.  standard output (usually the screen).  Once the input ends, the named files 
  11631.  are appended to standard output. 
  11632.  
  11633.  For example, to get text from standard input, append the files MEMO1 and MEMO2 
  11634.  to it, and send the output to MEMOS: 
  11635.  
  11636.           [c:\] y memo1 memo2 > memos
  11637.  
  11638.  The Y command is most useful if you want to add redirected data to the 
  11639.  beginning of a file instead of appending it to the end.  For example, this 
  11640.  command copies the output of DIR, followed by the contents of the file DIREND, 
  11641.  to the file DIRALL: 
  11642.  
  11643.           [c:\] dir | y dirend > dirall
  11644.  
  11645.  If you are typing at the keyboard to produce input text for Y, you must enter 
  11646.  a Ctrl-Z to terminate the input. 
  11647.  
  11648.  When using Y with a pipe you must take into account that the programs on the 
  11649.  two ends of the pipe run simultaneously, not sequentially as they would under 
  11650.  4DOS. 
  11651.  
  11652.  See Piping for more information on pipes. 
  11653.  
  11654.  
  11655. ΓòÉΓòÉΓòÉ 4. Aliases ΓòÉΓòÉΓòÉ
  11656.  
  11657. Much of the power of Take Command comes together in aliases, which give you the 
  11658. ability to create your own commands.  An alias is a name that you select for a 
  11659. command or group of commands.  Simple aliases substitute a new name for an 
  11660. existing command.  More complex aliases can redefine the default settings of 
  11661. internal or external commands, operate as very fast in-memory batch files, and 
  11662. perform commands based on the results of other commands. 
  11663.  
  11664. This section shows you some examples of the power of aliases.  See the ALIAS 
  11665. command for complete details about writing your own aliases.  You can create 
  11666. aliases either from the command line, as described in this section, or with the 
  11667. Aliases dialog which is available from the Utilities menu. 
  11668.  
  11669. The simplest type of alias gives a new name to an existing command.  For 
  11670. example, you could create a command called R (for Root directory) to switch to 
  11671. the root directory this way: 
  11672.  
  11673.         [c:\] alias r = cd \
  11674.  
  11675. After the alias has been defined this way, every time you type the command R, 
  11676. you will actually execute the command CD \. 
  11677.  
  11678. Aliases can also create customized versions of commands.  For example, the DIR 
  11679. command can sort a directory in various ways.  You can create an alias called 
  11680. DE that means "sort the directory by filename extension, and pause after each 
  11681. page while displaying it" like this: 
  11682.  
  11683.         [c:\] alias de = dir /oe /p
  11684.  
  11685. Aliases can be used to execute sequences of commands as well.  The following 
  11686. command creates an alias called MUSIC which saves the current drive and 
  11687. directory, changes to the SOUNDS directory on drive C, runs the program 
  11688. E:\MUSIC\PLAYER.EXE, and, when the program terminates, returns to the original 
  11689. drive and directory (enter this on one line): 
  11690.  
  11691.         [c:\] alias music = `pushd c:\sounds &
  11692. e:\music\player.exe & popd`
  11693.  
  11694. This alias is enclosed in back-quotes because it contains multiple commands. 
  11695. You must use the back-quotes whenever an alias contains multiple commands, 
  11696. environment variables, parameters (see below), redirection, or piping.  See the 
  11697. ALIAS command for full details. 
  11698.  
  11699. When an alias contains multiple commands, the commands are executed one after 
  11700. the other.  However, if any of the commands runs an external OS/2 application 
  11701. (such as the fictitious PLAYER.EXE shown above), you must be sure the alias 
  11702. will wait for the application to finish before continuing with the other 
  11703. commands.  See Waiting for Applications to Finish under Starting Applications 
  11704. for additional details. 
  11705.  
  11706. Aliases can be nested; that is, one alias can invoke another.  For example, the 
  11707. alias above could also be written as: 
  11708.  
  11709.         [c:\] alias play = e:\music\player.exe
  11710.         [c:\] alias music = `pushd c:\sounds & play &
  11711. popd`
  11712.  
  11713. If you enter MUSIC as a command, Take Command will execute the PUSHD command, 
  11714. detect that the next command (PLAY) is another alias, and execute the program 
  11715. E:\MUSIC\PLAYER.EXE, and ╨º when the program exits ╨º return to the first alias, 
  11716. execute the POPD command, and return to the prompt. 
  11717.  
  11718. You can use aliases to change the default options for both internal commands 
  11719. and external commands.  Suppose that you always want the DEL command to prompt 
  11720. before it erases a file: 
  11721.  
  11722.         [c:\] alias del = *del /p
  11723.  
  11724. An asterisk [*] is used in front of the second "del" to show that it is the 
  11725. name of an internal command, not an alias.  See Temporarily Disabling Aliases 
  11726. for more information about this use of the asterisk. 
  11727.  
  11728. You may have a program on your system that has the same name as an internal 
  11729. command.  Normally, if you type the command name, you will start the internal 
  11730. command rather than the program you desire, unless you explicitly add the 
  11731. program's full path on the command line.  For example, if you have a program 
  11732. named DESCRIBE.COM in the C:\UTIL directory, you could run it with the command 
  11733. C:\UTIL\DESCRIBE.EXE.  However, if you simply type DESCRIBE, the internal 
  11734. DESCRIBE command will be invoked instead.  Aliases give you two ways to get 
  11735. around this problem. 
  11736.  
  11737. First, you could define an alias that runs the program in question, but with a 
  11738. different name: 
  11739.  
  11740.         [c:\] alias desc = c:\util\describe.exe
  11741.  
  11742. Another approach is to rename the internal command and use the original name 
  11743. for the external program.  The following example renames the DESCRIBE command 
  11744. as FILEDESC and then uses a second alias to run DESCRIBE.EXE whenever you type 
  11745. DESCRIBE: 
  11746.  
  11747.         [c:\] alias filedesc = *describe
  11748.         [c:\] alias describe = c:\winutil\describe.exe
  11749.  
  11750. You can also assign an alias to a key, so that every time you press the key, 
  11751. the command will be invoked.  You do so by naming the alias with an at sign [@] 
  11752. followed by a key name.  After you enter this next example, you will see a 
  11753. 2-column directory with paging whenever you press Shift-F5, then Enter: 
  11754.  
  11755.         [c:\] alias @Shift-F5 = *dir /2/p
  11756.  
  11757. This alias will put the DIR command on the command line when you press 
  11758. Shift-F5, then wait for you to enter file names or additional switches.  You 
  11759. must press Enter when you are ready to execute the command.  To execute the 
  11760. command immediately, without displaying it on the command line or waiting for 
  11761. you to press Enter, use two at signs at the start of the alias name: 
  11762.  
  11763.         [c:\] alias @@Shift-F5 = *dir /2/p
  11764.  
  11765. The next example clears the Take Command window whenever you press Ctrl- F1: 
  11766.  
  11767.         [c:\] alias @@Ctrl-F1 = cls
  11768.  
  11769. Aliases have many other capabilities as well.  This example creates a simple 
  11770. command-line calculator.  Once you have entered the example, you can type CALC 
  11771. 4*19, for example, and you will see the answer: 
  11772.  
  11773.         [c:\] alias calc = `echo The answer is:  %@eval[%$]`
  11774.  
  11775. Our last example in this section creates an alias called IN.  It will 
  11776. temporarily change directories, run an internal or external command, and then 
  11777. return to the current directory when the command is finished: 
  11778.  
  11779.         [c:\] alias in = `pushd %1 & %2& & popd`
  11780.  
  11781. Now if you type: 
  11782.  
  11783.         [c:\] in c:\sounds play furelise.wav
  11784.  
  11785. you will change to the C:\SOUNDS subdirectory, execute the command PLAY 
  11786. FURELISE.WAV, and then return to the current directory. 
  11787.  
  11788. The above example uses two parameters:  %1 means the first argument on the 
  11789. command line, and %2& means the second and all subsequent arguments. Parameters 
  11790. are explained in detail under the ALIAS command. 
  11791.  
  11792. Your copy of Take Command includes a sample alias file called ALIASES which 
  11793. contains several useful aliases and demonstrates many alias techniques.  Also, 
  11794. see the ALIAS and UNALIAS commands for more information and examples. 
  11795.  
  11796.  
  11797. ΓòÉΓòÉΓòÉ 5. Batch Files ΓòÉΓòÉΓòÉ
  11798.  
  11799. A batch file is a file that contains a list of commands to execute.  Take 
  11800. Command reads and interprets each line as if it had been typed at the keyboard. 
  11801. Like aliases, batch files are handy for automating computing tasks.  Unlike 
  11802. aliases, batch files can be as long as you wish.  Batch files take up separate 
  11803. disk space for each file, and can't usually execute quite as quickly as 
  11804. aliases, since they must be read from the disk. 
  11805.  
  11806. The topics included in this section are: 
  11807.  
  11808.     .BAT, .CMD, and .BTM Files 
  11809.     Echoing in Batch Files 
  11810.     Batch File Parameters 
  11811.     Using Environment Variables 
  11812.     Batch File Commands 
  11813.     Interrupting a Batch File 
  11814.     Automatic Batch Files 
  11815.     Detecting Take Command 
  11816.     Using Aliases in Batch Files 
  11817.     Debugging Batch Files 
  11818.     Batch File String Processing 
  11819.     Batch File Compression 
  11820.     Argument Quoting 
  11821.     Batch File Line Continuation 
  11822.     REXX Support 
  11823.     EXTPROC Support 
  11824.  
  11825. Also see Special Character Compatibility,  Using 4DOS and 4OS2 Batch Files, and 
  11826. The Environment, Internal Variables, and Variable Functions for related 
  11827. information. 
  11828.  
  11829.  
  11830. ΓòÉΓòÉΓòÉ 5.1. .BAT, .CMD, and .BTM Files ΓòÉΓòÉΓòÉ
  11831.  
  11832. A Take Command batch file can run in two different modes.  In the first, 
  11833. traditional mode, each line of the batch file is read and executed 
  11834. individually, and the file is opened and closed to read each line.  In the 
  11835. second mode the batch file is opened once, the entire file is read into memory, 
  11836. and the file is closed.  The second mode can be 5 to 10 times faster, 
  11837. especially if most of the commands in the batch file are internal commands. 
  11838. However, only the first mode can be used for self-modifying batch files. 
  11839.  
  11840. The batch file's extension determines its mode.  Files with a .BAT or .CMD 
  11841. extension are run in the slower, traditional mode.  Files with a .BTM extension 
  11842. are run in the faster, more efficient mode. You can change the execution mode 
  11843. inside a batch file with the LOADBTM command. 
  11844.  
  11845.  
  11846. ΓòÉΓòÉΓòÉ 5.2. Echoing in Batch Files ΓòÉΓòÉΓòÉ
  11847.  
  11848. By default, each line in a batch file is displayed or "echoed" as it is 
  11849. executed.  You can change this behavior, if you want, in several different 
  11850. ways: 
  11851.  
  11852.              Any batch file line that begins with an [@] symbol will not be 
  11853.              displayed. 
  11854.  
  11855.              The display can be turned off and on within a batch file with the 
  11856.              ECHO OFF and ECHO ON commands. 
  11857.  
  11858.              The default setting can be changed with the SETDOS /V command or 
  11859.              the BatchEcho directive in the TCMDOS2.INI file. 
  11860.  
  11861.  For example, the following line turns off echoing inside a batch file.  The 
  11862.  [@] symbol keeps the batch file from displaying the ECHO OFF command: 
  11863.  
  11864.           @echo off
  11865.  
  11866.  Take Command also has a command line echo that is unrelated to the batch file 
  11867.  echo setting.  See ECHO for details about both settings. 
  11868.  
  11869.  
  11870. ΓòÉΓòÉΓòÉ 5.3. Batch File Line Continuation ΓòÉΓòÉΓòÉ
  11871.  
  11872. Take Command will combine multiple lines in the batch file into a single line 
  11873. for processing when you include the escape character as the very last character 
  11874. of each line to be combined (except the last).  The default escape character is 
  11875. a caret [^].  For example: 
  11876.  
  11877.         [c:\] echo The quick brown fox jumped over the lazy^
  11878.         sleeping^
  11879.         dog. > alphabet
  11880.  
  11881. You cannot use this technique to extend a batch file line beyond the normal 
  11882. line length limit of 1,023 characters. 
  11883.  
  11884.  
  11885. ΓòÉΓòÉΓòÉ 5.4. Batch File Parameters ΓòÉΓòÉΓòÉ
  11886.  
  11887. Like aliases and application programs, batch files can examine the command line 
  11888. that is used to invoke them.  The command tail (everything on the command line 
  11889. after the batch file name) is separated into individual parameters (also called 
  11890. arguments or batch variables) by scanning for the spaces, tabs, and commas that 
  11891. separate the parameters.  A batch file can work with the individual parameters 
  11892. or with the command tail as a whole. 
  11893.  
  11894. These parameters are numbered from %1 to %127. %1 refers to the first parameter 
  11895. on the command line, %2 to the second, and so on.  It is up to the batch file 
  11896. to determine the meaning of each parameter.  You can use quotation marks to 
  11897. pass spaces, tabs, commas, and other special characters in a batch file 
  11898. parameter; see Argument Quoting for details. 
  11899.  
  11900. Parameters that are referred to in a batch file, but which are missing on the 
  11901. command line, appear as empty strings inside the batch file.  For example, if 
  11902. you start a batch file and put two parameters on the command line, any 
  11903. reference in the batch file to %3, or any higher-numbered parameter, will be 
  11904. interpreted as an empty string. 
  11905.  
  11906. A batch file can also work with three special parameters: %0 contains the name 
  11907. of the batch file as it was entered on the command line, %# contains the number 
  11908. of command line arguments, and %n$ contains the complete command-line tail 
  11909. starting with argument number n (for example,%3$ means the third parameter and 
  11910. all those after it).  The default value of n is 1, so %$ contains the entire 
  11911. command tail.  The values of these special parameters will change if you use 
  11912. the SHIFT command. 
  11913.  
  11914. For example, if your batch file interprets the first argument as a subdirectory 
  11915. name then the following line would move to the specified directory: 
  11916.  
  11917.         cd %1
  11918.  
  11919. A friendlier batch file would check to make sure the directory exists and take 
  11920. some special action if it doesn't: 
  11921.  
  11922.         iff isdir %1 then
  11923.            cd %1
  11924.         else
  11925.            echo Subdirectory %1 does not exist!
  11926.            quit
  11927.         endiff
  11928.  
  11929. (See the IF and IFF commands.) 
  11930.  
  11931. Batch files can also use environment variables, internal variables, and 
  11932. variable functions. 
  11933.  
  11934.  
  11935. ΓòÉΓòÉΓòÉ 5.5. Using Environment Variables ΓòÉΓòÉΓòÉ
  11936.  
  11937. Batch files can also use environment variables, internal variables, and 
  11938. variable functions.  You can use these variables and functions to determine 
  11939. system status (e.g., the type of CPU in the system), resource levels (e.g., the 
  11940. amount of free disk space), file information (e.g., the date and time a file 
  11941. was last modified), and other information (e.g., the current date and time). 
  11942. You can also perform arithmetic operations (including date and time 
  11943. arithmetic), manipulate strings and substrings, extract parts of a filename, 
  11944. and read and write files. 
  11945.  
  11946. To create temporary variables for use inside a batch file, just use the SET 
  11947. command to store the information you want in an environment variable.  Pick a 
  11948. variable name that isn't likely to be in use by some other program (for 
  11949. example, PATH would be a bad choice), and use the UNSET command to remove these 
  11950. variables from the environment at the end of your batch file.  You can use 
  11951. SETLOCAL and ENDLOCAL to create a "local" environment so that the original 
  11952. environment will be restored when your batch file is finished. 
  11953.  
  11954. Environment variables used in a batch file may contain either numbers or text. 
  11955. It is up to you to keep track of what's in each variable and use it 
  11956. appropriately; if you don't (for example, if you use %@EVAL to add a number to 
  11957. a text string), you'll get an error message. 
  11958.  
  11959.  
  11960. ΓòÉΓòÉΓòÉ 5.6. Batch File Commands ΓòÉΓòÉΓòÉ
  11961.  
  11962. Several commands are particularly suited to batch file processing.  Each 
  11963. command is explained in detail in the Command Reference.  Here is a list of 
  11964. some of the commands you might find most useful: 
  11965.  
  11966.             ACTIVATE activates another window. 
  11967.  
  11968.             BEEP produces a sound of any pitch and duration through the 
  11969.              computer's speaker. 
  11970.  
  11971.             CALL executes one batch file from within another. 
  11972.  
  11973.             CANCEL terminates all batch file processing. 
  11974.  
  11975.             CLS and COLOR set the Take Command display colors. 
  11976.  
  11977.             DO starts a loop.  The loop can be based on a counter, or on a 
  11978.              conditional test like those used in IF and IFF. 
  11979.  
  11980.             DRAWBOX draws a box on the screen. 
  11981.  
  11982.             DRAWHLINE and DRAWVLINE draw horizontal and vertical lines on the 
  11983.              screen. 
  11984.  
  11985.             ECHO and ECHOS print text on the screen (the text can also be 
  11986.              redirected to a file or device).  ECHOERR and ECHOSERR print text 
  11987.              to the standard error device. 
  11988.  
  11989.             GOSUB executes a subroutine inside a batch file.  The RETURN 
  11990.              command terminates the subroutine. 
  11991.  
  11992.             GOTO branches to a different location in the batch file. 
  11993.  
  11994.             FOR executes commands for each file that matches a set of 
  11995.              wildcards, or each entry in a list. 
  11996.  
  11997.             IF and IFF execute commands based on a test of string or numeric 
  11998.              values, program exit codes, or other conditions. 
  11999.  
  12000.             INKEY and INPUT collect keyboard input from the user and store it 
  12001.              in environment variables. 
  12002.  
  12003.             KEYSTACK sends keystrokes to applications. 
  12004.  
  12005.             LOADBTM changes the batch file operating mode. 
  12006.  
  12007.             MSGBOX displays a dialog box with standard buttons like Yes, No, 
  12008.              OK, and Cancel, and returns the user's selection. 
  12009.  
  12010.             ON initializes error handling for Ctrl- C / Ctrl-Break, or for 
  12011.              program and command errors. 
  12012.  
  12013.             PAUSE displays a message and waits for the user to press a key. 
  12014.  
  12015.             QUERYBOX displays a dialog box for text input. 
  12016.  
  12017.             QUIT ends the current batch file and optionally returns an exit 
  12018.              code. 
  12019.  
  12020.             REM places a remark in a batch file. 
  12021.  
  12022.             SCREEN positions the cursor on the screen and optionally prints a 
  12023.              message at the new location. 
  12024.  
  12025.             SCRPUT displays a message in color. 
  12026.  
  12027.             SETLOCAL saves the current disk drive, default directory, 
  12028.              environment, alias list, and special character settings.  ENDLOCAL 
  12029.              restores the settings that were saved. 
  12030.  
  12031.             SHIFT changes the numbering of the batch file parameters. 
  12032.  
  12033.             START starts another session or window. 
  12034.  
  12035.             SWITCH selects a group of statements to execute based on the value 
  12036.              of a variable. 
  12037.  
  12038.             TEXT displays a block of text.  ENDTEXT ends the block. 
  12039.  
  12040.             TIMER starts or reads a stopwatch. 
  12041.  
  12042.             TITLE changes the window title. 
  12043.  
  12044.             VSCRPUT displays a vertical message in color. 
  12045.  
  12046.  These commands, along with the internal variables and variable functions, make 
  12047.  the enhanced batch file language extremely powerful.  Your copy of Take 
  12048.  Command includes a sample batch file, in the file EXAMPLES.BTM, that 
  12049.  demonstrates some of the things you can do with batch files. 
  12050.  
  12051.  
  12052. ΓòÉΓòÉΓòÉ 5.7. Interrupting a Batch File ΓòÉΓòÉΓòÉ
  12053.  
  12054. You can usually interrupt a batch file by pressing Ctrl-C or Ctrl-Break. 
  12055. Whether and when these keystrokes are recognized will depend on whether Take 
  12056. Command or an application program is running, how the application (if any) was 
  12057. written, and whether the ON BREAK command is in use. 
  12058.  
  12059. If Take Command detects a Ctrl-C or Ctrl-Break (and ON BREAK is not in use), it 
  12060. will display a prompt, for example: 
  12061.  
  12062.         Cancel batch job C:\CHARGE.BTM ? (Y/N/A) :
  12063.  
  12064. Enter N to continue, Y to terminate the current batch file and continue with 
  12065. any batch file which called it, or A to end all batch file processing 
  12066. regardless of the batch file nesting level. Answering Y is similar to the QUIT 
  12067. command; answering A is similar to the CANCEL command. 
  12068.  
  12069.  
  12070. ΓòÉΓòÉΓòÉ 5.8. Automatic Batch Files (TCSTART & TCEXIT) ΓòÉΓòÉΓòÉ
  12071.  
  12072. Take Command supports two "automatic" batch files, files that run without your 
  12073. intervention, as long as Take Command can find them. 
  12074.  
  12075. Each time Take Command starts, it looks for an automatic batch file called 
  12076. TCSTART.BTM, TCSTART.CMD or TCSTART.BAT.  If the TCSTART batch file is not in 
  12077. the same directory as Take Command itself, you should use the Startup page of 
  12078. the configuration notebook, or the TCSTARTPath directive in your TCMDOS2.INI 
  12079. file to specify its location.  TCSTART is optional, so Take Command will not 
  12080. display an error message if it cannot find the file. 
  12081.  
  12082. TCSTART is a convenient place to change the color or content of the prompt for 
  12083. each session, LOG the start of a session, or execute other special startup or 
  12084. configuration commands.  It is also one way to set aliases and environment 
  12085. variables. 
  12086.  
  12087. With the exception of some initialization switches, the entire startup command 
  12088. line passed to Take Command is available to TCSTART via batch file parameters 
  12089. (%1, %2, etc.). This can be useful if you want to see the command line passed 
  12090. to Take Command. For example, to pause if any parameters are passed you could 
  12091. include this command in TCSTART: 
  12092.  
  12093.         if "%1" != "" pause Starting Take Command with parameters [%$]
  12094.  
  12095. Whenever a Take Command session ends, it runs a second automatic batch file 
  12096. called TCEXIT.BTM, TCEXIT.CMD or TCEXIT.BAT. This file, if you use it, should 
  12097. be in the same directory as your TCSTART batch file.  Like TCSTART, TCEXIT is 
  12098. optional.  It is not necessary in most circumstances, but it is a convenient 
  12099. place to put commands to save information such as a history list before Take 
  12100. Command ends, or LOG the end of the session. 
  12101.  
  12102. Pipes, Transient Sessions, and TCSTART 
  12103.  
  12104. When you set up the TCSTART file, remember that it is executed every time Take 
  12105. Command starts, including when running a pipe, or a transient copy of Take 
  12106. Command started with the /C startup option. 
  12107.  
  12108. For example, suppose you enter a command line like this, which uses a pipe: 
  12109.  
  12110.         [c:\data] myprog | sort > out.txt
  12111.  
  12112. Normally this command would create the output file C:\DATA\OUT.TXT.  However, 
  12113. if you have a TCSTART file which changes to a different directory, the output 
  12114. file will be written there -- not in C:\DATA. 
  12115.  
  12116. This is because Take Command starts a second command processor session to run 
  12117. the commands on the right hand side of the pipe, and that new copy runs 4START 
  12118. before processing the commands from the pipe.  If 4START changes directories, 
  12119. the command from the pipe will be executed in the new directory. 
  12120.  
  12121. The same problem can occur if you use a transient session started with /C to 
  12122. run an individual command, then exit -- the session will execute in the 
  12123. directory set by TCSTART, not the directory in which it was originally started. 
  12124. For example, suppose you set up a desktop object with a command line like this, 
  12125. which starts a transient session: 
  12126.  
  12127.         Command:            d:\tcmd\tcmd.exe /c list myfile.txt
  12128.         Working Directory:  c:\data
  12129.  
  12130. Normally this command would LIST the file C:\DATA\MYFILE.TXT.  However, if 
  12131. TCSTART changes to a different directory, Take Command will look for MYFILE.TXT 
  12132. there -- not in C:\DATA. 
  12133.  
  12134. Similarly, any changes to environment variables or other settings in TCSTART 
  12135. will affect all copies of Take Command, including those used for pipes and 
  12136. transient sessions. 
  12137.  
  12138. You can work around these potential problems with the IF or IFF command and the 
  12139. internal variables _PIPE and _TRANSIENT.  For example, to skip all TCSTART 
  12140. processing when running in a pipe or transient session, you could use a command 
  12141. like this at the beginning of TCSTART: 
  12142.  
  12143.         if %_pipe != 0 .or. %_transient != 0 quit
  12144.  
  12145.  
  12146. ΓòÉΓòÉΓòÉ 5.9. Detecting Take Command ΓòÉΓòÉΓòÉ
  12147.  
  12148. From a batch file, you can determine if Take Command, 4DOS, 4OS2, or 4NT is 
  12149. loaded by testing for the variable function @EVAL, with a test like this: 
  12150.  
  12151.         if "%@eval[2 + 2]" == "4" echo TCMD is loaded!
  12152.  
  12153. This test can never succeed in COMMAND.COM or CMD.EXE. Other variable functions 
  12154. could also be used for the same purpose. 
  12155.  
  12156.  
  12157. ΓòÉΓòÉΓòÉ 5.10. Using Aliases in Batch Files ΓòÉΓòÉΓòÉ
  12158.  
  12159. One way to simplify batch file programming is to use aliases to hide 
  12160. unnecessary detail inside a batch file.  For example, suppose you want a batch 
  12161. file to check for certain errors, and display a message and exit if one is 
  12162. encountered.  This example shows one way to do so: 
  12163.  
  12164.         setlocal
  12165.         unalias *
  12166.         alias error `echo. & echo ERROR: %$ & goto dispmenu`
  12167.         alias fatalerror `echo. & echo FATAL ERROR: %$ & quit`
  12168.         alias in `pushd %1 & %2$ & popd`
  12169.         if not exist setup.btm fatalerror Missing setup file!
  12170.         call setup.btm
  12171.         cls
  12172.         :dispmenu
  12173.         text
  12174.  
  12175.  
  12176.                   1. Word Processing
  12177.                   2. Spreadsheet
  12178.                   3. Communications
  12179.                   4. Exit
  12180.         endtext
  12181.         echo.
  12182.         inkey Enter your choice:  %%userchoice
  12183.         switch %userchoice
  12184.         case 1
  12185.            input Enter the file name:  %%fname
  12186.            if not exist fname error File does not exist
  12187.            in d:\letters c:\wp60\wp.exe
  12188.         case 2
  12189.            in d:\finance c:\quattro\q.exe
  12190.         case 3
  12191.            in d:\comm c:\comsw\pcplus.exe
  12192.         case 4
  12193.            goto done
  12194.         default
  12195.           error Invalid choice, try again
  12196.         endswitch
  12197.         goto dispmenu
  12198.         :done
  12199.         endlocal
  12200.  
  12201. The first alias, ERROR, simply displays an error message and jumps to the label 
  12202. DISPMENU to redisplay the menu.  The "%$" in the second ECHO command displays 
  12203. all the text passed to ERROR as the content of the message.  The similar 
  12204. FATALERROR alias displays the message, then exits the batch file. 
  12205.  
  12206. The last alias, IN, expects 2 or more command-line arguments.  It uses the 
  12207. first as a new working directory and changes to that directory with a PUSHD 
  12208. command.  The rest of the command line is interpreted as another command plus 
  12209. possible command line parameters, which the alias executes.  This alias is used 
  12210. here to switch to a directory, run an application, and switch back.  It could 
  12211. also be used from the command line. 
  12212.  
  12213. The following 9 lines print a menu on the screen and then get a keystroke from 
  12214. the user and store the keystroke in an environment variable called userchoice. 
  12215. Then the SWITCH command is used to test the user's keystroke and to decide what 
  12216. action to take. 
  12217.  
  12218. There's another side to aliases in batch files.  If you're going to distribute 
  12219. your batch files to others, you need to remember that they may have aliases 
  12220. defined for the commands you're going to use.  For example, if the user has 
  12221. aliased CD to CDD and you aren't expecting this, your file may not work as you 
  12222. intended.  There are two ways to address this problem. 
  12223.  
  12224. The simplest method is to use SETLOCAL, ENDLOCAL, and UNALIAS to clear out 
  12225. aliases before your batch file starts, and restore them at the end, as we did 
  12226. in the previous example. Remember that SETLOCAL and ENDLOCAL will save and 
  12227. restore not only the aliases but also the environment, the current drive and 
  12228. directory, and various special characters. 
  12229.  
  12230. If this method isn't appropriate or necessary for the batch file you're working 
  12231. on, you can also use an asterisk [*] before the name of any command. The 
  12232. asterisk means the command that follows it should not be interpreted as an 
  12233. alias.  For example the following command redirects a list of file names to the 
  12234. file FILELIST: 
  12235.  
  12236.         dir /b > filelist
  12237.  
  12238. However, if the user has redefined DIR with an alias this command may not do 
  12239. what you want.  To get around this just use: 
  12240.  
  12241.         *dir /b > filelist
  12242.  
  12243. The same can be done for any command in your batch file.  If you use the 
  12244. asterisk, it will disable alias processing, and the rest of the command will be 
  12245. processed normally as an internal command, external command, or batch file. 
  12246. Using an asterisk before a command will work whether or not there is actually 
  12247. an alias defined with the same name as the command.  If there is no alias with 
  12248. that name, the asterisk will be ignored and the command will be processed as if 
  12249. the asterisk wasn't there. 
  12250.  
  12251.  
  12252. ΓòÉΓòÉΓòÉ 5.11. Debugging Batch Files ΓòÉΓòÉΓòÉ
  12253.  
  12254. Take Command includes a built-in batch file debugger, invoked with the SETDOS 
  12255. /Y1 command.  The debuggger allows you to "single-step" through a batch file 
  12256. line by line, with the file displayed in a popup window as it executes.  You 
  12257. can execute or skip the current line, continue execution with the debugger 
  12258. turned off, view the fully-expanded version of the command line, or exit the 
  12259. batch file.  The batch debugger can also pop up a separate window to view or 
  12260. edit current environment variables and aliases, and can pop up the LIST command 
  12261. to display the contents of any file. 
  12262.  
  12263. To start the debugger, insert a SETDOS /Y1 command at the beginning of the 
  12264. portion of the batch file you want to debug, and a SETDOS /Y0 command at the 
  12265. end.  You can also invoke SETDOS /Y1 from the prompt, but because the debugger 
  12266. is automatically turned off whenever Take Command returns to the prompt, you 
  12267. must enter the SETDOS command and the batch file name on the same line, for 
  12268. example: 
  12269.  
  12270.         [c:\] setdos /y1 & mybatch.btm
  12271.  
  12272. If you use the debugger regularly you may want to define a simple alias to 
  12273. invoke it, for example: 
  12274.  
  12275.         [c:\] alias trace `setdos /y1 & %$`
  12276.  
  12277. This alias simply enables the debugger, then runs whatever command is passed to 
  12278. it.  You can use the alias to debug a batch file with a command like this: 
  12279.  
  12280.         [c:\] trace mybatch.btm
  12281.  
  12282. When the debugger is running you can control its behavior with keystrokes. 
  12283. Debugging continues after each keystroke unless otherwise noted: 
  12284.  
  12285.         T(race), Enter, or F8 Execute the current command.  If it calls a 
  12286.             subroutine with GOSUB, or another batch file with CALL, single-step 
  12287.             into the called subroutine or batch file. 
  12288.  
  12289.         S(tep) or F10 Execute the current command, but execute any subroutine 
  12290.             or CALLed batch file without single-stepping. 
  12291.  
  12292.         J(ump) Skip the current command and proceed to the next command. 
  12293.  
  12294.         X (Expand) Display the next command to be executed, after expansion of 
  12295.             aliases and environment variables. 
  12296.  
  12297.         L(ist) Prompt for a file name and then view the file with the LIST 
  12298.             command. 
  12299.  
  12300.         V(ariables) Open a popup window to display the current environment, in 
  12301.             alphabetical order. 
  12302.  
  12303.         A(liases) Open a popup window to display the current aliases, in 
  12304.             alphabetical order. 
  12305.  
  12306.         O(ff) or Esc Turn off the debugger and continue with the remainder of 
  12307.             the batch file. 
  12308.  
  12309.         Q(uit) Quit the debugger and the current batch file, without executing 
  12310.             the remainder of the file. 
  12311.  
  12312.  The debugger highlights each line of the batch file as it is executed.  It 
  12313.  executes the commands on the line one at a time, so when a line contains more 
  12314.  than one command, the highlight will not move as each command is executed.  To 
  12315.  see the individual commands, use the X key to expand each command before it is 
  12316.  executed. 
  12317.  
  12318.  If you use a "prefix" command like EXCEPT, FOR, GLOBAL, or SELECT, the prefix 
  12319.  command is considered one command, and each command it invokes is another. 
  12320.  For example, this command line executes four commands ╨º the FOR and three ECHO 
  12321.  commands: 
  12322.  
  12323.           for %x in (a b c) do echo %x
  12324.  
  12325.  You cannot use the batch debugger with REXX files or EXTPROC files.  It can 
  12326.  only be used with normal Take Command batch files. 
  12327.  
  12328.  The debugger gives you a detailed, step-by-step view of batch file execution, 
  12329.  and will help solve particularly difficult batch file problems.  However, in 
  12330.  some cases you will find it easier to diagnose these problems with techniques 
  12331.  that allow you to review what is happening at specific points in the batch 
  12332.  file without stepping through each line individually. 
  12333.  
  12334.  There are several tricks you can use for this purpose..  Probably the simplest 
  12335.  is to turn ECHO on at the beginning of the file while you're testing it, or 
  12336.  use SETDOS /V2 to force ECHO on even if an ECHO OFF command is used in the 
  12337.  batch file.  This will give you a picture of what is happening as the file is 
  12338.  executed, without stopping at each line.  It will make your output look messy 
  12339.  of course, so just turn it off once things are working.  You can also turn 
  12340.  ECHO on at the beginning of a group of commands you want to "watch", and off 
  12341.  at the end, just by adding ECHO commands at the appropriate spots in your 
  12342.  file. 
  12343.  
  12344.  If an error occurs in a batch file, the error message will display the name of 
  12345.  the file, the number of the line that contained the error, and the error 
  12346.  itself.  For example: 
  12347.  
  12348.           e:\test.bat [3] Invalid parameter "/d"
  12349.  
  12350.  tells you that the file E:\TEST.BAT contains an error on line 3.  The first 
  12351.  line of the batch file is numbered 1. 
  12352.  
  12353.  Another trick, especially useful in a fast-moving batch file or one where the 
  12354.  screen is cleared before you can read messages, is to insert PAUSE commands 
  12355.  wherever you need them in order to be able to watch what's happening.  You can 
  12356.  also use an ON ERRORMSG command to pause if an error occurs, then continue 
  12357.  with the rest of the file (the first command below), or to quit if an error 
  12358.  occurs (the second command): 
  12359.  
  12360.           on errormsg pause
  12361.           on errormsg quit
  12362.  
  12363.  If you can't figure out how your aliases and variables are expanded, try 
  12364.  turning LOG on at the start of the batch file.  LOG keeps track of all 
  12365.  commands after alias and variable expansion are completed, and gives you a 
  12366.  record in a file that you can examine after the batch file is done.  You must 
  12367.  use a standard LOG command; LOG /H (the history log) does not work in batch 
  12368.  files. 
  12369.  
  12370.  You may also want to consider using redirection to capture your batch file 
  12371.  output.  Simply type the batch file name followed by the redirection symbols, 
  12372.  for example: 
  12373.  
  12374.           [c:\] mybatch >& testout
  12375.  
  12376.  This records all batch file output, including error messages, in the file 
  12377.  TESTOUT, so you can go back and examine it.  If you have ECHO ON in the batch 
  12378.  file you'll get the batch commands intermingled with the output, which can 
  12379.  provide a very useful trace of what's happening.  Of course, output from 
  12380.  full-screen commands and programs that don't write to the standard output 
  12381.  devices can't be recorded, but you can still gain a lot of useful information 
  12382.  if your batch file produces any output. 
  12383.  
  12384.  If you're using redirection to see the output, remember that any prompts for 
  12385.  input will probably go to the output file and not to the screen.  Therefore, 
  12386.  you will need to know in advance the sequence of keystrokes required to get 
  12387.  through the entire batch file, and enter them by hand or with KEYSTACK. 
  12388.  
  12389.  You can also use the TEE command to both view the output while the batch file 
  12390.  is running and save it in a file for later examination. 
  12391.  
  12392.  
  12393. ΓòÉΓòÉΓòÉ 5.12. Batch File String Processing ΓòÉΓòÉΓòÉ
  12394.  
  12395. As you gain experience with batch files, you're likely to find that you need to 
  12396. manipulate text strings.  You may need to prompt a user for a name or password, 
  12397. process a list of files, or find a name in a phone list.  All of these are 
  12398. examples of string processing -- the manipulation of lines of readable text. 
  12399.  
  12400. Take Command includes several features that make string processing easier. For 
  12401. example, you can use the INKEY, INPUT, MSGBOX, and QUERYBOX commands for user 
  12402. input; the ECHO, SCREEN, SCRPUT, and VSCRPUT commands for output; and the FOR 
  12403. command or the @FILEREAD function to scan through the lines of a file.  In 
  12404. addition, variable functions offer a wide range of string handling 
  12405. capabilities. 
  12406.  
  12407. For example, suppose you need a batch file that will prompt a user for a name, 
  12408. break the name into a first name and a last name, and then run a hypothetical 
  12409. LOGIN program.  LOGIN expects the syntax /F:first /L:last with both the first 
  12410. and last names in upper case and neither name longer than 8 characters.  Here 
  12411. is one way to write such a batch file: 
  12412.  
  12413.         @echo off
  12414.         setlocal
  12415.         unalias *
  12416.         querybox "Name" Enter your name (no initials):  %%name
  12417.  
  12418.         set first=%@word[0,%name]
  12419.         set flen=%@len[%first]
  12420.         set last=%@word[1,%name]
  12421.         set llen=%@len[%last]
  12422.  
  12423.         iff %flen gt 8 .or. %llen gt 8 then
  12424.            echo First or last name too long
  12425.            quit
  12426.         endiff
  12427.  
  12428.         login /F:%@upper[%first] /L:%@upper[%last]
  12429.         endlocal
  12430.  
  12431. The SETLOCAL command at the beginning of this batch file saves the environment 
  12432. and aliases.  Then the UNALIAS * command removes any existing aliases so they 
  12433. won't interfere with the behavior of the commands in the remainder of the batch 
  12434. file.  The first block of lines ends with a QUERYBOX command which asks the 
  12435. user to enter a name.  The user's input is stored in the environment variable 
  12436. NAME. 
  12437.  
  12438. The second block of lines extracts the user's first and last names from the 
  12439. NAME variable and calculates the length of each.  It stores the first and last 
  12440. name, along with the length of each, in additional environment variables. Note 
  12441. that the @WORD function numbers the first word as 0, not as 1. 
  12442.  
  12443. The IFF command in the third block of lines tests the length of both the first 
  12444. and last names.  If either is longer than 8 characters, the batch file displays 
  12445. an error message and ends. (QUERYBOX can limit the length of input text more 
  12446. simply with its /L switch. We used a slightly more cumbersome method above in 
  12447. order to demonstrate the use of string functions in batch files.) 
  12448.  
  12449. Finally, in the last block, the batch file executes the LOGIN program with the 
  12450. appropriate parameters, then uses the ENDLOCAL command to restore the original 
  12451. environment and alias list.  At the same time, ENDLOCAL discards the temporary 
  12452. variables that the batch file used (NAME, FIRST, FLEN, etc.). 
  12453.  
  12454. When you're processing strings, you also need to avoid some common traps.  The 
  12455. biggest one is handling special characters. 
  12456.  
  12457. Suppose you have a batch file with these two commands, which simply accept a 
  12458. string and display it: 
  12459.  
  12460.         input Enter a string:  %%str
  12461.         echo %str
  12462.  
  12463. Those lines look safe, but what happens if the user enters the string "some > 
  12464. none" (without the quotes).  After the string is placed in the variable STR, 
  12465. the second line becomes 
  12466.  
  12467.         echo some > none
  12468.  
  12469. The ">" is a redirection symbol, so the line echoes the string "some" and 
  12470. redirects it to a file called NONE -- probably not what you expected.  You 
  12471. could try using quotation marks to avoid this kind of problem, but that won't 
  12472. quite work.  If you use back-quotes (ECHO `%STR`), the command will echo the 
  12473. four-character string %STR. Environment variable names are not expanded when 
  12474. they are inside back-quotes. 
  12475.  
  12476. If you use double quotes (ECHO "%STR"), the string entered by the user will be 
  12477. displayed properly, and so will the quotation marks.  With double quotes, the 
  12478. output would look like this: 
  12479.  
  12480.         "some > none"
  12481.  
  12482. As you can imagine, this kind of problem becomes much more difficult if you try 
  12483. to process text from a file.  Special characters in the text can cause all 
  12484. kinds of confusion in your batch files.  Text containing back-quotes, double 
  12485. quotes, or redirection symbols can be virtually impossible to handle correctly. 
  12486.  
  12487. One way to overcome these potential problems is to use the SETDOS /X command to 
  12488. temporarily disable redirection symbols and other special characters.  The 
  12489. two-line batch file above would be a lot more likely to produce the expected 
  12490. results if it were rewritten this way: 
  12491.  
  12492.         setdos /x-15678
  12493.         input Enter a string:  %%str
  12494.         echo %str
  12495.         setdos /x0
  12496.  
  12497. The first line turns off alias processing and disables several special symbols, 
  12498. including the command separator and all redirection symbols.  Once the string 
  12499. has been processed, the last line re-enables the features that were turned off 
  12500. in the first line. 
  12501.  
  12502. If you need advanced string processing capabilities beyond those provided by 
  12503. Take Command, you may want to consider using the REXX language.  Our products 
  12504. support external REXX programs for this purpose. 
  12505.  
  12506.  
  12507. ΓòÉΓòÉΓòÉ 5.13. Batch File Compression ΓòÉΓòÉΓòÉ
  12508.  
  12509. You can compress your .BTM files with a program called BATCOMP.EXE, which is 
  12510. distributed with Take Command.  This program condenses batch files by about a 
  12511. third and makes them unreadable with the LIST command and similar utilities. 
  12512. Compressed batch files run at approximately the same speed as regular .BTM 
  12513. files. 
  12514.  
  12515. You may want to consider compressing batch files if you need to distribute them 
  12516. to others and keep your original code secret or prevent your users from 
  12517. altering them.  You may also want to consider compressing batch files to save 
  12518. some disk space on the systems where the compressed files are used. 
  12519.  
  12520. The full syntax for the batch compression program is 
  12521.  
  12522.         BATCOMP [/O] input file [output file ]
  12523.  
  12524. You must specify the full name of the input file, including its extension, on 
  12525. the BATCOMP command line.  If you do not specify the output file, BATCOMP will 
  12526. use the same base name as the input file and add a .BTM extension. BATCOMP will 
  12527. also add a .BTM extension if you specify a base name for the output file 
  12528. without an extension.  For example, to compress MYBATCH.CMD and save the result 
  12529. as MYBATCH.BTM, you can use any of these three commands: 
  12530.  
  12531.         [c:\] batcomp mybatch.cmd
  12532.         [c:\] batcomp mybatch.cmd mybatch
  12533.         [c:\] batcomp mybatch.cmd mybatch.btm
  12534.  
  12535. If the output file (MYBATCH.BTM in the examples above) already exists, BATCOMP 
  12536. will prompt you before overwriting the file.  You can disable the prompt by 
  12537. including /O on the BATCOMP command line immediately before the input file 
  12538. name.  Even if you use the /O option, BATCOMP will not compress a file into 
  12539. itself. 
  12540.  
  12541. JP Software does not provide a utility to decompress batch files.  If you use 
  12542. BATCOMP.EXE, make sure that you also keep a copy of the original batch file for 
  12543. future inspection or modification. 
  12544.  
  12545. BATCOMP is a DOS and OS/2 character-mode application designed to run in any 
  12546. environment where our command processors run.  Normally it can be run 
  12547. successfully from within Take Command without manually starting a separate DOS 
  12548. or OS/2 session.  Each of our command processors includes the same version of 
  12549. BATCOMP.EXE, and a batch file compressed with any copy of BATCOMP can be used 
  12550. with any current JP Software command processor. 
  12551.  
  12552. If you plan to distribute batch files to users of different platforms, see 
  12553. Special Character Compatibility. 
  12554.  
  12555.  
  12556. ΓòÉΓòÉΓòÉ 5.14. Argument Quoting ΓòÉΓòÉΓòÉ
  12557.  
  12558. As it parses the command line, Take Command looks for the ampersand [&] command 
  12559. separator, conditional commands (|| or &&), white space (spaces, tabs, and 
  12560. commas), percent signs [%] which indicate variables or batch file arguments to 
  12561. be expanded, and redirection and piping characters (>, <, or |). 
  12562.  
  12563. Normally, these special characters cannot be passed to a command as part of an 
  12564. argument.  However, you can include any of the special characters in an 
  12565. argument by enclosing the entire argument in single back quotes [`] or double 
  12566. quotes ["].  Although both back quotes and double quotes will let you build 
  12567. arguments that include special characters, they do not work the same way. 
  12568.  
  12569. No alias or variable expansion is performed on an argument enclosed in back 
  12570. quotes.  Redirection symbols inside the back quotes are ignored.  The back 
  12571. quotes are removed from the command line before the command is executed. 
  12572.  
  12573. No alias expansion is performed on expressions enclosed in double quotes. 
  12574. Redirection symbols inside double quotes are ignored.  However, variable 
  12575. expansion is performed on expressions inside double quotes.  The double quotes 
  12576. themselves will be passed to the command as part of the argument. 
  12577.  
  12578. For example, suppose you have a batch file CHKNAME.BTM which expects a name as 
  12579. its first parameter (%1).  Normally the name is a single word.  If you need to 
  12580. pass a two-word name with a space in it to this batch file you could use the 
  12581. command: 
  12582.  
  12583.         [c:\] chkname `MY NAME`
  12584.  
  12585. Inside the batch file, %1 will have the value MY NAME, including the space. The 
  12586. back quotes caused Take Command to pass the string to the batch file as a 
  12587. single argument.  The quotes keep characters together and reduce the number of 
  12588. arguments in the line. 
  12589.  
  12590. For a more complex example, suppose the batch file QUOTES.BAT contains the 
  12591. following commands: 
  12592.  
  12593.         @echo off
  12594.         echo Arg1 = %1
  12595.         echo Arg2 = %2
  12596.         echo Arg3 = %3
  12597.  
  12598. and that the environment variable FORVAR has been defined with this command: 
  12599.  
  12600.         [c:\] set FORVAR=for
  12601.  
  12602. Now, if you enter the command 
  12603.  
  12604.         [c:\] quotes `Now is the time %forvar` all good
  12605.  
  12606. the output from QUOTES.BAT will look like this: 
  12607.  
  12608.         Arg1 = Now is the time %forvar
  12609.         Arg2 = all
  12610.         Arg3 = good
  12611.  
  12612. But if you enter the command 
  12613.  
  12614.         [c:\] quotes "Now is the time %forvar" all good
  12615.  
  12616. the output from QUOTES.BAT will look like this: 
  12617.  
  12618.         Arg1 = "Now is the time for"
  12619.         Arg2 = all
  12620.         Arg3 = good
  12621.  
  12622. Notice that in both cases, the quotes keep characters together and reduce the 
  12623. number of arguments in the line. 
  12624.  
  12625. The following example has 7 command-line arguments, while the examples above 
  12626. only have 3: 
  12627.  
  12628.         [c:\] quotes Now is the time %%forvar all good
  12629.  
  12630. (The double percent signs are needed in each case because the argument is 
  12631. parsed twice, once when passed to the batch file and again in the ECHO 
  12632. command.) 
  12633.  
  12634. When an alias is defined in a batch file or from the command line, its argument 
  12635. can be enclosed in back quotes to prevent the expansion of replaceable 
  12636. parameters, variables, and multiple commands until the alias is invoked.  See 
  12637. ALIAS for details. 
  12638.  
  12639. You can disable and re-enable back quotes and double quotes with the SETDOS /X 
  12640. command. 
  12641.  
  12642.  
  12643. ΓòÉΓòÉΓòÉ 5.15. REXX Support ΓòÉΓòÉΓòÉ
  12644.  
  12645. REXX is a a powerful file and text processing language developed by IBM, and 
  12646. available on many PC and other platforms.  REXX is an ideal extension to the 
  12647. Take Command batch language, especially if you need advanced string processing 
  12648. capabilities. 
  12649.  
  12650. The REXX language is not built into Take Command, and must be obtained 
  12651. separately.  REXX support is built in to IBM OS/2.  You can also purchase 
  12652. add-on REXX software such as Enterprise Alternatives' Enterprise REXX, 
  12653. available for Windows 3.x, Windows 95, and Windows NT; or Quercus's Personal 
  12654. REXX, available for OS/2, Windows 3.x, Windows 95, and Windows NT.  (If you 
  12655. want to learn about or purchase one of these REXX packages, contact JP 
  12656. Software's sales department for more information.) 
  12657.  
  12658. Take Command for OS/2 supports REXX programs stored in .CMD files.  Take 
  12659. Command checks to see if the first two characters on the first line of a .CMD 
  12660. file are [/*], the beginning of a REXX comment.  If so, it passes the file to 
  12661. OS/2's built-in REXX facility for processing.  If Personal REXX for OS/2 is 
  12662. installed, it automatically replaces OS/2's built-in REXX, and handles all REXX 
  12663. commands passed by Take Command for OS/2. 
  12664.  
  12665. Take Command's REXX support will also work with other REXX  processors such as 
  12666. PMREXX and VX-REXX.  It does not work with IBM's VREXX, because the internal 
  12667. design of VREXX does not permit reliable execution of REXX scripts from 
  12668. Presentation Manager programs like Take Command. 
  12669.  
  12670. When working with a REXX processor, Take Command automatically handles all 
  12671. input and output for the REXX program, and any standard REXX processor window 
  12672. for input and output is not displayed.  If you need to run a REXX program 
  12673. inside your REXX processor's window, and not under Take Command, you should 
  12674. start the REXX processor s executable file explicitly, then load and run the 
  12675. REXX program from there. 
  12676.  
  12677. All of the REXX processors described above (Enterprise REXX, Personal REXX, and 
  12678. OS/2's built-in REXX) extend the interface between REXX and the command 
  12679. processor by allowing you to invoke Take Command commands from within a REXX 
  12680. program. 
  12681.  
  12682. When you send a command from a REXX program back to the command processor to be 
  12683. executed (for example, if you execute a DIR command within a REXX script), the 
  12684. REXX software must use the correctaddre for the command processor.  In most 
  12685. cases it is best to use the default address of CMD, which is set up 
  12686. automatically by Take Command.  If you choose to use an explicit address via 
  12687. the REXX ADDRESS command, you can use either CMD or TCMD. 
  12688.  
  12689. For details on communication between REXX and the command processor, or for 
  12690. more information on any aspect of REXX, see your REXX documentation. 
  12691.  
  12692.  
  12693. ΓòÉΓòÉΓòÉ 5.16. EXTPROC Support ΓòÉΓòÉΓòÉ
  12694.  
  12695. For compatibility with CMD.EXE, Take Command offers an external processor 
  12696. (EXTPROC) option for batch files that lets you define an external program to 
  12697. process a particular .CMD file. To identify a .CMD file to be used with an 
  12698. external processor, place the string "EXTPROC" as the first word on the first 
  12699. line of the file, followed by the name of the external program that should be 
  12700. called.  Take Command will start the program and pass it the name of the .CMD 
  12701. file and any command- line arguments that were entered. 
  12702.  
  12703. For example, suppose GETDATA.CMD contains the following lines: 
  12704.  
  12705.         EXTPROC D:\DATAACQ\DATALOAD.EXE
  12706.         OPEN PORT1
  12707.         READ 4000
  12708.         DISKWRITE D:\DATAACQ\PORT1\RAW
  12709.  
  12710. Then if you entered the command: 
  12711.  
  12712.         [d:\dataacq] getdata /p17
  12713.  
  12714. Take Command would read the GETDATA.CMD file, determine that it began with an 
  12715. EXTPROC command, read the name of the processor program, and then execute the 
  12716. command: 
  12717.  
  12718.         D:\DATAACQ\DATALOAD.EXE D:\DATAACQ\GETDATA.CMD /p17
  12719.  
  12720. The hypothetical DATALOAD.EXE program would then be responsible for reopening 
  12721. the GETDATA.CMD file, ignoring the EXTPROC line at the start, and interpreting 
  12722. the other instructions in the file. It would also have to respond appropriately 
  12723. to the command-line parameter entered (/p17). 
  12724.  
  12725. Do not try to use Take Command or 4OS2 as the external processor named on the 
  12726. EXTPROC line in the .CMD file.  It will interpret the EXTPROC line as a command 
  12727. to re-open itself.  The result will be an infinite loop that will continue 
  12728. until the computer runs out of resources and locks up. 
  12729.  
  12730.  
  12731. ΓòÉΓòÉΓòÉ 6. Environment Variables and Functions ΓòÉΓòÉΓòÉ
  12732.  
  12733. The environment is a collection of information about your computer that every 
  12734. program receives.  Each entry in the environment consists of a variable name, 
  12735. followed by an equal sign and a string of text.  You can automatically 
  12736. substitute the text for the variable name in any command. To create the 
  12737. substitution, include a percent sign [%] and a variable name on the command 
  12738. line or in an alias or batch file. 
  12739.  
  12740. You can create, alter, view, and delete environment variables with the 
  12741. Environment dialog (available from the Utilities menu) as well as with the SET, 
  12742. ESET, and UNSET commands. 
  12743.  
  12744. The following environment variables have special meanings in Take Command: 
  12745.  
  12746.     CDPATH 
  12747.     CMDLINE 
  12748.     COLORDIR 
  12749.     COMSPEC 
  12750.     FILECOMPLETION 
  12751.     PATH 
  12752.     PROMPT 
  12753.  
  12754. Also see 
  12755.     COPYCMD 
  12756.     DIRCMD 
  12757.  
  12758. Take Command also supports two special types of variables.  Internal variables 
  12759. are similar to environment variables, but are stored internally within Take 
  12760. Command, and are not visible in the environment.  They provide information 
  12761. about your system for use in batch files and aliases.  Variable functions are 
  12762. referenced like environment variables, but perform additional functions like 
  12763. file handling, string manipulation and arithmetic calculations. 
  12764.  
  12765. The SET command is used to create environment variables. For example, you can 
  12766. create a variable named BACKUP like this: 
  12767.  
  12768.         [c:\] set BACKUP=*.bak;*.bk!;*.bk
  12769.  
  12770. If you then type 
  12771.  
  12772.         [c:\] del %BACKUP
  12773.  
  12774. it is equivalent to the following command: 
  12775.  
  12776.         del *.bak;*.bk!;*.bk
  12777.  
  12778. The variable names you use this way may contain any alphabetic or numeric 
  12779. characters, the underscore character [_], and the dollar sign [$].  You can 
  12780. force acceptance of other characters by including the full variable name in 
  12781. square brackets, like this: %[AB##2]. You can also "nest" environment variables 
  12782. using square brackets.  For example, %[%var1] means "the contents of the 
  12783. variable whose name is stored in VAR1".  A variable referenced with this 
  12784. technique cannot contain more than 255 characters of information.  Nested 
  12785. variable expansion can be disabled with the SETDOS /X command. 
  12786.  
  12787. In Take Command the size of the environment is set automatically, and increased 
  12788. as needed when you add variables.  You do not need to specify the size as you 
  12789. do under 4DOS or some traditional command processors. 
  12790.  
  12791. The trailing percent sign that was traditionally required for environment 
  12792. variable names is not usually required in Take Command, which accepts any 
  12793. character that cannot be part of a variable name as the terminator.  However, 
  12794. the trailing percent can be used to maintain compatibility. 
  12795.  
  12796. The trailing percent sign is needed if you want to join two variable values. 
  12797. The following examples show the possible interactions between variables and 
  12798. literal strings.  First, create two environment variables called ONE and TWO 
  12799. this way: 
  12800.  
  12801.         [c:\] set ONE=abcd
  12802.         [c:\] set TWO=efgh
  12803.  
  12804. Now the following combinations produce the output text shown: 
  12805.  
  12806.         %ONE%TWOabcdTWO      ("%ONE%" + "TWO")
  12807.         %ONE%TWO%abcdTWO     ("%ONE%" + "TWO%")
  12808.         %ONE%%TWOabcdefgh    ("%ONE%" + "%TWO")
  12809.         %ONE%%TWO%abcdefgh   ("%ONE%" + "%TWO%")
  12810.         %ONE%[TWO]abcd[TWO]  ("%ONE%" + "[TWO]")
  12811.         %ONE%[TWO]%abcd[TWO] ("%ONE%" + "[TWO]%")
  12812.         %[ONE]%TWOabcdefgh   ("%[ONE]" + "%TWO")
  12813.         %[ONE]%TWO%abcdefgh  ("%[ONE]" + "%TWO%")
  12814.  
  12815. If you want to pass a percent sign to a command, or a string which includes a 
  12816. percent sign, you must use two percent signs in a row. Otherwise, the single 
  12817. percent sign will be seen as the beginning of a variable name and will not be 
  12818. passed on to the command.  For example, to display the string "We're with you 
  12819. 100%" you would use the command: 
  12820.  
  12821.         echo We're with you 100%%
  12822.  
  12823. You can also use back quotes around the text, rather than a double percent 
  12824. sign.  See Argument Quoting for details. 
  12825.  
  12826. Environment variables may contain alias names.  Take Command will substitute 
  12827. the variable value for the name, then check for any alias name which may have 
  12828. been included within the value.  For example, the following commands would 
  12829. generate a 2-column directory of the .TXT files: 
  12830.  
  12831.         [c:\] alias d2 dir /2
  12832.         [c:\] set cmd=d2
  12833.         [c:\] %cmd *.txt
  12834.  
  12835.  
  12836. ΓòÉΓòÉΓòÉ 6.1. CDPATH ΓòÉΓòÉΓòÉ
  12837.  
  12838. CDPATH tells Take Command where to search for directories specified by the CD, 
  12839. CDD, and PUSHD commands and in automatic directory changes.  (_CDPATH can be 
  12840. used as an alternative to CDPATH if you are using Microsoft Bookshelf, which 
  12841. uses a CDPATH variable for its own purposes.) 
  12842.  
  12843. CDPATH is composed of a list of directories, separated by semicolons [;].  See 
  12844. CDPATH for more information about using this variable. 
  12845.  
  12846.  
  12847. ΓòÉΓòÉΓòÉ 6.2. CMDLINE ΓòÉΓòÉΓòÉ
  12848.  
  12849. CMDLINE is the fully expanded text of the currently executing command line. 
  12850. CMDLINE is set just before invoking any .COM, .EXE, .BTM, .BAT, or .CMD file. 
  12851. If a command line is prefaced with an "@" to prevent echoing, it will not be 
  12852. put in CMDLINE, and any previous CMDLINE variable will be removed from the 
  12853. environment. 
  12854.  
  12855.  
  12856. ΓòÉΓòÉΓòÉ 6.3. COLORDIR ΓòÉΓòÉΓòÉ
  12857.  
  12858. COLORDIR controls directory display colors used by DIR.  See the Color-Coded 
  12859. Directories section of the DIR command for a complete description of the format 
  12860. of this variable. 
  12861.  
  12862.  
  12863. ΓòÉΓòÉΓòÉ 6.4. COMSPEC ΓòÉΓòÉΓòÉ
  12864.  
  12865. COMSPEC contains the full path and name of the character-mode command 
  12866. processor.  Take Command uses it to start character-mode OS/2 sessions. 
  12867.  
  12868.  
  12869. ΓòÉΓòÉΓòÉ 6.5. COPYCMD ΓòÉΓòÉΓòÉ
  12870.  
  12871. COPYCMD is used by some versions of COMMAND.COM and CMD.EXE to hold default 
  12872. options for the COPY command.  Take Command does not support this variable, but 
  12873. you can achieve the same effect with an alias.  For example, if you want the 
  12874. COPY command to default to prompting you before overwriting an existing file, 
  12875. you could use this alias: 
  12876.  
  12877.         [c:\] alias copy = `*copy /r`
  12878.  
  12879. If you wish to use COPYCMD for compatibility with systems that do not use Take 
  12880. Command, you can define the alias this way: 
  12881.  
  12882.         [c:\] alias copy = `*copy %copycmd`
  12883.  
  12884.  
  12885. ΓòÉΓòÉΓòÉ 6.6. ┬áDIRCMD ΓòÉΓòÉΓòÉ
  12886.  
  12887. DIRCMD is used by some versions of COMMAND.COM and CMD.EXE to hold default 
  12888. options for the DIR command.  Take Command does not support this variable, but 
  12889. you can achieve the same effect with an alias.  For example, if you want the 
  12890. DIR command to default to a 2-column display with a vertical sort and a pause 
  12891. at the end of each page, you could use this alias: 
  12892.  
  12893.         [c:\] alias dir = `*dir /2/p/v`
  12894.  
  12895. If you wish to use DIRCMD for compatibility with systems that do not use Take 
  12896. Command, you can define the alias this way: 
  12897.  
  12898.         [c:\] alias dir = `*dir %dircmd`
  12899.  
  12900.  
  12901. ΓòÉΓòÉΓòÉ 6.7. FILECOMPLETION (variable) ΓòÉΓòÉΓòÉ
  12902.  
  12903. FILECOMPLETION sets the files made available during filename completion for 
  12904. selected commands.  See Customizing Filename Completion for a complete 
  12905. description of the format of this variable. 
  12906.  
  12907.  
  12908. ΓòÉΓòÉΓòÉ 6.8. PATH (variable) ΓòÉΓòÉΓòÉ
  12909.  
  12910. PATH is a list of directories that Take Command will search for executable 
  12911. files that aren't in the current directory.  PATH may also be used by some 
  12912. application programs to find their own files.  See the PATH command for a full 
  12913. description of this variable. 
  12914.  
  12915.  
  12916. ΓòÉΓòÉΓòÉ 6.9. PROMPT (variable) ΓòÉΓòÉΓòÉ
  12917.  
  12918. PROMPT defines the command-line prompt.  It can be set or changed with the 
  12919. PROMPT command. 
  12920.  
  12921.  
  12922. ΓòÉΓòÉΓòÉ 6.10. Internal Variables ΓòÉΓòÉΓòÉ
  12923.  
  12924. Internal variables are special environment variables built into Take Command to 
  12925. provide information about your system.  They are not actually stored in the 
  12926. environment, but can be used in commands, aliases, and batch files just like 
  12927. any environment variable. 
  12928.  
  12929. The values of these variables are stored internally in Take Command, and cannot 
  12930. be changed with the SET, UNSET, or ESET command.  However, you can override any 
  12931. of these variables by defining a new variable with the same name. 
  12932.  
  12933. These internal variables are often used in batch files and aliases to examine 
  12934. system resources and adjust to the current computer settings.  You can examine 
  12935. the contents of any internal variable (except %= and %+) from the command line 
  12936. with a command like this: 
  12937.  
  12938.         [c:\] echo %variablename
  12939.  
  12940. On disk volumes which do not support long filenames, variables which return a 
  12941. path or file name will return their result in upper or lower case depending on 
  12942. the value of the SETDOS /U switch or the UpperCase directive in the TCMDOS2.INI 
  12943. file.  On volumes which do support long filenames, these variables will return 
  12944. names as they are stored on the disk and no case shifting will be performed. 
  12945. Returned filename values which include long filenames are not quoted 
  12946. automatically; you must add quotes yourself if they are required for your use 
  12947. of the variable value. 
  12948.  
  12949. Some variables return values based on information provided by your operating 
  12950. system.  These variables will only return correct information if the operating 
  12951. system provides it.  For example, _APMBATT will not return accurate results if 
  12952. OS/2 and your Advanced Power Management drivers do not provide correct 
  12953. information on battery status to Take Command. 
  12954.  
  12955. Internal Variable Categories 
  12956.  
  12957. The list below gives a one-line description of each variable, and a cross- 
  12958. reference which selects a short help topic on that variable.  Most of the 
  12959. variables are simple enough that the one-line description is sufficient. 
  12960. However, for those variables marked with an asterisk [*], the cross-reference 
  12961. topic contains some additional information you may wish to review.  You can 
  12962. also obtain help on any variable with a HELP variable name command at the 
  12963. prompt (this is why each variable has its own topic, in addition to its 
  12964. appearance in the list below). 
  12965.  
  12966. See the discussion after the variable list for some additional information, and 
  12967. examples of how these variables can be used.  For a more comprehensive set of 
  12968. examples see the EXAMPLES.BTM file which came with your copy of Take Command. 
  12969.  
  12970. Hardware status 
  12971.  
  12972.         _APMAC          Advanced Power Management AC Line status (on-line or 
  12973.                         off-line) 
  12974.         _APMBATT        APM battery status (high, low, critical, charging, 
  12975.                         unknown) 
  12976.         _APMLIFE        APM remaining battery life (0 - 100 or unknown) 
  12977.         _CPU            CPU type (86, 186, 200, 386, 486, 586) 
  12978.         _KBHIT          Returns 1 if a keyboard input character is waiting. 
  12979.         _NDP            Coprocessor type (0, 87, 287, 387) 
  12980.  
  12981.  Operating system and software status 
  12982.  
  12983.         _ANSI           ANSI status (1 if enabled, 0 if not) 
  12984.         _BOOT           Boot drive letter, without a colon 
  12985.         _CODEPAGE       Current code page number 
  12986.         _COUNTRY        Current country code 
  12987.         _DOS            * Operating system (OS2, PM, DOS, etc.) 
  12988.         _DOSVER         * Operating system version (2.1, 3.0, etc.) 
  12989.         _MOUSE          Mouse driver flag (always 1) 
  12990.         _WINTITLE       Current window title 
  12991.  
  12992.  Command processor status 
  12993.  
  12994.         _4VER           Take Command for OS/2 version (1.0, 1.01, etc.) 
  12995.         _BATCH          Batch nesting level 
  12996.         _BATCHLINE      Current line number in current batch file 
  12997.         _BATCHNAME      Name of current batch file 
  12998.         _DNAME          Name of file used to store file descriptions 
  12999.         _HLOGFILE       Current history log file name 
  13000.         _LOGFILE        Current log file name 
  13001.         _PID            Take Command for OS/2 process ID (numeric) 
  13002.         _PIPE           Whether running in a pipe (0 or 1) 
  13003.         _PPID           Parent process ID (numeric) 
  13004.         _PTYPE          OS/2 process type (PM) 
  13005.         _SHELL          Shell level (0, 1, 2, ...) 
  13006.         _SID            Current OS/2 session ID 
  13007.         _TRANSIENT      * Transient shell flag (0 or 1) 
  13008.  
  13009.  Screen, color, and cursor 
  13010.  
  13011.         _BG             Background color 
  13012.         _CI             Current cursor shape in insert mode 
  13013.         _CO             Current cursor shape in overstrike mode 
  13014.         _COLUMN         Current cursor column 
  13015.         _COLUMNS        Screen width 
  13016.         _FG             Foreground color 
  13017.         _ROW            Current cursor row 
  13018.         _ROWS           Screen height 
  13019.         _SELECTED       First line of highliged text. 
  13020.         _XPIXELS        Physical screen horizontal size in pixels. 
  13021.         _YPIXELS        Physical screen vertical size in pixels. 
  13022.  
  13023.  Drives and directories 
  13024.  
  13025.         _CWD            Current drive and directory (d:\path) 
  13026.         _CWDS           Current drive and directory with trailing \ (d:\path\) 
  13027.         _CWP            Current directory (\path) 
  13028.         _CWPS           Current directory with trailing \ (\path\) 
  13029.         _DISK           Current drive (C, D, etc.) 
  13030.         _LASTDISK       Last possible drive (E, F, etc.) 
  13031.  
  13032.  Dates and times 
  13033.  
  13034.         _DATE           * Current date (mm-dd-yy) 
  13035.         _DAY            Day of the month (1 - 31) 
  13036.         _DOW            Day of the week (Mon, Tue, Wed, etc.) 
  13037.         _DOWI           Day of the week as an integer (1=Sunday, 2-Monday, 
  13038.                         etc.) 
  13039.         _DOY            Day of the year (1 - 366) 
  13040.         _HOUR           Hour (0 - 23) 
  13041.         _MINUTE         Minute (0 - 59) 
  13042.         _MONTH          Month of the year (1 - 12) 
  13043.         _SECOND         Second (0 - 59) 
  13044.         _TIME           * Current time (hh:mm:ss) 
  13045.         _YEAR           Year (1980 - 2099) 
  13046.  
  13047.  Error codes 
  13048.  
  13049.         ?               * Exit code, last external program 
  13050.         _?              * Exit code, last internal command 
  13051.         _SYSERR         * Last OS/2 error code 
  13052.  
  13053.  Compatibility 
  13054.  
  13055.         =               * Substitutes escape character 
  13056.         +               * Substitutes command separator 
  13057.  
  13058.  Examples 
  13059.  
  13060.  You can use these variables in a wide variety of ways depending on your needs. 
  13061.  Here are just a couple of examples; for a more comprehensive set see the 
  13062.  EXAMPLES.BTM file which came with your copy of Take Command. 
  13063.  
  13064.  Store the current date and time in a file, then save the output of a DIR 
  13065.  command in the same file: 
  13066.  
  13067.           echo Directory as of %_date %_time > dirsave
  13068.           dir >> dirsave
  13069.  
  13070.  Use the IFF command to check whether there are enough resources free before 
  13071.  running an application: 
  13072.  
  13073.           iff %_GDIFREE lt 40 then
  13074.              echo Not enough GDI resources!
  13075.              quit
  13076.           else
  13077.              d:\mydir\myapp
  13078.           endiff
  13079.  
  13080.  Call another batch file if today is Monday: 
  13081.  
  13082.           if "%_DOW" == "Mon" call c:\cleanup\weekly.bat
  13083.  
  13084.  
  13085. ΓòÉΓòÉΓòÉ 6.10.1. ┬á? - Exit code, last external program ΓòÉΓòÉΓòÉ
  13086.  
  13087. ? contains the exit code of the last external command.  Many programs return a 
  13088. "0" to indicate success and a non-zero value to signal an error.  However, not 
  13089. all programs return an exit code.  If no explicit exit code is returned, the 
  13090. value of %? is undefined. 
  13091.  
  13092.  
  13093. ΓòÉΓòÉΓòÉ 6.10.2. _? - Exit code, last internal command ΓòÉΓòÉΓòÉ
  13094.  
  13095. _? contains the exit code of the last internal command.  It is set to "0" if 
  13096. the command was successful, "1" if a usage error occurred, "2" if another 
  13097. command processor error or an operating system error occurred, or "3" if the 
  13098. command was interrupted by Ctrl-C or Ctrl-Break. You must use or save this 
  13099. value immediately, because it is set by every internal command. 
  13100.  
  13101.  
  13102. ΓòÉΓòÉΓòÉ 6.10.3. = - Substitutes escape character ΓòÉΓòÉΓòÉ
  13103.  
  13104. = returns the current escape character.  Use this variable, instead of the 
  13105. actual escape character, if you want your batch files and aliases to work 
  13106. regardless of how the escape character is defined.  For example, if the escape 
  13107. character is a caret [^] (the default in Take Command for OS/2) both of the 
  13108. commands below will send a form feed to the printer. However, if the escape 
  13109. character has been changed,  the first command will send the string "^f" to the 
  13110. printer, while the second command will continue to work as intended. 
  13111.  
  13112.         echos ^f > prn
  13113.         echos %=f > prn
  13114.  
  13115.  
  13116. ΓòÉΓòÉΓòÉ 6.10.4. + - Substitutes command separator ΓòÉΓòÉΓòÉ
  13117.  
  13118. + returns the current command separator.  Use this variable, instead of the 
  13119. actual command separator, if you want your batch files and aliases to work 
  13120. regardless of how the command separator is defined.  For example, if the 
  13121. command separator is an ampersand [&] (the default in Take Command for OS/2) 
  13122. both of the commands below will display "Hello" on one line and "world" on the 
  13123. next.  However, if the command separator has been changed the first command 
  13124. will display "Hello & echo world", while the second command will continue to 
  13125. work as intended. 
  13126.  
  13127.         echo Hello & echo world
  13128.         echo Hello %+ echo world
  13129.  
  13130.  
  13131. ΓòÉΓòÉΓòÉ 6.10.5. _4VER - Take Command for OS/2 version (for example, 3.0) ΓòÉΓòÉΓòÉ
  13132.  
  13133. _4VER is the current Take Command for OS/2 version (for example, "3.0").  The 
  13134. version number is in decimal and uses the appropriate decimal separator for 
  13135. your country (to allow numeric comparisons with IF and IFF) 
  13136.  
  13137.  
  13138. ΓòÉΓòÉΓòÉ 6.10.6. _ANSI - ANSI status ΓòÉΓòÉΓòÉ
  13139.  
  13140. _ANSI returns "1" if Take Command's ANSI support is enabled, or "0" if it is 
  13141. disabled.  For more details on ANSI support see SETDOS /A,  the ANSI directive 
  13142. in TCMDOS2.INI, or the ANSI Support topic. 
  13143.  
  13144.  
  13145. ΓòÉΓòÉΓòÉ 6.10.7. _APMAC - AC Line Status ΓòÉΓòÉΓòÉ
  13146.  
  13147. _APMAC is the Advanced Power Management AC line status ("on-line", "off-line", 
  13148. or "unknown").  An empty string is returned if APM is not installed on your 
  13149. system. 
  13150.  
  13151.  
  13152. ΓòÉΓòÉΓòÉ 6.10.8. _APMBATT - Battery Status ΓòÉΓòÉΓòÉ
  13153.  
  13154. _APMBATT is the Advanced Power Management battery status ("high", "low", 
  13155. "critical", "charging", or "unknown").  An empty string is returned if APM is 
  13156. not installed. 
  13157.  
  13158.  
  13159. ΓòÉΓòÉΓòÉ 6.10.9. _APMLIFE - Remaining Battery Life ΓòÉΓòÉΓòÉ
  13160.  
  13161. _APMLIFE is the Advanced Power Management remaining battery life (0 - 100 or 
  13162. "unknown").  An empty string is returned if APM is not installed. 
  13163.  
  13164.  
  13165. ΓòÉΓòÉΓòÉ 6.10.10. _BATCH - Batch nesting level ΓòÉΓòÉΓòÉ
  13166.  
  13167. _BATCH is the current batch nesting level.  It is "0" if no batch file is 
  13168. currently being processed. 
  13169.  
  13170.  
  13171. ΓòÉΓòÉΓòÉ 6.10.11. _BATCHLINE - Current line number in current batch file ΓòÉΓòÉΓòÉ
  13172.  
  13173. _BATCHLINE is the current line number in the current batch file. It is "-1" if 
  13174. no batch file is currently being processed. 
  13175.  
  13176.  
  13177. ΓòÉΓòÉΓòÉ 6.10.12. _BATCHNAME - Name of current batch file ΓòÉΓòÉΓòÉ
  13178.  
  13179. _BATCHNAME is the full pathname of the current batch file.  It is an empty 
  13180. string if no batch file is currently being processed. 
  13181.  
  13182.  
  13183. ΓòÉΓòÉΓòÉ 6.10.13. _BG - Background color ΓòÉΓòÉΓòÉ
  13184.  
  13185. _BG is a string containing the first three letters of the current background 
  13186. screen output color (for example, "Bla"). 
  13187.  
  13188.  
  13189. ΓòÉΓòÉΓòÉ 6.10.14. _BOOT - Boot drive letter, without a colon ΓòÉΓòÉΓòÉ
  13190.  
  13191. _BOOT is the boot drive letter, without a colon (for example, "C"). 
  13192.  
  13193.  
  13194. ΓòÉΓòÉΓòÉ 6.10.15. _CI - Current cursor shape in insert mode ΓòÉΓòÉΓòÉ
  13195.  
  13196. _CI is the current shape of the cursor in insert mode, as a percentage (see 
  13197. SETDOS /S and CursorIns). 
  13198.  
  13199.  
  13200. ΓòÉΓòÉΓòÉ 6.10.16. _CO - Current cursor shape in overstrike mode ΓòÉΓòÉΓòÉ
  13201.  
  13202. _CO is the current shape of the cursor in overstrike mode, as a percentage (see 
  13203. SETDOS /S and CursorOver). 
  13204.  
  13205.  
  13206. ΓòÉΓòÉΓòÉ 6.10.17. _CODEPAGE - Current code page number ΓòÉΓòÉΓòÉ
  13207.  
  13208. _CODEPAGE is the current code page number (see CHCP). 
  13209.  
  13210.  
  13211. ΓòÉΓòÉΓòÉ 6.10.18. _COLUMN - Current cursor column ΓòÉΓòÉΓòÉ
  13212.  
  13213. _COLUMN is the current cursor column (for example, "0" for the left side of the 
  13214. screen). 
  13215.  
  13216.  
  13217. ΓòÉΓòÉΓòÉ 6.10.19. _COLUMNS - Screen width ΓòÉΓòÉΓòÉ
  13218.  
  13219. _COLUMNS is the current number of screen columns (for example, "80").  See 
  13220. Resizing the Take Command Window for additional details on screen size. 
  13221.  
  13222.  
  13223. ΓòÉΓòÉΓòÉ 6.10.20. _COUNTRY - Current country code ΓòÉΓòÉΓòÉ
  13224.  
  13225. _COUNTRY is the current country code. 
  13226.  
  13227.  
  13228. ΓòÉΓòÉΓòÉ 6.10.21. _CPU - CPU type (386, 486, 586) ΓòÉΓòÉΓòÉ
  13229.  
  13230. _CPU is the CPU type: 
  13231.  
  13232.         386     i386 
  13233.         486     i486 
  13234.         586     Pentium 
  13235.  
  13236.  
  13237. ΓòÉΓòÉΓòÉ 6.10.22. _CWD - Current drive and directory (d:\path) ΓòÉΓòÉΓòÉ
  13238.  
  13239. _CWD is the current working directory in the format d:\pathname. 
  13240.  
  13241.  
  13242. ΓòÉΓòÉΓòÉ 6.10.23. _CWDS - Current drive and directory with trailing backslash ΓòÉΓòÉΓòÉ
  13243.  
  13244. (d:\path\) 
  13245.  
  13246. _CWDS has the same value as _CWD, except it ends the pathname with a backslash 
  13247. [\]. 
  13248.  
  13249.  
  13250. ΓòÉΓòÉΓòÉ 6.10.24. _CWP - Current directory (\path) ΓòÉΓòÉΓòÉ
  13251.  
  13252. _CWP is the current working directory in the format \pathname. 
  13253.  
  13254.  
  13255. ΓòÉΓòÉΓòÉ 6.10.25. _CWPS - Current directory with trailing backslash (\path\) ΓòÉΓòÉΓòÉ
  13256.  
  13257. _CWPS has the same value as _CWP, except it ends the pathname with a backslash 
  13258. [\]. 
  13259.  
  13260.  
  13261. ΓòÉΓòÉΓòÉ 6.10.26. _DATE - Current date (mm-dd-yy) ΓòÉΓòÉΓòÉ
  13262.  
  13263. _DATE contains the current system date, in the format mm-dd-yy (U.S.), dd-mm-yy 
  13264. (Europe), or yy-mm-dd (Japan). 
  13265.  
  13266.  
  13267. ΓòÉΓòÉΓòÉ 6.10.27. _DAY - Day of the month (1 - 31) ΓòÉΓòÉΓòÉ
  13268.  
  13269. _DAY is the day of the month (1 to 31). 
  13270.  
  13271.  
  13272. ΓòÉΓòÉΓòÉ 6.10.28. _DISK - Current drive (C, D, etc.) ΓòÉΓòÉΓòÉ
  13273.  
  13274. _DISK is the current disk drive, without a colon (for example, "C"). 
  13275.  
  13276.  
  13277. ΓòÉΓòÉΓòÉ 6.10.29. _DNAME - Name of file used to store file descriptions ΓòÉΓòÉΓòÉ
  13278.  
  13279. _DNAME is the name of the file used to store file descriptions.  It can be 
  13280. changed with the DescriptionName directive in TCMDOS2.INI or the SETDOS /D 
  13281. command. 
  13282.  
  13283.  
  13284. ΓòÉΓòÉΓòÉ 6.10.30. _DOS - Operating system (OS2, PM, DOS, etc.) ΓòÉΓòÉΓòÉ
  13285.  
  13286. _DOS is the operating system and command processor type.  Each JP Software 
  13287. command processor returns a different value, as follows: 
  13288.  
  13289.         Product                     Returns 
  13290.  
  13291.         Take Command for OS/2       "PM" (for OS/2 Presentation Manager) 
  13292.         4DOS                        "DOS" 
  13293.         4OS2                        "OS2" 
  13294.         4NT                         "NT" 
  13295.         Take Command/16             "WIN" 
  13296.         Take Command/32             "WIN95" (under Windows 95) or "WIN32" 
  13297.                                     (under Windows NT) 
  13298.  
  13299.  This variable is useful if you have batch files running in more than one 
  13300.  environment, and need to take different actions depending on the underlying 
  13301.  operating environment. 
  13302.  
  13303.  
  13304. ΓòÉΓòÉΓòÉ 6.10.31. _DOSVER - Operating system version (2.1, 3.0, etc.) ΓòÉΓòÉΓòÉ
  13305.  
  13306. _DOSVER is the current operating system version (for example, "4.0").  The 
  13307. version number is in decimal and uses the appropriate decimal separator for 
  13308. your country (to allow numeric comparisons with the IF and IFF commands.) 
  13309.  
  13310.  
  13311. ΓòÉΓòÉΓòÉ 6.10.32. _DOW - Day of the week (Mon, Tue, Wed, etc.) ΓòÉΓòÉΓòÉ
  13312.  
  13313. _DOW is the first three characters of the current day of the week ("Mon", 
  13314. "Tue", "Wed", etc.). 
  13315.  
  13316.  
  13317. ΓòÉΓòÉΓòÉ 6.10.33. _DOWI - Day of the week as an integer ΓòÉΓòÉΓòÉ
  13318.  
  13319. _DOW is the current day of the week as an integer (1=Sunday, 2=Monday, etc.). 
  13320.  
  13321.  
  13322. ΓòÉΓòÉΓòÉ 6.10.34. _DOY - Day of the year (1 - 366) ΓòÉΓòÉΓòÉ
  13323.  
  13324. _DOY is the day of the year (1 to 366). 
  13325.  
  13326.  
  13327. ΓòÉΓòÉΓòÉ 6.10.35. _FG - Foreground color ΓòÉΓòÉΓòÉ
  13328.  
  13329. _FG is a string containing the first three letters of the current foreground 
  13330. screen output color (for example, "Whi"). 
  13331.  
  13332.  
  13333. ΓòÉΓòÉΓòÉ 6.10.36. _HLOGFILE - Current history log file name ΓòÉΓòÉΓòÉ
  13334.  
  13335. _HLOGFILE  returns the name of the current history log file (or an empty string 
  13336. if LOG /H is OFF).  See LOG for details on logging. 
  13337.  
  13338.  
  13339. ΓòÉΓòÉΓòÉ 6.10.37. _HOUR - Hour (0 - 23) ΓòÉΓòÉΓòÉ
  13340.  
  13341. _HOUR is the current hour (0 - 23). 
  13342.  
  13343.  
  13344. ΓòÉΓòÉΓòÉ 6.10.38. _KBHIT - Keystroke waiting in buffer (0 or 1) ΓòÉΓòÉΓòÉ
  13345.  
  13346. _KBHIT returns 1 if one or more keystrokes are waiting in the keyboard buffer, 
  13347. or 0 if the keyboard buffer is empty. 
  13348.  
  13349.  
  13350. ΓòÉΓòÉΓòÉ 6.10.39. _LASTDISK - Last possible drive (E, F, etc.) ΓòÉΓòÉΓòÉ
  13351.  
  13352. _LASTDISK is the last valid drive letter, without a colon. 
  13353.  
  13354.  
  13355. ΓòÉΓòÉΓòÉ 6.10.40. _LOGFILE - Current log file name ΓòÉΓòÉΓòÉ
  13356.  
  13357. _LOGFILE  returns the name of the current log file (or an empty string if LOG 
  13358. is OFF).  See LOG for details on logging. 
  13359.  
  13360.  
  13361. ΓòÉΓòÉΓòÉ 6.10.41. _MINUTE - Minute (0 - 59) ΓòÉΓòÉΓòÉ
  13362.  
  13363. _MINUTE is the current minute (0 - 59). 
  13364.  
  13365.  
  13366. ΓòÉΓòÉΓòÉ 6.10.42. _MONTH - Month of the year (1 - 12) ΓòÉΓòÉΓòÉ
  13367.  
  13368. _MONTH is the month of the year (1 to 12). 
  13369.  
  13370.  
  13371. ΓòÉΓòÉΓòÉ 6.10.43. _MOUSE - Mouse driver flag (always 1 in Take Command for OS/2) ΓòÉΓòÉΓòÉ
  13372.  
  13373. _MOUSE always returns "1" in Take Command for OS/2. 
  13374.  
  13375.  
  13376. ΓòÉΓòÉΓòÉ 6.10.44. _NDP - Coprocessor type (0, 387) ΓòÉΓòÉΓòÉ
  13377.  
  13378. _NDP is the coprocessor type: 
  13379.  
  13380.         0       no coprocessor is installed 
  13381.         387     80387, 80486DX, 80487, Pentium, or Pentium Pro 
  13382.  
  13383.  
  13384. ΓòÉΓòÉΓòÉ 6.10.45. _PID - Take Command for OS/2 process ID (numeric) ΓòÉΓòÉΓòÉ
  13385.  
  13386. _PID is the current process ID number. 
  13387.  
  13388.  
  13389. ΓòÉΓòÉΓòÉ 6.10.46. _PIPE - Whether running in a pipe (0 or 1) ΓòÉΓòÉΓòÉ
  13390.  
  13391. _PIPE returns 1 if the current process is running inside a pipe or 0 otherwise. 
  13392.  
  13393.  
  13394. ΓòÉΓòÉΓòÉ 6.10.47. _PPID - Parent process ID (numeric) ΓòÉΓòÉΓòÉ
  13395.  
  13396. _PPID is the process ID number of the parent process. 
  13397.  
  13398.  
  13399. ΓòÉΓòÉΓòÉ 6.10.48. _PTYPE - OS/2 process type (PM) ΓòÉΓòÉΓòÉ
  13400.  
  13401. _PTYPE is the current OS/2 process type.  It is included for compatibility with 
  13402. 4OS2, but will always return PM in Take Command for OS/2. 
  13403.  
  13404.  
  13405. ΓòÉΓòÉΓòÉ 6.10.49. _ROW - Current cursor row ΓòÉΓòÉΓòÉ
  13406.  
  13407. _ROW is the current cursor row (for example, "0" for the top of the screen). 
  13408.  
  13409.  
  13410. ΓòÉΓòÉΓòÉ 6.10.50. _ROWS - Screen height ΓòÉΓòÉΓòÉ
  13411.  
  13412. _ROWS is the current number of screen rows (for example, "25"). See Resizing 
  13413. the Take Command Window for additional details on screen size. 
  13414.  
  13415.  
  13416. ΓòÉΓòÉΓòÉ 6.10.51. _SECOND - Second (0 - 59) ΓòÉΓòÉΓòÉ
  13417.  
  13418. _SECOND is the current second (0 - 59). 
  13419.  
  13420.  
  13421. ΓòÉΓòÉΓòÉ 6.10.52. _SELECTED - Highlighed Text ΓòÉΓòÉΓòÉ
  13422.  
  13423. _SELECTED returns the first line of text highlighted in the Take Command 
  13424. window.  If no text has been highlighted, _SELECTED returns an empty string. 
  13425.  
  13426.  
  13427. ΓòÉΓòÉΓòÉ 6.10.53. _SHELL - Shell level (0, 1, 2, ...) ΓòÉΓòÉΓòÉ
  13428.  
  13429. _SHELL is the current shell nesting level.  The primary shell is level "0", and 
  13430. each subsequent secondary shell increments the level by 1. 
  13431.  
  13432.  
  13433. ΓòÉΓòÉΓòÉ 6.10.54. _SID - Current OS/2 session ID ΓòÉΓòÉΓòÉ
  13434.  
  13435. _SID is the session ID number. 
  13436.  
  13437.  
  13438. ΓòÉΓòÉΓòÉ 6.10.55. _SYSERR - Last OS/2 error code ΓòÉΓòÉΓòÉ
  13439.  
  13440. _SYSERR is the error code of the last operating system error.  You will need a 
  13441. technical or programmer's manual to understand these error values. 
  13442.  
  13443.  
  13444. ΓòÉΓòÉΓòÉ 6.10.56. _TIME - Current time (hh:mm:ss) ΓòÉΓòÉΓòÉ
  13445.  
  13446. _TIME contains the current system time in the format hh:mm:ss.  The separator 
  13447. character may vary depending upon your country information. 
  13448.  
  13449.  
  13450. ΓòÉΓòÉΓòÉ 6.10.57. _TRANSIENT - Transient shell flag (0 or 1) ΓòÉΓòÉΓòÉ
  13451.  
  13452. _TRANSIENT is "1" if the current shell is transient (started with a /C, see 
  13453. Startup Options for details), or "0" otherwise. 
  13454.  
  13455.  
  13456. ΓòÉΓòÉΓòÉ 6.10.58. _WINTITLE - Current window title ΓòÉΓòÉΓòÉ
  13457.  
  13458. _WINTITLE returns the title of the current window. 
  13459.  
  13460.  
  13461. ΓòÉΓòÉΓòÉ 6.10.59. _XPIXELS - Horizontal screen size in pixels ΓòÉΓòÉΓòÉ
  13462.  
  13463. _XPIXELS is the physical screen horizontal size in pixels. 
  13464.  
  13465.  
  13466. ΓòÉΓòÉΓòÉ 6.10.60. _YEAR - Year (1980 - 2099) ΓòÉΓòÉΓòÉ
  13467.  
  13468. _YEAR is the current year (1980 to 2099). 
  13469.  
  13470.  
  13471. ΓòÉΓòÉΓòÉ 6.10.61. _YPIXELS - Vertical screen size in pixels ΓòÉΓòÉΓòÉ
  13472.  
  13473. _YPIXELS is the physical screen vertical size in pixels. 
  13474.  
  13475.  
  13476. ΓòÉΓòÉΓòÉ 6.11. Variable Functions ΓòÉΓòÉΓòÉ
  13477.  
  13478. Variable functions are like internal variables, but they take one or more 
  13479. arguments (which can be environment variables or even other variable functions) 
  13480. and they return a value. 
  13481.  
  13482. Like all environment variables, these variable functions must be preceded by a 
  13483. percent sign in normal use (%@EVAL, %@LEN, etc.).  All variable functions must 
  13484. have square brackets enclosing their argument(s).  The argument(s) to a 
  13485. variable function cannot exceed 255 characters in length for all arguments 
  13486. taken as a group. 
  13487.  
  13488. The variable functions are useful in aliases and batch files to check on 
  13489. available system resources, manipulate strings and numbers, and work with files 
  13490. and filenames. 
  13491.  
  13492. The list below gives a one-line description of each function, and a cross- 
  13493. reference which selects a separate help topic on that function.  A few of the 
  13494. variables are simple enough that the one-line description is sufficient, but in 
  13495. most cases you should check for any additional information in the cross- 
  13496. referenced explanation if you are not already familiar with a function.  You 
  13497. can also obtain help on any function with a HELP @functionname command at the 
  13498. prompt. 
  13499.  
  13500. Many functions return values based on information provided by your operating 
  13501. system.  Such functions will only return correct information if the operating 
  13502. system provides it.  For example, @READY will not return accurate results if 
  13503. your operating system does not provide correct disk drive status information to 
  13504. Take Command. 
  13505.  
  13506. Several functions return filenames or parts of filenames.  On HPFS drives the 
  13507. strings returned by these functions may contain whitespace or other special 
  13508. characters.  To avoid problems which could be caused by these characters, quote 
  13509. the returned name before you pass it to other commands, for example (either of 
  13510. these methods would work): 
  13511.  
  13512.         set fname="%@findfirst[pro*.*]"
  13513.         echo First PRO file contains:
  13514.         type %fname
  13515.         .....
  13516.  
  13517.         set fname=%@findfirst[pro*.*]
  13518.         echo First PRO file contains:
  13519.         type "%fname"
  13520.         .....
  13521.  
  13522. If you don't use the quotes in the SET or TYPE command in this example, TYPE 
  13523. will not interpret any whitespace or special characters in the name properly. 
  13524.  
  13525. See the discussion after the function list for some additional information, and 
  13526. examples of how these functions can be used.  For a more comprehensive set of 
  13527. examples see the EXAMPLES.BTM file which came with your copy of Take Command. 
  13528.  
  13529. The variable functions are: 
  13530.  
  13531. System status 
  13532.  
  13533.         @DOSMEM[b|k|m]                      Size of largest free memory block 
  13534.         @READSCR[row,col,len]               Read characters from the screen 
  13535.  
  13536.  Drives and devices 
  13537.  
  13538.         @CDROM[d:]                          CD-ROM drive detection (0 or 1) 
  13539.         @DEVICE[name]                       Character device detection 
  13540.         @DISKFREE[d:, b|k|m]                Free disk space 
  13541.         @DISKTOTAL[d:,b|k|m]                To tal disk space 
  13542.         @ DISKUSED[d:,b|k|m]                Used disk space 
  13543.         @FSTYPE[d:]                         File system type (FAT, HPFS, CDFS, 
  13544.                                             etc.) 
  13545.         @LABEL[d:]                          Volume label 
  13546.         @READY[d:]                          Drive ready status (0 or 1) 
  13547.         @REMOTE[d:]                         Remote (network) drive detection (0 
  13548.                                             or 1) 
  13549.         @REMOVABLE[d:]                      Removable drive detection (0 or 1) 
  13550.  
  13551.  Files 
  13552.  
  13553.         @ATTRIB[filename,[nrhsda]]          File attribute test (0 or 1) 
  13554.         @DESCRIPT[filename]                 File description 
  13555.         @EAREAD[filename,EAname]            Reads extended attribute 
  13556.         @EAWRITE[filename,EAname,value]     Writes extended attribute 
  13557.         @EXETYPE[filename]                  Executable file type (DOS, PM, WIN, 
  13558.                                             etc.) 
  13559.         @FILEAGE[filename]                  File age (date and time) 
  13560.         @FILECLOSE[n]                       Close a file 
  13561.         @FILEDATE[filename[,acw]]           File date 
  13562.         @FILEOPEN[filename,mode[,type]]     Open a file 
  13563.         @FILEREAD[n [,length]]              Read next line from a file 
  13564.         @FILES[filename[,-nrhsda]]          Count files matching a wildcard 
  13565.         @FILESEEK[n,offset,start]           Move a file pointer 
  13566.         @FILESEEKL[n,line]                  Move a file pointer to a specified 
  13567.                                             line 
  13568.         @FILESIZE[filename,b|k|m]           Size of files matching a wildcard 
  13569.         @FILETIME[filename[,acw]]           File time 
  13570.         @FILEWRITE[n,text]                  Write next line to a file 
  13571.         @FILEWRITEB[n,length,text]          Write data to a file 
  13572.         @FINDCLOSE[filename]                Terminate an @FINDFIRST / @FINDNEXT 
  13573.                                             scan 
  13574.         @FINDFIRST[filename,nrhsda]         Find first matching file 
  13575.         @FINDNEXT[filename,nrhsda]          Find next matching file 
  13576.         @LINE[filename,n]                   Read a random line from a file 
  13577.         @LINES[filename]                    Count lines in a file 
  13578.         @SEARCH[filename]                   Path search 
  13579.         @UNIQUE[d:\path]                    Create file with unique name 
  13580.  
  13581.  File names 
  13582.  
  13583.         @EXPAND[filename,nrhsda]            Returns all names that match 
  13584.                                             filename. 
  13585.         @EXT[filename]                      File extension 
  13586.         @FILENAME[filename]                 File name and extension 
  13587.         @FULL[filename]                     Full file name with path 
  13588.         @NAME[filename]                     File name without path or extension 
  13589.         @PATH[filename]                     File path without name 
  13590.  
  13591.  Strings and characters 
  13592.  
  13593.         @ASCII[c]                           Numeric ASCII value for a character 
  13594.         @CHAR[n]                            Character value for numeric ASCII 
  13595.         @EXECSTR[command]                   Runs command and returns first line 
  13596.                                             of output 
  13597.         @FORMAT[[- ][x][.y],string]         Reformat a string 
  13598.         @INDEX[string1,string2]             Position of one string in another 
  13599.         @INSERT[n,string1,string2]          Inserts string1 into string2 
  13600.         @INSTR[start,length,string]         Extract a substring 
  13601.         @LEFT[n,string]                     Leftmost n characters of string 
  13602.         @LEN[string]                        Length of a string 
  13603.         @LOWER[string]                      Convert string to lower case 
  13604.         @REPEAT[c,n]                        Repeat a character 
  13605.         @REPLACE[str1,str2,text]            Replace str1 with str2 in text. 
  13606.         @RIGHT[n,string]                    Rightmost n characters of substring 
  13607.         @STRIP[chars,string]                Strips all chars from string. 
  13608.         @SUBSTR[string,start,length]        Extract a substring 
  13609.         @TRIM[string]                       Remove blanks from a string 
  13610.         @UPPER[string]                      Convert string to upper case 
  13611.         @WILD[str1,str2]                    Compares strings using wildcards. 
  13612.         @WORD[["sep",]n,string]             Extract a word from a string 
  13613.         @WORDS[["sep",]string]              Counts words in a string 
  13614.  
  13615.  Numbers and arithmetic 
  13616.  
  13617.         @COMMA[n]                           Inserts commas in a number 
  13618.         @CONVERT[input,output,value]        Convert from input base to output 
  13619.                                             base. 
  13620.         @DEC[%var]                          Decremented value of a variable 
  13621.         @EVAL[expression]                   Arithmetic calculations 
  13622.         @INC[%var]                          Incremented value of a variable 
  13623.         @INT[n]                             Integer part of a number 
  13624.         @NUMERIC[string]                    Test if a string is numeric 
  13625.         @RANDOM[min,max]                    Generate a random integer 
  13626.  
  13627.  Dates and times 
  13628.  
  13629.         @DAY[mm-dd-yy]                      Returns day of the month for date. 
  13630.         @DATE[mm-dd-yy]                     Convert date to number of days 
  13631.         @DOW[mm-dd-yy]                      Returns day of the week for date 
  13632.         @DOWI[mm-dd-yy]                     Returns day of the week as integer 
  13633.         @DOY[mm-dd-yy]                      Returns day of the year for date 
  13634.         @MAKEAGE[n]                         Convert date to file timestamp 
  13635.                                             format 
  13636.         @MAKEDATE[n]                        Convert number of days to date 
  13637.         @MAKETIME[n]                        Convert number of seconds to time 
  13638.         @MONTH[mm-dd-yy]                    Returns month for date 
  13639.         @TIME[hh:mm:ss]                     Convert time to number of seconds 
  13640.         @YEAR[mm-dd-yy]                     Returns year for date 
  13641.  
  13642.  Utility 
  13643.  
  13644.         @ALIAS[name]                        Value of an alias 
  13645.         @CLIP[n]                            Returns line n from clipboard 
  13646.         @EXEC[command]                      Execute a command 
  13647.         @IF[condition,true,false]           Evaluates an expression 
  13648.         @REXX[expr]                         Execute a REXX expression 
  13649.         @SELECT[file,t,l,b,r,title]         Menu selection 
  13650.         @TIMER[n]                           Elapsed time of specified timer 
  13651.  
  13652.  Examples 
  13653.  
  13654.  You can use variable functions in a wide variety of ways depending on your 
  13655.  needs.  We've included a few examples below to give you an idea of what's 
  13656.  possible.  For a more comprehensive set of examples see the EXAMPLES.BTM file 
  13657.  which came with your copy of Take Command. 
  13658.  
  13659.  To set the prompt to show the amount of free memory (see PROMPT for details on 
  13660.  including variable functions in your prompt): 
  13661.  
  13662.           [c:\] prompt (%%@dosmem[K]K) $p$g
  13663.  
  13664.  Set up a simple command-line calculator.  The calculator is used with a 
  13665.  command like CALC 3 * (4 + 5): 
  13666.  
  13667.           [c:\] alias calc `echo The answer is:  %@eval[%&]`
  13668.  
  13669.  The following batch file uses variable functions to implement a "once a day" 
  13670.  execution of a group of commands.    It works by constructing a 6-digit number 
  13671.  "yymmdd" from today's date, and comparing that to a number of the same type 
  13672.  stored in the file C:\ONCEADAY.DAT.  If today's date is numerically larger 
  13673.  than the saved date, and the time is after 6:00 AM, then the "once a day" 
  13674.  commands are run, and today's date is saved in the file as the new date for 
  13675.  comparison.  Otherwise, no action is taken.  You can make this file simpler 
  13676.  using the %@DATE and %@TIME functions instead of using %@INSTR to extract 
  13677.  substrings of the %_DATE and %_TIME variables; we used the approach shown to 
  13678.  demonstrate the use of %@INSTR. 
  13679.  
  13680.           rem  Temporary variables used to shorten example lines:
  13681.           rem    DD is _date, DY is yymmdd date, TM is _time
  13682.           set dd=%_date
  13683.           set dy=%@instr[6,2,%dd]%@instr[0,2,%dd]%@instr[3,2,%dd]
  13684.           set lastdate=0
  13685.           iff exist c:\onceaday.dat then
  13686.             set lastdate=%@line[onceaday.dat,0]
  13687.           endiff
  13688.           iff %dy gt %lastdate then
  13689.             set tm=%_time
  13690.             iff "%@instr[0,2,%tm]%@instr[3,2,%tm]" gt "0600" then
  13691.               rem Commands to be executed once a day go here
  13692.               echo %dy > c:\onceaday.dat
  13693.             endiff
  13694.           endiff
  13695.  
  13696.  
  13697. ΓòÉΓòÉΓòÉ 6.11.1. @ALIAS - Value of an alias ΓòÉΓòÉΓòÉ
  13698.  
  13699. @ALIAS[name]  Returns the contents of the specified alias as a string, or a 
  13700. null string if the alias doesn't exist.  When manipulating strings returned by 
  13701. @ALIAS you may need to disable certain special characters with the SETDOS /X 
  13702. command. Otherwise, command separators, redirection characters, and other 
  13703. similar "punctuation" in the alias may be interpreted as part of the current 
  13704. command, rather than part of a simple text string. 
  13705.  
  13706.  
  13707. ΓòÉΓòÉΓòÉ 6.11.2. @ASCII - Numeric ASCII value for a character ΓòÉΓòÉΓòÉ
  13708.  
  13709. @ASCII[c]:  Returns the numeric value of the specified ASCII character as a 
  13710. string.  For example %@ASCII[A] returns 65.  You can put an escape character 
  13711. [^] before the actual character to process. This allows quotes and other 
  13712. special characters as the argument (e.g., %@ASCII[^`]). 
  13713.  
  13714.  
  13715. ΓòÉΓòÉΓòÉ 6.11.3. @ATTRIB - File attribute test (0 or 1) ΓòÉΓòÉΓòÉ
  13716.  
  13717. @ATTRIB[filename[,-nrhsda[,p]]]:  Returns a "1" if the specified file has the 
  13718. matching attribute(s); otherwise returns a "0".  The attributes are: 
  13719.  
  13720.         N   Normal (no attributes set) 
  13721.         R   Read-only 
  13722.         H   Hidden 
  13723.         S   System 
  13724.         D   Directory 
  13725.         A   Archive 
  13726.  
  13727.  The attributes (other than N) can be combined (for example 
  13728.  %@ATTRIB[MYFILE,HS]).  Normally ATTRIB will only return a "1" if all of the 
  13729.  attributes match.  However, if a final ,p is included (for partial match), 
  13730.  then @ATTRIB will return a "1" if any of the attributes match.  For example, 
  13731.  %@ATTRIB[MYFILE,HS,p] will return a "1" if MYFILE has the hidden, system, or 
  13732.  both attributes.  Without ,p the function will return a "1" only if MYFILE has 
  13733.  both attributes. 
  13734.  
  13735.  You can prefix an attribute with "-" to mean "this attribute must be off". For 
  13736.  example, %@ATTRIB[MYFILE,H-R] will return a "1" if MYFILE has the hidden 
  13737.  attribute but not the read-only attribute. 
  13738.  
  13739.  If you do not specify any attributes, @ATTRIB will return the attributes of 
  13740.  the specified file in the format RHSAD, rather than a "0" or "1". Attributes 
  13741.  which are not set will be replaced with an underscore.  For example. if 
  13742.  SECURE.DAT has the read-only, hidden, and archive attributes set, 
  13743.  %@ATTRIB[SECURE.DAT] would return "RH_A_" (without the quotes).  If the file 
  13744.  does not exist, @ATTRIB will return an empty string. 
  13745.  
  13746.  The filename must be in quotes if it contains whitespace or special 
  13747.  characters. 
  13748.  
  13749.  
  13750. ΓòÉΓòÉΓòÉ 6.11.4. @CDROM - CD-ROM drive detection (0 or 1) ΓòÉΓòÉΓòÉ
  13751.  
  13752. @CDROM[d:]:  Returns "1" if the drive is a CD-ROM or "0" otherwise.  The drive 
  13753. letter must be followed by a colon. 
  13754.  
  13755.  
  13756. ΓòÉΓòÉΓòÉ 6.11.5. @CHAR - Character value for numeric ASCII ΓòÉΓòÉΓòÉ
  13757.  
  13758. @CHAR[n]:  Returns the character corresponding to an ASCII numeric value.  For 
  13759. example %@CHAR[65] returns A. 
  13760.  
  13761.  
  13762. ΓòÉΓòÉΓòÉ 6.11.6. @CLIP - Returns line from the clipboard ΓòÉΓòÉΓòÉ
  13763.  
  13764. @CLIP[n]:  Returns line n from the clipboard.  The first line is numbered 0. 
  13765. "**EOC**" is returned for all line numbers beyond the end of the clipboard. 
  13766.  
  13767.  
  13768. ΓòÉΓòÉΓòÉ 6.11.7. @COMMA - Inserts commas in a number ΓòÉΓòÉΓòÉ
  13769.  
  13770. @COMMA[n]:  Returns the number n with commas (or the appropriate thousands 
  13771. separator for your current country setting) inserted where appropriate. 
  13772.  
  13773.  
  13774. ΓòÉΓòÉΓòÉ 6.11.8. @CONVERT - Converts between number bases ΓòÉΓòÉΓòÉ
  13775.  
  13776. @CONVERT[input,output,value]:  Converts a numeric string (value) from one 
  13777. number base (input) to another (output).  Valid bases range from 2 to 36.  The 
  13778. value must be between 0 and 2**32-1 (2,147,483,647).  No error is returned if 
  13779. value is outside that range.  For example, to convert "1010101" from binary to 
  13780. decimal, use this command: 
  13781.  
  13782.         %@convert[2,10,1010101]
  13783.  
  13784.  
  13785. ΓòÉΓòÉΓòÉ 6.11.9. @DATE - Convert date to number of days ΓòÉΓòÉΓòÉ
  13786.  
  13787. @DATE[mm-dd-yy]:  Returns the number of days since January 1, 1980 for the 
  13788. specified date.  DATE uses the date format and separators mandated by your 
  13789. country code (for example dd.mm.yy in Germany, or yy-mm-dd in Japan).  The year 
  13790. can be entered as a 4-digit or 2-digit value.  Two-digit years between 80 and 
  13791. 99 are interpreted as 1980-1999; values between 00 and 79 are interpreted as 
  13792. 2000 - 2079. 
  13793.  
  13794.  
  13795. ΓòÉΓòÉΓòÉ 6.11.10. @DAY - Convert date to number of days ΓòÉΓòÉΓòÉ
  13796.  
  13797. @DATE[mm-dd-yy]:  Returns the numeric day of the month for the specified date. 
  13798. DAY uses the date format and separators mandated by your country code (for 
  13799. example dd.mm.yy in Germany, or yy-mm-dd in Japan).  The year can be entered as 
  13800. a 4-digit or 2-digit value.  Two-digit years between 80 and 99 are interpreted 
  13801. as 1980-1999; values between 00 and 79 are interpreted as 2000 - 2079. 
  13802.  
  13803.  
  13804. ΓòÉΓòÉΓòÉ 6.11.11. @DEC - Decremented value of a variable ΓòÉΓòÉΓòÉ
  13805.  
  13806. @DEC[%var]:  Returns the same value as @EVAL[%var-1].  That is, it retrieves 
  13807. and decrements the value of a variable.  The variable itself is not changed; to 
  13808. do so, use a command like this: 
  13809.  
  13810.         set var=%@dec[%var]
  13811.  
  13812.  
  13813. ΓòÉΓòÉΓòÉ 6.11.12. @DESCRIPT - File description ΓòÉΓòÉΓòÉ
  13814.  
  13815. @DESCRIPT[filename]  Returns the file description for the specified filename 
  13816. (see DESCRIBE). The filename must be in quotes if it contains whitespace or 
  13817. special characters. 
  13818.  
  13819.  
  13820. ΓòÉΓòÉΓòÉ 6.11.13. @DEVICE - Character device detection ΓòÉΓòÉΓòÉ
  13821.  
  13822. @DEVICE[name]:  Returns "1" if the specified name is a character device (such 
  13823. as a printer or serial port), or "0" if not. 
  13824.  
  13825.  
  13826. ΓòÉΓòÉΓòÉ 6.11.14. @DISKFREE - Free disk space ΓòÉΓòÉΓòÉ
  13827.  
  13828. @DISKFREE[d:,b|k|m]: Returns the amount of free disk space on the specified 
  13829. drive.  The drive letter must be followed by a colon.  DOS networks with large 
  13830. server disk drives (over 2 GB) may report disk space values that are too small 
  13831. when @DISKFREE is used.  If this occurs, it is because the network software 
  13832. does not report the propoer value to Take Command. 
  13833.  
  13834. The "b|k|m" argument specified the format of the returned value: 
  13835.  
  13836.         b   return the number of bytes 
  13837.         K   return the number of kilobytes (bytes / 1,024) 
  13838.         k   return the number of thousands of bytes (bytes / 1,000) 
  13839.         M   return the number of megabytes (bytes / 1,048,576) 
  13840.         m   return the number of millions of bytes (bytes / 1,000,000) 
  13841.  
  13842.  You can include commas in the results from a "b|k|m" function by appending a 
  13843.  "c" to the argument.  For example, to add commas to a "b" or number of bytes 
  13844.  result, enter "bc" as the argument. 
  13845.  
  13846.  
  13847. ΓòÉΓòÉΓòÉ 6.11.15. @DISKTOTAL - Total disk space ΓòÉΓòÉΓòÉ
  13848.  
  13849. @DISKTOTAL[d:,b|k|m]:  Returns the total disk space on the specified drive. 
  13850. The drive letter must be followed by a colon. 
  13851.  
  13852. The "b|k|m" argument specified the format of the returned value: 
  13853.  
  13854.         b   return the number of bytes 
  13855.         K   return the number of kilobytes (bytes / 1,024) 
  13856.         k   return the number of thousands of bytes (bytes / 1,000) 
  13857.         M   return the number of megabytes (bytes / 1,048,576) 
  13858.         m   return the number of millions of bytes (bytes / 1,000,000) 
  13859.  
  13860.  You can include commas in the results from a "b|k|m" function by appending a 
  13861.  "c" to the argument.  For example, to add commas to a "b" or number of bytes 
  13862.  result, enter "bc" as the argument. 
  13863.  
  13864.  
  13865. ΓòÉΓòÉΓòÉ 6.11.16. @DISKUSED - Used disk space ΓòÉΓòÉΓòÉ
  13866.  
  13867. @DISKUSED[d:,b|k|m]:  Returns the amount of disk space in use by files and 
  13868. directories on the specified drive. The drive letter must be followed by a 
  13869. colon. 
  13870.  
  13871. The "b|k|m" argument specified the format of the returned value: 
  13872.  
  13873.         b   return the number of bytes 
  13874.         K   return the number of kilobytes (bytes / 1,024) 
  13875.         k   return the number of thousands of bytes (bytes / 1,000) 
  13876.         M   return the number of megabytes (bytes / 1,048,576) 
  13877.         m   return the number of millions of bytes (bytes / 1,000,000) 
  13878.  
  13879.  You can include commas in the results from a "b|k|m" function by appending a 
  13880.  "c" to the argument.  For example, to add commas to a "b" or number of bytes 
  13881.  result, enter "bc" as the argument. 
  13882.  
  13883.  
  13884. ΓòÉΓòÉΓòÉ 6.11.17. @DOSMEM - Size of largest free memory block ΓòÉΓòÉΓòÉ
  13885.  
  13886. @DOSMEM[b|k|m]:  Returns the size of the largest free memory block (either in 
  13887. physical or virtual memory). 
  13888.  
  13889. The "b|k|m" argument specified the format of the returned value: 
  13890.  
  13891.         b   return the number of bytes 
  13892.         K   return the number of kilobytes (bytes / 1,024) 
  13893.         k   return the number of thousands of bytes (bytes / 1,000) 
  13894.         M   return the number of megabytes (bytes / 1,048,576) 
  13895.         m   return the number of millions of bytes (bytes / 1,000,000) 
  13896.  
  13897.  You can include commas in the results from a "b|k|m" function by appending a 
  13898.  "c" to the argument.  For example, to add commas to a "b" or number of bytes 
  13899.  result, enter "bc" as the argument. 
  13900.  
  13901.  
  13902. ΓòÉΓòÉΓòÉ 6.11.18. @DOW - Day of the week ΓòÉΓòÉΓòÉ
  13903.  
  13904. @DOW[mm-dd-yy]:  Returns the first three characters of the day of the week for 
  13905. the specified date ("Mon", "Tue", "Wed", etc.).  DOW uses the date format and 
  13906. separators mandated by your country code (for example dd.mm.yy in Germany, or 
  13907. yy-mm-dd in Japan).  The year can be entered as a 4- digit or 2-digit value. 
  13908. Two-digit years between 80 and 99 are interpreted as 1980-1999; values between 
  13909. 00 and 79 are interpreted as 2000 - 2079. 
  13910.  
  13911.  
  13912. ΓòÉΓòÉΓòÉ 6.11.19. @DOWI - Day of the week as an integer ΓòÉΓòÉΓòÉ
  13913.  
  13914. @DOWI[mm-dd-yy]:  Returns the day of the week for the specified date as an 
  13915. integer (1 = Sunday, 2 = Monday, etc.).  DOWI uses the date format and 
  13916. separators mandated by your country code (for example dd.mm.yy in Germany, or 
  13917. yy-mm-dd in Japan).  The year can be entered as a 4-digit or 2- digit value. 
  13918. Two-digit years between 80 and 99 are interpreted as 1980-1999; values between 
  13919. 00 and 79 are interpreted as 2000 - 2079. 
  13920.  
  13921.  
  13922. ΓòÉΓòÉΓòÉ 6.11.20. @DOY - Day of the year ΓòÉΓòÉΓòÉ
  13923.  
  13924. @DOY[mm-dd-yy]:  Returns the day of the year for the specified date (1 - 366). 
  13925. DOY uses the date format and separators mandated by your country code (for 
  13926. example dd.mm.yy in Germany, or yy-mm-dd in Japan). The year can be entered as 
  13927. a 4-digit or 2-digit value.  Two-digit years between 80 and 99 are interpreted 
  13928. as 1980-1999; values between 00 and 79 are interpreted as 2000 - 2079. 
  13929.  
  13930.  
  13931. ΓòÉΓòÉΓòÉ 6.11.21. @EAREAD - Reads Extended Attribute ΓòÉΓòÉΓòÉ
  13932.  
  13933. @EAREAD[filename,EAname]:  Returns the specified extended attribute (EAname) 
  13934. for a file, or an empty string if the extended attribute does not exist.  This 
  13935. function can only read EAs stored as text; it cannot read binary EAs. 
  13936. Wildcards cannot be used in the filename. The filename must be in quotes if it 
  13937. contains whitespace or special characters.  For example, to read the .SUBJECT 
  13938. extended attribute for README.TXT: 
  13939.  
  13940.         set subject=%@earead[readme.txt,.subject]
  13941.  
  13942.  
  13943. ΓòÉΓòÉΓòÉ 6.11.22. @EAWRITE - Writes Extended Attribute ΓòÉΓòÉΓòÉ
  13944.  
  13945. @EAREAD[filename,EAname,value]:  Creates or updates the specified extended 
  13946. attribute (EAname) for a file.  Returns "0" for success or "-1" for failure. 
  13947. This function can only write EAs stored as text; it cannot write binary EAs. 
  13948. Wildcards cannot be used in the filename.  The filename must be in quotes if it 
  13949. contains whitespace or special characters.  For example, to set the .SUBJECT 
  13950. extended attribute for README.TXT (enter this on one line): 
  13951.  
  13952.         if %@eawrite[readme.txt,.subject,.Installation notes for latest version] != 0 echo EAWRITE failed!
  13953.  
  13954.  
  13955. ΓòÉΓòÉΓòÉ 6.11.23. @EVAL - Arithmetic calculations ΓòÉΓòÉΓòÉ
  13956.  
  13957. @EVAL[expression]:  Evaluates an arithmetic expression. @EVAL supports addition 
  13958. (+), subtraction (-), multiplication (*), division (/), integer division (\, 
  13959. returns the integer part of the quotient), modulo (%%), and integer 
  13960. exponentiation (**).  The expression can contain environment variables and 
  13961. other variable functions.  @EVAL also supports parentheses, commas, and 
  13962. decimals. Parentheses can be nested. @EVAL will strip leading and trailing 
  13963. zeros from the result.  When evaluating expressions, **, *, /, and %% take 
  13964. precedence over + and -.  For example, 3 + 4 * 2 will be interpreted as 3 + 8, 
  13965. not as 7 * 2.  To change this order of evaluation, use parentheses to specify 
  13966. the order you want. 
  13967.  
  13968. To insure that your @EVAL expressions are interpreted correctly, spaces should 
  13969. be placed on both sides of an operator, for example: 
  13970.  
  13971.         %@eval[(20 %% 3) + 4]
  13972.  
  13973. The maximum precision is 16 digits to the left of the decimal point and 0 to 8 
  13974. digits to the right of the decimal point.  You can alter the default precision 
  13975. to the right of the decimal point from the Options 2 page of the configuration 
  13976. notebook, with the EvalMax and EvalMin directives in TCMDOS2.INI, and with the 
  13977. SETDOS /F command.  You can alter the decimal character with the configuration 
  13978. notebook, the DecimalChar directive, or the SETDOS /G command. 
  13979.  
  13980. You can alter the precision for a single evaluation with the construct 
  13981. @EVAL[expression=x.y].  The x value specifies the the minimum decimal precision 
  13982. (the minimum number of decimal places displayed); the y value sets the maximum 
  13983. decimal (rounding) precision.  If x is greater than y, it is ignored.  You can 
  13984. specify either or both arguments.  For example: 
  13985.  
  13986.         @EVAL[3/7=.4]   returns 0.4286
  13987.         @EVAL[3/7=2]    returns 0.42857143
  13988.         @EVAL[3/7=2.4]  returns 0.50
  13989.  
  13990. Also see @DEC and @INC. 
  13991.  
  13992.  
  13993. ΓòÉΓòÉΓòÉ 6.11.24. @EXEC - Execute a command ΓòÉΓòÉΓòÉ
  13994.  
  13995. @EXEC[command]:  Execute the command and return the numeric exit code.  The 
  13996. command can be an alias, internal command, external command, .BTM file, .CMD 
  13997. file, or .BAT file.  If you preface the command name with an '@' then @EXEC 
  13998. will return an empty string. 
  13999.  
  14000. @EXEC is primarily intended for running a program from within the PROMPT.  It 
  14001. is a "back door" entry into command processing and should be used with extreme 
  14002. caution.  Incorrect or recursive use of @EXEC may hang your system. 
  14003.  
  14004.  
  14005. ΓòÉΓòÉΓòÉ 6.11.25. @EXECSTR - Execute a command and return output ΓòÉΓòÉΓòÉ
  14006.  
  14007. @EXECSTR[command]:  Runs the specified command and returns the first line 
  14008. written to STDOUT by that command.  @EXECSTR is a "back door" entry into 
  14009. command processing and should be used with extreme caution.  Incorrect or 
  14010. recursive use of @EXECSTR may hang your system. 
  14011.  
  14012. @EXECSTR is useful for retrieving a result from an external utility -- for 
  14013. example, if you have an external utility called NETTIME.EXE which retireves the 
  14014. time of day from your network server and writes it to standard output, you 
  14015. could save it in an environment variable using a command like this: 
  14016.  
  14017.         set server_time=%@execstr[d:\path\nettime.exe]
  14018.  
  14019. If the same utility reurned a result properly formatted for the TIME command 
  14020. you could also use it to set the time on your system: 
  14021.  
  14022.         [c:\] time %@execstr[d:\path\nettime.exe]
  14023.  
  14024.  
  14025. ΓòÉΓòÉΓòÉ 6.11.26. @EXETYPE - Executable file type (DOS, PM, WIN, etc.) ΓòÉΓòÉΓòÉ
  14026.  
  14027. @EXETYPE[filename]:  Returns the application type as a string: 
  14028.  
  14029.         DOS         DOS .COM, .EXE, or .BAT file 
  14030.         AVIO        OS/2 Character mode, windowed 
  14031.         FS          OS/2 Character mode, full-screen 
  14032.         PM          OS/2 Presentation Manager 
  14033.         WIN         Windows 3 
  14034.         UNKNOWN     Any other file 
  14035.  
  14036.  
  14037. ΓòÉΓòÉΓòÉ 6.11.27. @EXPAND - All files that match wildcard ΓòÉΓòÉΓòÉ
  14038.  
  14039. @EXPAND[filename[-nrhsda]]:  Returns, on a single line, the names of all files 
  14040. and directories that match the filename, which may contain wildcards and 
  14041. include lists.  Returns an empty string if no files match.  If the file list is 
  14042. longer than the allowed command line length, it will be truncated without an 
  14043. error message. 
  14044.  
  14045. The second argument, if included, defines the attributes of the files that will 
  14046. be included in the search.  The attributes are: 
  14047.  
  14048.         N   Normal (no attributes set) 
  14049.         R   Read-only 
  14050.         H   Hidden 
  14051.         S   System 
  14052.         D   Directory 
  14053.         A   Archive 
  14054.  
  14055.  The attributes (other than N) can be combined.  You can prefix an attribute 
  14056.  with "-" to mean "this attribute must be off". 
  14057.  
  14058.  If the attribute argument is not used, hidden files, system files, and 
  14059.  directories will be excluded from the returned list; all other files which 
  14060.  match the filename will be included. 
  14061.  
  14062.  The filename must be in quotes if it contains whitespace or special 
  14063.  characters.  On an HPFS drive, the returned filenames may contain whitespace 
  14064.  or special characters.  To avoid problems which could be caused by these 
  14065.  characters, quote the returned names before you pass them to other commands. 
  14066.  
  14067.  
  14068. ΓòÉΓòÉΓòÉ 6.11.28. @EXT - File extension ΓòÉΓòÉΓòÉ
  14069.  
  14070. @EXT[filename]:  Returns the extension from a file name, without a leading 
  14071. period.  On volumes which support long file names, the extension can be up to 
  14072. 64 characters long.  On traditional FAT drives it can be up to 3 characters 
  14073. long.  The filename must be in quotes if it contains whitespace or special 
  14074. characters. 
  14075.  
  14076. On an HPFS drive, the returned extension may contain whitespace or special 
  14077. characters.  To avoid problems which could be caused by these characters, quote 
  14078. the returned extension before you pass it to other commands. 
  14079.  
  14080.  
  14081. ΓòÉΓòÉΓòÉ 6.11.29. @FILEAGE - File age (date and time) ΓòÉΓòÉΓòÉ
  14082.  
  14083. @FILEAGE[filename]:  Returns the date and time of the file as a single numeric 
  14084. value, but can not be used for date and time calculations as it is not returned 
  14085. in identifiable units.  The number can be used to compare the relative ages of 
  14086. two or more files.  The filename must be in quotes if it contains whitespace or 
  14087. special characters. 
  14088.  
  14089.  
  14090. ΓòÉΓòÉΓòÉ 6.11.30. @FILECLOSE - Close a file ΓòÉΓòÉΓòÉ
  14091.  
  14092. @FILECLOSE[n]:  Closes the file whose handle is n. You cannot close handles 0, 
  14093. 1 or 2.  Returns "0" if the file closed OK or "-1" if an error occurred. 
  14094.  
  14095. This function should only be used with file handles returned by @FILEOPEN!  If 
  14096. you use it with any other number you may damage other files opened by Take 
  14097. Command (or by the program which started Take Command), or hang your system. 
  14098.  
  14099.  
  14100. ΓòÉΓòÉΓòÉ 6.11.31. @FILEDATE - File date ΓòÉΓòÉΓòÉ
  14101.  
  14102. @FILEDATE[filename[,acw]]:  Returns the date a file was last modified, in the 
  14103. default country format (mm-dd-yy for the US).  The filename must be in quotes 
  14104. if it contains whitespace or special characters.  The optional second argument 
  14105. selects which date field is returned for files on an HPFS drive:  a means the 
  14106. last access date, c means the creation date, and w means the last modification 
  14107. (write) date, which is the default. 
  14108.  
  14109.  
  14110. ΓòÉΓòÉΓòÉ 6.11.32. @FILENAME - File name and extension ΓòÉΓòÉΓòÉ
  14111.  
  14112. @FILENAME[filename]:  Returns the name and extension of a file, without a path. 
  14113.  
  14114. The filename must be in quotes if it contains whitespace or special characters. 
  14115. On HPFS drives, the returned filename may contain whitespace or other special 
  14116. characters.  To avoid problems which could be caused by these characters, quote 
  14117. the returned name before you pass it to other commands. 
  14118.  
  14119.  
  14120. ΓòÉΓòÉΓòÉ 6.11.33. @FILEOPEN - Open a file ΓòÉΓòÉΓòÉ
  14121.  
  14122. @FILEOPEN[filename, read | write | append[,b|t]]:  Opens the file in the 
  14123. specified mode and returns the file handle as an integer.  The optional third 
  14124. parameter controls whether the file is opened in binary or text mode.  Text 
  14125. mode (the default) should be used to read text using @FILEREAD without a 
  14126. "length", and to write text using @FILEWRITE.  Binary mode should be used to 
  14127. read binary data with @FILEREAD with a "length", and to write binary data with 
  14128. @FILEWRITEB.  Returns "-1" if the file cannot be opened. 
  14129.  
  14130. The filename must be in quotes if it contains whitespace or special characters. 
  14131.  
  14132. @FILEOPEN can also open named pipes.  The pipe name must begin with \\.\pipe\. 
  14133. @FILEOPEN first tries to open an existing pipe; if that fails it tries to 
  14134. create a new pipe.  Pipes are opened in blocking mode, duplex access, byte- 
  14135. read mode, and inheritable.  For more information on named pipes see your OS/2 
  14136. documentation. 
  14137.  
  14138.  
  14139. ΓòÉΓòÉΓòÉ 6.11.34. @FILEREAD - Read data from a file ΓòÉΓòÉΓòÉ
  14140.  
  14141. @FILEREAD[n[,length]]:  Reads data from the file whose handle is n.  Returns 
  14142. "**EOF**" if you attempt to read past the end of the file.  If length is not 
  14143. specified, @FILEREAD reads up to the next CR or LF character.  If length is 
  14144. specified, @FILEREAD reads the specified number of bytes regardless of any end 
  14145. of line characters. 
  14146.  
  14147. This function should only be used with file handles returned by @FILEOPEN!  If 
  14148. you use it with any other number you may damage other files opened by Take 
  14149. Command (or by the program which started Take Command), or hang your system. 
  14150.  
  14151.  
  14152. ΓòÉΓòÉΓòÉ 6.11.35. @FILES - Count files matching a wildcard ΓòÉΓòÉΓòÉ
  14153.  
  14154. @FILES[filename[,-nrhsda]]:  Returns the number of files that match the 
  14155. filename, which may contain wildcards and include lists.  The filename must 
  14156. refer to a single directory; to check several directories, use @FILES once for 
  14157. each directory, and add the results together with @EVAL. 
  14158.  
  14159. The filename must be in quotes if it contains whitespace or special characters. 
  14160.  
  14161. The second argument, if included, defines the attributes of the files that will 
  14162. be included in the search.  The attributes are: 
  14163.  
  14164.         N   Normal (no attributes set) 
  14165.         R   Read-only 
  14166.         H   Hidden 
  14167.         S   System 
  14168.         D   Directory 
  14169.         A   Archive 
  14170.  
  14171.  The attributes (other than N) can be combined.  You can prefix an attribute 
  14172.  with "-" to mean "everything except files with this attribute." 
  14173.  
  14174.  
  14175. ΓòÉΓòÉΓòÉ 6.11.36. @FILESEEK - Move a file pointer to an offset ΓòÉΓòÉΓòÉ
  14176.  
  14177. @FILESEEK[n,offset,start]:  Moves the file pointer offset bytes in the file 
  14178. whose handle is n.  Returns the new position of the pointer, in bytes from the 
  14179. start of the file.  Set start to 0 to seek relative to the beginning of the 
  14180. file, 1 to seek relative to the current file pointer, or 2 to seek relative to 
  14181. the end of the file.  The offset value may be negative (seek backward), 
  14182. positive (seek forward), or zero (return current position, but do not change 
  14183. it). 
  14184.  
  14185. This function should only be used with file handles returned by @FILEOPEN!  If 
  14186. you use it with any other number you may damage other files opened by Take 
  14187. Command (or by the program which started Take Command), or hang your system. 
  14188.  
  14189.  
  14190. ΓòÉΓòÉΓòÉ 6.11.37. @FILESEEKL - Move a file pointer to a line number ΓòÉΓòÉΓòÉ
  14191.  
  14192. @FILESEEKL[n,line]:  Moves the file pointer to the specified line in the file 
  14193. whose handle is n. The first line in the file is numbered 0.  Returns the new 
  14194. position of the pointer, in bytes from the start of the file.  @FILESEEKL must 
  14195. read each line of the file up to the target line in order to position the 
  14196. pointer, and will therefore cause significant delays if used in a long loop or 
  14197. on a large file. 
  14198.  
  14199. This function should only be used with file handles returned by @FILEOPEN!  If 
  14200. you use it with any other number you may damage other files opened by Take 
  14201. Command (or by the program which started Take Command), or hang your system. 
  14202.  
  14203.  
  14204. ΓòÉΓòÉΓòÉ 6.11.38. @FILESIZE - Size of files matching a wildcard ΓòÉΓòÉΓòÉ
  14205.  
  14206. @FILESIZE[filename,b|k|m[,a]]:  Returns the size of a file, or "-1" if the file 
  14207. does not exist.  If the filename includes wildcards or an include list, returns 
  14208. the combined size of all matching files.  The filename must be in quotes if it 
  14209. contains whitespace or special characters. 
  14210.  
  14211. The optional third argument a (allocated), if used, instructs @FILESIZE to 
  14212. return the amount of space allocated for the file(s) on the disk, rather than 
  14213. the amount of data in the file.  Network drives and compressed drives may not 
  14214. always report allocated sizes accurately, depending on the way the network or 
  14215. disk compression software is implemented. 
  14216.  
  14217. The "b|k|m" argument specified the format of the returned value: 
  14218.  
  14219.         b   return the number of bytes 
  14220.         K   return the number of kilobytes (bytes / 1,024) 
  14221.         k   return the number of thousands of bytes (bytes / 1,000) 
  14222.         M   return the number of megabytes (bytes / 1,048,576) 
  14223.         m   return the number of millions of bytes (bytes / 1,000,000) 
  14224.  
  14225.  You can include commas in the results from a "b|k|m" function by appending a 
  14226.  "c" to the argument.  For example, to add commas to a "b" or number of bytes 
  14227.  result, enter "bc" as the argument. 
  14228.  
  14229.  
  14230. ΓòÉΓòÉΓòÉ 6.11.39. @FILETIME - File time ΓòÉΓòÉΓòÉ
  14231.  
  14232. @FILETIME[filename[,acw]]:  Returns the time a file was last modified, in hh:mm 
  14233. format.  The filename must be in quotes if it contains whitespace or special 
  14234. characters.  The optional second argument selects which time field is returned 
  14235. for files on HPFS drive: a means the last access time, c means the creation 
  14236. time, and w means the last modification (write) time, which is the default. 
  14237.  
  14238.  
  14239. ΓòÉΓòÉΓòÉ 6.11.40. @FILEWRITE - Write next line to a file ΓòÉΓòÉΓòÉ
  14240.  
  14241. @FILEWRITE[n,text]:  Writes a line to the file whose handle is n.  Returns the 
  14242. number of bytes written, or "-1" if an error occurred.  n must be a handle 
  14243. returned by @FILEOPEN; or 1 (for standard output) or 2 (for standard error). 
  14244.  
  14245. This function should only be used with file handles returned by @FILEOPEN!  If 
  14246. you use it with any other number you may damage other files opened by Take 
  14247. Command (or by the program which started Take Command), or hang your system. 
  14248.  
  14249.  
  14250. ΓòÉΓòÉΓòÉ 6.11.41. @FILEWRITEB - Write bytes from a string to a file ΓòÉΓòÉΓòÉ
  14251.  
  14252. @FILEWRITEB[n,length,string]:  Writes the specified number of bytes from the 
  14253. string to the file whose handle is n. Returns the number of bytes written, or 
  14254. "-1" if an error occurred. 
  14255.  
  14256. This function should only be used with file handles returned by @FILEOPEN!  If 
  14257. you use it with any other number you may damage other files opened by Take 
  14258. Command (or by the program which started Take Command), or hang your system. 
  14259.  
  14260.  
  14261. ΓòÉΓòÉΓòÉ 6.11.42. @FINDCLOSE - Terminate a find first / find next scan ΓòÉΓòÉΓòÉ
  14262.  
  14263. @FINDCLOSE[filename]:  Signals the end of a @FINDFIRST / @FINDNEXT sequence. 
  14264. You must use this function to release the directory search handle. 
  14265.  
  14266.  
  14267. ΓòÉΓòÉΓòÉ 6.11.43. @FINDFIRST - Find first matching file ΓòÉΓòÉΓòÉ
  14268.  
  14269. @FINDFIRST[filename [,[-]nrhsda]]:  Returns the name of the first file that 
  14270. matches the filename, which may include wildcards and/or an include list. 
  14271. Returns an empty string if no files match. The second argument, if included, 
  14272. defines the attributes of the files that will be included in the search.  The 
  14273. attributes are: 
  14274.  
  14275.         N   Normal (no attributes set) 
  14276.         R   Read-only 
  14277.         H   Hidden 
  14278.         S   System 
  14279.         D   Directory 
  14280.         A   Archive 
  14281.  
  14282.  The attributes (other than N) can be combined.  @FINDFIRST will only find a 
  14283.  file if all of the attributes match.  You can prefix an attribute with "-" to 
  14284.  mean "everything except files with this attribute." 
  14285.  
  14286.  After @FINDFIRST or the last @FINDNEXT, you must use @FINDCLOSE to avoid 
  14287.  running out of directory search handles. 
  14288.  
  14289.  
  14290. ΓòÉΓòÉΓòÉ 6.11.44. @FINDNEXT - Find next matching file ΓòÉΓòÉΓòÉ
  14291.  
  14292. @FINDNEXT[[filename [,[-]nrhsda]]]:  Returns the name of the next file that 
  14293. matches the filename(s) in the previous @FINDFIRST call. Returns an empty 
  14294. string when no more files match.  @FINDNEXT should only be used after a 
  14295. successful call to @FINDFIRST.  You do not need to include the filename 
  14296. parameter, because it must be the same as the previous @FINDFIRST call, unless 
  14297. you also want to specify file attributes for @FINDNEXT. 
  14298.  
  14299. The second argument, if included, defines the attributes of the files that will 
  14300. be included in the search.  The attributes are: 
  14301.  
  14302.         N   Normal (no attributes set) 
  14303.         R   Read-only 
  14304.         H   Hidden 
  14305.         S   System 
  14306.         D   Directory 
  14307.         A   Archive 
  14308.  
  14309.  The attributes (other than N) can be combined.  @FINDFIRST will only find a 
  14310.  file if all of the attributes match.  You can prefix an attribute with "-" to 
  14311.  mean "everything except files with this attribute." 
  14312.  
  14313.  After the last @FINDNEXT, you must use @FINDCLOSE to avoid running out of 
  14314.  directory search handles. 
  14315.  
  14316.  
  14317. ΓòÉΓòÉΓòÉ 6.11.45. @FORMAT - Formats (justifies) a string ΓòÉΓòÉΓòÉ
  14318.  
  14319. @FORMAT[[-][x][.y],string]:  Reformats a string, truncating it or padding it 
  14320. with spaces as necessary.  If you use the minus [- ], the string is 
  14321. left-justified; otherwise, it is right-justified.  The x value is the minimum 
  14322. number of characters in the result.  The y value is the maximum number of 
  14323. characters in the result.  You can combine the options as necessary.  For 
  14324. example, Echo %@format[7,Hello] displays "  Hello" while Echo 
  14325. %@format[.3,Hello] displays "Hel". 
  14326.  
  14327.  
  14328. ΓòÉΓòÉΓòÉ 6.11.46. @FSTYPE - File system type (FAT, HPFS, CDFS, etc.) ΓòÉΓòÉΓòÉ
  14329.  
  14330. @FSTYPE[d:]:  Returns the file system type for the specified drive.  @FSTYPE 
  14331. will return "FAT" for a DOS-compatible drive with a file allocation table, 
  14332. "HPFS" for a drive that uses the OS/2 high performance file system, or "CDFS" 
  14333. for a CD-ROM drive.  It may return other values if additional file systems have 
  14334. been installed. 
  14335.  
  14336.  
  14337. ΓòÉΓòÉΓòÉ 6.11.47. @FULL - Full file name with path ΓòÉΓòÉΓòÉ
  14338.  
  14339. @FULL[filename]:  Returns the fully qualified path name of a file.  The 
  14340. filename must be in quotes if it contains whitespace or special characters.  On 
  14341. an HPFS drive, the returned filename may contain whitespace or other special 
  14342. characters.  To avoid problems which could be caused by these characters, quote 
  14343. the returned name before you pass it to other commands. 
  14344.  
  14345.  
  14346. ΓòÉΓòÉΓòÉ 6.11.48. @IF - Evaluates a test condition ΓòÉΓòÉΓòÉ
  14347.  
  14348. @IF[condition,true,false]:  Evaluates the condition and returns a string based 
  14349. on the result.  The condition can include any of the tests allowed in the IF 
  14350. command.  If the condition is true, @IF returns the first result string; if it 
  14351. is false, @IF returns the second string.  For example, %IF[2==2,Correct!,Oops!] 
  14352. returns "Correct!" 
  14353.  
  14354.  
  14355. ΓòÉΓòÉΓòÉ 6.11.49. @INC - Incremented value of a variable ΓòÉΓòÉΓòÉ
  14356.  
  14357. @INC[%var]:  Returns the same value as %@EVAL[%var + 1]. That is, it retrieves 
  14358. and increments the value of a variable.  The variable itself is not changed; to 
  14359. do so, use a command like this: 
  14360.  
  14361.         set var=%@inc[%var]
  14362.  
  14363.  
  14364. ΓòÉΓòÉΓòÉ 6.11.50. @INDEX - Position of one string in another ΓòÉΓòÉΓòÉ
  14365.  
  14366. @INDEX[string1,string2]  Returns the position of string2 within string1, or 
  14367. "-1" if string2 is not found.  The first position in string1 is numbered 0. 
  14368.  
  14369.  
  14370. ΓòÉΓòÉΓòÉ 6.11.51. @INSERT - Insert one string into another ΓòÉΓòÉΓòÉ
  14371.  
  14372. @INSERT[n, string1, string2]:  Inserts string1 into string2 starting at 
  14373. position n.  The first position in the string is postion 0.  For example, 
  14374. %@insert[1,arm,wing] returns the string "warming." 
  14375.  
  14376.  
  14377. ΓòÉΓòÉΓòÉ 6.11.52. @INSTR - Extract a substring ΓòÉΓòÉΓòÉ
  14378.  
  14379. @INSTR[start, length, string]:  Returns a substring, starting at the position 
  14380. start and continuing for length characters.  If the length is omitted, it will 
  14381. default to the remainder of the string.  If the length is negative, the start 
  14382. is relative to the right side of the string.  The first character in the string 
  14383. is numbered 0; if the length is negative, the last character is numbered 0. 
  14384.  
  14385. For example, %@INSTR[0,2,%_TIME] gets the current time and extracts the hour; 
  14386. %@INSTR[1,-2,%_TIME] extracts the seconds.  If the string includes commas, it 
  14387. must be quoted with double quotes ["] or back-quotes [`].  The quotes do count 
  14388. in calculating the position of the substring.  @SUBSTR is an older version of 
  14389. the same function. 
  14390.  
  14391.  
  14392. ΓòÉΓòÉΓòÉ 6.11.53. @INT - Integer part of a number ΓòÉΓòÉΓòÉ
  14393.  
  14394. @INT[n]:  Returns the integer part of the number n. 
  14395.  
  14396.  
  14397. ΓòÉΓòÉΓòÉ 6.11.54. @LABEL - Volume label ΓòÉΓòÉΓòÉ
  14398.  
  14399. @LABEL[d:]:  Returns the volume label of the specified disk drive.  The drive 
  14400. letter must be followed by a colon. 
  14401.  
  14402.  
  14403. ΓòÉΓòÉΓòÉ 6.11.55. @LEFT - Returns leftmost characters of a string ΓòÉΓòÉΓòÉ
  14404.  
  14405. @LEFT[n,string]:  Returns the leftmost n characters from the string.  If n is 
  14406. greater than the length of the string, returns the entire string.  For example, 
  14407. %@LEFT[2,jpsoft] returns the string "jp." 
  14408.  
  14409.  
  14410. ΓòÉΓòÉΓòÉ 6.11.56. @LEN - Length of a string ΓòÉΓòÉΓòÉ
  14411.  
  14412. @LEN[string]:  Returns the length of a string. 
  14413.  
  14414.  
  14415. ΓòÉΓòÉΓòÉ 6.11.57. @LINE - Read a line from a file ΓòÉΓòÉΓòÉ
  14416.  
  14417. @LINE[filename,n]:  Returns line n from the specified file. The filename must 
  14418. be in quotes if it contains whitespace or special characters.  The first line 
  14419. in the file is numbered 0. "**EOF**" is returned for all line numbers beyond 
  14420. the end of the file. 
  14421.  
  14422. The @LINE function must read each line of the file to find the line you 
  14423. request, and will therefore cause significant delays if used in a long loop or 
  14424. on a large file.  For a more efficient method of processing each line of a file 
  14425. in sequence use the FOR command, or @FILEOPEN and a sequence of @FILEREADs. 
  14426.  
  14427. You can retrieve input from standard input if you specify CON as the filename. 
  14428. If you are redirecting input to @LINE using this feature, you must use command 
  14429. grouping or the redirection will not work properly (you can pipe to @LINE 
  14430. without a command group; this restriction applies only to input redirection). 
  14431. For example: 
  14432.  
  14433.         (echo %@line[con,0]) < myfile.dat
  14434.  
  14435.  
  14436. ΓòÉΓòÉΓòÉ 6.11.58. @LINES - Count lines in a file ΓòÉΓòÉΓòÉ
  14437.  
  14438. @LINES[filename]  Returns the line number of the last line in the file, or "-1" 
  14439. if the file is empty.  The first line in the file is numbered 0, so (for 
  14440. example) @LINES will return 0 for a file containing one line.  To get the 
  14441. actual number of lines, use %@INC[%@LINES[filename]].  @LINES must read each 
  14442. line of the file in order to count it, and will therefore cause significant 
  14443. delays if used in a long loop or on a large file. 
  14444.  
  14445. The filename must be in quotes if it contains whitespace or special characters. 
  14446.  
  14447.  
  14448. ΓòÉΓòÉΓòÉ 6.11.59. @LOWER - Convert string to lower case ΓòÉΓòÉΓòÉ
  14449.  
  14450. @LOWER[string]:  Returns the string converted to lower case. 
  14451.  
  14452.  
  14453. ΓòÉΓòÉΓòÉ 6.11.60. @MAKEAGE - Convert date/time to file date/time ΓòÉΓòÉΓòÉ
  14454.  
  14455. @MAKEAGE[date[,time]]:  Returns the date and time (if included) as a single 
  14456. value in the same format as @FILEAGE.  @MAKEAGE can be used to compare the time 
  14457. stamp of a file with a specific date and time, for example: 
  14458.  
  14459.         if %@fileage[myfile] lt %@makeage[1/1/85] echo OLD!
  14460.  
  14461. The value returned by @MAKEAGE can be used for comparisons, but can not be used 
  14462. for date and time calculations because it is not in identifiable units. 
  14463.  
  14464.  
  14465. ΓòÉΓòÉΓòÉ 6.11.61. @MAKEDATE - Convert number of days to date ΓòÉΓòÉΓòÉ
  14466.  
  14467. @MAKEDATE[n]:  Returns a date (formatted according to the current country 
  14468. settings).  n is the number of days since 1/1/80. This is the inverse of @DATE. 
  14469.  
  14470.  
  14471. ΓòÉΓòÉΓòÉ 6.11.62. @MAKETIME - Convert number of seconds to time ΓòÉΓòÉΓòÉ
  14472.  
  14473. @MAKETIME[n]:  Returns a time (formatted according to the current country 
  14474. settings).  n is the number of seconds since midnight.  This is the inverse of 
  14475. @TIME. 
  14476.  
  14477.  
  14478. ΓòÉΓòÉΓòÉ 6.11.63. @MONTH - Month for specified date ΓòÉΓòÉΓòÉ
  14479.  
  14480. @MONTH[mm-dd-yy]:  Returns the month number for the specified date (1-12). 
  14481. @MONTH uses the date format and separators mandated by your country code (for 
  14482. example dd.mm.yy in Germany, or yy-mm-dd in Japan).  The year can be entered as 
  14483. a 4-digit or 2-digit value.  Two-digit years between 80 and 99 are interpeted 
  14484. as 1980-1999; values between 00 and 79 are interpreted as 2000 - 2079. 
  14485.  
  14486.  
  14487. ΓòÉΓòÉΓòÉ 6.11.64. @NAME - File name without path or extension ΓòÉΓòÉΓòÉ
  14488.  
  14489. @NAME[filename]:  Returns the base name of a file, without the path or 
  14490. extension.  The filename must be in quotes if it contains whitespace or special 
  14491. characters.  On HPFS drives, the returned name may contain whitespace or other 
  14492. special characters.  To avoid problems which could be caused by these 
  14493. characters, quote the returned name before you pass it to other commands. 
  14494.  
  14495.  
  14496. ΓòÉΓòÉΓòÉ 6.11.65. @NUMERIC - Test if a string is numeric ΓòÉΓòÉΓòÉ
  14497.  
  14498. @NUMERIC[string]:  Returns "1" if the string is composed entirely of digits (0 
  14499. to 9), signs (+ or -), and the thousands and decimal separators.  Otherwise, 
  14500. returns "0". 
  14501.  
  14502.  
  14503. ΓòÉΓòÉΓòÉ 6.11.66. @PATH - File path without name ΓòÉΓòÉΓòÉ
  14504.  
  14505. @PATH[filename]:  Returns the path from a filename, including the drive letter 
  14506. and a trailing backslash but not including the base name or extension.  The 
  14507. filename must be in quotes if it contains whitespace or special characters.  On 
  14508. HPFS drives, the returned path may contain whitespace or other special 
  14509. characters.  To avoid problems which could be caused by these characters, quote 
  14510. the returned path before you pass it to other commands. 
  14511.  
  14512.  
  14513. ΓòÉΓòÉΓòÉ 6.11.67. @RANDOM - Generate a random integer ΓòÉΓòÉΓòÉ
  14514.  
  14515. @RANDOM[min, max]:  Returns a random value between min and max, inclusive. 
  14516. Min, max, and the returned value are all integers.  The random number generator 
  14517. is initialized from the system clock the first time it is used after the 
  14518. command processor starts, so it will produce a different sequence of random 
  14519. numbers each time you use it. 
  14520.  
  14521.  
  14522. ΓòÉΓòÉΓòÉ 6.11.68. @READSCR - Read characters from the screen ΓòÉΓòÉΓòÉ
  14523.  
  14524. @READSCR[row,col,length]:  Returns the text displayed in the Take Command 
  14525. window at the specified location.  The upper left corner of the screen is 
  14526. location 0,0.  The row and column can be specified as an offset from the 
  14527. current cursor location by preceding either value with a [+] or [-].  For 
  14528. example: 
  14529.  
  14530.         %@readscr[-2,+2,10]
  14531.  
  14532. returns 10 characters from the screen, starting 2 rows above and 2 columns to 
  14533. the right of the current cursor position. 
  14534.  
  14535. You can also specify the row and column as offsets from the current cursor 
  14536. position.  Begin the value with a plus sign [+] to read the screen the 
  14537. specified number of rows below (or columns to the right of) the current 
  14538. position, or with a minus sign [-] to read the screen above (or to the left of) 
  14539. the current position. 
  14540.  
  14541.  
  14542. ΓòÉΓòÉΓòÉ 6.11.69. @READY - Drive ready status ΓòÉΓòÉΓòÉ
  14543.  
  14544. @READY[d:]:  Returns "1" if the specified drive is ready; otherwise returns 
  14545. "0".  The drive letter must be followed by a colon. 
  14546.  
  14547.  
  14548. ΓòÉΓòÉΓòÉ 6.11.70. @REMOTE - Remote (network) drive detection ΓòÉΓòÉΓòÉ
  14549.  
  14550. @REMOTE[d:]:  Returns "1" if the specified drive is a remote (network) drive; 
  14551. otherwise returns "0".  The drive letter must be followed by a colon. 
  14552.  
  14553.  
  14554. ΓòÉΓòÉΓòÉ 6.11.71. @REMOVABLE - Removable drive detection ΓòÉΓòÉΓòÉ
  14555.  
  14556. @REMOVABLE[d:]:  Returns "1" if the specified drive is removable (i.e., a 
  14557. floppy disk or removable hard disk); otherwise returns "0".  The drive letter 
  14558. must be followed by a colon. 
  14559.  
  14560.  
  14561. ΓòÉΓòÉΓòÉ 6.11.72. @REPEAT - Repeat a character ΓòÉΓòÉΓòÉ
  14562.  
  14563. @REPEAT[c,n]:  Returns the character c repeated n times. 
  14564.  
  14565.  
  14566. ΓòÉΓòÉΓòÉ 6.11.73. @REPLACE - Replaces parts of a string ΓòÉΓòÉΓòÉ
  14567.  
  14568. @REPLACE[str1, str2, text]:  Replaces all occurrences of str1 in the text 
  14569. string with str2.  For example, %@replace[w,ch,warming] returns the string 
  14570. "charming."  The search is case-sensitive. 
  14571.  
  14572.  
  14573. ΓòÉΓòÉΓòÉ 6.11.74. @REXX - Execute a REXX expression ΓòÉΓòÉΓòÉ
  14574.  
  14575. @REXX[expr]:  Calls the REXX interpreter to execute the expression.  Returns 
  14576. the result string from REXX; if the REXX expression does not return a string, 
  14577. @REXX returns the REXX numeric result code. 
  14578.  
  14579. See REXX for more information. 
  14580.  
  14581.  
  14582. ΓòÉΓòÉΓòÉ 6.11.75. @RIGHT - Returns rightmost characters of a string ΓòÉΓòÉΓòÉ
  14583.  
  14584. @RIGHT[n,string]:  Returns the rightmost n characters from the string.  If n is 
  14585. greater than the length of the string, returns the entire string.  For example, 
  14586. %@right[4,jpsoft] returns the string "soft." 
  14587.  
  14588.  
  14589. ΓòÉΓòÉΓòÉ 6.11.76. @SEARCH - Path search ΓòÉΓòÉΓòÉ
  14590.  
  14591. @SEARCH[filename[,path]]:  Searches for the filename using the PATH environment 
  14592. variable or the specified path, appending an extension if one isn't specified. 
  14593. (See Executable Files and File Searches for details on the default extensions 
  14594. used when searching the PATH and the order in which the search proceeds.) 
  14595. Returns the fully-expanded name of the file including drive, path, base name, 
  14596. and extension, or an empty string if a matching file is not found.  If 
  14597. wildcards are used in the filename, @SEARCH will search for the first file that 
  14598. matches the wildcard specification, and return the drive and path for that file 
  14599. plus the wildcard filename (e.g., E:\UTIL\*.COM). 
  14600.  
  14601. The filename and path must be in quotes if they contain whitespace or special 
  14602. characters.  On HPFS drives, the returned path may contain whitespace or other 
  14603. special characters.  To avoid problems which could be caused by these 
  14604. characters, quote the returned path before you pass it to other commands. 
  14605.  
  14606.  
  14607. ΓòÉΓòÉΓòÉ 6.11.77. @SELECT - Menu selection ΓòÉΓòÉΓòÉ
  14608.  
  14609. @SELECT[filename,top,left,bottom,right,title[,1]]:  Pops up a selection window 
  14610. with the lines from the specified file, allowing you to display menus or other 
  14611. selection lists from within a batch file.  You can move through the selection 
  14612. window with standard popup window navigation keystrokes, including character 
  14613. matching. 
  14614.  
  14615. @SELECT returns the text of the line the scrollbar is on if you press Enter, or 
  14616. an empty string if you press Esc.  The filename must be in quotes if it 
  14617. contains whitespace or special characters.  The file size is limited only by 
  14618. available memory.  To select from lines passed through input redirection or a 
  14619. pipe, use CON as the filename.  If you use the optional 1 argument after the 
  14620. window title, the list will be sorted alphabetically. 
  14621.  
  14622.  
  14623. ΓòÉΓòÉΓòÉ 6.11.78. @STRIP - Remove characters from a string ΓòÉΓòÉΓòÉ
  14624.  
  14625. @STRIP[chars,string]:  Removes the characters in chars from the string and 
  14626. returns the result.  For example, %@STRIP[AaEe,All Good Men] returns "ll Good 
  14627. Mn".  The test is case sensitive.  To include a comma in the chars string, 
  14628. enclose the entire first argument in quotes.  @STRIP will remove the quotes 
  14629. before processing the string. 
  14630.  
  14631.  
  14632. ΓòÉΓòÉΓòÉ 6.11.79. @SUBSTR - Extract a substring ΓòÉΓòÉΓòÉ
  14633.  
  14634. @SUBSTR[string,start,length]:  An older version of @INSTR.  The string 
  14635. parameter is at the start of the @SUBSTR argument list, and therefore cannot 
  14636. contain commas (because any commas in the string would be taken as argument 
  14637. separators). @INSTR, which has the string argument last, does not have this 
  14638. restriction. 
  14639.  
  14640.  
  14641. ΓòÉΓòÉΓòÉ 6.11.80. @TIME - Convert time to number of seconds ΓòÉΓòÉΓòÉ
  14642.  
  14643. @TIME[hh:mm:ss]:  Returns the number of seconds since midnight for the 
  14644. specified time.  The time must be in 24-hour format; "am" and "pm" cannot be 
  14645. used. 
  14646.  
  14647.  
  14648. ΓòÉΓòÉΓòÉ 6.11.81. @TIMER - Elapsed time of specified timer ΓòÉΓòÉΓòÉ
  14649.  
  14650. @TIMER[n]:  Returns the current split time for a stopwatch started with the 
  14651. TIMER command.  The value of n specifies the timer to read and can be 1, 2, or 
  14652. 3. 
  14653.  
  14654.  
  14655. ΓòÉΓòÉΓòÉ 6.11.82. @TRIM - Remove blanks from a string ΓòÉΓòÉΓòÉ
  14656.  
  14657. @TRIM[string]:  Returns the string with the leading and trailing white space 
  14658. (space and tab characters) removed. 
  14659.  
  14660.  
  14661. ΓòÉΓòÉΓòÉ 6.11.83. @UNIQUE - Create file with unique name ΓòÉΓòÉΓòÉ
  14662.  
  14663. @UNIQUE[d:\path]:  Creates a zero-length file with a unique name in the 
  14664. specified directory, and returns the full name and path. If no path is 
  14665. specified, the file will be created in the current directory.  The file name 
  14666. will be FAT-compatible (8 character name and 3- character extension) regardless 
  14667. of the type of drive on which the file is created.  This function allows you to 
  14668. create a  temporary file without overwriting an existing file.  The path must 
  14669. be in quotes if it contains whitespace or special characters. 
  14670.  
  14671.  
  14672. ΓòÉΓòÉΓòÉ 6.11.84. @UPPER - Convert string to upper case ΓòÉΓòÉΓòÉ
  14673.  
  14674. @UPPER[string]:  Returns the string converted to upper case. 
  14675.  
  14676.  
  14677. ΓòÉΓòÉΓòÉ 6.11.85. @WILD - Compare strings using wildcards ΓòÉΓòÉΓòÉ
  14678.  
  14679. @WILD[str1,str2]:  Performs a comparison of the two strings, and returns "1" if 
  14680. they match or "0" if they don't match.  The second argument, str2, may contain 
  14681. wildcards or extended wildcards; the first argument, str1, may not.  The test 
  14682. is not case sensitive.  The following example tests whether the \UTIL directory 
  14683. (or any directory that begins with the characters UTIL) is included in the 
  14684. PATH: 
  14685.  
  14686.         if %@wild[%path,*\UTIL*] == 1 command
  14687.  
  14688.  
  14689. ΓòÉΓòÉΓòÉ 6.11.86. @WORD - Extract a word from a string ΓòÉΓòÉΓòÉ
  14690.  
  14691. @WORD[["xxx",]n,string]:  Returns the nth word in a string.  The first word is 
  14692. numbered 0.  If n is negative, words are returned from the end of the string. 
  14693. You can use the first argument, "xxx" to specify the separators that you wish 
  14694. to use.  If you want to use a double quote as a separator, prefix it with an 
  14695. escape character.  If you don't specify a list of separators, @WORD will 
  14696. consider only spaces, tabs, and commas as word separators.  For example: 
  14697.  
  14698.         %@WORD[2,NOW IS THE TIME]    returns "THE"
  14699.         %@WORD[-0,NOW IS THE TIME]   returns "TIME"
  14700.         %@WORD[-2,NOW IS THE TIME]   returns "IS"
  14701.         %@WORD["=",1,2 + 2=4]        returns "4"
  14702.  
  14703.  
  14704. ΓòÉΓòÉΓòÉ 6.11.87. @WORDS - Count words in a string ΓòÉΓòÉΓòÉ
  14705.  
  14706. @WORDS[["xxx"],string]  Returns the number of words in the string. You can use 
  14707. the first argument, "xxx" to specify the separators that you wish to use.  If 
  14708. you want to use a double quote as a separator, prefix it with an escape 
  14709. character.  If you don't specify a list of separators, @WORD will consider only 
  14710. spaces, tabs, and commas as word separators.  If the string argument is 
  14711. enclosed in quotation marks, you must enter a list of delimiters as well. 
  14712.  
  14713.  
  14714. ΓòÉΓòÉΓòÉ 6.11.88. @YEAR - Return the year for a date. ΓòÉΓòÉΓòÉ
  14715.  
  14716. @YEAR[mm-dd-yy]:  Returns the year for the specified date.  The year can be 
  14717. specified as two digits or four digits; @YEAR returns the same number of digits 
  14718. included in its argument. 
  14719.  
  14720. @YEAR uses the date format and separators mandated by your country code (for 
  14721. example dd.mm.yy in Germany, or yy-mm-dd in Japan).  The year can be entered as 
  14722. a 4-digit or 2-digit value.  Two-digit years between 80 and 99 are interpeted 
  14723. as 1980-1999; values between 00 and 79 are interpreted as 2000 - 2079. 
  14724.  
  14725.  
  14726. ΓòÉΓòÉΓòÉ 7. Configuring Take Command ΓòÉΓòÉΓòÉ
  14727.  
  14728. You can alter Take Command to match your style of computing.  Most of the 
  14729. configuration of Take Command is controlled through a file of initialization 
  14730. information called TCMDOS2.INI. 
  14731.  
  14732. The information in this file can be controlled in two ways: with the 
  14733. configuration notebook and by editing the TCMDOS2.INI file with any ASCII 
  14734. editor.  Both methods are discussed in this section. 
  14735.  
  14736. We also discuss many ways of configuring Take Command in other parts of the 
  14737. online help: 
  14738.  
  14739.          With aliases you can set default options for internal commands and 
  14740.          create new commands (see Aliases and the ALIAS command.). 
  14741.  
  14742.          With executable extensions you can associate data files with the 
  14743.          applications you use to open them. 
  14744.  
  14745.          With the FILECOMPLETION environment variable and the FileCompletion 
  14746.          .INI directive you can customize filename completion to match the 
  14747.          command you are working with. 
  14748.  
  14749.          With the COLORDIR environment variable and the ColorDir .INI directive 
  14750.          you can set the colors used by the DIR command. 
  14751.  
  14752.          With the SETDOS command you can change some aspects of Take Command's 
  14753.          operation "on the fly." 
  14754.  
  14755.          With command-line options you can specify where Take Command looks for 
  14756.          its startup files and how it operates for a specific session. 
  14757.  
  14758.  
  14759. ΓòÉΓòÉΓòÉ 7.1. Configuration Notebook ΓòÉΓòÉΓòÉ
  14760.  
  14761. The dialogs in the Take Command for OS/2 configuration notebook control the 
  14762. configuration of Take Command.  Each option on one of the notebook pages a 
  14763. corresponding directive in TCMDOS2.INI.  You can start the configuration 
  14764. notebook with the Configure Take Command selection on the Setup menu. 
  14765.  
  14766. When you exit from the dialogs, you can select the Save button to save your 
  14767. changes in the .INI file for use in the current session and all future 
  14768. sessions, select the OK button to use your changes in the current session only, 
  14769. or discard the changes you have made by selecting the Cancel button. 
  14770.  
  14771. Note that if you exit the dialogs with OK, changes will not be saved in the 
  14772. .INI file at that time.  However, if you use the dialogs later, and exit with 
  14773. Save, any earlier changes will automatically be saved in the .INI file along 
  14774. with any new changes from your most recent use of the dialogs. 
  14775.  
  14776. Most changes you make in the configuration notebook will take effect 
  14777. immediately.  Changes made on the Startup page, if saved, will take effect the 
  14778. next time you start Take Command, but will not affect the current Take Command 
  14779. session. 
  14780.  
  14781. While you are using the dialogs, you can move between sets of configuration 
  14782. options with the tabs on the right hand side of the notebook.  The sets of 
  14783. options available in the notebook are: 
  14784.  
  14785.     Startup Options 
  14786.     Display Options 
  14787.     Command Line 1 Options 
  14788.     Command Line 2 Options 
  14789.     General Options 1 
  14790.     General Options 2 
  14791.     Command Options 
  14792.  
  14793.  
  14794. ΓòÉΓòÉΓòÉ 7.1.1. Startup Options Page ΓòÉΓòÉΓòÉ
  14795.  
  14796. You can use this page to set startup options in TCMDOS2.INI.  If you return to 
  14797. Take Command by selecting the OK button, new settings will only stay in effect 
  14798. until you end the current Take Command session.  If you return to Take Command 
  14799. by selecting Save, the changes will be recorded in TCMDOS2.INI and will be in 
  14800. effect each time you start Take Command.  Changes made on the Startup page, if 
  14801. saved, will take effect the next time you start Take Command, but will not 
  14802. affect the current Take Command session. 
  14803.  
  14804. The TCSTART and TCEXIT Path field lets you set the path to TCSTART and TCEXIT 
  14805. if they aren't in the same directory as Take Command, and sets the TCStartPath 
  14806. directive. 
  14807.  
  14808. In the Buffer Sizes section: 
  14809.  
  14810.         *   Command History sets the size of the command history list, and the 
  14811.             value of the History directive. 
  14812.  
  14813.         *   Directory History sets the size of the  directory history list. 
  14814.  
  14815.  The Cursor section sets the shape of the cursor and the IBeamCursor directive. 
  14816.  Use the I-Beam shape for normal systems, and the Arrow shape for laptop or 
  14817.  other systems where the I-Beam cursor is hard to see. 
  14818.  
  14819.  The Display section sets the size and location of Take Command's window when 
  14820.  it starts up: 
  14821.  
  14822.         *   Standard, Max, Min, and Custom set the WindowState directive. 
  14823.  
  14824.         *   The window position and size fields set the WindowX, WindowY, 
  14825.             WindowHeight, and WindowWidth directives.  Use these if you want 
  14826.             Take Command to start up at a specific location on your desktop. 
  14827.             These fields are ignored unless the item above is set to Custom. 
  14828.  
  14829.  The Options section sets the Local History, Local Aliases, and Local Directory 
  14830.  History flags. 
  14831.  
  14832.  
  14833. ΓòÉΓòÉΓòÉ 7.1.2. Display Options Page ΓòÉΓòÉΓòÉ
  14834.  
  14835. You can use this page to set display-related options in TCMDOS2.INI.  Most 
  14836. changes you make will take effect immediately.  If you return to Take Command 
  14837. by selecting the OK button, new settings will only stay in effect until you end 
  14838. the current Take Command session.  If you return to Take Command by selecting 
  14839. Save, the changes will be recorded in TCMDOS2.INI and will be in effect each 
  14840. time you start Take Command. 
  14841.  
  14842. The Text Dimensions section configures the way that text appears in Take 
  14843. Command's main window: 
  14844.  
  14845.         *   Width sets the number of columns that Take Command uses for its 
  14846.             displays and sets the ScreenColumns directive. 
  14847.  
  14848.         *   Tabs selects the location of tab stops and sets the TabStops 
  14849.             directive. 
  14850.  
  14851.  The Window Configuration section controls the appearance of the Tool Bar (sets 
  14852.  the ToolBarOn directive) and the Status Bar (sets the StatusBarOn directive), 
  14853.  and enables or disables ANSI support (sets the ANSI directive).  The tool bar 
  14854.  and status bar settings are also modified when you enable and disable the 
  14855.  corresponding option on the Setup menu. 
  14856.  
  14857.  The Scrolling section controls Take Command's screen scrollback buffer: 
  14858.  
  14859.         *   Buffer Size sets the size of the screen buffer, and the value of 
  14860.             the ScreenBufSize directive. Valid sizes are from 16,000 to 256,000 
  14861.             bytes. 
  14862.  
  14863.         *   Scroll Lines controls how much the screen scrolls when Take 
  14864.             Command's text has reached the bottom of the window, and sets the 
  14865.             ScrollLines directive.  Lower values produce slower but smoother 
  14866.             scrolling. 
  14867.  
  14868.  The Colors section sets default screen colors: 
  14869.  
  14870.         *   Output establishes the default colors Take Command uses for the 
  14871.             text it displays, and sets the StdColors directive. 
  14872.  
  14873.         *   Input establishes the colors for echoing the commands you type, and 
  14874.             sets the InputColors directive. 
  14875.  
  14876.  
  14877. ΓòÉΓòÉΓòÉ 7.1.3. Command Line 1 Options Page ΓòÉΓòÉΓòÉ
  14878.  
  14879. You can use this page to set command line options in TCMDOS2.INI.  Most changes 
  14880. you make will take effect immediately.  If you return to Take Command by 
  14881. selecting the OK button, new settings will only stay in effect until you end 
  14882. the current Take Command session.  If you return to Take Command by selecting 
  14883. Save, the changes will be recorded in TCMDOS2.INI and will be in effect each 
  14884. time you start Take Command. 
  14885.  
  14886. The Editing section controls command-line editing: 
  14887.  
  14888.         *   Default Mode selects whether you begin editing in Overstrike or 
  14889.             Insert mode, and sets the EditMode directive. 
  14890.  
  14891.         *   Cursor sets the width of the cursor for both Overstrike and Insert 
  14892.             modes, and sets the CursorIns and CursorOver directives. The width 
  14893.             is expressed as a percentage of the width of a character cell. 
  14894.  
  14895.  In the Filename Completion section: 
  14896.  
  14897.         *   Add "\" to directories determines if a backslash should be added to 
  14898.             directory names when doing filename completion, and sets the 
  14899.             AppendToDir directive. 
  14900.  
  14901.         *   The Options field sets the files made available during filename 
  14902.             completion for selected commands, and sets the FileCompletion 
  14903.             directive. 
  14904.  
  14905.  In the Command History section: 
  14906.  
  14907.         *   The Scroll / History keys setting controls whether Take Command or 
  14908.             4OS2 defaults are used for scrolling through the scrollback buffer 
  14909.             and the command history.  The Normal setting uses the arrow and 
  14910.             PgUp / PgDn keys for the scrollback buffer, and the corresponding 
  14911.             control keys (Ctrl-Up, Ctrl-Down, etc.) for the command history. 
  14912.             The Swapped setting reverses these assignments.  For more details 
  14913.             see Scrolling and History Keystrokes.  This option sets the value 
  14914.             of the SwapScrollKeys directive. 
  14915.  
  14916.         *   Minimum saved characters sets the size of the shortest line that 
  14917.             will be saved in the command history, and sets the value of the 
  14918.             HistMin directive. 
  14919.  
  14920.         *   Copy to end, if checked, copies a recalled command to the end of 
  14921.             the history list each time it is executed, and sets the HistCopy 
  14922.             directive. 
  14923.  
  14924.         *   Move to end, if checked, moves a recalled command from it's 
  14925.             position in the history list the end. 
  14926.  
  14927.         *   Wrap, if checked, the history will "wrap" when you reach the top or 
  14928.             bottom of the list. 
  14929.  
  14930.  
  14931. ΓòÉΓòÉΓòÉ 7.1.4. Command Line 2 Options Page ΓòÉΓòÉΓòÉ
  14932.  
  14933. You can use this page to set command line options in TCMDOS2.INI.  Most changes 
  14934. you make will take effect immediately.  If you return to Take Command by 
  14935. selecting the OK button, new settings will only stay in effect until you end 
  14936. the current Take Command session.  If you return to Take Command by selecting 
  14937. Save, the changes will be recorded in TCMDOS2.INI and will be in effect each 
  14938. time you start Take Command. 
  14939.  
  14940. The Popup Windows section sets the position and size of the popup windows for 
  14941. the command-line, directory history, and filename completion windows, and most 
  14942. other popup windows by changing the PopupWinLeft, PopupWinTop, PopupWinWidth, 
  14943. and PopupWinHeight directives.  You can also set the size of the Extended 
  14944. Directory Search popup window by changing the CDDWinLeft, CDDWinTop, 
  14945. CDDWinWidth, CDDWinHeight directives. 
  14946.  
  14947. The Extended Directory Search section controls Extended Directory Searches. 
  14948.  
  14949.         *   Search Level selects the Extended Directory Search mode and sets 
  14950.             the FuzzyCD directive. 
  14951.  
  14952.         *   Tree Path contains the path for the Extended Directory Search 
  14953.             database, JPSTREE.IDX and sets the TreePath directive. 
  14954.  
  14955.  
  14956. ΓòÉΓòÉΓòÉ 7.1.5. Options 1 Page ΓòÉΓòÉΓòÉ
  14957.  
  14958. You can use this page to set options in TCMDOS2.INI.  Most changes you make 
  14959. will take effect immediately.  If you return to Take Command by selecting the 
  14960. OK button, new settings will only stay in effect until you end the current Take 
  14961. Command session.  If you return to Take Command by selecting Save, the changes 
  14962. will be recorded in TCMDOS2.INI and will be in effect each time you start Take 
  14963. Command. 
  14964.  
  14965. The Descriptions section sets the way that Take Command handles file 
  14966. descriptions entered with the DESCRIBE command: 
  14967.  
  14968.         *   The Enable checkbox enables or disables the display and processing 
  14969.             of descriptions, and sets the Descriptions directive. 
  14970.  
  14971.         *   The Maximum Length field determines the maximum size of file 
  14972.             descriptions and sets the DescriptionMax directive.  The value can 
  14973.             range from 20 to 512 characters.  This value sets the size of the 
  14974.             internal description buffers; the actual description limit is 1 
  14975.             character less.  For example, if you set the limit to 512, the 
  14976.             longest description you can use is 511 characters. 
  14977.  
  14978.  The Special Characters section sets the characters that have special meaning 
  14979.  for Take Command.  See Special Character Compatibility for information on how 
  14980.  to change these to make Take Command more compatible with 4DOS, 4OS2, and 4NT. 
  14981.  
  14982.         *   Separator is the character that separates multiple commands.  It 
  14983.             can also be set with the CommandSep directive or SETDOS /C. 
  14984.  
  14985.         *   Escape sets the character used to suppress the normal meaning of 
  14986.             the following character.  It can also be set with the EscapeChar 
  14987.             directive or SETDOS /E. 
  14988.  
  14989.         *   Parameter sets the character used after a percent sign to specify 
  14990.             all or all remaining command-line arguments in a batch file or 
  14991.             alias.  It can also be set with the ParameterChar directive or with 
  14992.             SETDOS /P. 
  14993.  
  14994.         *   Decimal sets the character used as a decimal separator for @EVAL 
  14995.             and other operations.  It can be set with the DecimalChar directive 
  14996.             or with SETDOS /G. 
  14997.  
  14998.         *   Thousands sets the character used as a thousands separator for 
  14999.             @EVAL and other operations.  It can be set with the DecimalChar 
  15000.             directive or with SETDOS /G. 
  15001.  
  15002.  Default Beep sets defaults for the BEEP command and for "error" beeps.  To 
  15003.  disable error beeps, set the beep length to 0, and be sure to specify an 
  15004.  explicit length each time you use the BEEP command. 
  15005.  
  15006.         *   Length sets the length of the beep in timer ticks that are 
  15007.             approximately 1/18 of a second each.  It also sets the BeepLength 
  15008.             directive. 
  15009.  
  15010.         *   Frequency sets the frequency of the beep in Hz.  It also sets the 
  15011.             BeepFreq directive. 
  15012.  
  15013.  The Options section sets miscellaneous options: 
  15014.  
  15015.         *   Force upper case, when selected, forces Take Command to display 
  15016.             file names in upper case in internal commands like DIR and COPY. 
  15017.             You can use the UpperCase directive or the SETDOS /U command 
  15018.             achieve the same result. Force upper case has no effect on 
  15019.             filenames from volumes which support long filenames. 
  15020.  
  15021.         *   Default batch echo, if selected, turns on echoing in batch files by 
  15022.             default.  You can use the BatchEcho directive or the SETDOS /V 
  15023.             command to achieve the same result. 
  15024.  
  15025.         *   Protect redirected output files, if selected, keeps Take Command 
  15026.             from overwritng an existing file with redirected (>) output or from 
  15027.             creating a new file with output redirected in append (>>) mode. 
  15028.             You can achieve the same result with the NoClobber directive or the 
  15029.             SETDOS /N command. 
  15030.  
  15031.         *   The Time options determine how Take Command displays times.  If you 
  15032.             select Country, the time display is based on your country settings 
  15033.             in OS/2. The am/pm setting forces a 12-hour display with a trailing 
  15034.             "a" or "p."  The 24-hour setting forces a standard 24-hour display. 
  15035.             You can also set the time display with the AmPm directive. 
  15036.  
  15037.  
  15038. ΓòÉΓòÉΓòÉ 7.1.6. Options 2 Page ΓòÉΓòÉΓòÉ
  15039.  
  15040. You can use this page to set options in TCMDOS2.INI.  Most changes you make 
  15041. will take effect immediately.  If you return to Take Command by selecting the 
  15042. OK button, new settings will only stay in effect until you end the current Take 
  15043. Command session.  If you return to Take Command by selecting Save, the changes 
  15044. will be recorded in TCMDOS2.INI and will be in effect each time you start Take 
  15045. Command. 
  15046.  
  15047. The Logging section enables or disables Command and History logging (see the 
  15048. LOG command) and sets the file name to use for each.  It also sets the LogName 
  15049. and HistLogName directives. 
  15050.  
  15051. The Eval Precision sets the minimum and maximum number of digits after the 
  15052. decimal point that @EVAL will display.  You can achieve the same results with 
  15053. the EvalMin and EvalMax directives or with the SETDOS /F command. 
  15054.  
  15055. The External Programs setting controls whether Take Command waits for 
  15056. applications to complete before displaying the prompt.  This setting applies 
  15057. only to applications started from the Take Command prompt, including DOS 
  15058. applications.  Take Command will always wait for applications run from batch 
  15059. files.  It also has no effect on "TTY" applications run within the Take Command 
  15060. window, or on applications started with the START command, which has its own 
  15061. separate /WAIT switch.  This option sets the ExecWait directive. 
  15062.  
  15063.  
  15064. ΓòÉΓòÉΓòÉ 7.1.7. Command Options Page ΓòÉΓòÉΓòÉ
  15065.  
  15066. You can use this page to set options related to specific commands in 
  15067. TCMDOS2.INI.  Most changes you make will take effect immediately.  If you 
  15068. return to Take Command by selecting the OK button, new settings will only stay 
  15069. in effect until you end the current Take Command session.  If you return to 
  15070. Take Command by selecting Save, the changes will be recorded in TCMDOS2.INI and 
  15071. will be in effect each time you start Take Command. 
  15072.  
  15073. The DIR Colors field sets the colors used by DIR.  You can achieve the same 
  15074. effect with the ColorDir directive or by setting the COLORDIR environment 
  15075. variable.  See the Color Coded Directories section of the DIR command for 
  15076. details. 
  15077.  
  15078. The LIST section sets the foreground and background colors for the LIST 
  15079. command.  It also sets the ListColors directive. 
  15080.  
  15081. The SELECT section sets the foreground and background colors for the SELECT 
  15082. command.  It also sets the SelectColors directive. 
  15083.  
  15084. The Editor Filename sets the path and name of the program you want to use when 
  15085. you use when you select Editor from the Utilities menu.  It also sets the 
  15086. Editor directive. 
  15087.  
  15088.  
  15089. ΓòÉΓòÉΓòÉ 7.2. TCMDOS2.INI ΓòÉΓòÉΓòÉ
  15090.  
  15091. Part of the power of Take Command is its flexibility.  You can alter its 
  15092. configuration to match your style of computing.  Most of the configuration of 
  15093. Take Command is controlled through a file of initialization information called 
  15094. TCMDOS2.INI. 
  15095.  
  15096. This topic contains general information on TCMDOS2.INI. For information on 
  15097. specific directives see the separate topic for each type of directive: 
  15098.  
  15099.     Initialization Directives 
  15100.     Configuration Directives 
  15101.     Color Directives 
  15102.     Key Mapping Directives 
  15103.     Advanced Directives 
  15104.  
  15105. These topics list the directives, with a one-line description of each, and a 
  15106. cross-reference which selects a full screen help topic on that directive.  A 
  15107. few of the directives are simple enough that the one-line description is 
  15108. sufficient, but in most cases you should check for any additional information 
  15109. in the cross-reference topic if you are not already familiar with the 
  15110. directive. 
  15111.  
  15112. Modifying the TCMDOS2.INI File 
  15113.  
  15114. You can create, add to, and modify the TCMDOS2.INI file in 3 ways: with the 
  15115. configuration notebook, via the OPTION command, and by editing the file with 
  15116. any ASCII editor. 
  15117.  
  15118. The configuration notebook allow you to modify the settings that are used most 
  15119. often.  When you exit from the notebook, you can select the Save button to save 
  15120. your changes in the .INI file for use in the current session and all future 
  15121. sessions, select the OK button to use your changes in the current session only, 
  15122. or discard the changes you have made by selecting the Cancel button. 
  15123.  
  15124. When you exit the configuration notebook, Save saves all changes since the last 
  15125. Save, or since the last time you started the command processor.  If you open 
  15126. the notebook and exit with OK, changes will not be saved in the .INI file at 
  15127. that time.  However, if you use the notebook later, and exit with Save, any 
  15128. earlier changes will automatically be saved in the .INI file along with any new 
  15129. changes from your most recent use of the notebook. 
  15130.  
  15131. Changes you make in the Startup section of the configuration notebook will only 
  15132. take effect when you restart Take Command. 
  15133.  
  15134. The notebook handles most standard .INI file settings.  The Advanced 
  15135. directives, the Key Mapping directives, and a few other individual directives 
  15136. noted below do not have corresponding fields in the configuration notebook, and 
  15137. must be entered manually. 
  15138.  
  15139. Take Command reads its .INI file when it starts, and configures itself 
  15140. accordingly.  The .INI file is not re-read when you change it manually.  For 
  15141. manual changes to take effect, you must restart Take Command.  If you edit the 
  15142. .INI file manually, make sure you save the file in ASCII format. 
  15143.  
  15144. Each item that you can include in the .INI file has a default value.  You only 
  15145. need to include entries in the file for settings that you want to change from 
  15146. their default values. 
  15147.  
  15148. The .INI file has several sections.  All of the directives described here go 
  15149. into the [TakeCommand] section, which is usually first in the file.  You can 
  15150. edit this section manually.  Take Command uses the other sections to record 
  15151. information you set while you are using it, including its window size and 
  15152. position, the font you are using, and the buttons you create on the tool bar. 
  15153. You should use Take Command's menu commands to change the settings in these 
  15154. other sections of the .INI file instead of editing them directly. 
  15155.  
  15156. Using the .INI File 
  15157.  
  15158. Some settings in the .INI file are initialized when you install Take Command 
  15159. and others (such as window size and position) are modified as you use Take 
  15160. Command, so you will probably have an TCMDOS2.INI file even if you didn't 
  15161. create one yourself.  You should not delete this file. 
  15162.  
  15163. Take Command searches for TCMDOS2.INI in two places: 
  15164.  
  15165.         *   If there is an "@d:\path\inifile" option on the Take Command 
  15166.             startup command line Take Command will use the path and file name 
  15167.             specified there, and will not look elsewhere. 
  15168.  
  15169.         *   If there is no .INI file name on the startup command line, the 
  15170.             search proceeds to the same directory where the Take Command 
  15171.             program file (TCMDOS2.EXE ) is stored.  This is the "normal" 
  15172.             location for the .INI file.  Take Command determines this directory 
  15173.             automatically. 
  15174.  
  15175.  .INI File Directives 
  15176.  
  15177.  Most lines in the .INI file consist of a one-word directive, an equal sign 
  15178.  [=], and a value. For example, in the following line, the word "History" is 
  15179.  the directive and "2048" is the value: 
  15180.  
  15181.           History = 2048
  15182.  
  15183.  Any spaces before or after the equal sign are ignored. 
  15184.  
  15185.  If you have a long string to enter in the .INI file (for example, for the 
  15186.  ColorDir directive), you must enter it all on one line.  Strings cannot be 
  15187.  "continued" to a second line.  Each line may be up to 1,023 characters long. 
  15188.  
  15189.  The format of the value part of a directive line depends on the individual 
  15190.  directive.  It may be a numeric value, a single character, a choice (like 
  15191.  "Yes" or "No"), a color setting, a key name, a path, a filename, or a text 
  15192.  string.  The value begins with the first non-blank character after the equal 
  15193.  sign and ends at the end of the line or the beginning of a comment. 
  15194.  
  15195.  Blank lines are ignored in the .INI file and can be used to separate groups of 
  15196.  directives.  You can place comments in the file by beginning a line with a 
  15197.  semicolon [;].  You can also place comments at the end of any line except one 
  15198.  containing a text string value.  To do so, enter at least one space or tab 
  15199.  after the value, a semicolon, and your comment, like this: 
  15200.  
  15201.           History = 2048       ;set history list size
  15202.  
  15203.  If you try to place a comment at the end of a string value, the comment will 
  15204.  become part of the string and will probably cause an error. 
  15205.  
  15206.  If you use the OPTION dialogs to modify the .INI file, comments on lines 
  15207.  modified from within the dialogs will not be preserved when the new lines are 
  15208.  saved.  To be sure .INI file comments are preserved, put them on separate 
  15209.  lines in the file 
  15210.  
  15211.  When Take Command detects an error while processing the .INI file, it displays 
  15212.  an error message and prompts you to press a key to continue processing the 
  15213.  file.  This allows you to note any errors before the startup process 
  15214.  continues.  The directive in error will retain its previous or default value. 
  15215.  
  15216.  If you need to test different values for an .INI directive without repeatedly 
  15217.  editing the .INI file, use the OPTION command or see INIQuery directive. 
  15218.  
  15219.  If you want to include the text of one .INI file within another (for example, 
  15220.  if you have a set of common directives used by several JP Software products), 
  15221.  see the Include directive. 
  15222.  
  15223.  The SETDOS command can override several of the .INI file directives.  For 
  15224.  example, the cursor shape used by Take Command can be adjusted either with the 
  15225.  CursorIns and CursorOver directives or the SETDOS /S command.  The 
  15226.  correspondence between SETDOS options and .INI directives is noted under each 
  15227.  directive below, and under each option of the SETDOS command. 
  15228.  
  15229.  Types of Directives 
  15230.  
  15231.  There are 8 types of directives in the .INI file.  The different types of 
  15232.  directives are shown in the lists below as follows: 
  15233.  
  15234.              Name = nnnn ( 1234):  This directive takes a numeric value which 
  15235.              replaces the "nnnn."  The default value is shown in parentheses. 
  15236.  
  15237.              Name = c (X):  This directive accepts a single character as its 
  15238.              value.  The default character is shown in parentheses.  You must 
  15239.              type in the actual character; you cannot use a key name. 
  15240.  
  15241.              Name = CHOICE1 | Choice2 | ... : This directive takes a choice 
  15242.              value.  The possible choices are listed, separated by vertical 
  15243.              bars.  The default value is shown in all upper case letters in the 
  15244.              directive description, but in your file any of the choices can be 
  15245.              entered in upper case or lower case.  For example, if the choices 
  15246.              were shown as "YES | No" then "YES" is the default. 
  15247.  
  15248.              Name = Color:  This directive takes a color specification.  See 
  15249.              Colors and Color Names for the format of color names. 
  15250.  
  15251.              Name = Key (Default):  This directive takes a key specification. 
  15252.              See Keys and Keynames for the format of key names. 
  15253.  
  15254.              Name = Path:  This directive takes a path specification, but not a 
  15255.              filename.  The value should include both a drive and path (e.g., 
  15256.              C:\TCMD) to avoid any possible ambiguities. A trailing backslash 
  15257.              [\] at the end of the path name is acceptable but not required. 
  15258.              Any default path is described in the text. 
  15259.  
  15260.              Name = File:  This directive takes a filename.  We recommend that 
  15261.              you use a full filename including the drive letter and path to 
  15262.              avoid any possible ambiguities.  Any default filename is described 
  15263.              in the text. 
  15264.  
  15265.              Name = String:  This directive takes a string in the format shown. 
  15266.              The text describes the default value and any additional 
  15267.              requirements for formatting the string correctly.  No comments are 
  15268.              allowed. 
  15269.  
  15270.  Take Command contains a fixed-length area for storing strings entered in the 
  15271.  .INI file, including file names, paths, and other strings.  This area is large 
  15272.  and is unlikely to overflow; if it does, you will receive an error message. 
  15273.  If this occurs, reduce the complexity of your .INI file or contact our 
  15274.  technical support department for assistance. 
  15275.  
  15276.  
  15277. ΓòÉΓòÉΓòÉ 7.2.1. Initialization Directives ΓòÉΓòÉΓòÉ
  15278.  
  15279. The directives in this section control how Take Command starts and where it 
  15280. looks for its files. The initialization directives are: 
  15281.  
  15282.         DirHistory          Size of directory history list 
  15283.         DuplicateBugs       Emulate CMD.EXE bugs 
  15284.         HelpBook            Books to load in help system 
  15285.         History             Size of history list 
  15286.         IBeamCursor         Select I- beam or arrow cursor 
  15287.         INIQuery            Query for each line in TCMDOS2.INI 
  15288.         LocalAliases        ehp1. Local vs. global aliases 
  15289.         LocalHistory        Local vs. global history 
  15290.         LocalDirHistory     Local vs. global directory history 
  15291.         ScreenBufSize       Size of screen buffer 
  15292.         TCStartPath         Path for TCSTART and TCEXIT 
  15293.         TreePath            Path for directory database, JPSTREE.IDX 
  15294.         WindowState         Initial state for the Take Command window 
  15295.         WindowX, WindowY, WindowWidth, WindowHeightInitial size and position of 
  15296.                             the Take Command window 
  15297.  
  15298.  
  15299. ΓòÉΓòÉΓòÉ 7.2.1.1. ┬áDirHistory (directive) ΓòÉΓòÉΓòÉ
  15300.  
  15301. DirHistory = nnnn (256):  Sets the amount of memory allocated to the directory 
  15302. history list in bytes.  The allowable range of values is 256 to 32767.  If you 
  15303. use a global directory history list (see Directory History Window), the 
  15304. DirHistory value is ignored in all sessions except that which first establishes 
  15305. the global list. 
  15306.  
  15307.  
  15308. ΓòÉΓòÉΓòÉ 7.2.1.2. DuplicateBugs ΓòÉΓòÉΓòÉ
  15309.  
  15310. DuplicateBugs = Yes | NO:  Tells the Take Command parser to duplicate certain 
  15311. well-known bugs in CMD.EXE.  The only bug currently replicated is in the IF 
  15312. command. 
  15313.  
  15314.  
  15315. ΓòÉΓòÉΓòÉ 7.2.1.3. HelpBook ΓòÉΓòÉΓòÉ
  15316.  
  15317. HelpBook = String:  Sets the names of the "books" to be loaded with the HELP 
  15318. command or theF1 key.  The default is TCMDOS2 which loads only the Take Command 
  15319. for OS/2 help.  This directive allows you to load other help "books" at the 
  15320. same time:  see the Take Command for OS/2 Introduction and Installation Guide 
  15321. for additional details. 
  15322.  
  15323.  
  15324. ΓòÉΓòÉΓòÉ 7.2.1.4. ┬áHistory (directive) ΓòÉΓòÉΓòÉ
  15325.  
  15326. History = nnnn (1024):  Sets the amount of memory allocated to the command 
  15327. history list in bytes.  The allowable range of values is 256 to 32767 bytes. 
  15328. If you use a global history list (see Command History and Recall), the History 
  15329. value is ignored in all sessions except the session which first establishes the 
  15330. global list. 
  15331.  
  15332.  
  15333. ΓòÉΓòÉΓòÉ 7.2.1.5. IBeamCursor ΓòÉΓòÉΓòÉ
  15334.  
  15335. IBeamCursor = YES | No:  If set to Yes, Take Command will display the standard 
  15336. "I-Beam" cursor in text areas of its window. If IBeamCursor is set to No, an 
  15337. arrow is used in all areas of the window (this can be helpful on laptop systems 
  15338. where the I-Beam cursor is hard to see). 
  15339.  
  15340.  
  15341. ΓòÉΓòÉΓòÉ 7.2.1.6. INIQuery ΓòÉΓòÉΓòÉ
  15342.  
  15343. INIQuery = Yes | NO:  If set to Yes, a dialog box will be displayed before 
  15344. execution of each subsequent line in the current .INI file.  This allows you to 
  15345. modify certain directives when you start Take Command in order to test 
  15346. different configurations. INIQuery can be reset to No at any point in the file. 
  15347. Normally INIQuery = Yes is only used during testing of other .INI file 
  15348. directives. 
  15349.  
  15350. The dialog generated by INIQuery = Yes is: 
  15351.  
  15352.         Yes     Executes the directive 
  15353.  
  15354.         No      Skips the directive 
  15355.  
  15356.         Cancel  Executes the directive and all remaining directives the the 
  15357.                 [TakeCommand] section of the .INI file (i.e., cancels the 
  15358.                 INIQuery=Yes setting) 
  15359.  
  15360.  
  15361. ΓòÉΓòÉΓòÉ 7.2.1.7. LocalAliases ΓòÉΓòÉΓòÉ
  15362.  
  15363. LocalAliases = Yes | NO:  No forces all copies of Take Command to share the 
  15364. same alias list.  Yes keeps the lists for each shell separate.  See ALIAS for 
  15365. more details on local and global alias lists. 
  15366.  
  15367.  
  15368. ΓòÉΓòÉΓòÉ 7.2.1.8. LocalDirHistory ΓòÉΓòÉΓòÉ
  15369.  
  15370. LocalDirHistory = Yes | NO:  No forces all copies of Take Command to share the 
  15371. same directory history list. Yes keeps the list for each session separate. See 
  15372. directory history window for more details on local and global directory 
  15373. history. 
  15374.  
  15375.  
  15376. ΓòÉΓòÉΓòÉ 7.2.1.9. LocalHistory ΓòÉΓòÉΓòÉ
  15377.  
  15378. LocalHistory = Yes | NO:  No forces all copies of Take Command to share the 
  15379. same history list.  Yes keeps the lists for each shell separate.  See Command 
  15380. History and Recall for more details on local and global history lists. 
  15381.  
  15382.  
  15383. ΓòÉΓòÉΓòÉ 7.2.1.10. ScreenBufSize ΓòÉΓòÉΓòÉ
  15384.  
  15385. ScreenBufSize = nnnn (64000):  Sets the size of the screen scrollback buffer in 
  15386. bytes.  The allowable range is from 16000 to 512000 bytes. 
  15387.  
  15388.  
  15389. ΓòÉΓòÉΓòÉ 7.2.1.11. TCStartPath ΓòÉΓòÉΓòÉ
  15390.  
  15391. TCStartPath = Path:  Sets the drive and directory where the TCSTART and TCEXIT 
  15392. batch files (if any) are located. 
  15393.  
  15394.  
  15395. ΓòÉΓòÉΓòÉ 7.2.1.12. TreePath ΓòÉΓòÉΓòÉ
  15396.  
  15397. TreePath = Path:  Sets the location of JPSTREE.IDX, the file used for the 
  15398. extended directory search database.  By default, the file is placed in the root 
  15399. directory of drive C:\. 
  15400.  
  15401.  
  15402. ΓòÉΓòÉΓòÉ 7.2.1.13. WindowState ΓòÉΓòÉΓòÉ
  15403.  
  15404. WindowState = STANDARD | Maximize | Minimize | Custom: Sets the initial state 
  15405. of the Take Command window. Standard puts the window in the default position on 
  15406. the OS/2 desktop, and is the default setting. Maximize maximizes the window; 
  15407. Minimize minimizes it, and Custom sets it to the position specified by the 
  15408. WindowX, WindowY, WindowWidth, WindowHeight directives. 
  15409.  
  15410.  
  15411. ΓòÉΓòÉΓòÉ 7.2.1.14. WindowX, WindowY, WindowWidth, WindowHeight ΓòÉΓòÉΓòÉ
  15412.  
  15413. WindowX = nnnn, WindowY = nnnn, WindowWidth = nnnn, WindowHeight = nnnn:  These 
  15414. 4 directives set the initial size and position of the Take Command window.  The 
  15415. measurements are in pixels or pels.  WindowX and WindowY refer to the position 
  15416. of the bottom left corner of the window relative to the bottom left corner of 
  15417. the screen.  These directives will be ignored unless WindowState is set to 
  15418. Custom. 
  15419.  
  15420.  
  15421. ΓòÉΓòÉΓòÉ 7.2.2. Configuration Directives ΓòÉΓòÉΓòÉ
  15422.  
  15423. These directives control the way that Take Command operate.  Some can be 
  15424. changed with the SETDOS command while Take Command is running. Any 
  15425. corresponding SETDOS command is listed in the description of each directive. 
  15426. The configuration directives are: 
  15427.  
  15428.         AmPm                Time display format 
  15429.         ANSI                Enables ANSI support 
  15430.         AppendToDir         "\" on directory names in filename completion 
  15431.         BatchEcho           Default batch file echo state 
  15432.         BeepFreq            Default beep frequency 
  15433.         BeepLength          Default beep length 
  15434.         CDDWinLeft, CDDWinTop, CDDWinWidth, CDDWinHeightInitial size and 
  15435.                             position of the extended directory search window 
  15436.         CommandSep          Multiple command separator character 
  15437.         CursorIns           Cursor width in insert mode 
  15438.         CursorOver          Cursor width in overstrike mode 
  15439.         DecimalChar         Decimal separator for @EVAL, etc. 
  15440.         DescriptionMax      Maximum length of file descriptions 
  15441.         DescriptionName     Name of file to hold file descriptions 
  15442.         Descriptions        Enable / disable description processing 
  15443.         EditMode            Editing mode (insert / overstrike) 
  15444.         Editor              Program to run for "Editor" menu choice 
  15445.         EscapeChar          Take Command escape character 
  15446.         EvalMax             Maximum precision returned by @EVAL 
  15447.         EvalMin             Minimum precision returned by @EVAL 
  15448.         ExecWait            Forces Take Command to wait for external programs 
  15449.                             to complete 
  15450.         FileCompletion      Files selected for filename completion 
  15451.         FuzzyCD             Selects Extended Directory Search mode 
  15452.         HistCopy            History copy mode 
  15453.         HistLogName         History log file name 
  15454.         HistMin             Minimum command length to save 
  15455.         HistMove            Move recalled commands to end of history 
  15456.         HistWrap            Behavior of the command history list 
  15457.         LogName             Log file name 
  15458.         NoClobber           Overwrite protection for output redirection 
  15459.         ParameterChar       Alias / batch file parameter character 
  15460.         PopupWinLeft, PopupWinTop, PopupWinWidth, PopupWinHeightInitial size 
  15461.                             and position of the popup windows 
  15462.         ScreenColumns       Virtual screen width 
  15463.         ScreenColumns       Virtual screen height 
  15464.         ScrollLines         Number of lines to scroll up when at the bottom of 
  15465.                             the window 
  15466.         StatusBarOn         Set status bar mode at startup 
  15467.         StatBarText         Point size of status bar text 
  15468.         SwapFilePath        Path to OS/2 swap file 
  15469.         SwapScrollKeys      Use the 4OS2-style keys for history recall 
  15470.         TabStops            Sets the tab positions for Take Command's output 
  15471.         ThousandsChar       Thousands separator for @EVAL, etc. 
  15472.         ToolBarOn           Set toolbar mode at startup 
  15473.         ToolBarText         Point size of toolbar text 
  15474.         UpperCase           Force file names to upper case 
  15475.  
  15476.  
  15477. ΓòÉΓòÉΓòÉ 7.2.2.1. AmPm ΓòÉΓòÉΓòÉ
  15478.  
  15479. AmPm = Yes | NO | Auto:  Yes displays times in 12-hour format with a trailing 
  15480. "a" for AM or "p" for PM. The default of No forces a display in 24-hour time 
  15481. format. Auto formats the time according to the country code set for your 
  15482. system. AmPm controls the time displays used by DIR and SELECT, in LOG files, 
  15483. and the output of the TIMER, DATE, and TIME commands.  It has no effect on 
  15484. %_TIME, %@MAKETIME, the $t and $T options of PROMPT, or date and time ranges. 
  15485.  
  15486.  
  15487. ΓòÉΓòÉΓòÉ 7.2.2.2. ANSI ΓòÉΓòÉΓòÉ
  15488.  
  15489. ANSI = YES | No:  Sets the initial state of ANSI support.  Yes enables ANSI 
  15490. string processing in the Take Command window (for example, ANSI strings can be 
  15491. displayed in the prompt, or with the ECHO command)  No disables ANSI strings. 
  15492. Also see SETDOS /A. 
  15493.  
  15494. You can test whether ANSI support is enabled with the _ANSI internal variable. 
  15495.  
  15496. See the ANSI Reference for more details on ANSI strings, and a reference list 
  15497. of ANSI sequences supported by Take Command for OS/2. 
  15498.  
  15499.  
  15500. ΓòÉΓòÉΓòÉ 7.2.2.3. AppendToDir ΓòÉΓòÉΓòÉ
  15501.  
  15502. AppendToDir = Yes | NO: Yes appends a trailing "\" to directory names when 
  15503. doing filename completion.  Regardless of the setting of this directive, a 
  15504. trailing backslash is always appended to a directory name at the beginning of 
  15505. the command line to enable automatic directory changes. 
  15506.  
  15507.  
  15508. ΓòÉΓòÉΓòÉ 7.2.2.4. BatchEcho ΓòÉΓòÉΓòÉ
  15509.  
  15510. BatchEcho = YES | No:  Sets the default batch echo mode. Yes enables echoing of 
  15511. all batch file commands unless ECHO is explicitly set off in the batch file. No 
  15512. disables batch file echoing unless ECHO is explicitly set on. Also see SETDOS 
  15513. /V. 
  15514.  
  15515.  
  15516. ΓòÉΓòÉΓòÉ 7.2.2.5. BeepFreq ΓòÉΓòÉΓòÉ
  15517.  
  15518. BeepFreq = nnnn (440):  Sets the default BEEP command frequency in Hz.  This is 
  15519. also the frequency for "error" beeps (for example, if you press an illegal 
  15520. key).  To disable all error beeps set this or BeepLength to 0.  If you do, the 
  15521. BEEP command will still be operable, but will not produce sound unless you 
  15522. explicitly specify the frequency and duration. 
  15523.  
  15524.  
  15525. ΓòÉΓòÉΓòÉ 7.2.2.6. BeepLength ΓòÉΓòÉΓòÉ
  15526.  
  15527. BeepLength = nnnn (2):  Sets the default BEEP length in system clock ticks 
  15528. (approximately 1/18 of a second per tick). BeepLength is also the default 
  15529. length for "error" beeps (for example, if you press an illegal key). 
  15530.  
  15531.  
  15532. ΓòÉΓòÉΓòÉ 7.2.2.7. CDDWinLeft, CDDWinTop, CDDWinWidth, CDDWinHeight ΓòÉΓòÉΓòÉ
  15533.  
  15534. CDDWinLeft, CDDWinTop, CDDWinWidth, CDDWinHeight = nnnn:  These values set the 
  15535. position and size of the popup window used by extended directory searches, in 
  15536. characters, including the border.  The defaults are 3, 3, 72, and 16, 
  15537. respectively (i.e., a window beginning in column 3, row 3, 72 columns wide and 
  15538. 16 rows high).  The position is relative to the top left corner of the screen. 
  15539. The width and height values include the space required for the window border. 
  15540. The window cannot be smaller than than 10 columns wide by 5 rows high 
  15541. (including the border).  The values you enter will be adjusted if necessary to 
  15542. keep a minimum-size window visible on the screen. 
  15543.  
  15544.  
  15545. ΓòÉΓòÉΓòÉ 7.2.2.8. CommandSep ΓòÉΓòÉΓòÉ
  15546.  
  15547. CommandSep = c:  This is the character used to separate multiple commands on 
  15548. the same line.  The default for Take Command is the ampersand [&]. You cannot 
  15549. use any of the redirection characters (| > < ) or any of the whitespace 
  15550. characters (space, tab, comma, or equal sign).  The command separator is saved 
  15551. by SETLOCAL and restored by ENDLOCAL.  Also see SETDOS /C, the %+ internal 
  15552. variable, and Special Character Compatibility for information on using 
  15553. compatible command separators for two or more products. 
  15554.  
  15555.  
  15556. ΓòÉΓòÉΓòÉ 7.2.2.9. CursorIns ΓòÉΓòÉΓòÉ
  15557.  
  15558. CursorIns = nnnn (15):  This is the width of the cursor for insert mode during 
  15559. command-line editing and all commands which accept line input (DESCRIBE, ESET, 
  15560. etc.).  The size is a percentage of the total character cell size, between 0% 
  15561. and 100%.  Because of the way video drivers map the cursor shape, you may not 
  15562. get a smooth progression in cursor shapes as CursorIns and CursorOver change. 
  15563. If you set CursorIns and CursorOver to -1, the cursor shape won't be modified 
  15564. at all.  If you set them to 0, the cursor will be invisible. Also see SETDOS 
  15565. /S. 
  15566.  
  15567.  
  15568. ΓòÉΓòÉΓòÉ 7.2.2.10. CursorOver ΓòÉΓòÉΓòÉ
  15569.  
  15570. CursorOver = nnnn (100):  This is the width of the cursor for overstrike mode 
  15571. during command-line editing and all commands which accept line input.  The size 
  15572. is a percentage of the total character cell size, between 0% and 100%.  For 
  15573. more details see the CursorIns directive; also see SETDOS /S. 
  15574.  
  15575.  
  15576. ΓòÉΓòÉΓòÉ 7.2.2.11. DecimalChar ΓòÉΓòÉΓòÉ
  15577.  
  15578. DecimalChar = . | , | AUTO:  Sets the character used as the decimal separator 
  15579. for @EVAL, numeric IF and IFF tests, version numbers, and other similar uses. 
  15580. The only valid settings are period [.], comma [,], and Auto (the default).  A 
  15581. setting of Auto tells the command processor to use the decimal separator 
  15582. associated with your current country code.  If you change the decimal character 
  15583. you must also adjust the thousands character (with ThousandsChar, see below) so 
  15584. that the two characters are different.  Also see SETDOS /G. 
  15585.  
  15586.  
  15587. ΓòÉΓòÉΓòÉ 7.2.2.12. DescriptionMax ΓòÉΓòÉΓòÉ
  15588.  
  15589. DescriptionMax = nnnn (511):  Controls the description length limit for 
  15590. DESCRIBE.  The allowable range is 20 to 511 characters. 
  15591.  
  15592.  
  15593. ΓòÉΓòÉΓòÉ 7.2.2.13. DescriptionName ΓòÉΓòÉΓòÉ
  15594.  
  15595. DescriptionName = [File | EA]:  Sets the file name in which to store file 
  15596. descriptions.  The default file name is DESCRIPT.ION.  Use this directive with 
  15597. caution because changing the name from the default will make it difficult to 
  15598. transfer file descriptions to another system.  Also see SETDOS /D. 
  15599.  
  15600. If you set DescriptionName = EA, Take Command will use the ".SUBJECT" extended 
  15601. attribute (EA) for file descriptions instead of a separate file.  Note that 
  15602. using EAs will slow the DIR and SELECT commands noticeably.  On a FAT volume, 
  15603. performance may be substantially slower, depending on whether the system has 
  15604. cached the extended attributes. 
  15605.  
  15606.  
  15607. ΓòÉΓòÉΓòÉ 7.2.2.14. Descriptions ΓòÉΓòÉΓòÉ
  15608.  
  15609. Descriptions = YES | No:  Turns description handling on or off during the file 
  15610. processing commands COPY, DEL, MOVE, and REN.  If set to No, Take Command will 
  15611. not update the description file when files are moved, copied, deleted or 
  15612. renamed.  Also see SETDOS /D. 
  15613.  
  15614.  
  15615. ΓòÉΓòÉΓòÉ 7.2.2.15. EditMode ΓòÉΓòÉΓòÉ
  15616.  
  15617. EditMode = INSERT | Overstrike:  This directive lets you start the command-line 
  15618. editor in either insert or overstrike mode. Also see SETDOS /M. 
  15619.  
  15620.  
  15621. ΓòÉΓòÉΓòÉ 7.2.2.16. Editor ΓòÉΓòÉΓòÉ
  15622.  
  15623. Editor = File:  Specifies the path and filename of the program that Take 
  15624. Command will execute when you select "Editor" from the Utilities menu.  The 
  15625. default is the standard OS/2 editor E.EXE. 
  15626.  
  15627.  
  15628. ΓòÉΓòÉΓòÉ 7.2.2.17. EscapeChar ΓòÉΓòÉΓòÉ
  15629.  
  15630. EscapeChar = c:  Sets the character used to suppress the normal meaning of the 
  15631. following character.  The default for Take Command is a a caret [^]. See Escape 
  15632. Character for a description of special escape sequences.  You cannot use any of 
  15633. the redirection characters (|, >, or < ) or the whitespace characters (space, 
  15634. tab, comma, or equal sign) as the escape character.  The escape character is 
  15635. saved by SETLOCAL and restored by ENDLOCAL.  Also see SETDOS /E, the %= 
  15636. internal variable, and Special Character Compatibility for information on using 
  15637. compatible escape characters for two or more products. 
  15638.  
  15639.  
  15640. ΓòÉΓòÉΓòÉ 7.2.2.18. EvalMax ΓòÉΓòÉΓòÉ
  15641.  
  15642. EvalMax = nnnn (8):  Controls the maximum number of digits after the decimal 
  15643. point in values returned by @EVAL.  You can override this setting with the 
  15644. construct @EVAL[expression=n,n].  The allowable range is 0 to 8.  Also see 
  15645. SETDOS /F. 
  15646.  
  15647.  
  15648. ΓòÉΓòÉΓòÉ 7.2.2.19. EvalMin ΓòÉΓòÉΓòÉ
  15649.  
  15650. EvalMin = nnnn (0):  Controls the minimum number of digits after the decimal 
  15651. point in values returned by @EVALF_EVAL.  The allowable range is 0 to 8.  This 
  15652. directive will be ignored if EvalMin is larger than EvalMax.  You can override 
  15653. this setting with the construct @EVAL[expression=n,n].  Also see SETDOS /F. 
  15654.  
  15655.  
  15656. ΓòÉΓòÉΓòÉ 7.2.2.20. ExecWait ΓòÉΓòÉΓòÉ
  15657.  
  15658. ExecWait = Yes | NO:  Controls whether Take Command waits for an external 
  15659. program to complete before redisplaying the prompt.  See Waiting for 
  15660. Applications to Finish in Starting Character Mode Applications for details on 
  15661. the effects of this directive. 
  15662.  
  15663. This setting applies only to applications started from the Take Command prompt. 
  15664. Take Command will always wait for applications run from batch files. ExecWait 
  15665. also has no effect on "TTY" applications run within the Take Command window, or 
  15666. on applications started with the START command, which has its own separate 
  15667. /WAIT switch. 
  15668.  
  15669.  
  15670. ΓòÉΓòÉΓòÉ 7.2.2.21. FileCompletion ΓòÉΓòÉΓòÉ
  15671.  
  15672. FileCompletion = cmd1: ext1 ext2 ...; cmd2: ext3 ext4 ... Sets the files made 
  15673. available during filename completion for selected commands.  The format is the 
  15674. same as that used for the FILECOMPLETION environment variable.  See Customizing 
  15675. Filename Completion for a detailed explanation of selective filename 
  15676. completion. 
  15677.  
  15678.  
  15679. ΓòÉΓòÉΓòÉ 7.2.2.22. FuzzyCD (Extended Directory Search) ΓòÉΓòÉΓòÉ
  15680.  
  15681. FuzzyCD = 0 | 1 | 2 | 3.  Enables or disables extended directory searches, and 
  15682. controls their behavior.  A setting of 0 (the default) disables extended 
  15683. searches.  For complete details on the meaning of the other settings see 
  15684. Extended Directory Searches. 
  15685.  
  15686.  
  15687. ΓòÉΓòÉΓòÉ 7.2.2.23. HistCopy ΓòÉΓòÉΓòÉ
  15688.  
  15689. HistCopy = Yes | NO:  Controls what happens when you re-execute a line from the 
  15690. command history.  If this option is set to Yes, the line is appended to the end 
  15691. of the history list.  By default, or if this option is set to No, the command 
  15692. is not copied. The original copy of the command is always retained at its 
  15693. original position in the list, regardless of the setting of HistCopy.  Set this 
  15694. option to No if you want to use HistMove = Yes; otherwise, the HistCopy setting 
  15695. will override HistMove. 
  15696.  
  15697.  
  15698. ΓòÉΓòÉΓòÉ 7.2.2.24. HistLogName ΓòÉΓòÉΓòÉ
  15699.  
  15700. HistLogName = File:  Sets the history log file name and/or path.  If only a 
  15701. path is given, the default log file name (OS2HLOG) will be used.  Using 
  15702. HistLogName does not turn history logging on; you must use a LOG /H ON command 
  15703. to do so. 
  15704.  
  15705.  
  15706. ΓòÉΓòÉΓòÉ 7.2.2.25. HistMin ΓòÉΓòÉΓòÉ
  15707.  
  15708. HistMin = nnnn (0):  Sets the minimum command-line size to save in the command 
  15709. history list.  Any command line whose length is less than this value will not 
  15710. be saved.  Legal values range from 0, which saves everything, to 1024, which 
  15711. disables all command history saves. 
  15712.  
  15713.  
  15714. ΓòÉΓòÉΓòÉ 7.2.2.26. HistMove ΓòÉΓòÉΓòÉ
  15715.  
  15716. HistMove = Yes | NO:  If set to Yes, a recalled line is moved to the end of the 
  15717. command history.  The difference between this directive and HistCopy, above, is 
  15718. that HistCopy = Yes copies each recalled line to the end of the history but 
  15719. leaves the original in place.  HistMove = Yes places the line at the end of 
  15720. history and removes the original line.  This directive has no effect if 
  15721. HistCopy = Yes. 
  15722.  
  15723.  
  15724. ΓòÉΓòÉΓòÉ 7.2.2.27. HistWrap ΓòÉΓòÉΓòÉ
  15725.  
  15726. HistWrap = YES | No:  Controls whether the command history "wraps" when you 
  15727. reach the top or bottom of the list.  The default setting enables wrapping, so 
  15728. the list appears "circular".  If HistWrap is set to No, history recall will 
  15729. stop at the beginning and end of the list rather than wrapping. 
  15730.  
  15731.  
  15732. ΓòÉΓòÉΓòÉ 7.2.2.28. LogName ΓòÉΓòÉΓòÉ
  15733.  
  15734. LogName = File:  Sets the log file name and/or path.  If only a path is given, 
  15735. the default log file name (OS2LOG) will be used. Using LogName does not turn 
  15736. logging on; you must use a LOG ON command to do so. 
  15737.  
  15738.  
  15739. ΓòÉΓòÉΓòÉ 7.2.2.29. NoClobber ΓòÉΓòÉΓòÉ
  15740.  
  15741. NoClobber = Yes | NO:  If set to Yes, will prevent standard output redirection 
  15742. from overwriting an existing file, and will require that the output file 
  15743. already exist for append redirection.  Also see SETDOS /N. 
  15744.  
  15745.  
  15746. ΓòÉΓòÉΓòÉ 7.2.2.30. ParameterChar ΓòÉΓòÉΓòÉ
  15747.  
  15748. ParameterChar = c:  Sets the character used after a percent sign to specify all 
  15749. or all remaining command-line arguments in a batch file or alias (e.g., %$ or 
  15750. %n$.; see Batch Files and ALIAS).  The default in Take Command is the dollar 
  15751. sign [$].  The parameter character is saved by SETLOCAL and restored by 
  15752. ENDLOCAL.  Also see SETDOS /P.  See Special Character Compatibility for 
  15753. information on using compatible parameter characters for two or more products. 
  15754.  
  15755.  
  15756. ΓòÉΓòÉΓòÉ 7.2.2.31. PopupWinLeft, PopupWinTop, PopupWinWidth, PopupWinHeight ΓòÉΓòÉΓòÉ
  15757.  
  15758. PopupWinLeft, PopupWinTop, PopupWinWidth, PopupWinHeight = nnnn:  These values 
  15759. set the initial position and size of the command-line, directory history, and 
  15760. filename completion windows, and most other popup windows (see CDDWinLeft etc. 
  15761. for the extended directory search window).  The values are in characters, and 
  15762. include the border.  The defaults are 40, 1, 36, and 12, respectively (i.e., a 
  15763. window beginning in column 40, row 1, 36 columns wide and 12 rows high).  The 
  15764. position is relative to the top left corner of the Take Command window.  The 
  15765. width and height values include the space required for the window border.  The 
  15766. window cannot be smaller than than 10 columns wide by 5 rows high (including 
  15767. the border).  The values you enter will be adjusted if necessary to keep a 
  15768. minimum-size window visible on the screen. 
  15769.  
  15770.  
  15771. ΓòÉΓòÉΓòÉ 7.2.2.32. ScreenColumns ΓòÉΓòÉΓòÉ
  15772.  
  15773. ScreenColumns = nnnn (80):  Sets the number of virtual screen columns used by 
  15774. the video display.  If the virtual screen width is greater than the physical 
  15775. window width, Take Command will display a horizontal scrollbar at the bottom of 
  15776. the window.  See Resizing the Take Command Window for more information on the 
  15777. virtual screen size. 
  15778.  
  15779.  
  15780. ΓòÉΓòÉΓòÉ 7.2.2.33. ScreenRows ΓòÉΓòÉΓòÉ
  15781.  
  15782. ScreenRows = nnnn (25):  Sets the initial height of the Take Command window. 
  15783. See Resizing the Take Command Window for more information on the virtual screen 
  15784. size. 
  15785.  
  15786.  
  15787. ΓòÉΓòÉΓòÉ 7.2.2.34. ScrollLines ΓòÉΓòÉΓòÉ
  15788.  
  15789. ScrollLines = nnnn (2):  Sets the number of lines displayed before the screen 
  15790. is physically scrolled.  Take Command will scroll up when output reaches the 
  15791. bottom of the window.  Higher values will speed up the display of scrolled 
  15792. output but also make it jerky; lower values will make scrolling smoother but 
  15793. will slow it down. 
  15794.  
  15795.  
  15796. ΓòÉΓòÉΓòÉ 7.2.2.35. StatusBarOn ΓòÉΓòÉΓòÉ
  15797.  
  15798. StatusBarOn = YES | No:  Yes enables the status bar when Take Command starts. 
  15799. No disables it.  The status bar can always be enabled or disabled while Take 
  15800. Command is running by using the Setup menu.  The StatusBarOn setting is 
  15801. automatically updated to reflect the current state of the status bar each time 
  15802. Take Command exits; this preserves the status bar state between sessions. 
  15803.  
  15804.  
  15805. ΓòÉΓòÉΓòÉ 7.2.2.36. StatBarText ΓòÉΓòÉΓòÉ
  15806.  
  15807. StatBarText = nnnn (8):  Sets the point size of the text on the status bar. 
  15808. The allowable range is 4 to 16. 
  15809.  
  15810.  
  15811. ΓòÉΓòÉΓòÉ 7.2.2.37. SwapFilePath ΓòÉΓòÉΓòÉ
  15812.  
  15813. SwapFilePath = Path:  Specifies the path of the OS/2 swap file so the MEMORY 
  15814. command and the status bar  can find it and display its size. 
  15815.  
  15816.  
  15817. ΓòÉΓòÉΓòÉ 7.2.2.38. SwapScrollKeys ΓòÉΓòÉΓòÉ
  15818.  
  15819. SwapScrollKeys = Yes | NO:  Yes switches to 4OS2- style keystrokes for 
  15820. manipulating the scrollback buffer. 
  15821.  
  15822. If SwapScrollKeys is set to Yes, the Up and Down arrow keys will scroll through 
  15823. the command history list and the PgUp key will pop up the history window.  The 
  15824. Ctrl-Up, Ctrl-Down, Ctrl-PgUp, and Ctrl-PgDn keys will scroll the text in the 
  15825. screen buffer. 
  15826.  
  15827. If SwapScrollKeys is set to No, these keys will assume their default meanings. 
  15828. The Up and Down arrow keys and the PgUp and PgDn keys will scroll the text in 
  15829. the screen buffer.  The Ctrl-Up and Ctrl-Down keys will scroll through the 
  15830. command history list and the Ctrl-PgUp key will pop up the history window. 
  15831.  
  15832. For additional details see Scrolling and History Keystrokes. 
  15833.  
  15834. Do not set SwapScrollKeys to Yes if you use key mapping directives to reassign 
  15835. the scrolling or history keys individually.  SwapScrollKeys takes effect before 
  15836. other key mappings, and using both methods at the same time will be confusing 
  15837. at best. Setting SwapScrollKeys to Yes has essentially the same effect as 
  15838. including the following key mapping directives in TCMDOS2.INI individually: 
  15839.  
  15840.         PrevHistory = Up
  15841.         NextHistory = Down
  15842.         HistWinOpen = PgUp
  15843.         HistWinOpen = PgDn
  15844.         ScrollUp = Ctrl-Up
  15845.         ScrollDown = Ctrl-Down
  15846.         ScrollPgUp = Ctrl-PgUp
  15847.         ScrollPgDn = Ctrl-PgDn
  15848.  
  15849.  
  15850. ΓòÉΓòÉΓòÉ 7.2.2.39. TabStops ΓòÉΓòÉΓòÉ
  15851.  
  15852. TabStops = nnnn (8):  Sets the tab stops for Take Command's output (including 
  15853. the output from the LIST and TYPE commands).  The allowable range is 1 to 32. 
  15854.  
  15855.  
  15856. ΓòÉΓòÉΓòÉ 7.2.2.40. ThousandsChar ΓòÉΓòÉΓòÉ
  15857.  
  15858. ThousandsChar = . | , | AUTO:  Sets the character used as the thousands 
  15859. separator for numeric output.  The only valid settings are period [.], comma 
  15860. [,], and Auto (the default).  A setting of Auto tells the command processor to 
  15861. use the thousands separator associated with your current country code.  If you 
  15862. change the thousands character you must also adjust the decimal character (with 
  15863. DecimalChar) so that the two characters are different.  Also see SETDOS /G. 
  15864.  
  15865.  
  15866. ΓòÉΓòÉΓòÉ 7.2.2.41. ToolBarOn ΓòÉΓòÉΓòÉ
  15867.  
  15868. ToolBarOn = YES | No:  Yes enables the tool bar when Take Command starts.  No 
  15869. disables it.  The tool bar can be enabled or disabled while Take Command is 
  15870. running by using the Setup menu.  The ToolBarOn setting is automatically 
  15871. updated to reflect the current state of the tool bar each time Take Command 
  15872. exits; this preserves the tool bar state between sessions. 
  15873.  
  15874.  
  15875. ΓòÉΓòÉΓòÉ 7.2.2.42. ToolBarText ΓòÉΓòÉΓòÉ
  15876.  
  15877. ToolBarText = nnnn (8):  Sets the point size of text on the tool bar.  The 
  15878. allowable range is 4 to 16. 
  15879.  
  15880.  
  15881. ΓòÉΓòÉΓòÉ 7.2.2.43. UpperCase ΓòÉΓòÉΓòÉ
  15882.  
  15883. UpperCase = Yes | NO:  Yes specifies that filenames should be displayed in the 
  15884. traditional upper-case by internal commands like COPY and DIR.  No allows the 
  15885. normal Take Command lower-case style. This directive does not affect the 
  15886. display of filenames on drives which support long filenames.  Also see SETDOS 
  15887. /U. 
  15888.  
  15889.  
  15890. ΓòÉΓòÉΓòÉ 7.2.3. Color Directives ΓòÉΓòÉΓòÉ
  15891.  
  15892. These directives control the colors that Take Command use for its displays. For 
  15893. complete details on color names and numbers, see Colors and Color Names.  The 
  15894. color directives are: 
  15895.  
  15896.         ColorDir            Directory colors 
  15897.         InputColors         Input colors 
  15898.         ListColors          Colors used in the LIST display 
  15899.         SelectColors        Colors used in the SELECT display 
  15900.         StdColors           Standard display colors 
  15901.  
  15902.  
  15903. ΓòÉΓòÉΓòÉ 7.2.3.1. ColorDIR (directive) ΓòÉΓòÉΓòÉ
  15904.  
  15905. ColorDir = ext1 ext2 ...:colora;ext3 ext4... :colorb; ...: Sets the directory 
  15906. colors used by DIR.  The format is the same as that used for the COLORDIR 
  15907. environment variable.  See the Color-Coded Directories section of the DIR 
  15908. command for a detailed explanation. 
  15909.  
  15910.  
  15911. ΓòÉΓòÉΓòÉ 7.2.3.2. InputColors ΓòÉΓòÉΓòÉ
  15912.  
  15913. InputColors = Color:  Sets the colors used for command-line input.  This 
  15914. setting is useful for making your input stand out from the normal output. 
  15915.  
  15916.  
  15917. ΓòÉΓòÉΓòÉ 7.2.3.3. ListColors ΓòÉΓòÉΓòÉ
  15918.  
  15919. ListColors = Color:  Sets the colors used by the LIST command.  If this 
  15920. directive is not used, LIST will use the current default colors set by the CLS 
  15921. or COLOR command or by the StdColors directive. 
  15922.  
  15923.  
  15924. ΓòÉΓòÉΓòÉ 7.2.3.4. SelectColors ΓòÉΓòÉΓòÉ
  15925.  
  15926. SelectColors = Color:  Sets the colors used by the SELECT command.  If this 
  15927. directive is not used, SELECT will use the current default colors set by the 
  15928. CLS or COLOR command or by the StdColors directive. 
  15929.  
  15930.  
  15931. ΓòÉΓòÉΓòÉ 7.2.3.5. StdColors ΓòÉΓòÉΓòÉ
  15932.  
  15933. StdColors = Color:  Sets the standard colors to be used when CLS is used 
  15934. without a color specification, and for LIST and SELECT if ListColors and 
  15935. SelectColors are not used.  Using this directive is similar to placing a COLOR 
  15936. command in the TCSTART file. 
  15937.  
  15938.  
  15939. ΓòÉΓòÉΓòÉ 7.2.4. Key Mapping Directives ΓòÉΓòÉΓòÉ
  15940.  
  15941. These directives allow you to change the keys used for command-line editing and 
  15942. other internal functions.  They cannot be entered via the configuration 
  15943. notebook; you must enter them manually (see TCMDOS2.INIfor details). 
  15944.  
  15945. They are divided into five types, depending on the context in which the keys 
  15946. are used.  For a discussion and list of directives for each type see: 
  15947.  
  15948.             General Input Keys 
  15949.             Command-Line Editing Keys 
  15950.             Popup Window Keys 
  15951.             LIST Keys 
  15952.             Scrollback Buffer Keys 
  15953.  
  15954.  Using a key mapping directive allows you to assign a different or additional 
  15955.  key to perform the function described.  For example, to use function key F3 to 
  15956.  invoke the HELP facility (normally invoked with F1): 
  15957.  
  15958.           Help = F3
  15959.  
  15960.  Any directive can be used multiple times to assign multiple keys to the same 
  15961.  function.  For example: 
  15962.  
  15963.           ListFind = F         ;F does a find in LIST
  15964.           ListFind = F4        ;F4 also does a find in LIST
  15965.  
  15966.  Use some care when you reassign keystrokes.  If you assign a default key to a 
  15967.  different function, it will no longer be available for its original use.  For 
  15968.  example, if you assign F1 to the AddFile directive (a part of filename 
  15969.  completion), the F1 key will no longer invoke the help system, so you will 
  15970.  probably want to assign a different key to Help. 
  15971.  
  15972.  See Keys and Key Names before using the key mapping directives. 
  15973.  
  15974.  Key assignments are processed before looking for keystroke aliases.  For 
  15975.  example, if you assign Shift-F1 to HELP and also assign Shift- F1 to a key 
  15976.  alias, the key alias will be ignored. 
  15977.  
  15978.  Assigning a new keystroke for a function does not deassign the default 
  15979.  keystroke for the same function.  If you want to deassign one of the default 
  15980.  keys, use the NormalKey, NormalEditKey, NormalHWinKey, or NormalListKey 
  15981.  directive. 
  15982.  
  15983.  
  15984. ΓòÉΓòÉΓòÉ 7.2.4.1. General Input Keys ΓòÉΓòÉΓòÉ
  15985.  
  15986. These directives apply to all input.  They are in effect whenever Take Command 
  15987. requests input from the keyboard, including during command-line editing and the 
  15988. DESCRIBE, ESET, INPUT, LIST, and SELECT commands.  The general input keys are: 
  15989.  
  15990.         Backspace           Deletes the character to the left of the cursor 
  15991.         BeginLine           Moves the cursor to the start of the line 
  15992.         Del                 Deletes the character at the cursor 
  15993.         DelToBeginning      Deletes from the cursor to the start of the line 
  15994.         DelToEnd            Deletes from the cursor to the end of the line 
  15995.         DelWordLeft         Deletes the word to the left of the cursor 
  15996.         DelWordRight        Deletes the word to the right of the cursor 
  15997.         Down                Moves the cursor or scrolls the display down 
  15998.         EndLine             Moves the cursor to the end of the line 
  15999.         EraseLine           Deletes the entire line 
  16000.         ExecLine            Executes or accepts a line 
  16001.         Ins                 Toggles insert / overstrike mode 
  16002.         Left                Moves the cursor or scrolls the display left 
  16003.         NormalKey           Deassigns a key 
  16004.         Right               Moves the cursor or scrolls the display right 
  16005.         Up                  Moves the cursor or scrolls the display up 
  16006.         WordLeft            Moves the cursor left one word 
  16007.         WordRight           Moves the cursor right one word 
  16008.  
  16009.  
  16010. ΓòÉΓòÉΓòÉ 7.2.4.1.1. Backspace ΓòÉΓòÉΓòÉ
  16011.  
  16012. Backspace = Key (Bksp):  Deletes the character to the left of the cursor. 
  16013.  
  16014.  
  16015. ΓòÉΓòÉΓòÉ 7.2.4.1.2. BeginLine ΓòÉΓòÉΓòÉ
  16016.  
  16017. BeginLine = Key (Home):  Moves the cursor to the beginning of the line. 
  16018.  
  16019.  
  16020. ΓòÉΓòÉΓòÉ 7.2.4.1.3. Del (directive) ΓòÉΓòÉΓòÉ
  16021.  
  16022. Del = Key (Del):  Deletes the character at the cursor. 
  16023.  
  16024.  
  16025. ΓòÉΓòÉΓòÉ 7.2.4.1.4. DelToBeginning ΓòÉΓòÉΓòÉ
  16026.  
  16027. DelToBeginning = Key (Ctrl-Home):  Deletes from the cursor to the start of the 
  16028. line. 
  16029.  
  16030.  
  16031. ΓòÉΓòÉΓòÉ 7.2.4.1.5. DelToEnd ΓòÉΓòÉΓòÉ
  16032.  
  16033. DelToEnd = Key (Ctrl-End):  Deletes from the cursor to the end of the line. 
  16034.  
  16035.  
  16036. ΓòÉΓòÉΓòÉ 7.2.4.1.6. DelWordLeft ΓòÉΓòÉΓòÉ
  16037.  
  16038. DelWordLeft = Key (Ctrl-L):  Deletes the word to the left of the cursor. 
  16039.  
  16040.  
  16041. ΓòÉΓòÉΓòÉ 7.2.4.1.7. DelWordRight ΓòÉΓòÉΓòÉ
  16042.  
  16043. DelWordRight = Key (Ctrl-R, Ctrl-Bksp):  Deletes the word to the right of the 
  16044. cursor.  See ClearKeyMap if you need to remove the default mapping of Ctrl-Bksp 
  16045. to this function. 
  16046.  
  16047.  
  16048. ΓòÉΓòÉΓòÉ 7.2.4.1.8. Down ΓòÉΓòÉΓòÉ
  16049.  
  16050. Down = Key (Down):  Scrolls the display down one line in LIST; moves the cursor 
  16051. down one line in SELECT and in the command-line history, directory history, or 
  16052. %@SELECT window. 
  16053.  
  16054.  
  16055. ΓòÉΓòÉΓòÉ 7.2.4.1.9. EndLine ΓòÉΓòÉΓòÉ
  16056.  
  16057. EndLine = Key (End):  Moves the cursor to the end of the line. 
  16058.  
  16059.  
  16060. ΓòÉΓòÉΓòÉ 7.2.4.1.10. EraseLine ΓòÉΓòÉΓòÉ
  16061.  
  16062. EraseLine = Key (Esc):  Deletes the entire line. 
  16063.  
  16064.  
  16065. ΓòÉΓòÉΓòÉ 7.2.4.1.11. ExecLine ΓòÉΓòÉΓòÉ
  16066.  
  16067. ExecLine = Key (Enter):  Executes or accepts a line. 
  16068.  
  16069.  
  16070. ΓòÉΓòÉΓòÉ 7.2.4.1.12. Ins ΓòÉΓòÉΓòÉ
  16071.  
  16072. Ins = Key (Ins):  Toggles insert / overstrike mode during line editing. 
  16073.  
  16074.  
  16075. ΓòÉΓòÉΓòÉ 7.2.4.1.13. Left ΓòÉΓòÉΓòÉ
  16076.  
  16077. Left = Key (Left):  Moves the cursor left one character on the input line; 
  16078. scrolls the display left 8 columns in LIST; scrolls the display left 4 columns 
  16079. in the command- line, directory history, or %@SELECT window. 
  16080.  
  16081.  
  16082. ΓòÉΓòÉΓòÉ 7.2.4.1.14. NormalKey ΓòÉΓòÉΓòÉ
  16083.  
  16084. NormalKey = Key:  Deassigns a general input key in order to disable the usual 
  16085. meaning of the key within Take Command and/or make it available for keystroke 
  16086. aliases.  This will make the keystroke operate as a "normal" key with no 
  16087. special function.  For example: 
  16088.  
  16089.         NormalKey = Ctrl-End
  16090.  
  16091. will disable Ctrl-End, which is the standard "delete to end of line" key. 
  16092. Ctrl-End could then be assigned to a keystroke alias.  Another key could be 
  16093. assigned the "delete to end of line" function with the DelToEnd directive. 
  16094.  
  16095.  
  16096. ΓòÉΓòÉΓòÉ 7.2.4.1.15. Right ΓòÉΓòÉΓòÉ
  16097.  
  16098. Right = Key (Right):  Moves the cursor right one character on the input line; 
  16099. scrolls the display right 8 columns in LIST; scrolls the display right 4 
  16100. columns in the command- line history, directory history, or %@SELECT window. 
  16101.  
  16102.  
  16103. ΓòÉΓòÉΓòÉ 7.2.4.1.16. Up ΓòÉΓòÉΓòÉ
  16104.  
  16105. Up = Key (Up):  Scrolls the display up one line in LIST; moves the cursor up 
  16106. one line in SELECT and in the command-line history, directory history, or 
  16107. %@SELECT window. 
  16108.  
  16109.  
  16110. ΓòÉΓòÉΓòÉ 7.2.4.1.17. WordLeft ΓòÉΓòÉΓòÉ
  16111.  
  16112. WordLeft = Key (Ctrl-Left):  Moves the cursor left one word; scrolls the 
  16113. display left 40 columns in LIST. 
  16114.  
  16115.  
  16116. ΓòÉΓòÉΓòÉ 7.2.4.1.18. WordRight ΓòÉΓòÉΓòÉ
  16117.  
  16118. WordRight = Key (Ctrl-Right):  Moves the cursor right one word; scrolls the 
  16119. display right 40 columns in LIST. 
  16120.  
  16121.  
  16122. ΓòÉΓòÉΓòÉ 7.2.4.2. Command-Line Editing Keys ΓòÉΓòÉΓòÉ
  16123.  
  16124. These directives apply only to command-line editing.  They are only effective 
  16125. at the Take Command prompt.  The command-line editing keys are: 
  16126.  
  16127.         AddFile             Keeps filename completion entry and adds another 
  16128.         AliasExpand         Expands aliases on the command line 
  16129.         CommandEscape       Allows direct entry of a keystroke 
  16130.         DelHistory          Deletes a history list entry 
  16131.         EndHistory          Displays the last entry in the history list 
  16132.         Help                Invokes this help system 
  16133.         LineToEnd           Copies command to end of history list 
  16134.         NextFile            Gets the next matching filename 
  16135.         NextHistory         Recalls the next command from the history 
  16136.         NormalEditKey       Deassigns a command-line editing key 
  16137.         PopFile             Opens the filename completion window 
  16138.         PrevFile            Gets the previous matching filename 
  16139.         PrevHistory         Recalls the previous command from the history 
  16140.         SaveHistory         Saves the command line without executing it 
  16141.  
  16142.  
  16143. ΓòÉΓòÉΓòÉ 7.2.4.2.1. AddFile ΓòÉΓòÉΓòÉ
  16144.  
  16145. AddFile = Key (Ctrl-Shift-Tab):  Keeps the current filename completion entry 
  16146. and inserts the next matching name. 
  16147.  
  16148.  
  16149. ΓòÉΓòÉΓòÉ 7.2.4.2.2. AliasExpand ΓòÉΓòÉΓòÉ
  16150.  
  16151. AddFile = Key (Ctrl-F):  Expands all aliases in the current command line 
  16152. without executing them. 
  16153.  
  16154.  
  16155. ΓòÉΓòÉΓòÉ 7.2.4.2.3. CommandEscape ΓòÉΓòÉΓòÉ
  16156.  
  16157. CommandEscape = Key (Alt-255):  Allows direct entry of a keystroke that would 
  16158. normally be handled by the command line editor (e.g., Tab or Ctrl-D). 
  16159.  
  16160.  
  16161. ΓòÉΓòÉΓòÉ 7.2.4.2.4. DelHistory ΓòÉΓòÉΓòÉ
  16162.  
  16163. DelHistory = Key (Ctrl-D):  Deletes the displayed history list entry and 
  16164. displays the previous entry. 
  16165.  
  16166.  
  16167. ΓòÉΓòÉΓòÉ 7.2.4.2.5. EndHistory ΓòÉΓòÉΓòÉ
  16168.  
  16169. EndHistory = Key (Ctrl-E):  Displays the last entry in the history list. 
  16170.  
  16171.  
  16172. ΓòÉΓòÉΓòÉ 7.2.4.2.6. Help ΓòÉΓòÉΓòÉ
  16173.  
  16174. Help = Key (F1):  Invokes the HELP facility. 
  16175.  
  16176.  
  16177. ΓòÉΓòÉΓòÉ 7.2.4.2.7. LineToEnd ΓòÉΓòÉΓòÉ
  16178.  
  16179. LineToEnd = Key (Ctrl-Enter):  Copies the current command line to the end of 
  16180. the history list, then executes it. 
  16181.  
  16182.  
  16183. ΓòÉΓòÉΓòÉ 7.2.4.2.8. NextFile ΓòÉΓòÉΓòÉ
  16184.  
  16185. NextFile = Key (F9, Tab):  Gets the next matching filename during filename 
  16186. completion. See ClearKeyMap if you need to remove the default mapping of Tab to 
  16187. this function. 
  16188.  
  16189.  
  16190. ΓòÉΓòÉΓòÉ 7.2.4.2.9. NextHistory ΓòÉΓòÉΓòÉ
  16191.  
  16192. NextHistory = Key (Ctrl-Down):  Recalls the next command from the command 
  16193. history.  Also see Scrolling and History Keystrokes and the SwapScrollKeys 
  16194. directive. 
  16195.  
  16196.  
  16197. ΓòÉΓòÉΓòÉ 7.2.4.2.10. NormalEditKey ΓòÉΓòÉΓòÉ
  16198.  
  16199. NormalEditKey = Key:  Deassigns a command-line editing key in order to disable 
  16200. the usual meaning of the key while editing a command line, and/or make it 
  16201. available for keystroke aliases.  For additional details see NormalKey. 
  16202.  
  16203.  
  16204. ΓòÉΓòÉΓòÉ 7.2.4.2.11. PopFile ΓòÉΓòÉΓòÉ
  16205.  
  16206. PopFile = Key (F7, Ctrl-Tab):  Opens the filename completion window.  You may 
  16207. not be able to use Ctrl-Tab, because not all systems recognize it as a 
  16208. keystroke.  See ClearKeyMap if you need to remove the default mapping of 
  16209. Ctrl-Tab to this function. 
  16210.  
  16211.  
  16212. ΓòÉΓòÉΓòÉ 7.2.4.2.12. PrevFile ΓòÉΓòÉΓòÉ
  16213.  
  16214. PrevFile = Key (F8, Shift-Tab):  Gets the previous matching filename during 
  16215. filename completion. See ClearKeyMap if you need to remove the default mapping 
  16216. of Shift-Tab to this function. 
  16217.  
  16218.  
  16219. ΓòÉΓòÉΓòÉ 7.2.4.2.13. PrevHistory ΓòÉΓòÉΓòÉ
  16220.  
  16221. PrevHistory = Key (Ctrl-Up):  Recalls the previous command from the command 
  16222. history.  Also see Scrolling and History Keystrokes and the SwapScrollKeys 
  16223. directive. 
  16224.  
  16225.  
  16226. ΓòÉΓòÉΓòÉ 7.2.4.2.14. SaveHistory ΓòÉΓòÉΓòÉ
  16227.  
  16228. SaveHistory = Key (Ctrl-K):  Saves the command line in the command history list 
  16229. without executing it. 
  16230.  
  16231.  
  16232. ΓòÉΓòÉΓòÉ 7.2.4.3. Scrollback Buffer Keys ΓòÉΓòÉΓòÉ
  16233.  
  16234. The following keys are also part of the command line editing group.  They are 
  16235. used to manipulate the scrollback buffer rather than to edit commands.  For 
  16236. additional information see Scrolling and History Keystrokes and the 
  16237. SwapScrollKeys directive. 
  16238.  
  16239. The scrollback buffer keys are: 
  16240.  
  16241.         ScrollUp            Scroll the buffer up one line 
  16242.         ScrollDown          Scroll the buffer down one line 
  16243.         ScrollPgUp          Scroll the buffer up one page 
  16244.         ScrollPgDn          Scroll the buffer down one page 
  16245.  
  16246.  
  16247. ΓòÉΓòÉΓòÉ 7.2.4.3.1. ScrollUp ΓòÉΓòÉΓòÉ
  16248.  
  16249. ScrollUp = Key (Up):  Scrolls the Take Command scrollback buffer up one line. 
  16250.  
  16251.  
  16252. ΓòÉΓòÉΓòÉ 7.2.4.3.2. ScrollDown ΓòÉΓòÉΓòÉ
  16253.  
  16254. ScrollDown = Key (Down):  Scrolls the Take Command scrollback buffer down one 
  16255. line. 
  16256.  
  16257.  
  16258. ΓòÉΓòÉΓòÉ 7.2.4.3.3. ScrollPageUp ΓòÉΓòÉΓòÉ
  16259.  
  16260. ScrollPgUp = Key (PgUp):  Scrolls the Take Command scrollback buffer up one 
  16261. page. 
  16262.  
  16263.  
  16264. ΓòÉΓòÉΓòÉ 7.2.4.3.4. ScrollPageDown ΓòÉΓòÉΓòÉ
  16265.  
  16266. ScrollPgDn = Key (PgDn):  Scrolls the Take Command scrollback buffer down one 
  16267. page. 
  16268.  
  16269.  
  16270. ΓòÉΓòÉΓòÉ 7.2.4.4. Popup Window Keys ΓòÉΓòÉΓòÉ
  16271.  
  16272. The following directives apply to popup windows, including the command history 
  16273. window, the directory history window, the file completion window, the extended 
  16274. directory search window, and the @SELECT window. 
  16275.  
  16276. The Popup window keys are: 
  16277.  
  16278.         DirWinOpen          Opens the directory history window 
  16279.         HistWinOpen         Opens the command history window 
  16280.         NormalPopupKey      Deassigns a popup window key 
  16281.         PopupWinBegin       Moves to the first line of the popup window 
  16282.         PopupWinDel         Deletes a line from within a popup window 
  16283.         PopupWinEdit        Moves a line from a popup window to the prompt 
  16284.         PopupWinEnd         Moves to the last line of a popup window 
  16285.         PopupWinExec        Executes the selected line in a popup window 
  16286.  
  16287.  
  16288. ΓòÉΓòÉΓòÉ 7.2.4.4.1. ┬áDirWinOpen ΓòÉΓòÉΓòÉ
  16289.  
  16290. DirWinOpen = Key (F6):  Opens the directory history window while at the command 
  16291. line.  Also see Scrolling and History Keystrokes. 
  16292.  
  16293.  
  16294. ΓòÉΓòÉΓòÉ 7.2.4.4.2. HistWinOpen ΓòÉΓòÉΓòÉ
  16295.  
  16296. HistWinOpen = Key (Ctrl-PgUp):  Brings up the history window while at the 
  16297. command line.  Also see Scrolling and History Keystrokes and the SwapScrollKeys 
  16298. directive. 
  16299.  
  16300.  
  16301. ΓòÉΓòÉΓòÉ 7.2.4.4.3. NormalPopupKey ΓòÉΓòÉΓòÉ
  16302.  
  16303. NormalPopupKey = Key:  Deassigns a popup window key in order to disable the 
  16304. usual meaning of the key within the popup window.  For additional details see 
  16305. NormalKey. 
  16306.  
  16307.  
  16308. ΓòÉΓòÉΓòÉ 7.2.4.4.4. PopupWinBegin ΓòÉΓòÉΓòÉ
  16309.  
  16310. PopupWinBegin = Key (Ctrl-PgUp):  Moves to the first item in the list when in a 
  16311. popup window. 
  16312.  
  16313.  
  16314. ΓòÉΓòÉΓòÉ 7.2.4.4.5. PopupWinDel ΓòÉΓòÉΓòÉ
  16315.  
  16316. PopupWinDel = Key (Ctrl-D):  Deletes a line from within the command history or 
  16317. directory history window. 
  16318.  
  16319.  
  16320. ΓòÉΓòÉΓòÉ 7.2.4.4.6. PopupWinEdit ΓòÉΓòÉΓòÉ
  16321.  
  16322. PopupWinEdit = Key (Ctrl-Enter):  Moves a line from the command history or 
  16323. directory history window to the prompt for editing. 
  16324.  
  16325.  
  16326. ΓòÉΓòÉΓòÉ 7.2.4.4.7. PopupWinEnd ΓòÉΓòÉΓòÉ
  16327.  
  16328. PopupWinEnd = Key (Ctrl-PgDn):  Moves to the last item in the list when in a 
  16329. popup window. 
  16330.  
  16331.  
  16332. ΓòÉΓòÉΓòÉ 7.2.4.4.8. PopupWinExec ΓòÉΓòÉΓòÉ
  16333.  
  16334. PopupWinExec = Key (Enter):  Selects the current item and closes the window. 
  16335.  
  16336.  
  16337. ΓòÉΓòÉΓòÉ 7.2.4.5. LIST Keys ΓòÉΓòÉΓòÉ
  16338.  
  16339. These directives are effective only inside the LIST command.  The LIST keys 
  16340. are: 
  16341.  
  16342.         ListExit            Exits the current file 
  16343.         ListFind            Prompts and searches for a string 
  16344.         ListFindReverse     Prompts and searches backwards 
  16345.         ListHex             Toggles hexadecimal display mode 
  16346.         ListHighBit         Toggles LIST's "strip high bit" option 
  16347.         ListInfo            Displays information about the current file 
  16348.         ListNext            Finds the next matching string 
  16349.         ListPrevious        Finds the previous matching string 
  16350.         ListPrint           Prints the file on LPT1 
  16351.         ListWrap            Toggles LIST's wrap option 
  16352.         NormalListKey       Deassigns a LIST key 
  16353.  
  16354.  
  16355. ΓòÉΓòÉΓòÉ 7.2.4.5.1. ListExit ΓòÉΓòÉΓòÉ
  16356.  
  16357. ListExit = Key (Esc):  Exits the LIST command. 
  16358.  
  16359.  
  16360. ΓòÉΓòÉΓòÉ 7.2.4.5.2. ListFind ΓòÉΓòÉΓòÉ
  16361.  
  16362. ListFind = Key (F):  Prompts and searches for a string. 
  16363.  
  16364.  
  16365. ΓòÉΓòÉΓòÉ 7.2.4.5.3. ListFindReverse ΓòÉΓòÉΓòÉ
  16366.  
  16367. ListFindReverse = Key (Ctrl-F):  Prompts and searches backward for a string. 
  16368.  
  16369.  
  16370. ΓòÉΓòÉΓòÉ 7.2.4.5.4. ListHex ΓòÉΓòÉΓòÉ
  16371.  
  16372. ListHex = Key (X):  Toggles hexadecimal display mode. 
  16373.  
  16374.  
  16375. ΓòÉΓòÉΓòÉ 7.2.4.5.5. ListHighBit ΓòÉΓòÉΓòÉ
  16376.  
  16377. ListHighBit = Key (H):  Toggles LIST's "strip high bit" option, which can aid 
  16378. in displaying files from certain word processors. 
  16379.  
  16380.  
  16381. ΓòÉΓòÉΓòÉ 7.2.4.5.6. ListInfo ΓòÉΓòÉΓòÉ
  16382.  
  16383. ListInfo = Key (I):  Displays information about the current file. 
  16384.  
  16385.  
  16386. ΓòÉΓòÉΓòÉ 7.2.4.5.7. ListNext ΓòÉΓòÉΓòÉ
  16387.  
  16388. ListNext = Key (N):  Finds the next matching string. 
  16389.  
  16390.  
  16391. ΓòÉΓòÉΓòÉ 7.2.4.5.8. ListPrevious ΓòÉΓòÉΓòÉ
  16392.  
  16393. ListPrevious = Key (Ctrl-N):  Finds the previous matching string. 
  16394.  
  16395.  
  16396. ΓòÉΓòÉΓòÉ 7.2.4.5.9. ListPrint ΓòÉΓòÉΓòÉ
  16397.  
  16398. ListPrint = Key (P):  Prints the file. 
  16399.  
  16400.  
  16401. ΓòÉΓòÉΓòÉ 7.2.4.5.10. ListWrap ΓòÉΓòÉΓòÉ
  16402.  
  16403. ListWrap = Key (W):  Toggles LIST's wrap option on and off. The wrap option 
  16404. wraps text at the right margin. 
  16405.  
  16406.  
  16407. ΓòÉΓòÉΓòÉ 7.2.4.5.11. NormalListKey ΓòÉΓòÉΓòÉ
  16408.  
  16409. NormalListKey = Key:  Deassigns a LIST key in order to disable the usual 
  16410. meaning of the key within LIST.  For additional details see NormalKey. 
  16411.  
  16412.  
  16413. ΓòÉΓòÉΓòÉ 7.2.5. Advanced Directives ΓòÉΓòÉΓòÉ
  16414.  
  16415. These directives are generally used for unusual circumstances, or for 
  16416. diagnosing problems.  Most often they are not needed in normal use.  They 
  16417. cannot be entered via the configuration notebook; you must enter them manually 
  16418. (see TCMDOS2.INI for details). 
  16419.  
  16420.         ClearKeyMap         Clear default key mappings 
  16421.         Debug               Set debugging options 
  16422.         Include             Include text from a file in the current .INI file 
  16423.  
  16424.  
  16425. ΓòÉΓòÉΓòÉ 7.2.5.1. ClearKeyMap ΓòÉΓòÉΓòÉ
  16426.  
  16427. ClearKeyMap:  Clears all current key mappings. ClearKeyMap is a special 
  16428. directive which has no value or "=" after it.  Use ClearKeyMap to make one of 
  16429. the keys in the default map (Tab, Shift-Tab, Ctrl-Tab, or Ctrl-Bksp) available 
  16430. for a keystroke alias.  ClearKeyMap should appear before any other key mapping 
  16431. directives.  If you want to clear some but not all of the default mappings, use 
  16432. ClearKeyMap, then recreate the mappings you want to retain (e.g., with 
  16433. "NextFile=Tab", etc.). 
  16434.  
  16435.  
  16436. ΓòÉΓòÉΓòÉ 7.2.5.2. Debug ΓòÉΓòÉΓòÉ
  16437.  
  16438. Debug = nnnn (0):  Controls certain debugging options which can assist you in 
  16439. tracking down unusual problems.  Use the following values for Debug; to select 
  16440. more than one option, add the values together: 
  16441.  
  16442.     1   During the startup process, display the complete command tail passed to 
  16443.         Take Command, then wait for a keystroke. 
  16444.  
  16445.     2   Include the product name with each error message displayed by Take 
  16446.         Command.  This may be useful if you are unsure of the origin of a 
  16447.         particular error message. 
  16448.  
  16449.  Also see the batch file debugger, a separate and unrelated facility for 
  16450.  stepping through batch files. 
  16451.  
  16452.  
  16453. ΓòÉΓòÉΓòÉ 7.2.5.3. Include ΓòÉΓòÉΓòÉ
  16454.  
  16455. Include = File:  Include the text from the named file at this point in the 
  16456. processing of the current .INI file.  Use this option to share a file of 
  16457. directives between several JP Software products.  The text in the named file is 
  16458. processed just as if it were part of the original .INI file.  When the include 
  16459. file is finished, processing resumes at the point where it left off in the 
  16460. original file.  The included file may contain any valid directive for the 
  16461. current section, but may not contain a section name.  Includes may be nested up 
  16462. to three levels deep (counting the original file as level 1).  You must 
  16463. maintain include files manually ╨º the configuration dialogs modify the original 
  16464. .INI file only, and do not update included files. 
  16465.  
  16466.  
  16467. ΓòÉΓòÉΓòÉ 8. Setup and Troubleshooting ΓòÉΓòÉΓòÉ
  16468.  
  16469. To install Take Command, see the Introduction and Installation Guide.  This 
  16470. section will help you if you have difficulties with Take Command once you have 
  16471. finished the initial installation.  The topics included in this section are: 
  16472.  
  16473.     Starting Take Command 
  16474.             includes information about creating new desktop objects for Take 
  16475.             Command, options available during startup and on the command line, 
  16476.             and where Take Command files should be placed on your hard disk. 
  16477.  
  16478.     The Take Command Help System 
  16479.             describes this online help and explains how to configure it. 
  16480.  
  16481.     Error Messages 
  16482.             contains a list of the error messages that Take Command may 
  16483.             display, what each means, and how to correct each possible error. 
  16484.  
  16485.     Troubleshooting, Service, and Support 
  16486.             explains how to isolate problems you may encounter in using Take 
  16487.             Command and how to obtain technical support from JP Software. 
  16488.  
  16489.  
  16490. ΓòÉΓòÉΓòÉ 8.1. Starting Take Command ΓòÉΓòÉΓòÉ
  16491.  
  16492. This section covers starting Take Command, including: 
  16493.  
  16494.          Creating Desktop Objects for Take Command 
  16495.  
  16496.          Startup and Command Line Options 
  16497.  
  16498.  
  16499. ΓòÉΓòÉΓòÉ 8.1.1. Creating Desktop Objects for Take Command ΓòÉΓòÉΓòÉ
  16500.  
  16501. This section assumes you are running OS/2 Warp 4, with the default desktop 
  16502. shell and a standard OS/2 desktop.  If you are using an earlier version of OS/2 
  16503. or a different shell, or have altered your OS/2 desktop configuration 
  16504. substantially, you will need to take those changes into account as you read the 
  16505. instructions below. 
  16506.  
  16507. The Take Command for OS/2 installation program normally creates a desktop 
  16508. folder which contains objects to start Take Command for OS/2 and its online 
  16509. help.  If you want to create additional objects in other folders, or directly 
  16510. on the desktop, click mouse button 2 on the installed Take Command for OS/2 
  16511. object, select Copy on the popup menu, and copy the object to another location 
  16512. as desired.  You can then alter the properties of the new object if you wish. 
  16513.  
  16514. If you need to create a new object, switch to the folder where you want the 
  16515. object to appear and either copy an existing object (use the Copy or Create 
  16516. Another selection on the object's popup menu) or drag a Program Template in 
  16517. from the Templates folder.  The new object's Properties notebook should open 
  16518. automatically.  Use the Program page of the notebook to set the file name to 
  16519. d:\path\TCMDOS2.EXE (use the appropriate drive and path for your system).  Then 
  16520. modify the parameters and startup directory as required. 
  16521.  
  16522. No additional settings are required; the only required item is the drive and 
  16523. path for TCMDOS2.EXE.  However, you can put command-line switches, a command, 
  16524. or the name of a batch file in the Parameters field for any object. This allows 
  16525. you to run specific commands or set configuration options when you start Take 
  16526. Command for OS/2 from that object.  For details on the command line options 
  16527. available, see Startup and Command Line Options. 
  16528.  
  16529. For more information on creating and configuring desktop objects see your OS/2 
  16530. documentation. 
  16531.  
  16532.  
  16533. ΓòÉΓòÉΓòÉ 8.1.2. Startup and Command Line Options ΓòÉΓòÉΓòÉ
  16534.  
  16535. When you configure a Take Command object, place the full path and name for the 
  16536. TCMDOS2.EXE file in the Path and File Name field on the Program page of the 
  16537. object's Settings notebook, and put any startup options that you want passed to 
  16538. Take Command (e.g., the name of a startup batch file) in the Parameters field. 
  16539. (To bring up the Settings notebook click on the object with mouse button 2, 
  16540. then click on the Settings item on the popup menu.)  For example: 
  16541.  
  16542.         Path and File Name:    C:\TCMDOS2\TCMDOS2.EXE
  16543.         Parameters:            C:\GO.BAT
  16544.         Working directory:     C:\
  16545.  
  16546. When Take Command starts it automatically runs the optional TCSTART batch file. 
  16547. You can use this file to load aliases and environment variables and otherwise 
  16548. initialize Take Command. 
  16549.  
  16550. You can also place the name of a batch file, internal or external command, or 
  16551. alias at the end of the Parameters field for any object (as shown in the 
  16552. example above).  The batch file, command, or alias will be executed after 
  16553. TCSTART but before the first prompt is displayed. 
  16554.  
  16555. Each OS/2 program -- including Take Command -- has a command line which can be 
  16556. used to pass information to the program when it starts.  When Take Command is 
  16557. started from an object on the OS/2 desktop, the command line is entered in the 
  16558. Parameters field on the Program page of the Settings notebook for the Take 
  16559. Command object. 
  16560.  
  16561. The Take Command startup command line does not need to contain any information. 
  16562. When invoked with an empty command line, Take Command will configure itself 
  16563. from the TCMDOS2.INI file, run TCSTART, and then display a prompt and wait for 
  16564. you to type a command.  However, you may add information to the startup command 
  16565. line that will affect the way Take Command operates. 
  16566.  
  16567. Take Command recognizes several optional fields on the command line. If you use 
  16568. more than one of these fields, you should use them in the order that they are 
  16569. described below.  If you do not do so, you may find that they do not operate 
  16570. properly. 
  16571.  
  16572. The following options can be included are: 
  16573.  
  16574. @d:\path\inifile:  This option sets the path and name of the TCMDOS2.INI file. 
  16575. You do not need this option if you aren't using a TCMD.INI file, or if the file 
  16576. is named TCMDOS2.INI and is stored in the same subdirectory as TCMDOS2.EXE. 
  16577.  
  16578. //iniline:  This option tells Take Command to treat the text appearing between 
  16579. the // and the next space or tab as a TCMDOS2.INI directive. The directive 
  16580. should be in the same format as a line in the [TakeCommand] section of 
  16581. TCMDOS2.INI, but it may not contain spaces, tabs, or comments. This option 
  16582. overrides any corresponding directive in your TCMDOS2.INI file.  This option 
  16583. may be repeated.  It is a convenient way to place a few simple directives on 
  16584. the startup line without having to modify or create a new .INI file. 
  16585.  
  16586. /L, /LA, /LD, and /LH:  These options force Take Command to use a local alias, 
  16587. directory history, and / or command history list. This allows you to use global 
  16588. aliases as the default, but start a specific Take Command session with local 
  16589. aliases or history.  See ALIAS for details on local and global aliases, 
  16590. Directory History Window for details on local and global directory history, and 
  16591. Command History for details on local and global command history.  /LA forces 
  16592. local aliases, /LD forces local directory history, /LH forces local command 
  16593. history, and /L forces all three. 
  16594.  
  16595. [/C] command:  This option tells Take Command to run a command when it starts. 
  16596. The command will be run after TCSTART has been executed and before any command 
  16597. prompt is displayed.  It can be any valid internal or external command, batch 
  16598. file, or alias; you may include multiple commands by using the command 
  16599. separator.  All other startup options must be placed before the command, 
  16600. because Take Command will treat characters after the command as part of the 
  16601. command and not as additional startup options. 
  16602.  
  16603. When the command is preceded by a /C, Take Command will execute the command and 
  16604. then exit and return to the parent program or the OS/2 desktop without 
  16605. displaying a prompt. 
  16606.  
  16607. For example, to execute any TCSTART file you have created, execute 
  16608. C:\STARTUP.BAT, and then display the prompt when the object starts: 
  16609.  
  16610.         Path and File Name:    C:\TCMDOS2\TCMDOS2.EXE
  16611.         Parameters:            C:\STARTUP.BAT
  16612.         Working directory:     C:\
  16613.  
  16614. To execute an internal or external command, an alias, or a batch file and then 
  16615. exit (return to the desktop) when it is done, place /Ccommand (rather than just 
  16616. command) as the last item in the Parameters field.  For example: 
  16617.  
  16618.         Path and File Name:    C:\TCMDOS2\TCMDOS2.EXE
  16619.         Parameters:            /C C:\STARTUP.BAT
  16620.         Working directory:     C:\
  16621.  
  16622.  
  16623. ΓòÉΓòÉΓòÉ 8.2. The Take Command Help System ΓòÉΓòÉΓòÉ
  16624.  
  16625. This online help system for Take Command covers all Take Command features and 
  16626. internal commands.  It includes reference information to assist you in using 
  16627. Take Command and developing batch files, and includes most -- but not all -- of 
  16628. the details which are included in the printed Take Command manuals. 
  16629.  
  16630. If you type part or all of a command on the line and then press F1, the help 
  16631. system will provide "context-sensitive" help by using the first word on the 
  16632. line as a help topic.  If it's a valid topic, you will see help for that topic 
  16633. automatically; if not, you will see the list of all help topics and you can 
  16634. pick the one you want. 
  16635.  
  16636. You can use this feature to obtain help on any topic -- not just on commands. 
  16637. For example, if you enter the command HELP _DISK you will see help for the 
  16638. _DISK internal variable. 
  16639.  
  16640. If you type the name of any internal command at the prompt, followed by a slash 
  16641. and a question mark [/?] like this: 
  16642.  
  16643.         copy /?
  16644.  
  16645. then you will see help for the command in a "quick-reference" style. 
  16646.  
  16647. The /? option may not work correctly if you have used an alias to redefine how 
  16648. an internal command operates.  To view the /? help for such a command you must 
  16649. add an asterisk to the beginning of the command to disable alias processing. 
  16650. For example, if you have defined this alias: 
  16651.  
  16652.         alias copy *copy /r
  16653.  
  16654. then the command COPY /? will be translated to COPY /R /?, which will not work 
  16655. properly (because the /? does not appear immediately after the command name). 
  16656. However, if you use *COPY /?, the alias will be ignored and the /? will work as 
  16657. you intended. 
  16658.  
  16659. The Take Command help system uses OS/2's VIEW.EXE to display help text.  Once 
  16660. you've started the help system with HELP or F1, you can use VIEW's standard 
  16661. keystrokes to navigate.  For more information, click on the Help menu at the 
  16662. top of the VIEW window. 
  16663.  
  16664. Configuring the Help System 
  16665.  
  16666. For the help system to work properly you must place the files TCMDOS2.INF (this 
  16667. help text) and TCMDOS2H.MSG (the "quick-help" text) in the proper directories. 
  16668. See your Introduction and Installation Guide for additional details. 
  16669.  
  16670. OS/2 includes many other help files.  For example, there is a complete 
  16671. reference to all internal and external commands in the reference book named 
  16672. CMDREF.INF.  You can specify a different set of help files or "books" to be 
  16673. opened when HELP or F1 is invoked with the HelpBook directive in TCMDOS2.INI, 
  16674. or the corresponding entry in the configuration notebook.  For example, to set 
  16675. up Take Command for OS/2 so that both the CMDREF book and Take Command for OS/2 
  16676. book are displayed when F1 is pressed, include the following directive in 
  16677. TCMDOS2.INI, or make the corresponding change in the configuration notebook: 
  16678.  
  16679.         HelpBook=TCMDOS2+CMDREF
  16680.  
  16681. When more than one book is listed in the HelpBook setting, the OS/2 help 
  16682. program will see the combined group as a single book.  The displayed Table of 
  16683. Contents will include the tables of contents from all the listed books, joined 
  16684. together as one group of topics with no divisions to show where one book ends 
  16685. and the next begins.  If any of the listed books are not available the help 
  16686. program will not start. 
  16687.  
  16688. The Take Command installation program sets up a separate object for Take 
  16689. Command help so that you can load the help file directly.  To create a similar 
  16690. object manually, use entries like this on the Program page of the object's 
  16691. Settings notebook: 
  16692.  
  16693.         Path and File Name:   VIEW.EXE
  16694.         Parameters:           TCMDOS2
  16695.         Working Directory:    d:\path
  16696.  
  16697. where "d:\path" is the directory where you installed Take Command for OS/2. 
  16698.  
  16699.  
  16700. ΓòÉΓòÉΓòÉ 8.3. Error Messages ΓòÉΓòÉΓòÉ
  16701.  
  16702. This section lists error messages generated by Take Command, and includes a 
  16703. recommended course of action for most errors.  If you are unable to resolve the 
  16704. problem, look through your Introduction and Installation Guide for any 
  16705. additional troubleshooting recommendations, then contact JP Software for 
  16706. technical support. 
  16707.  
  16708. Error messages relating to files are generally reports of errors returned by 
  16709. OS/2.  You may find some of these messages (for example, "Access denied") vague 
  16710. enough that they are not always helpful.  Take Command includes the file name 
  16711. in file error messages, but is often unable to determine a more accurate 
  16712. explanation of these errors.  The message shown is the best information 
  16713. available based on the error codes returned by OS/2. 
  16714.  
  16715. The following list includes all error messages, in alphabetical order: 
  16716.  
  16717. Access denied:  You tried to write to or erase a read-only file, rename a file 
  16718. or directory to an existing name, create a directory that already exists, 
  16719. remove a read-only directory or a directory with files or subdirectories still 
  16720. in it, or access a file in use by another program. 
  16721.  
  16722. Alias loop:  An alias refers back to itself either directly or indirectly 
  16723. (i.e., a = b = a), or aliases are nested more than 16 deep.  Correct your alias 
  16724. list. 
  16725.  
  16726. Already excluded files:  You used more than one exclude range in a command. 
  16727. Combine the exclusions into a single range. 
  16728.  
  16729. Bad disk unit:  Generally caused by a disk drive hardware failure. 
  16730.  
  16731. Batch file missing:  Take Command can't find the batch (.BTM or .CMD) file it 
  16732. was running.  It was either deleted, renamed, moved, or the disk was changed. 
  16733. Correct the problem and rerun the file. 
  16734.  
  16735. Can't COPY or MOVE file to itself:  You cannot COPY or MOVE a file to itself. 
  16736. Take Command attempts to perform full path and filename expansion before 
  16737. copying to help ensure that files aren't inadvertently destroyed. 
  16738.  
  16739. Can't create:  Take Command can't create the specified file. The disk may be 
  16740. full or write protected, or the file already exists and is read-only, or the 
  16741. root directory is full. 
  16742.  
  16743. Can't delete:  Take Command can't delete the specified file or directory.  The 
  16744. disk is probably write protected. 
  16745.  
  16746. Can't get directory:  Take Command can't read the directory. The disk drive is 
  16747. probably not ready. 
  16748.  
  16749. Can't install hook:  Take Command for OS/2 cannot install the operating system 
  16750. hooks required to support the KEYSTACK command.  The operating system may have 
  16751. been damaged or improperly installed, or there may be too few resources to 
  16752. support KEYSTACK. 
  16753.  
  16754. Can't make directory entry:  Take Command can't create the filename in the 
  16755. directory.  This is usually caused by a full root directory. Create a 
  16756. subdirectory and move some of the files to it. 
  16757.  
  16758. Can't open:  Take Command can't open the specified file. Either the file 
  16759. doesn't exist or the disk directory or File Allocation Table is damaged. 
  16760.  
  16761. Can't remove current directory:  You attempted to remove the current directory, 
  16762. which OS/2 does not allow.  Change to the parent directory and try again. 
  16763.  
  16764. CD-ROM door open or CD-ROM not ready:  The CD-ROM drive door is open, the power 
  16765. is off, or the drive is disconnected.  Correct the problem and try again. 
  16766.  
  16767. CD-ROM not High Sierra or ISO-9660:  The CD-ROM is not recognized as a data CD 
  16768. (it may be a music CD).  Put the correct CD in the drive and try again. 
  16769.  
  16770. Clipboard is empty or not text format:  You tried to retrieve some text from 
  16771. the OS/2 clipboard, but there is no text available.  Correct the contents of 
  16772. the clipboard and try again. 
  16773.  
  16774. Clipboard is in use by another program:  Take Command could not access the OS/2 
  16775. clipboard because another program was using it.  Wait until the clipboard is 
  16776. available, or complete any pending action in the other program, then try again. 
  16777.  
  16778. Command line too long:  A single command exceeded 1023 characters, or the 
  16779. entire command line exceeded 2047 characters, during alias and variable 
  16780. expansion.  Reduce the complexity of the command or use a batch file.  Also 
  16781. check for an alias which refers back to itself either directly or indirectly. 
  16782.  
  16783. Command only valid in batch file:  You have tried to use a batch file command, 
  16784. like DO or GOSUB, from the command line or in an alias.  A few commands can 
  16785. only be used in batch files (see the individual commands for details). 
  16786.  
  16787. Contents lost before copy:  COPY was appending files, and found one of the 
  16788. source files is the same as the destination.  That source file is skipped, and 
  16789. appending continues with the next file. 
  16790.  
  16791. Data error:  OS/2 can't read or write properly to the device. On a floppy 
  16792. drive, this error is usually caused by a defective floppy disk, dirty disk 
  16793. drive heads, or a misalignment between the heads on your drive and the drive on 
  16794. which the disk was created. On a hard drive, this error may indicate a drive 
  16795. that is too hot or too cold, or a hardware problem.  Retry the operation; if it 
  16796. fails again, correct the hardware or diskette problem. 
  16797.  
  16798. Directory stack empty:  POPD or DIRS can't find any entries in the directory 
  16799. stack. 
  16800.  
  16801. Disk is write protected:  The disk cannot be written to. Check the disk and 
  16802. remove the write-protect tab or close the write-protect window if necessary. 
  16803.  
  16804. Drive not ready -- close door:  The removable disk drive door is open.  Close 
  16805. the door and try again. 
  16806.  
  16807. Duplicate redirection:  You tried to redirect standard input, standard output, 
  16808. or stand error more than once in the same command. 
  16809.  
  16810. Environment already saved:  You have already saved the environment with a 
  16811. previous SETLOCAL command.  You cannot nest SETLOCAL / ENDLOCAL pairs. 
  16812.  
  16813. Error in command-line directive:  You used the //iniline option to place an 
  16814. .INI directive on the startup command line, but the directive is in error. 
  16815. Usually a more specific error message follows, and can be looked up in this 
  16816. list. 
  16817.  
  16818. Error on line [nnnn] of [filename]:  There is an error in your TCMDOS2.INI 
  16819. file. The following message explains the error in more detail.  Correct the 
  16820. line in error and restart Take Command for your change to take effect. 
  16821.  
  16822. Error reading:  OS/2 experienced an I/O error when reading from a device.  This 
  16823. is usually caused by a bad disk, a device not ready, or a hardware error. 
  16824.  
  16825. Error writing:  OS/2 experienced an I/O error when writing to a device.  This 
  16826. is usually caused by a full disk, a bad disk, a device not ready, or a hardware 
  16827. error. 
  16828.  
  16829. Exceeded batch nesting limit:  You have attempted to nest batch files more than 
  16830. 10 levels deep. 
  16831.  
  16832. File Allocation Table bad:  OS/2 can't access the FAT on the specified disk. 
  16833. This can be caused by a bad disk, a hardware error, or an unusual software 
  16834. interaction. 
  16835.  
  16836. File exists:  The requested output file already exists, and Take Command won't 
  16837. overwrite it. 
  16838.  
  16839. File is empty:  You attempted to LIST a file with no data (a zero-byte file). 
  16840.  
  16841. File not found:  Take Command couldn't find the specified file.  Check the 
  16842. spelling and path name. 
  16843.  
  16844. General failure:  This is usually a hardware problem, particularly a disk drive 
  16845. failure or a device not properly connected to a serial or parallel port.  Try 
  16846. to correct the problem, or reboot and try again. Also see Data error above. 
  16847.  
  16848. Include file not found:  You used the Include directive in the TCMDOS2.INI 
  16849. file, but the file you specified was not found or could not be opened. 
  16850.  
  16851. Include files nested too deep:  You used the Include directive in the 
  16852. TCMDOS2.INI file, and attempted to nest include files more than three levels 
  16853. deep. 
  16854.  
  16855. Infinite COPY or MOVE loop:  You tried to COPY or MOVE a directory to one of 
  16856. its own subdirectories and used the /S switch, so the command would run 
  16857. forever.  Correct the command and try again. 
  16858.  
  16859. Insufficient disk space:  COPY or MOVE ran out of room on the destination 
  16860. drive.  Remove some files and retry the operation. 
  16861.  
  16862. Invalid character value:  You gave an invalid value for a character directive 
  16863. in the TCMDOS2.INI file. 
  16864.  
  16865. Invalid choice value:  You gave an invalid value for a "choice" directive (one 
  16866. that accepts a choice from a list, like "Yes" or "No") in the TCMDOS2.INI file. 
  16867.  
  16868. Invalid color:  You gave an invalid value for a color directive in the 
  16869. TCMDOS2.INI file. 
  16870.  
  16871. Invalid count:  The character repeat count for KEYSTACK is incorrect. 
  16872.  
  16873. Invalid date:  An invalid date was entered.  Check the syntax and reenter. 
  16874.  
  16875. Invalid directive name:  Take Command can't recognize the name of a directive 
  16876. in your TCMDOS2.INI file. 
  16877.  
  16878. Invalid drive:  A bad or non-existent disk drive was specified. 
  16879.  
  16880. Invalid key name:  You tried to make an invalid key substitution in the 
  16881. TCMDOS2.INI file, or you used an invalid key name in a keystroke alias or 
  16882. command.  Correct the error and retry the operation. 
  16883.  
  16884. Invalid numeric value:  You gave an invalid value for a numeric directive in 
  16885. the TCMDOS2.INI file. 
  16886.  
  16887. Invalid parameter:  Take Command didn't recognize a parameter.  Check the 
  16888. syntax and spelling of the command you entered. 
  16889.  
  16890. Invalid path:  The specified path does not exist.  Check the disk specification 
  16891. and/or spelling. 
  16892.  
  16893. Invalid path or file name:  You used an invalid path or filename in a directive 
  16894. in the TCMDOS2.INI file. 
  16895.  
  16896. Invalid time:  An invalid time was entered.  Check the syntax and reenter. 
  16897.  
  16898. Keystroke substitution table full:  Take Command ran out of room to store 
  16899. keystroke substitutions entered in the TCMDOS2.INI file.  Reduce the number of 
  16900. key substitutions or contact JP Software or your dealer for assistance. 
  16901.  
  16902. Label not found:  A GOTO or GOSUB referred to a non-existent label. Check your 
  16903. batch file. 
  16904.  
  16905. Missing ENDTEXT:  A TEXT command is missing a matching ENDTEXT.  Check the 
  16906. batch file. 
  16907.  
  16908. Missing GOSUB:  Take Command cannot perform the RETURN command in a batch file. 
  16909. You tried to do a RETURN without a GOSUB, or your batch file has been 
  16910. corrupted. 
  16911.  
  16912. Missing SETLOCAL:  An ENDLOCAL was used without a matching SETLOCAL. 
  16913.  
  16914. No aliases defined:  You tried to display aliases but no aliases have been 
  16915. defined. 
  16916.  
  16917. No closing quote:  Take Command couldn't find a second matching back quote [`] 
  16918. or double-quote ["] on the command line. 
  16919.  
  16920. No expression:  The expression passed to the @EVAL variable function is empty. 
  16921. Correct the expression and retry the operation. 
  16922.  
  16923. No shared memory found:  The SHRALIAS command could not find any global alias 
  16924. list, history list, or directory history list to retain, because you executed 
  16925. the command from a session with local lists.  Start Take Command with at least 
  16926. one global list, then invoke SHRALIAS. 
  16927.  
  16928. Not an alias:  The specified alias is not in the alias list. 
  16929.  
  16930. Not in environment:  The specified variable is not in the environment. 
  16931.  
  16932. Not ready:  The specified device can't be accessed. 
  16933.  
  16934. Not same device:  This error usually appears in RENAME. You cannot rename a 
  16935. file to a different disk drive. 
  16936.  
  16937. Out of memory:  Take Command or OS/2 had insufficient memory to execute the 
  16938. last command.  Try to free some memory by closing other sessions.  If the error 
  16939. persists, contact JP Software for assistance. 
  16940.  
  16941. Out of paper:  OS/2 detected an out-of-paper condition on one of the printers. 
  16942. Check your printer and add paper if necessary. 
  16943.  
  16944. Overflow:  An arithmetic overflow occurred in the @EVAL variable function. 
  16945. Check the values being passed to @EVAL.  @EVAL can handle 16 digits to the left 
  16946. of the decimal point and 8 to the right. 
  16947.  
  16948. Read error:  OS/2 encountered a disk read error; usually caused by a bad or 
  16949. unformatted disk.  Also see Data error above. 
  16950.  
  16951. Sector not found:  Disk error, usually caused by a bad or unformatted disk. 
  16952. Also see Data error above. 
  16953.  
  16954. Seek error:  OS/2 can't seek to the proper location on the disk.  This is 
  16955. generally caused by a bad disk or drive.  Also see Data error above. 
  16956.  
  16957. Sharing error or Sharing violation:  You tried to access a file in use by 
  16958. another program.  Wait for the file to become available, or change your method 
  16959. of operation so that another program does not have the file open while you are 
  16960. trying to use it. 
  16961.  
  16962. SHRALIAS already loaded:  You used the SHRALIAS command to load SHRALIAS.EXE, 
  16963. but it was already loaded.  This message is informational and generally does 
  16964. not indicate an error condition. 
  16965.  
  16966. SHRALIAS not loaded:  You used the SHRALIAS /U command to unload SHRALIAS.EXE, 
  16967. but it was never loaded.  This message is informational and may not indicate an 
  16968. error condition. 
  16969.  
  16970. Startup failed, contact JP Software:  Take Command could not initialize and 
  16971. start operation.  Contact JP Software or your dealer for assistance. 
  16972.  
  16973. String area overflow:  Take Command ran out of room to store the text from 
  16974. string directives in the TCMDOS2.INI file.  Reduce the complexity of the 
  16975. TCMDOS2.INI file or contact JP Software for assistance. 
  16976.  
  16977. Syntax error:  A command or variable function was entered in an improper 
  16978. format. Check the syntax and correct the error. 
  16979.  
  16980. Too many open files:  OS/2 has run out of file handles. 
  16981.  
  16982. Unbalanced parentheses:  The number of left and right parentheses did not match 
  16983. in an expression passed to the %@EVAL variable function.  Correct the 
  16984. expression and retry the operation. 
  16985.  
  16986. UNKNOWN_CMD loop:  The UNKNOWN_CMD alias, explained under the ALIAS command, 
  16987. called itself more than ten times.  The alias probably contains an unknown 
  16988. command itself, and is stuck in an infinite loop.  Correct the alias. 
  16989.  
  16990. Unknown command:  A command was entered that Take Command didn't recognize and 
  16991. couldn't find in the current search path.  Check the spelling or PATH 
  16992. specification.  You can handle unknown commands with the UNKNOWN_CMD alias (see 
  16993. ALIAS). 
  16994.  
  16995. Variable loop:  A nested environment variable refers to itself, or variables 
  16996. are nested more than 16 deep.  Correct the error and retry the command. 
  16997.  
  16998. Window title not found:  The ACTIVATE command could not find a window with the 
  16999. specified title.  Correct the command or open the appropriate window and try 
  17000. again. 
  17001.  
  17002. Write error:  OS/2 encountered a disk write error; usually caused by a bad or 
  17003. unformatted disk.  Also see Data error above. 
  17004.  
  17005.  
  17006. ΓòÉΓòÉΓòÉ 8.4. Troubleshooting, Service, and Support ΓòÉΓòÉΓòÉ
  17007.  
  17008. Before You Contact Us 
  17009.  
  17010. Before contacting us for support, please check this help file, the Reference 
  17011. Manual and other documentation for answers to your question.  If you can't find 
  17012. what you need, try the Index.  If you're having trouble getting Take Command to 
  17013. run properly, see the Introduction and Installation manual and look through the 
  17014. README.DOC file for any last-minute information for your product. 
  17015.  
  17016. If you do need to contact us for support, it helps if you can give us some 
  17017. basic information.  The first four items listed below are essential for us to 
  17018. be able to understand and assist you with your problem: 
  17019.  
  17020.          What environment are you working in?  This includes the operating 
  17021.          system version are you using, the version of the JP Software product 
  17022.          involved, and related information such as network connections and the 
  17023.          name and version number of any other software which appears to be 
  17024.          involved in the problem.  Use the VER /R command to determine the Take 
  17025.          Command version and operating system version. 
  17026.  
  17027.          What exactly did you do?  A concise description of what steps you must 
  17028.          take to make the problem appear is much more useful than a long 
  17029.          analysis of what might be happening. 
  17030.  
  17031.          What did you expect to happen?  Tell us the result you expected from 
  17032.          the command or operation in question, so that we understand what you 
  17033.          are trying to do. 
  17034.  
  17035.          What actually happened?  At what point did the failure occur? If you 
  17036.          saw an error message or other important or unusual information on the 
  17037.          screen, what exactly did it say? 
  17038.  
  17039.          Briefly, what techniques did you use to try to resolve the problem? 
  17040.          What results did you get? 
  17041.  
  17042.          If the problem seems related to startup and configuration issues, what 
  17043.          are the contents of any startup files you use (such as CONFIG.SYS, 
  17044.          TCSTART, TCEXIT, and the TCMDOS2.INI file), any batch files they call, 
  17045.          and any alias or environment variable files they load? 
  17046.  
  17047.          Can you repeat the problem or does it occur randomly?  If it's random, 
  17048.          does it seem related to the programs you're using when the problem 
  17049.          occurs? 
  17050.  
  17051.  Electronic Support 
  17052.  
  17053.  Usually the best way to contact us for support is via CompuServe or the 
  17054.  Internet.  The most efficient method is to use our CompuServe support 
  17055.  conference; if you do not have CompuServe access, contact us via Internet 
  17056.  email.  See Contacting JP Software for our addresses. 
  17057.  
  17058.  Whenever possible, we also read messages posted on the Usenet 
  17059.  comp.os.msdos.4dos newsgroup, and in 4DOS conferences on the RIME, Ilink, and 
  17060.  FidoNet BBS networks (these conferences are named for 4DOS, but carry messages 
  17061.  related to all JP Software products).  These areas offer valuable information 
  17062.  and discussions with other users, but are not managed by JP Software, and are 
  17063.  not official support channels.  To be certain of a direct answers from our 
  17064.  support staff use our CompuServe forum or Internet email, or contact us by 
  17065.  telephone, fax, or mail. 
  17066.  
  17067.  A number of support resources are available from our web site listed above, 
  17068.  including error message listings, documentation files, product histories, 
  17069.  technical tips and discussions, other technical information, and links to 
  17070.  other companies' sites.  We update this information regularly, and we 
  17071.  encourage you to check the Technical Support area of the web site to see if 
  17072.  the information there will address any questions you have. 
  17073.  
  17074.  Telephone Support 
  17075.  
  17076.  Technical support by telephone within the US and Canada is handled on a 
  17077.  callback basis.  To contact our support staff, call the US / Canada Support 
  17078.  Line at any time and leave a short voice mail message describing your 
  17079.  technical problem (this line can not be used for sales / customer service 
  17080.  issues such as pricing, ordering, upgrades, or shipping problems).  We check 
  17081.  these messages regularly throughout the day and will return your call as 
  17082.  quickly as possible.  See Contacting JP Software for our phone numbers. 
  17083.  
  17084.  We generally return all technical support calls within 24 hours (weekends and 
  17085.  holidays excluded), and most are returned much more quickly, usually on the 
  17086.  same business day.  If your problem is urgent and requires a faster response, 
  17087.  please let us know and we will try to accommodate you.  If you contact us by 
  17088.  telephone and don't receive a reply within 24 hours, please try again.  We 
  17089.  probably tried to return your call and were unable to reach you. 
  17090.  
  17091.  If you are calling from outside the US and Canada, are not sure if your 
  17092.  question requires technical support, need other assistance in addition to your 
  17093.  technical questions, or find yourself playing "telephone tag" with our support 
  17094.  staff, please call our main number listed above.  Our office staff will assist 
  17095.  you with all of your concerns, and have a technical support representative 
  17096.  call you back if necessary. 
  17097.  
  17098.  If you have a problem with a batch file or complex alias, please contact us 
  17099.  electronically if possible.  Include a copy of the batch file or alias in 
  17100.  question, preferably as part of the text of your message (not as an 
  17101.  attachment).  If you do not have electronic access, contact us by fax if 
  17102.  possible.  Problems of this type are usually very difficult to diagnose over 
  17103.  the telephone because we cannot see the material you are working with.  For 
  17104.  longer batch files (over about 25 lines), do your best to reproduce the 
  17105.  problem in a smaller test file. 
  17106.  
  17107.  If you need more in-depth assistance with the development of complex batch 
  17108.  files or other procedures, please contact us for information on consulting 
  17109.  services. 
  17110.  
  17111.  
  17112. ΓòÉΓòÉΓòÉ 8.4.1. Contacting JP Software ΓòÉΓòÉΓòÉ
  17113.  
  17114. You can contact JP Software at the following addresses and numbers.  Our normal 
  17115. business hours are 8:30 AM to 5:00 PM weekdays, eastern US time (except 
  17116. holidays). 
  17117.  
  17118.     Address:          JP Software Inc. 
  17119.                       P.O. Box 1470 
  17120.                       East Arlington, MA 02174 
  17121.                       USA 
  17122.  
  17123.     Main number:      (617) 646-3975 
  17124.  
  17125.     Fax:              (617) 646-0904 
  17126.  
  17127.     Order Line:       (800) 368-8777  (US / Canada, orders only) 
  17128.  
  17129.     Support Line:     (617) 646-0798  (US / Canada only) 
  17130.                       [see the Telephone Support topic under Technical Support 
  17131.                       before using this number] 
  17132.  
  17133.     Internet:         Sales / Customer Service:  sales@jpsoft.com 
  17134.  
  17135.                       Technical Support:  support@jpsoft.com 
  17136.  
  17137.                       World Wide Web:  http://www.jpsoft.com/ 
  17138.  
  17139.                       File downloads via FTP:  For the simplest access to JP 
  17140.                       Software files use our web site.  For direct FTP access 
  17141.                       connect to ftp.std.com and look in the /vendors/jpsoft 
  17142.                       directory. 
  17143.  
  17144.     CompuServe:       Sales / Customer Service:  75020,244 
  17145.  
  17146.                       Technical Support and File Downloads:  GO JPSOFT or GO 
  17147.                       PCVENB, section / library 10, User ID 75300,1215. 
  17148.  
  17149.     BBS Downloads:    Channel 1 BBS, Boston, 617-349-1300 at 2,400 - 28,800 
  17150.                       baud, no parity, 8 data bits, 1 stop bit. 
  17151.  
  17152.  
  17153. ΓòÉΓòÉΓòÉ 9. What's New ΓòÉΓòÉΓòÉ
  17154.  
  17155. There are dozens of new features in this latest release of Take Command for 
  17156. OS/2!  Check through this section for a comprehensive list of what's changed 
  17157. since our previous release, version 1.02. 
  17158.  
  17159. This topic does not explain how to use each new feature.  Instead, where 
  17160. appropriate we have provided links below to the detailed help topics containing 
  17161. additional usage information or other documentation. 
  17162.  
  17163. Some of the descriptions here may be more detailed than you need; if you aren't 
  17164. using a feature, feel free to skip to the next item.  If you are new to Take 
  17165. Command for OS/2 with version 2.0, you can skip this topic entirely. 
  17166.  
  17167. This topic is divided into the following subtopics: 
  17168.  
  17169.             General Features and Enhancements 
  17170.             Line Editing and History 
  17171.             Command Changes 
  17172.             Variables and Variable Functions 
  17173.             Startup and Configuration 
  17174.             Technical and Compatibility Enhancements 
  17175.             Bugs Fixed 
  17176.  
  17177.  The major new features in this release include: 
  17178.  
  17179.     ╨┐   Extended Directory Searches:  allow you to change to a directory 
  17180.         anywhere on your system by entering only part of its name.  They must 
  17181.         be explicitly enabled before you can use them.  See Directory 
  17182.         Navigation for complete details. 
  17183.  
  17184.     ╨┐   New File Exclusion Ranges: provide a convenient way to exclude files 
  17185.         from any internal command -- faster and more flexible than using 
  17186.         EXCEPT. 
  17187.  
  17188.     ╨┐   The new Batch File Debugger can execute each line step by step, process 
  17189.         or trace into additional batch files, and display variables, aliases, 
  17190.         and expanded commands at each step. 
  17191.  
  17192.     ╨┐   New commands include: 
  17193.  
  17194.                  OPTION:  Offers complete configuration adjustment, either 
  17195.                  through interactive dialogs or on the command line. 
  17196.  
  17197.                  SWITCH:  Provides for "case" statements in batch files. 
  17198.  
  17199.                  TOUCH:  Adjusts file dates and times. 
  17200.  
  17201.                  TREE:  Displays the directory tree, with or without file 
  17202.                  names, in a variety of formats. 
  17203.  
  17204.  
  17205. ΓòÉΓòÉΓòÉ 9.1. General Features and Enhancements ΓòÉΓòÉΓòÉ
  17206.  
  17207. What's New - General Features and Enhancements 
  17208.  
  17209.     ╨┐   Added a complete batch file debugger.  The debugger displays the batch 
  17210.         file in a window and allows you to execute each line step by step, 
  17211.         process or trace into additional batch files and subroutines, and 
  17212.         display variables and aliases at each step.  See Batch File Debugging 
  17213.         for complete details. 
  17214.  
  17215.     ╨┐   Popup windows (for filename completion, command history recall, etc.) 
  17216.         now allow you to search for a line within the window contents by typing 
  17217.         the first few characters of the line.  The search string is displayed 
  17218.         in the lower right corner of the window. 
  17219.  
  17220.     ╨┐   You can now redirect to and from the clipboard by using the 
  17221.         pseudo-device name CLIP:.  For example, to redirect DIR to the 
  17222.         clipboard: 
  17223.  
  17224.                         dir *.doc > clip:
  17225.  
  17226.     ╨┐   The online help has been reorganized to make it easier to navigate 
  17227.         through the main topics, and includes additional reference information, 
  17228.         reference tables, and a glossary. 
  17229.  
  17230.     ╨┐   The default maximum file description length is now 511 bytes in all 
  17231.         products. 
  17232.  
  17233.     ╨┐   Two new characters can now follow the escape character:  An escape 
  17234.         followed by a 'q' will substitute a double quote; an escape followed by 
  17235.         a 'k' will substitute a back quote. 
  17236.  
  17237.     ╨┐   The decimal and thousands characters used in @EVAL and in displayed 
  17238.         version numbers and other similar locations are now controllable with 
  17239.         the DecimalChar and ThousandsChar directives in the .INI file, the 
  17240.         corresponding options in the configuration or OPTION dialogs, and the 
  17241.         SETDOS /G command.  These characters are saved by SETLOCAL and restored 
  17242.         by ENDLOCAL.  This is intended as an aid to those writing batch files 
  17243.         which perform arithmetic operations and which may be used in countries 
  17244.         with differing separator characters. 
  17245.  
  17246.     ╨┐   The directory stack size used by PUSHD and POPD has been increased from 
  17247.         255 to 511 bytes to leave adequate room for long directory names. 
  17248.  
  17249.     ╨┐   .BTM files can now be longer than 64K bytes, though compressed .BTMs 
  17250.         still have to be less than 64K. 
  17251.  
  17252.  
  17253. ΓòÉΓòÉΓòÉ 9.2. Command Line Editing ΓòÉΓòÉΓòÉ
  17254.  
  17255. What's New - Command Line Editing 
  17256.  
  17257.     ╨┐   Extended directory searches can be used directly from the command line 
  17258.         for quick directory navigation; see Automatic Directory Changes or 
  17259.         Directory Navigation for details. 
  17260.  
  17261.     ╨┐   Made several ehancements to filename completion, including: 
  17262.  
  17263.         *        The Ctrl-A key, which toggles between long and short filenames 
  17264.                  for filename completion, can now be hit at any point during 
  17265.                  command line entry -- not just during filename completion. 
  17266.                  For example, if you hit Ctrl-A at the beginning of the command 
  17267.                  line, all filenames subsequently returned for that line will 
  17268.                  be short names (until you hit Ctrl-A again). 
  17269.  
  17270.         *        Filename completion can now be customized for individual 
  17271.                  commands via the new FileCompletion .INI directive (or 
  17272.                  environment variable).  For example, you can configure Take 
  17273.                  Command to complete only the names of .TXT files when the 
  17274.                  command line starts with the name of your text editor, or to 
  17275.                  display only directory names when you are entering a CD 
  17276.                  command. 
  17277.  
  17278.         *        The F7 filename completion popup window now sorts the filename 
  17279.                  list alphabetically. 
  17280.  
  17281.     ╨┐   You can now expand aliases immediately while still on the command line 
  17282.         with the Ctrl-F key. 
  17283.  
  17284.     ╨┐   Command line history recall will now stop at the beginning and end of 
  17285.         the history list rather than wrapping around, if you set HistWrap to No 
  17286.         in the .INI file or through the configuration dialogs. 
  17287.  
  17288.     ╨┐   Take Command now supports ANSI screen commands. 
  17289.  
  17290.     ╨┐   In the Find Files dialog, double-clicking on the filename, then 
  17291.         clicking on LIST in the Info dialog will now start LIST (in a separate 
  17292.         copy of Take Command) with the pointer at the first matching string in 
  17293.         the file. 
  17294.  
  17295.     ╨┐   A double (left) click in the Take Command window now selects the word 
  17296.         under the mouse pointer. 
  17297.  
  17298.  
  17299. ΓòÉΓòÉΓòÉ 9.3. Command Changes ΓòÉΓòÉΓòÉ
  17300.  
  17301. What's New - Command Changes 
  17302.  
  17303.     ╨┐   ATTRIB:  Added the /E switch to disable display of non-fatal errors. 
  17304.         Also, ATTRIB now allows underscores in the attribute string, so that 
  17305.         you can get a result from the %@ATTRIB variable function and feed it 
  17306.         directly to the ATTRIB command. 
  17307.  
  17308.     ╨┐   CD and CDD:  Now support extended directory searches, which allow you 
  17309.         to change to a directory anywhere on your system by entering only part 
  17310.         of its name.  The CDD /S switch builds the extended directory search 
  17311.         database.  Extended directory searches mmust be explicitly enabled 
  17312.         before you can use them.  See Directory Navigation for complete 
  17313.         details. 
  17314.  
  17315.     ╨┐   CDD:  Added the /A switch to display the current directory for all 
  17316.         existing and ready drives from C: to Z:. 
  17317.  
  17318.     ╨┐   CHCP:  Changed to only affect the current process and its children, as 
  17319.         in CMD.EXE. 
  17320.  
  17321.     ╨┐   COPY:  Added several switches: 
  17322.  
  17323.           /E         Disable display of non-fatal errors. 
  17324.           /K         Preserve read-only attributes during a COPY. 
  17325.           /X         Clear the archive bit from the source file after a 
  17326.                      successful copy. 
  17327.           /Z         Overwrite read-only target files. 
  17328.  
  17329.     ╨┐   COPY:  When copying from a FAT drive to an HPFS drive, COPY will now 
  17330.         use the .LONGNAME extended attribute of the source file (if available) 
  17331.         to determine the long name.  When copying from HPFS to FAT, COPY sets 
  17332.         the .LONGNAME attribute if possible, to preserve the long name. 
  17333.  
  17334.     ╨┐   DEL:  Added two switches: 
  17335.  
  17336.           /E         Disable display of non-fatal errors. 
  17337.           /W         Clear the file to 0's before deleting it. 
  17338.  
  17339.     ╨┐   DIR:  Added or modified several of the DIR switches: 
  17340.  
  17341.           /2         Now forces the use of truncated names on HPFS drives. 
  17342.           /4         Now forces the use of truncated names on HPFS drives, and 
  17343.                      displays files between 1 and 9.9 Mb in tenths (i.e., 
  17344.                      "2.4M"). 
  17345.           /G         (New) Displays the allocated size instead of the file 
  17346.                      size. 
  17347.           /W         Now forces the use of truncated names on HPFS drives. 
  17348.  
  17349.     ╨┐   DIRHISTORY:  This new command has the same syntax as HISTORY, but it 
  17350.         modifies the directory history. 
  17351.  
  17352.     ╨┐   DO:  Added two new DO loop types: 
  17353.  
  17354.         *        "DO x IN filename" retrieves each matching filename from a 
  17355.                  wildcard spec and inserts the value into the variable. 
  17356.         *        "DO x IN @filename" retrieves each line in the file and 
  17357.                  inserts it into the variable. 
  17358.  
  17359.     ╨┐   ECHOERR and ECHOSERR:  These new commands are like ECHO and ECHOS, but 
  17360.         output goes to the standard error device instead of standard output. 
  17361.  
  17362.     ╨┐   ENDLOCAL:  To aid in making batch files portable, SETLOCAL and ENDLOCAL 
  17363.         now save and restore the command separator, escape character, parameter 
  17364.         character, and decimal and thousands separators. 
  17365.  
  17366.     ╨┐   FFIND:  Added two new switches: 
  17367.  
  17368.           /I         Do a literal match even if the text search string contains 
  17369.                      wildcard characters. 
  17370.           /R         Start searching for text from the end backwards. 
  17371.  
  17372.         Also, the /X switch will now display the offset in both hex and 
  17373.         decimal. 
  17374.  
  17375.     ╨┐   FOR:  Added several new switches for compatibility with Windows NT 
  17376.         4.0's CMD.EXE; see the command reference information for complete 
  17377.         details. 
  17378.  
  17379.     ╨┐   GOTO:  Added support for Windows NT 4.0's "GOTO :EOF" -- If there is no 
  17380.         ":EOF" label, GOTO ends the current batch file (equivalent to a QUIT). 
  17381.  
  17382.     ╨┐   IF / IFF:  These commands now support nested conditional tests, with 
  17383.         parentheses, e.g.: 
  17384.  
  17385.                         if  (%a == 1 .or. %b == 2) .and. %c == 3 echo something
  17386.  
  17387.         See the command reference information for complete syntax rules. 
  17388.  
  17389.     ╨┐   Added a new "IF DEFINED varname" test, which succeeds if the specified 
  17390.         variable exists in the environment.  This is included for compatibility 
  17391.         with Windows NT 4.0's CMD.EXE, and is the same as a test like: 
  17392.  
  17393.                         if  "%varname" ne "" ...
  17394.  
  17395.     ╨┐   Changed the comparison tests to accept a leading decimal separator as a 
  17396.         numeric character, provided the remainder of the string is numeric and 
  17397.         does not contain additional decimal characters. 
  17398.  
  17399.     ╨┐   KEYSTACK:  Now supports sending keystrokes to windowed VIO sessions 
  17400.         (not just PM apps) from Take Command for OS/2. 
  17401.  
  17402.     ╨┐   LIST:  Add a range of enhancements, including: 
  17403.  
  17404.         *        Ctrl-PgUp and Ctrl-PgDn will go to the previous and next file 
  17405.                  in the current group, respectively. 
  17406.  
  17407.         *        Ctrl-F searches backwards for a text string; Ctrl-N repeats 
  17408.                  the last search, searching backwards. 
  17409.  
  17410.         *        Matching strings on the first page are now highlighted after a 
  17411.                  search. 
  17412.  
  17413.         *        When piping output to LIST in most cases you no longer need 
  17414.                  the /S switch; for example, to view DIR's output in LIST you 
  17415.                  can now use: 
  17416.  
  17417.                                           dir  | list
  17418.  
  17419.                  Also, added three new switches: 
  17420.  
  17421.                    /I         Ignore case in a /T search. 
  17422.                    /R         The search initiated by /T goes backwards from 
  17423.                               the end of the file. 
  17424.                    /T         Search for text when LIST starts. 
  17425.  
  17426.     ╨┐   MD:  Added the /N switch to create a directory without updating the 
  17427.         extended directory search database (useful for temporary directories). 
  17428.  
  17429.     ╨┐   MOVE:  Added the /E switch to disable display of non-fatal errors. 
  17430.  
  17431.     ╨┐   MOVE:  When moving files from a FAT drive to an HPFS drive, MOVE will 
  17432.         now use the .LONGNAME extended attribute of the source file (if 
  17433.         available) to determine the long name.  When moving files from HPFS to 
  17434.         FAT, MOVE sets the .LONGNAME attribute if possible, to preserve the 
  17435.         long name. 
  17436.  
  17437.     ╨┐   OPTION:  This new command can be used for two purposes.  When invoked 
  17438.         without parameters, it loads configuration dialogs which adjust most 
  17439.         commonly-used settings in the .INI file.  The dialogs provide a 
  17440.         convenient method of adjusting configuration without manually editing 
  17441.         the .INI file.  OPTION can also be used to change specific settings on 
  17442.         an individual basis with the OPTION Name=value ... syntax; see the 
  17443.         command for complete details. 
  17444.  
  17445.     ╨┐   PROMPT:  Added the $+ metacharacter, which displays one + for each 
  17446.         PUSHD level. 
  17447.  
  17448.     ╨┐   REN / RENAME:  Added the /E switch to disable display of non-fatal 
  17449.         errors. 
  17450.  
  17451.     ╨┐   RETURN:  Now accepts an optional argument for the errorlevel to return. 
  17452.         The errorlevel can be tested with %? or IF ERRORLEVEL. 
  17453.  
  17454.     ╨┐   SCREEN, SCRPUT, and VSCRPUT:  If you specify 999 for the row, the text 
  17455.         will be centered vertically; if you specify 999 for the column, the 
  17456.         text will be centered horizontally. 
  17457.  
  17458.     ╨┐   SELECT:  You can now type characters from the start of a filename and 
  17459.         the selection bar will jump to the first matching name.  Due to this 
  17460.         change, the key to popup LIST on the currently selected file has been 
  17461.         changed from L to ^L.  Also, added the /T:acw switch to select the date 
  17462.         and time to use for display and sorting on HPFS drives. 
  17463.  
  17464.     ╨┐   SETLOCAL:  To aid in making batch files portable, SETLOCAL now saves 
  17465.         the command separator, escape character, parameter character, and 
  17466.         decimal and thousands separators; ENDLOCAL restores them. 
  17467.  
  17468.     ╨┐   SHIFT:  The new "/n" argument will start the shift at the specified 
  17469.         argument -- i.e., "shift /2" moves %3 to %2, %4 to %3, etc. 
  17470.  
  17471.     ╨┐   START:  Added /LD for a local directory history list. 
  17472.  
  17473.     ╨┐   START:  Added support for the (undocumented) Warp 4 CMD.EXE 
  17474.         "DosSetting.xxx=yyy" environment variables to specify settings for DOS 
  17475.         sessions. 
  17476.  
  17477.     ╨┐   SWITCH:  This new command provides a C-like switch construct for batch 
  17478.         files.  SWITCH scans each CASE statement looking for a matching value; 
  17479.         if it finds one it executes the block of code inside that CASE 
  17480.         statement, and then jumps to the end of the switch block (ENDSWITCH). 
  17481.         If no CASE statement matches, SWITCH will execute the code in the 
  17482.         (optional) DEFAULT block. 
  17483.  
  17484.     ╨┐   TOUCH:  This new command changes the date and/or time for a file or 
  17485.         files.  You can set a specified date and time or use the current system 
  17486.         clock, and you can optionally change the last access / creation date 
  17487.         and time fields on HPFS drives. 
  17488.  
  17489.     ╨┐   TREE:  This new command displays a graphical directory tree using 
  17490.         either line-drawing or ASCII characters.  It can also optionally 
  17491.         display file names, dates, times, and sizes. 
  17492.  
  17493.     ╨┐   UNALIAS:  Added the /R switch to read a file of aliases to remove. 
  17494.  
  17495.     ╨┐   UNSET:  Added the /R switch to read a file of variables to remove. 
  17496.  
  17497.  
  17498. ΓòÉΓòÉΓòÉ 9.4. Variables and Functions ΓòÉΓòÉΓòÉ
  17499.  
  17500. What's New - Variables and Functions Added or updated the following internal 
  17501. variables (all variables listed are new unless otherwise noted): 
  17502.  
  17503.     ╨┐   _APMAC:  Advanced Power Management AC line status. 
  17504.  
  17505.     ╨┐   _APMBATT:  Advanced Power Management battery status. 
  17506.  
  17507.     ╨┐   _APMLIFE:  Advanced Power Management remaining battery life. 
  17508.  
  17509.     ╨┐   _CPU:  Now returns "686" for Pentium Pro. 
  17510.  
  17511.     ╨┐   _DOWI:  Returns the current day of week as an integer (Sun = 1, Mon = 
  17512.         2, etc.). 
  17513.  
  17514.     ╨┐   _SELECTED:  Returns the selected (highlighted) text. 
  17515.  
  17516.     ╨┐   _XPIXELS:  Returns the physical screen horizontal size in pixels. 
  17517.  
  17518.     ╨┐   _YPIXELS:  Returns the physical screen vertical size in pixels. 
  17519.  
  17520.  Added or updated the following variable functions (all functions listed are 
  17521.  new unless otherwise noted): 
  17522.  
  17523.     ╨┐   @CLIP[n]:  Returns line n from the clipboard (base 0). 
  17524.  
  17525.     ╨┐   @CONVERT[input,output,value]:  Converts a number from one base to 
  17526.         another. 
  17527.  
  17528.     ╨┐   @DAY[date]:  Returns the day for the specified date. 
  17529.  
  17530.     ╨┐   @DOW[date]:  Returns the day of week for the specified date, as a 
  17531.         string (Sun, Mon, etc.) 
  17532.  
  17533.     ╨┐   @DOWI[date]:  Returns the day of week for the specified date, as an 
  17534.         integer (Sun = 1, Mon = 2, etc.). 
  17535.  
  17536.     ╨┐   @DOY[date]:  Returns the day of year for the specified date (136). 
  17537.  
  17538.     ╨┐   @EAREAD[filename,EAname]:  Returns the specified text extended 
  17539.         attribute for the file. 
  17540.  
  17541.     ╨┐   @EAWRITE[filename,EAname,value]:  Writes the specified text extended 
  17542.         attribute for the file. 
  17543.  
  17544.     ╨┐   @EVAL[expression]:  Now supports user-definable decimal and thousands 
  17545.         characters; see DecimalChar and ThousandsChar, or SETDOS /G for 
  17546.         details. 
  17547.  
  17548.     ╨┐   @EXEC[command]:  This function has been modified; if you preface the 
  17549.         command with an '@', @EXEC will return an empty string rather than the 
  17550.         result code of the command. 
  17551.  
  17552.     ╨┐   @EXECSTR[command]:  Returns the first line written to STDOUT by the 
  17553.         specified command.  (This is intended to provide functionality similar 
  17554.         to UNIX back-quoting.) 
  17555.  
  17556.     ╨┐   @EXPAND[filename[,attributes]]:  Expands a wildcard filename and 
  17557.         returns all of the matching filenames / directories on a single line. 
  17558.  
  17559.     ╨┐   @FILEDATE[filename[,acw]] / @FILETIME[filename[,acw]]:  Added the 
  17560.         optional second argument determines which date / time field to return 
  17561.         on HPFS drives. 
  17562.  
  17563.     ╨┐   @FILESIZE[filename[,bkm[,a]]:  Added the optional third argument 
  17564.         a(llocated); if specified, the function returns the size actually used 
  17565.         on disk, not the amount of data in the file. 
  17566.  
  17567.     ╨┐   @INSERT[n,string1,string2]:  Inserts string1 into string2 starting at 
  17568.         offset n. 
  17569.  
  17570.     ╨┐   @LEFT[n,string]:  Returns the leftmost n characters of string. 
  17571.  
  17572.     ╨┐   @MONTH[date]:  Return the month for the specified date. 
  17573.  
  17574.     ╨┐   @NUMERIC[string]:  Now considers a leading decimal separator as a 
  17575.         numeric character, provided the remainder of the string is numeric and 
  17576.         does not contain additional decimal characters. 
  17577.  
  17578.     ╨┐   @REPLACE[string1,string2,text]:  Replaces all occurrences of string1 in 
  17579.         text with string2. 
  17580.  
  17581.     ╨┐   @RIGHT[n,string]:  Returns the rightmost n characters of string. 
  17582.  
  17583.     ╨┐   @SEARCH[filename[,path]]:  Now accepts an optional second argument for 
  17584.         the path to search. 
  17585.  
  17586.     ╨┐   @SELECT[filename,top,left,bottom,right,title[,1]]:  Has a new optional 
  17587.         argument following the title.  If it's set to 1, @SELECT will sort the 
  17588.         list alphabetically. 
  17589.  
  17590.     ╨┐   @STRIP[chars,string]:  Return string with the characters in chars 
  17591.         removed. 
  17592.  
  17593.     ╨┐   @WILD[string1,string2]:  Does a wildcard comparison on the two strings 
  17594.         and returns 1 if they match; 0 if they don't. 
  17595.  
  17596.     ╨┐   @YEAR[date]:  Return the year for the specified date. 
  17597.  
  17598.  
  17599. ΓòÉΓòÉΓòÉ 9.5. Startup and Configuration ΓòÉΓòÉΓòÉ
  17600.  
  17601. What's New - Startup and Configuration 
  17602.  
  17603.     Added or modified the following .INI directives (all are new unless 
  17604.     otherwise noted): 
  17605.  
  17606.     ╨┐   CDDWinLeft, CDDWinTop, CDDWinWidth, CDDWinHeight.  These directives set 
  17607.         the position, and size of the popup window used for extended directory 
  17608.         searches. 
  17609.  
  17610.     ╨┐   DescriptionName:  This directive has a new capability:  If set to "EA", 
  17611.         Take Commandfor OS/2 will use extended attributes (specifically, the 
  17612.         ".SUBJECT" EA) for file descriptions, rather than DESCRIPT.ION or 
  17613.         another file.  Depending on operating system configuration and cache 
  17614.         behavior, this setting can cause a significant reduction in 
  17615.         performance, but may be useful when working with other programs that 
  17616.         manipulate Extended Attributes. 
  17617.  
  17618.     ╨┐   DuplicateBugs = Yes | NO:  Tells the parser to duplicate certain 
  17619.         CMD.EXE errors which may be important in solving rare compatibility 
  17620.         problems.  The only bug currently replicated by this command is the IF 
  17621.         command. 
  17622.  
  17623.     ╨┐   FileCompletion = cmd1:ext1 ext2;cmd2 ...:  Sets up command-specific 
  17624.         filename completion. 
  17625.  
  17626.     ╨┐   FuzzyCD =  0 | 1 | 2 | 3:  Enables or disables extended directory 
  17627.         searches, and controls their behavior. 
  17628.  
  17629.     ╨┐   HistMove = Yes | NO:  If set to Yes, a recalled line from the command 
  17630.         history is moved to the end of the history list, and removed from its 
  17631.         original location. 
  17632.  
  17633.     ╨┐   Include = filename:  Includes the contents of the named file as if they 
  17634.         had appeared at the location of the Include= directive in the current 
  17635.         .INI file. 
  17636.  
  17637.     ╨┐   TreePath = Path:  Specifies the location of JPSTREE.IDX (the extended 
  17638.         directory search database; defaults to C:\). 
  17639.  
  17640.  
  17641. ΓòÉΓòÉΓòÉ 9.6. Technical and Compatibility Enhancements ΓòÉΓòÉΓòÉ
  17642.  
  17643. What's New - Technical and Compatibility Enhancements 
  17644.  
  17645.     ╨┐   Replaced the old 4OS2DLL.DLL / TCOS2DLL.DLL with a single file for both 
  17646.         4OS2 and TCOS2, named JPOS2DLL.DLL.  Also, JPOS2DLL is now loaded 
  17647.         dynamically, so you can start the product without it if necessary (e.g. 
  17648.         from a floppy boot). 
  17649.  
  17650.     ╨┐   Added support for inheritance (and shell levels) when invoking one copy 
  17651.         of Take Command for OS/2 from another. 
  17652.  
  17653.     ╨┐   Worked around an OS/2 problem that prevented %_CPU from detecting 
  17654.         anything higher than a 486. 
  17655.  
  17656.     ╨┐   Improved support for drive and file sizes over 4GB. 
  17657.  
  17658.     ╨┐   Added support for piping from VIO and DOS programs to secondary Take 
  17659.         Command shells. 
  17660.  
  17661.     ╨┐   TYPE NUL now "works" (i.e. it generates no output), for compatibility 
  17662.         with batch files which use TYPE NUL > file to generate a 0-byte file. 
  17663.  
  17664.     ╨┐   Added debugging options which allow you to view the command "tail" 
  17665.         passed to Take Command for OS/2, and to "tag" error messages with the 
  17666.         product name.  See the Debug directive in TCMDOS2.INI for additional 
  17667.         details. 
  17668.  
  17669.  
  17670. ΓòÉΓòÉΓòÉ 9.7. Bugs Fixed ΓòÉΓòÉΓòÉ
  17671.  
  17672. What's New - Bugs Fixed 
  17673.  
  17674.     ╨┐   Piping the output of a batch file which also contains a pipe will no 
  17675.         longer cause problems. 
  17676.  
  17677.     ╨┐   ACTIVATE:  The CLOSE option now works properly. 
  17678.  
  17679.     ╨┐   DESCRIBE:  Fixed a problem with quoted long filenames with paths. 
  17680.  
  17681.     ╨┐   INPUT:  Fixed a problem with /P not displaying *'s. 
  17682.  
  17683.     ╨┐   RENAME:  Now works properly when renaming quoted long filenames with 
  17684.         embedded wildcards. 
  17685.  
  17686.     ╨┐   Fixed a problem with invalid drive change requests -- commands like 
  17687.         "1:" would crash TCOS2. 
  17688.  
  17689.     ╨┐   Quoted long filenames can now be used in the .INI file. 
  17690.  
  17691.     ╨┐   Fixed a problem which locked the STARTUP.CMD file when loading SHRALIAS 
  17692.         from STARTUP.CMD. 
  17693.  
  17694.     ╨┐   The file find dialog now adds quotes to long filenames when doing a 
  17695.         file-only search.  This should allow you to double-click the name 
  17696.         successfully. 
  17697.  
  17698.     ╨┐   @FILESEEKL[] now always returns to the start of the file before 
  17699.         seeking. 
  17700.  
  17701.  
  17702. ΓòÉΓòÉΓòÉ 10. Reference Information ΓòÉΓòÉΓòÉ
  17703.  
  17704. This section contains information that you'll need throughout Take Command. It 
  17705. is divided into six sections: 
  17706.  
  17707.     Product Compatibility 
  17708.             discusses compatiblity between our products: 4DOS, 4OS2, 4NT, Take 
  17709.             Command for OS/2, Take Command/16 for Windows 3.x and Windows for 
  17710.             Workgroups, and Take Command/32 for Windows 95 and Windows NT.  If 
  17711.             you use two or more of our products, you'll want to read this 
  17712.             section. 
  17713.  
  17714.     File Systems and File Name Conventions 
  17715.             explains the file systems that are supported by OS/2 and Take 
  17716.             Command for OS/2, the naming conventions used by each, and related 
  17717.             issues. 
  17718.  
  17719.     Miscellaneous Reference Information 
  17720.             discusses a number of conventions and other topics that are 
  17721.             necessary to get the most out of Take Command. 
  17722.  
  17723.     Reference Tables 
  17724.             includes tables of ASCII codes and of the codes produced when you 
  17725.             press various keys and key combinations on the keyboard.  Also 
  17726.             contains a list of ANSI commands. 
  17727.  
  17728.     The Glossary 
  17729.             is a list of terms and definitions.  If you come across terms in 
  17730.             the online help that you don't understand, they are probably 
  17731.             defined here. 
  17732.  
  17733.     Copyright and Version 
  17734.             contains the copyright information and version number for this 
  17735.             online help file. 
  17736.  
  17737.  
  17738. ΓòÉΓòÉΓòÉ 10.1. Product Compatibility ΓòÉΓòÉΓòÉ
  17739.  
  17740. This topic covers compatiblity between our products: 4DOS, 4OS2, 4NT, Take 
  17741. Command for OS/2, Take Command/16 for Windows 3.x and Windows for Workgroups, 
  17742. and Take Command/32 for Windows 95 and Windows NT.  The topic is divided into 3 
  17743. separate issues: 
  17744.  
  17745.          Special Character Compatibility 
  17746.  
  17747.          Scrolling and History Keystrokes 
  17748.  
  17749.          Using 4OS2 and 4DOS Batch Files and Aliases 
  17750.  
  17751.  
  17752. ΓòÉΓòÉΓòÉ 10.1.1. Special Character Compatibility ΓòÉΓòÉΓòÉ
  17753.  
  17754. Take Command is highly compatible with 4DOS, 4OS2, and 4NT.  However, there are 
  17755. some minor differences between our products. These differences are caused by 
  17756. the different requirements of each operating system and by our design goal of 
  17757. maintaining compatibility between each product and the system's default command 
  17758. processor. 
  17759.  
  17760. We discuss the differences between our products in the online help as part of 
  17761. the description of each feature and command.  Most of the differences are 
  17762. minor:  different command line lengths, a few different options in some 
  17763. commands, and some commands that only make sense in one or two products. 
  17764.  
  17765. If you use two or more of our products, or if you want to share aliases and 
  17766. batch files with users of different products, you need to be aware of the 
  17767. differences in three important characters:  the Command Separator, the Escape 
  17768. Character, and the Parameter Character. 
  17769.  
  17770. The default values of each of these characters in each product is shown in the 
  17771. following table: 
  17772.  
  17773.  
  17774.                  Product          Separator    Escape       Parameter
  17775.  
  17776.                  Take Command/16,     ^                        &
  17777.                  4DOS
  17778.  
  17779.                  Take Command/32,     &            ^            $
  17780.                  Take Command for
  17781.                  OS/2, 4NT, 4OS2
  17782.  
  17783.         (In this section, an up-arrow [] is used for the ASCII Ctrl-X 
  17784.         character, numeric value 24.  The appearance of control characters 
  17785.         depends on the font you use.  In many fonts Ctrl-X is displayed as a 
  17786.         "block" or other non-descript character, but the Terminal font used by 
  17787.         default in Take Command typically displays Ctrl-X as an up-arrow.) 
  17788.  
  17789.         In your batch files and aliases, and even at the command line, you can 
  17790.         smooth over these differences in three ways: 
  17791.  
  17792.         Select a consistent set of characters on the Options 1 page of the 
  17793.          configuration dialogs, TCMDOS2.INI file directives, or with the SETDOS 
  17794.          command.  For example, to set the Take Command/16 characters to match 
  17795.          the defaults in Take Command/32, 4OS2, and 4NT, use these lines in 
  17796.          TCMD.INI: 
  17797.  
  17798.                           CommandSep = &
  17799.                           EscapeChar = ^
  17800.                           ParameterChar = $
  17801.  
  17802.         Use internal variables that contain the current special character, 
  17803.          rather than using the character itself. For example, this command: 
  17804.  
  17805.                           if "%1" == "" (echo Argument missing! ^ quit)
  17806.  
  17807.          will only work if the command separator is a caret.  However, this 
  17808.          version works regardless of the current command separator: 
  17809.  
  17810.                           if "%1" == "" (echo Argument missing! %+ quit)
  17811.  
  17812.         In a batch file, use the SETLOCAL command to save the command 
  17813.          separator, escape character, and parameter character when the batch 
  17814.          file starts.  Then use SETDOS as described below to select the 
  17815.          characters you want to use within the batch file.  Use an ENDLOCAL 
  17816.          command at the end of the batch file to restore the previous settings. 
  17817.  
  17818.          You can also use the SETDOS command to change special characters on 
  17819.          the command line.  However, when setting new special character values 
  17820.          on the command line you must take into account the possibility that 
  17821.          one of your new values will have a current meaning that causes 
  17822.          problems with the setting.  For example, this command: 
  17823.  
  17824.                           [c:\] setdos /e^
  17825.  
  17826.          would not set the escape character to a caret [^] in Take Command/16 
  17827.          if the standard Take Command/16 special characters were currently in 
  17828.          effect.  The ^ would be seen as a command separator, and would 
  17829.          terminate the SETDOS command before the escape character was set.  To 
  17830.          work around this, use the escape character variable %= before each 
  17831.          setting to ensure that the following character is not treated with any 
  17832.          special meaning. 
  17833.  
  17834.          For example, the following sequence of commands in a batch file will 
  17835.          always set the special characters correctly to their standard Take 
  17836.          Command/32 and Take Command for OS/2 values, no matter what their 
  17837.          current setting, and will restore them when the batch file is done: 
  17838.  
  17839.                           setlocal
  17840.                           setdos /c%=& /e%=^ /p%=$
  17841.                           .....
  17842.                           endlocal
  17843.  
  17844.          A similar sequence can be used to select the standard Take Command/16 
  17845.          characters, regardless of the current settings: 
  17846.  
  17847.                           setlocal
  17848.                           setdos /c%=^ /e%=╨╜ /p%=&
  17849.                           .....
  17850.                           endlocal
  17851.  
  17852.  
  17853. ΓòÉΓòÉΓòÉ 10.1.2. Scrolling and History Keystrokes ΓòÉΓòÉΓòÉ
  17854.  
  17855. In order to support the scrollback buffer, some Take Command keystrokes are 
  17856. different from what you may be used to in 4DOS, 4OS2, and 4NT.  The differences 
  17857. are: 
  17858.  
  17859.  
  17860.                                         4DOS, 4OS2, 4NT  Take Command
  17861.  
  17862.                  Command Line:
  17863.  
  17864.                    Previous command     Up []           Ctrl-Up
  17865.  
  17866.                    Next command         Down []         Ctrl-Down
  17867.  
  17868.                    Open history window  PgUp             Ctrl-PgUp
  17869.  
  17870.                    Directory history    Ctrl-PgUp        F6
  17871.  
  17872.                  Screen Scrollback:
  17873.  
  17874.                    Up one line          N/A              Up []
  17875.  
  17876.                    Down one line        N/A              Down []
  17877.  
  17878.                    Up one page          N/A              PgUp
  17879.  
  17880.                    Down one page        N/A              PgDn
  17881.  
  17882.         If you prefer to reverse this arrangement and use the arrow and PgUp 
  17883.         keys to access the command history without having to press Ctrl (as in 
  17884.         4OS2 and 4DOS), see the SwapScrollKeys .INI file directive, or the 
  17885.         Command Line 1 page of the configuration notebook. SwapScrollKeys 
  17886.         switches the keystroke mapping so that the , , and PgUp keys 
  17887.         manipulate the command history, and Ctrl-, Ctrl-, Ctrl-PgUp, and 
  17888.         Ctrl-PgDn are used to control the scrollback buffer. (SwapScrollKeys 
  17889.         does not affect the use of F6 for the directory history). 
  17890.  
  17891.         You can also change the way any individual key operates with the 
  17892.         corresponding key mapping directive in the TCMDOS2.INI file.  The 
  17893.         directives associated with the history and scrolling keys are: 
  17894.  
  17895.  
  17896.                  NextHistory          ScrollUp
  17897.  
  17898.                  PrevHistory          ScrollDown
  17899.  
  17900.                  HistWinOpen          ScrollPageUp
  17901.  
  17902.                  DirWinOpen           ScrollPageDown
  17903.  
  17904.  
  17905. ΓòÉΓòÉΓòÉ 10.1.3. Using 4OS2 and 4DOS Batch Files and Aliases ΓòÉΓòÉΓòÉ
  17906.  
  17907. Take Command for OS/2, 4OS2, and 4DOS aliases are separate and independent; 
  17908. Take Command does not automatically "inherit" aliases from a previously loaded 
  17909. copy of 4OS2 or 4DOS, and it cannot pass aliases on to a copy of 4OS2 or 4DOS 
  17910. started from the Take Command prompt.  However, you can load aliases from your 
  17911. Take Command startup batch file.  These can be the same aliases you use in 4OS2 
  17912. or 4DOS, or a set that is just for Take Command. 
  17913.  
  17914. While many of your 4OS2 aliases will work well under Take Command, you'll 
  17915. probably want to create a separate set of Take Command aliases.  This will 
  17916. allow you to account for the differences in running OS/2 and DOS applications, 
  17917. and to create new aliases that take advantage of Take Command features that are 
  17918. unavailable in 4OS2 and 4DOS. 
  17919.  
  17920. If you want to write aliases or batch files that are used in Take Command, 
  17921. 4OS2, and 4DOS, but that behave differently in each environment, use the _DOS 
  17922. variable to make the distinction.  For example, this batch file fragment uses 
  17923. the INPUT command to accept a string if it is run under 4DOS, but uses the 
  17924. OS/2-style QUERYBOX if it is run under Take Command: 
  17925.  
  17926.         iff "%_dos" == "OS2PM" then
  17927.            querybox "Enter your name:  " %%name
  17928.         else
  17929.            input "Enter your name:  " %%name
  17930.         endiff
  17931.  
  17932. Aliases and batch files which simply manipulate files or use other internal 
  17933. commands should work with little or no change under Take Command.  However, as 
  17934. a general rule, you should test any batch file developed for 4OS2, 4DOS, or 
  17935. CMD.EXE before assuming it will do exactly what you want under Take Command. 
  17936. Pay particular attention to batch files which run complex sequences of external 
  17937. programs. 
  17938.  
  17939. If you use aliases or batch files to perform a sequence which mixes internal 
  17940. commands and DOS applications, the sequence may not work the way you expect 
  17941. under Take Command.  For example, suppose you have an alias that changes the 
  17942. screen color, starts a DOS application, and then resets the color again.  If 
  17943. the DOS application is started in a separate window the color changes will not 
  17944. affect it -- a contingency you probably didn't have to consider when you wrote 
  17945. the batch file. 
  17946.  
  17947. Similarly, if you run a sequence of several DOS applications which depend on 
  17948. each others' results (for example, through the use of error levels), they may 
  17949. not run the same way under Take Command that they do under 4DOS, 4OS2, or 
  17950. CMD.EXE.  For example, if one DOS application runs in its own window and 
  17951. another runs using Take Command's named pipes, error levels will not be passed 
  17952. between the applications and your batch file or alias won't run the way you 
  17953. expect. 
  17954.  
  17955. You may also find that you want to take advantage of some of the new features 
  17956. of Take Command to improve your batch files.  For example, the START command 
  17957. offers additional flexibility in starting applications.  MSGBOX and QUERYBOX 
  17958. can be used to create OS/2- style input prompts, and KEYSTACK and ACTIVATE will 
  17959. help control your OS/2 applications. 
  17960.  
  17961. Once you get used to these enhancements and minor differences you'll find that 
  17962. you can use Take Command to manage your system using the same techniques and 
  17963. features you are already familiar with from your experience with 4OS2, 4DOS, or 
  17964. CMD.EXE. 
  17965.  
  17966.  
  17967. ΓòÉΓòÉΓòÉ 10.2. File Systems and File Name Conventions ΓòÉΓòÉΓòÉ
  17968.  
  17969. You may have dozens, hundreds, or thousands of files stored on your computer's 
  17970. disks.  Your operating system is responsible for managing all of these files. 
  17971. In order to do so, it uses a unique name to locate each file in much the same 
  17972. way that the post office assigns a unique address to every residence. The 
  17973. unique name of any file is composed of a drive letter, a directory path, and a 
  17974. filename.  Each of these parts of the file's name is case insensitive; you can 
  17975. mix upper and lower case letters in any way you wish. 
  17976.  
  17977. OS/2 supports two different files systems: the traditional FAT file system, 
  17978. used by all versions of DOS prior to Windows 95, and OS/2's High Performance 
  17979. File System (HPFS), as well as installable file systems such as those used by 
  17980. CD-ROMs and some networks.  Take Command includes support for all file systems 
  17981. that are accessible to OS/2. 
  17982.  
  17983. This section presents an overview of OS/2-compatible file systems, including 
  17984. naming conventions used by each.  The following sub-topics are included in this 
  17985. section: 
  17986.  
  17987.              Drives and Volumes 
  17988.  
  17989.              File Systems 
  17990.  
  17991.              Network File Systems including information about using UNC 
  17992.              (Universal Naming Convention) names over a network. 
  17993.  
  17994.              Directories and Subdirectories 
  17995.  
  17996.              File Names 
  17997.  
  17998.              File Attributes and Time Stamps 
  17999.  
  18000.              OS/2 Extended Attributes 
  18001.  
  18002.  
  18003. ΓòÉΓòÉΓòÉ 10.2.1. Drives and Volumes ΓòÉΓòÉΓòÉ
  18004.  
  18005. A drive letter designates which drive contains the file.  In a file's full 
  18006. name, the drive letter is followed by a colon.  Drive letters A: and B: are 
  18007. normally reserved for the floppy disk drives.  Normally, drive C: is the first 
  18008. (or only) hard disk drive.  Most current operating systems can divide a large 
  18009. hard disk into multiple logical drives or volumes that are usually called C:, 
  18010. D:, E:, etc.  Network systems (LANs) give additional drive letters to sections 
  18011. of the network file server drives. 
  18012.  
  18013. Most recent systems also include a CD-ROM drive.  The CD-ROM is also assigned a 
  18014. drive letter (or several letters, for CD-ROM changers), typically using letters 
  18015. beyond that used by the last hard disk in the system, but before any network 
  18016. drives. 
  18017.  
  18018. Some systems may have "RAM disks" (sometimes called "virtual disks"), which are 
  18019. areas of memory set aside by software (a "RAM disk driver") for use as fast but 
  18020. temporary storage.  Like CD-ROM drives, RAM disks are usually assigned drive 
  18021. letters beyond the last hard disk in the system, but before network drives. For 
  18022. example, on a system with a large hard disk you might have A: and B: as floppy 
  18023. drives, C:, D:, and E: as parts of the hard disk, F: as a CD-ROM drive, G: as a 
  18024. RAM disk, and H: and I: as network drives. 
  18025.  
  18026.  
  18027. ΓòÉΓòÉΓòÉ 10.2.2. File Systems ΓòÉΓòÉΓòÉ
  18028.  
  18029. Each disk volume is organized according to a file system.  The file system 
  18030. determines how files are named and how they are organized on the disk. 
  18031.  
  18032. As hard disk technology and operating systems have evolved, new file systems 
  18033. have been invented to support longer file names, larger drives, and higher disk 
  18034. performance.  Several different and incompatible schemes have evolved. Which 
  18035. file systems you can use depend on which operating system you are using and how 
  18036. the operating system and your hard disk are configured. 
  18037.  
  18038. Take Command for OS/2, and OS/2 itself, supports two standard file systems: 
  18039. FAT (and VFAT) and HPFS.  See File Names for details on the rules for naming 
  18040. files under each file system. 
  18041.  
  18042. The FAT File System is the traditional file system used by all versions of DOS 
  18043. and by Windows 3.x.  Its name comes from the File Allocation Table DOS uses to 
  18044. keep track of the space allocated to each file. 
  18045.  
  18046. The VFAT File System is an extension of the FAT file system available in 
  18047. Windows 95 and Windows NT.  This system maintains additional information about 
  18048. files on FAT drives, including long filenames (LFNs). Other operating systems 
  18049. such as OS/2 and earlier versions of DOS can access files on VFAT drives, but 
  18050. will not be able to access long filenames or other information which is added 
  18051. by the VFAT file system. 
  18052.  
  18053. The FAT32 File System is an additional extension to the VFAT file system.  It 
  18054. is only available in Windows 95 OEM Service Release 2 ("OEMSR2") and later 
  18055. versions.  It is similar to the VFAT file system, but supports larger disk 
  18056. drives.  It is incompatible with OS/2 and earlier versions of DOS, and can only 
  18057. be used under Windows 95 OEMSR2. 
  18058.  
  18059. The High Performance File System or HPFS is a file system provided with all 
  18060. versions of OS/2.  It supports long file names, and offers higher performance 
  18061. and better support for large drives than the FAT or VFAT system.  It also 
  18062. supports extended attributes to retain additional information about your files. 
  18063.  
  18064. DOS and Windows sessions running under OS/2 can access files on HPFS drives if 
  18065. the files have short, FAT-compatible names.  Other operating systems (DOS, 
  18066. Windows 95, and Windows NT 4.0 and above) can not access files on HPFS drives. 
  18067.  
  18068. Additional file systems may be installed under some operating systems to 
  18069. support CD-ROM or network drives.  In particular, OS/2 supports installable 
  18070. file systems, which are installed with the IFS= directive in the OS/2 
  18071. CONFIG.SYS file.  This facility is used to add support for HPFS, CD-ROM, and 
  18072. network drives to the base OS/2 operating system. 
  18073.  
  18074. The file system type (FAT / VFAT or HPFS) is determined when a hard disk volume 
  18075. is formatted and applies to the entire volume.  For example, you might have a 2 
  18076. GB hard disk divided into four 500 MB volumes, with the first three volumes 
  18077. (C:, D:, and E:) formatted for the FAT or VFAT file system, and the fourth 
  18078. formatted for HPFS. 
  18079.  
  18080. Take Command for OS/2 supports any standard file system installed under OS/2. 
  18081. If your operating system can access files on a particular drive, then your 
  18082. version of Take Command will be able to access those files as well. 
  18083.  
  18084.  
  18085. ΓòÉΓòÉΓòÉ 10.2.3. Network File Systems ΓòÉΓòÉΓòÉ
  18086.  
  18087. A network file system allows you to access files stored on another computer on 
  18088. a network, rather than on your own system.  Take Command for OS/2 supports all 
  18089. network file systems which are compatible with OS/2. 
  18090.  
  18091. File and directory names for network file systems depend on both the server 
  18092. software running on the system that has the files on it, and the client 
  18093. software running on your computer to connect it to the network.  However, they 
  18094. usually follow the rules described here. 
  18095.  
  18096. Most network software "maps" unused drive letters on your system to specific 
  18097. locations on the network, and you can then treat the drive as if it were 
  18098. physically part of your local computer. 
  18099.  
  18100. Some networks also support the Universal Naming Convention, which provides a 
  18101. common method for accessing files on a network drive without using a "mapped" 
  18102. drive letter.  Names specified this way are called UNC names.  They typically 
  18103. appear as \\server\volume\path\filename, where server is the name of the 
  18104. network server where the files reside, volume is the name of a disk volume on 
  18105. that server, and the path\filename portion is a directory name and file name 
  18106. which follow the conventions described under Directories and Subdirectories. 
  18107. Take Command supports UNC filenames, and also allows you to use UNC directory 
  18108. names when changing directories (see Directory Navigation for more details). 
  18109.  
  18110. When you use a network file system, remember that the naming conventions for 
  18111. files on the network may not match those on your local system.  For example, 
  18112. your local system may support long filenames while the network server or client 
  18113. software does not, or vice versa.  Take Command will usually handle whatever 
  18114. naming conventions are supported by your network software, as long as the 
  18115. network software accurately reports the types of names it can handle. 
  18116.  
  18117. In some cases, Take Command (particularly Take Command/16) may not be able to 
  18118. report correct statistics on network drives (such as the number of bytes free 
  18119. on a drive).  This is usually because the network file system does not provide 
  18120. complete or accurate information. 
  18121.  
  18122.  
  18123. ΓòÉΓòÉΓòÉ 10.2.4. ┬áDirectories and Subdirectories ΓòÉΓòÉΓòÉ
  18124.  
  18125. A file system is a method of organizing all of the files on an entire disk or 
  18126. hard disk volume.  Directories or folders are used to divide the files on a 
  18127. disk into logical groups that are easy to work with.  Their purpose is similar 
  18128. to the use of file drawers to contain groups of hanging folders, hanging 
  18129. folders to contain smaller manila folders, and so on.  (The terms directory and 
  18130. folder are nearly synoymous -- we use directory throughout this manual.) 
  18131.  
  18132. Every drive has a root or base directory, and many have one or more 
  18133. subdirectories.  Subdirectories can also have subdirectories, extending in a 
  18134. branching tree structure from the root directory.  The collection of all 
  18135. directories on a drive is often called the directory tree, and a portion of the 
  18136. tree is sometimes called a subtree.  The terms directory and subdirectory are 
  18137. typically used interchangeably to mean a single subdirectory within this tree 
  18138. structure. 
  18139.  
  18140. Subdirectory names follow the same naming rules as files in each file system. 
  18141. However, under DOS it is best to use a name of 8 characters or less, without an 
  18142. extension, when naming subdirectories, because some application programs do not 
  18143. properly handle subdirectory names that have an extension. 
  18144.  
  18145. The drive and subdirectory portion of a file's name are collectively called the 
  18146. file's path.  For example, the file name C:\DIR1\DIR2\MYFILE.DAT says to look 
  18147. for the file MYFILE.DAT in the subdirectory DIR2 which is part of the 
  18148. subdirectory DIR1 which is on drive C.  The path for MYFILE.DAT is 
  18149. C:\DIR1\DIR2.  The backslashes between subdirectory names are required. 
  18150.  
  18151. The total length of a file's path may not exceed 64 characters  on FAT volumes 
  18152. under OS/2 (this limit excludes the file name and extension, but includes the 
  18153. drive letter and colon).  On HPFS  volumes, the path and file name must each be 
  18154. 255 characters or less in length, and in addition the total length of the path 
  18155. and file name together cannot exceed 260 characters. 
  18156.  
  18157. The operating system and Take Command remember both a current or default drive 
  18158. for your system as a whole, and a current or default directory for every drive 
  18159. in your system.  Whenever a program tries to create or access a file without 
  18160. specifying the file's path, the operating system uses the current drive (if no 
  18161. other drive is specified) and the current directory (if no other directory path 
  18162. is specified). 
  18163.  
  18164. The root directory is named using the drive letter and a single backslash. For 
  18165. example, D:\ refers to the root directory of drive D:.  Using a drive letter 
  18166. with no directory name at all refers to the current directory on the specified 
  18167. drive.  For example, E:TCMD.DOC refers to the file TCMD.DOC in the current 
  18168. directory on drive E:, whereas E:\TCMD.DOC refers to the file TCMD.DOC in the 
  18169. root directory on drive E:. 
  18170.  
  18171. There are also two special subdirectory names that are useful in many 
  18172. situations:  a single period by itself [.] means "the current default 
  18173. directory."  Two periods together [..] means "the directory which contains the 
  18174. current default directory" (often referred to as the parent directory).  These 
  18175. special names can be used wherever a full directory name can be used.  Take 
  18176. Command allows you to use additional periods to specify directories further 
  18177. "up" the tree (see Extended Parent Directory Names). 
  18178.  
  18179.  
  18180. ΓòÉΓòÉΓòÉ 10.2.5. File Names ΓòÉΓòÉΓòÉ
  18181.  
  18182. Each file has a filename.  Under the FAT file system, the filename consists of 
  18183. a base name of 1 to 8 characters plus an optional extension composed of a 
  18184. period plus 1 to 3 more characters.  Traditional FAT filenames with an 8- 
  18185. character name and a 3-character extension are sometimes referred to as short 
  18186. filenames (SFNs) to distinguish them from long filenames (LFNs). 
  18187.  
  18188. You can use alphabetic and numeric characters plus the punctuation marks ! # $ 
  18189. % & ' ( ) - @ ^ _ ` { } and ~ in both the base name and the extension of a FAT 
  18190. filename.  Because the exclamation point [!], percent sign [%], caret [^], at 
  18191. sign [@], parentheses [()], ampersand [&], and back-quote [`] also have other 
  18192. meanings to Take Command, it is best to avoid using them in filenames. 
  18193.  
  18194. The HPFS file systems allows file names with a maximum of 255 characters, 
  18195. including spaces and other characters that are not allowed in a FAT system file 
  18196. name, but excluding some punctuation characters which are allowed in FAT file 
  18197. names.  See your OS/2 documentation for details on the characters allowed.  If 
  18198. you use file names which contain semicolons [;], see page Error! Bookmark not 
  18199. defined. for details on avoiding problems with interpretation of those file 
  18200. names under Take Command. 
  18201.  
  18202. HPFS file names are stored and displayed exactly as you entered them, and are 
  18203. not automatically shifted to upper or lower case.  For example, you could 
  18204. create a file called MYFILE, myfile, or MyFile, and each name would be stored 
  18205. in the directory just as you entered it.  However, case is ignored when looking 
  18206. for filenames, so you cannot have two files whose names differ only in case 
  18207. (i.e., the three names given above would all refer to the same file).  This 
  18208. behavior is sometimes described as "case-retentive but not case-sensitive" 
  18209. because the case information is retained, but does not affect access to the 
  18210. files. 
  18211.  
  18212. Files stored on HPFS volumes often have "FAT-compatible" names:  names which 
  18213. contain only those characters legal on a FAT volume, and which meet the 
  18214. 8-character name / 3-character extension limits.  Programs which cannot handle 
  18215. long names (for example, DOS programs running under OS/2) generally can access 
  18216. files by using FAT-compatible names. 
  18217.  
  18218. If an HPFS file name includes spaces or other characters that would not be 
  18219. allowed in a FAT name, you must place double quotes around the name.  For 
  18220. example, suppose you have a file named LET3 on a FAT volume, and you want to 
  18221. copy it to the LETTERS directory on drive F:, an HPFS partition, and give it 
  18222. the name Letter To Sara.  To do so, use either of these commands: 
  18223.  
  18224.         [c:\wp] copy let3 f:\LETTERS\"Letter To Sara"
  18225.         [c:\wp] copy let3 "f:\LETTERS\Letter To Sara"
  18226.  
  18227. HPFS does not explicitly define an "extension" for file names which are not 
  18228. FAT-compatible.  However, by convention, all characters after the last period 
  18229. in the file name are treated as the extension.  For example, the file name 
  18230. "Letter to Sara" has no extension, whereas the name "Letter.to.Sara" has the 
  18231. extension Sara. 
  18232.  
  18233. You may occasionally encounter filenames which are not displayed the way you 
  18234. expect if you have used characters from outside the U.S. English character set 
  18235. in the name.  These are generally due to problems in the way your operating 
  18236. system translates characters between the OEM and ANSI character sets. 
  18237. Correcting the problem may require experimentation with fonts, character sets, 
  18238. and code pages, and occasionally some such problems may not be readily 
  18239. correctable within Take Command. 
  18240.  
  18241.  
  18242. ΓòÉΓòÉΓòÉ 10.2.6. File Attributes and Time Stamps ΓòÉΓòÉΓòÉ
  18243.  
  18244. Each file also has attributes and one or more time stamps.  Attributes define 
  18245. characteristics of the file which may be useful to the operating system, to 
  18246. you, or to an application program.  Time stamps can record when the file was 
  18247. created, last modified, or last accessed.  Most Take Command file processing 
  18248. commands allow you to select files for processing based on their attributes 
  18249. and/or time stamp(s). 
  18250.  
  18251. Each file on your system has four standard attributes.  Every time a program 
  18252. modifies a file, the operating system sets the Archive attribute, which signals 
  18253. that the file has been modified since it was last backed up. This attribute can 
  18254. be used by Take Command to determine which files to COPY or MOVE, and by backup 
  18255. programs to determine which files to back up.  When the Read-only attribute is 
  18256. set, the file can't be changed or erased accidentally; this can be used to help 
  18257. protect important files from damage.  The Hidden and System attributes prevent 
  18258. the file from appearing in normal directory listings.  (Two additional 
  18259. attributes, Directory and Volume label, are also available.  These attributes 
  18260. are controlled by the operating system, and are not modified directly by Take 
  18261. Command.) 
  18262.  
  18263. Attributes can be set and viewed with the ATTRIB command.  The DIR command also 
  18264. has options to select filenames to view based on their attributes, to view the 
  18265. attributes themselves, and to view information about normally "invisible" 
  18266. hidden and system files. 
  18267.  
  18268. When a file is created, and every time it is modified, the operating system 
  18269. records the system time and date in a time stamp in the file's directory entry. 
  18270. Several Take Command variable functions and commands, and many backup and 
  18271. utility programs, use this time stamp to determine the relative ages of files. 
  18272.  
  18273. Files on HPFS volumes have three sets of time and date stamps.  The operating 
  18274. system records when each file was created, when it was last written or 
  18275. modified, and when it was last accessed.  The "last write" time stamp matches 
  18276. the single time stamp used on traditional FAT volumes. 
  18277.  
  18278. Several Take Command variable functions and commands let you specify which set 
  18279. of time and date stamps you want to view or work with on HPFS volumes.  These 
  18280. commands and functions use the letter "c" to refer to the creation time stamp, 
  18281. "w" for the last write time stamp, and "a" for the last access time stamp. 
  18282.  
  18283.  
  18284. ΓòÉΓòÉΓòÉ 10.2.7. OS/2 Extended Attributes ΓòÉΓòÉΓòÉ
  18285.  
  18286. The FAT and VFAT file systems allow the limited set of attributes for files 
  18287. described in the previous section.  OS/2 supports additional information about 
  18288. files called Extended Attributes or EAs. 
  18289.  
  18290. The Extended Attributes for a file provide additional information which is not 
  18291. part of the file's actual contents.  This information might include the icon to 
  18292. be displayed for the file on the OS/2 desktop, or the type of data contained in 
  18293. the file. 
  18294.  
  18295. OS/2 supports Extended Attributes on both FAT and HPFS (High Performance File 
  18296. System) partitions.  EAs for the files on a FAT partition are stored in the 
  18297. file "EA DATA. SF" in the partition's root directory.  Like CMD.EXE, Take 
  18298. Command for OS/2 preserves a file's EAs when copying or moving the file, and 
  18299. OS/2 makes the appropriate adjustments to EAs when a file is deleted or 
  18300. renamed. 
  18301.  
  18302. When copying or moving a file from a FAT to an HPFS volume, Take Command uses 
  18303. uses the file's .LONGNAME EA, if available, for the HPFS filename. Conversely, 
  18304. when copying or moving a file from an HPFS volume to a FAT volume, Take Command 
  18305. will set the .LONGNAME EA to the original HPFS name.  See the COPY and MOVE 
  18306. commands for additional details. 
  18307.  
  18308. If you boot DOS or any version of Windows, then delete or otherwise manipulate 
  18309. files that have Extended Attributes, you can face unexpected problems when you 
  18310. next boot under OS/2, because the EAs and directories will no longer be 
  18311. synchronized.  If you must manipulate files with Extended Attributes during a 
  18312. DOS boot, or when you boot a "specific version of DOS" (not a standard DOS 
  18313. seesion) from OS/2, make sure you run OS/2's CHKDSK program to clean up any 
  18314. "orphaned" EAs. 
  18315.  
  18316. For more information on Extended Attributes, see your OS/2 documentation. 
  18317.  
  18318.  
  18319. ΓòÉΓòÉΓòÉ 10.3. Miscellaneous Reference Information ΓòÉΓòÉΓòÉ
  18320.  
  18321. This section contains miscellaneous information that is useful throughout Take 
  18322. Command:  at the command line, in internal commands, in aliases, and in batch 
  18323. files. 
  18324.  
  18325. Included here is information about 
  18326.  
  18327.              Colors and Color Names 
  18328.  
  18329.              Keys and Key Names 
  18330.  
  18331.              Popup Windows 
  18332.  
  18333.              Internal and External Commands 
  18334.  
  18335.              Executable Files and File Searches 
  18336.  
  18337.  
  18338. ΓòÉΓòÉΓòÉ 10.3.1. Colors and Color Names ΓòÉΓòÉΓòÉ
  18339.  
  18340. You can use color names in several of the directives in the TCMDOS2.INI file 
  18341. and in many commands. 
  18342.  
  18343. The general form of a color name is: 
  18344.  
  18345.         [BRIght] fg ON [BRIght] bg
  18346.  
  18347. where fg is the foreground or text color, and bg is the background color. 
  18348.  
  18349. The available colors are: 
  18350.  
  18351.  
  18352.                  Black      Blue       Green      Red
  18353.  
  18354.                  Magenta    Cyan       Yellow     White
  18355.  
  18356.         Color names and the word BRIght may be shortened to the first 3 
  18357.         letters. 
  18358.  
  18359.         You can also specify colors by number instead of by name.  The numbers 
  18360.         are most useful in potentially long .INI file directives like ColorDIR. 
  18361.         Take Command recognizes these color numbers: 
  18362.  
  18363.  
  18364.                  0 - Black            8 - Gray (bright black)
  18365.  
  18366.                  1 - Blue             9 - Bright blue
  18367.  
  18368.                  2 - Green            10 - Bright green
  18369.  
  18370.                  3 - Cyan             11 - Bright cyan
  18371.  
  18372.                  4 - Red              12 - Bright red
  18373.  
  18374.                  5 - Magenta          13 - Bright magenta
  18375.  
  18376.                  6 - Yellow           14 - Bright yellow
  18377.  
  18378.                  7 - White            15 - Bright white
  18379.  
  18380.         Use one number to substitute for the [BRIght] fg portion of the color 
  18381.         name, and a second to substitute for the [BRIght] bg portion.  For 
  18382.         example, instead of bright cyan on blue you could use 11 on 1 to save 
  18383.         space in a ColorDir specification. 
  18384.  
  18385.         The blinking text and border colors that are available with 4DOS can 
  18386.         not be used with Take Command.  This restriction is due to limitations 
  18387.         inherent in OS/2 and in graphical displays. 
  18388.  
  18389.  
  18390. ΓòÉΓòÉΓòÉ 10.3.2. Keys and Key Names ΓòÉΓòÉΓòÉ
  18391.  
  18392. Key names are used to define keystroke aliases, in several TCMDOS2.INI 
  18393. directives, and with the KEYSTACK command.  The format of a key name is the 
  18394. same in all 3  uses: 
  18395.  
  18396.         [Prefix-]Keyname
  18397.  
  18398. The key prefix can be left out, or it can be one of the following : 
  18399.  
  18400.         Alt       followed by A - Z, 0 - 9, F1 - F12, or Bksp
  18401.         Ctrl      followed by A - Z, F1 - F12, Tab, Bksp, Enter,
  18402.                   Left, Right, Home, End, PgUp, PgDn, Ins, or Del
  18403.         Shift     followed by F1 - F12 or Tab.
  18404.  
  18405. The possible key names are: 
  18406.  
  18407.         A - Z     Enter     PgDn
  18408.         0 - 9     Up        Home
  18409.         F1 - F    Down      End
  18410.         Esc       Left      Ins
  18411.         Bksp      Right     Del
  18412.         Tab       PgUp
  18413.  
  18414. All key names must be spelled as shown.  Alphabetic keys can be specified in 
  18415. upper-case or lower-case.  You cannot specify a punctuation key. 
  18416.  
  18417. The prefix and key name must be separated by a dash [-].  For example: 
  18418.  
  18419.         Ctrl-F10   This is okay
  18420.         Ctrl F10   The space will cause an error
  18421.  
  18422. If you prefer, you can use a numeric value instead of a key name. Use the ASCII 
  18423. code for an ASCII, extended ASCII, or control character. Use the scan code 
  18424. preceded by an at sign [@] for extended key codes like F1 or the cursor keys. 
  18425. For example, use 13 for Enter, or @59 for F1.  In general, you will find it 
  18426. easier to use the names described above rather than key numbers. 
  18427.  
  18428. Some keys are intercepted by OS/2 and are not passed on to Take Command.  For 
  18429. example, Ctrl-S pauses screen output temporarily, and Alt-Tab switches to 
  18430. another window.  Keys which are intercepted by OS/2 (including menu 
  18431. accelerators, i.e. Alt plus another key) generally cannot be assigned to 
  18432. aliases or with key mapping directives, because Take Command never receives 
  18433. these keystrokes and therefore cannot act on them. 
  18434.  
  18435.  
  18436. ΓòÉΓòÉΓòÉ 10.3.3. Popup Windows ΓòÉΓòÉΓòÉ
  18437.  
  18438. Several features of Take Command display popup windows.  A popup window may be 
  18439. used to display filenames, recently-executed commands, recently-used 
  18440. directories, the results of an extended directory search, or a list created by 
  18441. the SELECT command or the @SELECT internal function. 
  18442.  
  18443. Popup windows always display a list of choices and a cursor bar.  You can move 
  18444. the cursor bar inside the window until you find the choice that you wish to 
  18445. make, then press the Enter key to select that item. 
  18446.  
  18447. Navigation inside any popup window follows the conventions described below. 
  18448. Additional information on each specific type of popup window is provided when 
  18449. that window is introduced in the online help. 
  18450.  
  18451. You can control the color, position and size of most popup windows from the 
  18452. Command Line 2 page of the configuration dialogs, or with the PopupWinLeft, 
  18453. PopupWinTop, PopupWinWidth, and PopupWinHeight directives in the .INI file A 
  18454. few popup windows (e.g., the extended directory search window) have their own 
  18455. specific .INI directives, and corresponding separate choices in the 
  18456. configuration dialogs.  You can also change the keys used in most popup windows 
  18457. with key mapping directives in 4OS2.INI. 
  18458.  
  18459. Once a window is open, you can use these navigation keys to find the selection 
  18460. you wish to make: 
  18461.  
  18462.         Up Arrow      Move the selection bar up one line. 
  18463.  
  18464.         Down Arrow    Move the selection bar one line. 
  18465.  
  18466.         Left Arrow    Scroll the display left 1 column, if it is a scrolling 
  18467.                       display (i.e. if it has a horizontal scrollbar). 
  18468.  
  18469.         Right Arrow   Scroll the display right 1 column, if it is a scrolling 
  18470.                       display (i.e. if it has a horizontal scrollbar). 
  18471.  
  18472.         PgUp          Scroll the display up one page. 
  18473.  
  18474.         PgDn          Scroll the display down one page. 
  18475.  
  18476.         Ctrl-PgUp     Go to the beginning of the list. 
  18477.  
  18478.           or Home 
  18479.  
  18480.         Ctrl-PgDn     Go to the end of the list. 
  18481.  
  18482.           or End 
  18483.  
  18484.         Esc           Close the window without making a selection. 
  18485.  
  18486.         Enter         Select the current item and close the window. 
  18487.  
  18488.  In addition to scrolling through a popup window, you can search the list using 
  18489.  character matching.  If you press a character, the cursor bar will move to the 
  18490.  next entry that begins with that character.  If you type multiple characters, 
  18491.  the cursor will move to the entry that begins with the character string 
  18492.  entered to that point (you can enter a search string up to 32 characters 
  18493.  long).  If no entry matches the character or string that you have typed, Take 
  18494.  Command beeps and does not move the cursor bar.  To reset the search string, 
  18495.  press Backspace. 
  18496.  
  18497.  You can change the keys used in popup windows with key mapping directives in 
  18498.  the TCMDOS2.INI file. 
  18499.  
  18500.  
  18501. ΓòÉΓòÉΓòÉ 10.3.4. Internal and External Commands ΓòÉΓòÉΓòÉ
  18502.  
  18503. Whenever you type something at the Take Command prompt and press the Enter key, 
  18504. you have given a command, and Take Command must figure out how to execute it. 
  18505. If you understand the general process that Take Command uses, you will be able 
  18506. to make the best use of it and its commands. 
  18507.  
  18508. Take Command begins by dividing the line you typed into a command name and a 
  18509. command tail.  The command name is the first word in the command; the tail is 
  18510. everything that follows the command name.  For example, in this command line: 
  18511.  
  18512.         dir *.txt /2/p/v
  18513.  
  18514. the command name is "dir", and the command tail is " *.txt /2/p/v." 
  18515.  
  18516. If the command name is not an alias, Take Command tries to find the name in its 
  18517. list of internal commands.  An internal command is one that Take Command can 
  18518. perform itself, without running another program.  DIR and COPY are examples of 
  18519. internal commands. 
  18520.  
  18521. If the command name is not found in Take Command's list of internal commands, 
  18522. it assumes that it must find and execute an external command.  This means that 
  18523. it must load and run a separate program, either an executable program or a 
  18524. batch file.  OS/2 and DOS are shipped with a number of external utility 
  18525. programs (such as FORMAT and DISKCOPY), and any program or application you 
  18526. install on your system becomes a new external command. 
  18527.  
  18528. The advantage of internal commands is that they run almost instantly.  When you 
  18529. type an internal command, Take Command interprets the command line and carries 
  18530. out the necessary activities without having to look for, load, and run another 
  18531. program. 
  18532.  
  18533. The advantage of external commands is that they can be large, varied, and 
  18534. complex without taking space inside Take Command.  External commands can also 
  18535. be renamed or replaced easily.  If you want to rename the external DOS command 
  18536. XCOPY to MYCOPY, for example, all you need to do is find the file called 
  18537. XCOPY.EXE in your DOS directory and change its name to MYCOPY.EXE.  If you want 
  18538. to replace XCOPY with a more efficient program of the same name, you can do so. 
  18539. Take Command adds this flexibility to internal commands.  You can rename or 
  18540. replace any internal command by using an alias, and you can enable or disable 
  18541. internal commands whenever you wish (see SETDOS /I). 
  18542.  
  18543.  
  18544. ΓòÉΓòÉΓòÉ 10.3.5. Executable Files and File Searches ΓòÉΓòÉΓòÉ
  18545.  
  18546. When Take Command knows that it is supposed to run an external command, it 
  18547. tries to find an executable file whose name matches the command name. 
  18548. (Executable files are typically those with a .COM or .EXE extension, or with a 
  18549. .PIF extension under Windows.)  It runs the executable file if it finds one. 
  18550.  
  18551. If Take Command cannot find an executable program to run, it next looks for a 
  18552. batch file (a file with one or more commands in it) whose name matches the 
  18553. command name.  Take Command looks first for a .BTM file, then for a .CMD file, 
  18554. and then for a .BAT file, and finally for a .REX file.  See .BAT, .CMD, and 
  18555. .BTM Files for more information on these different types of batch files.  If 
  18556. the command processor finds such a file, it then reads each line in the file as 
  18557. a new command. 
  18558.  
  18559. If the search for a batch file fails, Take Command checks to see if the command 
  18560. name matches the name of a file with an extension that is associated with a 
  18561. specific application (for example, if you have associated .DOC with your editor 
  18562. or word processor, and type the name of a .DOC file).  If a match is found, 
  18563. Take Command runs the program you specified when the association was defined. 
  18564. (Executable extensions are a Take Command feature used to associate file 
  18565. extensions with the specific program that processes a particular type of file). 
  18566.  
  18567. Take Command first searches for an executable program, a batch file, and a file 
  18568. with an executable extension in the current directory.  If that search fails, 
  18569. it repeats its search in every directory in your search path. 
  18570.  
  18571. The search path is a list of directories that Take Command (and some 
  18572. applications) search for executable files.  For example, if you wanted Take 
  18573. Command to search the root directory of the C: drive, the \WINUTIL subdirectory 
  18574. on the C: drive, and the \UTIL directory on the D: drive for executable files, 
  18575. your search path would look like this: 
  18576.  
  18577.         PATH=C:\;C:\WINUTIL;D:\UTIL
  18578.  
  18579. Notice that the directory names in the search path are separated by semicolons. 
  18580.  
  18581. You can create or view the search path with the PATH command.  You can use the 
  18582. ESET command to edit the path.  Many programs also use the search path to find 
  18583. their own files.  The search path is stored in the environment with the name 
  18584. PATH. 
  18585.  
  18586. Remember, Take Command always looks for an executable file or a file with an 
  18587. executable extension first in the current subdirectory and then in each 
  18588. directory in the search path.  (You can change the search order so the current 
  18589. directory is not searched first; see the PATH command for details.) 
  18590.  
  18591. If you include an extension as part of the command name, Take Command only 
  18592. searches for a file with that extension.  Similarly, if you include a path as 
  18593. part of the command name, Take Command will look only in the directory you 
  18594. specified, and ignore the usual search of the current directory and the PATH. 
  18595.  
  18596. The following table sums up the possible search options (the term "standard 
  18597. search" refers to the search of the current directory and each directory in the 
  18598. search path): 
  18599.  
  18600.         Command                 Take Command Search Sequence 
  18601.  
  18602.         WP                      Standard search for any executable file whose 
  18603.                                 base name is WP. 
  18604.  
  18605.         WP.EXE                  Standard search for WP.EXE; will not find files 
  18606.                                 with other extensions. 
  18607.  
  18608.         C:\WP7\WP               Looks in the C:\WP7 directory for any 
  18609.                                 executable file whose base name is WP.  Does 
  18610.                                 not check the standard search directories. 
  18611.  
  18612.         C:\WP7\WP.EXE           Looks only for the file C:\WP7\WP.EXE. 
  18613.  
  18614.         LAB.DOC                 Standard search for LAB.DOC, if .DOC is defined 
  18615.                                 as a Take Command executable extension.  Runs 
  18616.                                 the associated application if the file is 
  18617.                                 found. 
  18618.  
  18619.         C:\LI\LAB.DOC           Looks only for the file C:\LI\LAB.DOC, and only 
  18620.                                 if .DOC is defined as a Take Command executable 
  18621.                                 extension.  Runs the associated application if 
  18622.                                 the file is found. 
  18623.  
  18624.  If Take Command cannot find an executable file, batch program, or a file with 
  18625.  an executable extension in the current directory or any directory in the 
  18626.  search path, it looks for an alias called UNKNOWN_CMD (see ALIAS for details). 
  18627.  If you have defined an alias with that name, it is executed (this allows you 
  18628.  to control error handling for unknown commands).  Otherwise, Take Command 
  18629.  displays an "Unknown command" error message and waits for your next 
  18630.  instruction. 
  18631.  
  18632.  
  18633. ΓòÉΓòÉΓòÉ 10.4. Reference Tables ΓòÉΓòÉΓòÉ
  18634.  
  18635. The reference tables in this section are based on U.S. English conventions. 
  18636. Your system may differ if it is configured for a different country or language. 
  18637. See your operating system documentation for more information about country and 
  18638. language support. 
  18639.  
  18640. To represent the text you type, computers must translate each letter to and 
  18641. from a number.  The code used by all PC-compatible computers for this 
  18642. translation is called ASCII.  Function keys, cursor keys, and Alt keys generate 
  18643. scan codes indicating which key was pressed, but not ASCII codes.  The tables 
  18644. in this section cover both kinds of codes. 
  18645.  
  18646. For more information, see: 
  18647.  
  18648.             ASCII Table 
  18649.             Key Codes and Scan Codes Table 
  18650.             Key Codes and Scan Codes Explanation 
  18651.             ANSI Reference 
  18652.  
  18653.  
  18654. ΓòÉΓòÉΓòÉ 10.4.1. ASCII Table ΓòÉΓòÉΓòÉ
  18655.  
  18656.                       Control Characters
  18657.  
  18658.     Dec  Hex  Chr  Nam  Ctl   Γöé   Dec  Hex  Chr  Nam  Ctl
  18659.     ---  ---  ---  ---  ---   Γöé   ---  ---  ---  ---  ---
  18660.     000   00       NUL   ^@   Γöé   016   10      DLE   ^P
  18661.     001   01      SOH   ^A   Γöé   017   11      DC1   ^Q
  18662.     002   02      STX   ^B   Γöé   018   12      DC2   ^R
  18663.     003   03      ETX   ^C   Γöé   019   13      DC3   ^S
  18664.     004   04      EOT   ^D   Γöé   020   14      DC4   ^T
  18665.     005   05      ENQ   ^E   Γöé   021   15      NAK   ^U
  18666.     006   06      ACK   ^F   Γöé   022   16      SYN   ^V
  18667.     007   07       BEL   ^G   Γöé   023   17      ETB   ^W
  18668.     008   08      BS    ^H   Γöé   024   18      CAN   ^X
  18669.     009   09       HT    ^I   Γöé   025   19      EM    ^Y
  18670.     010   0A       LF    ^J   Γöé   026   1A      SUB   ^Z
  18671.     011   0B       VT    ^K   Γöé   027   1B      ESC   ^[
  18672.     012   0C       FF    ^L   Γöé   028   1C      FS    ^\
  18673.     013   0D       CR    ^M   Γöé   029   1D      GS    ^]
  18674.     014   0E      SO    ^N   Γöé   030   1E      RS    ^^
  18675.     015   0F      SI    ^O   Γöé   031   1F      US    ^_
  18676.  
  18677.                   Punctuation, Digits, Upper Case
  18678.  
  18679.   Dec  Hex  Chr Γöé  Dec  Hex  Chr Γöé  Dec  Hex  Chr Γöé  Dec  Hex  Chr
  18680.   ---  ---  --- Γöé  ---  ---  --- Γöé  ---  ---  --- Γöé  ---  ---  ---
  18681.   032   20      Γöé  048   30   0  Γöé  064   40   @  Γöé  080   50   P
  18682.   033   21   !  Γöé  049   31   1  Γöé  065   41   A  Γöé  081   51   Q
  18683.   034   22   "  Γöé  050   32   2  Γöé  066   42   B  Γöé  082   52   R
  18684.   035   23   #  Γöé  051   33   3  Γöé  067   43   C  Γöé  083   53   S
  18685.   036   24   $  Γöé  052   34   4  Γöé  068   44   D  Γöé  084   54   T
  18686.   037   25   %  Γöé  053   35   5  Γöé  069   45   E  Γöé  085   55   U
  18687.   038   26   &  Γöé  054   36   6  Γöé  070   46   F  Γöé  086   56   V
  18688.   039   27   '  Γöé  055   37   7  Γöé  071   47   G  Γöé  087   57   W
  18689.   040   28   (  Γöé  056   38   8  Γöé  072   48   H  Γöé  088   58   X
  18690.   041   29   )  Γöé  057   39   9  Γöé  073   49   I  Γöé  089   59   Y
  18691.   042   2A   *  Γöé  058   3A   :  Γöé  074   4A   J  Γöé  090   5A   Z
  18692.   043   2B   +  Γöé  059   3B   ;  Γöé  075   4B   K  Γöé  091   5B   [
  18693.   044   2C   ,  Γöé  060   3C   <  Γöé  076   4C   L  Γöé  092   5C   \
  18694.   045   2D   -  Γöé  061   3D   =  Γöé  077   4D   M  Γöé  093   5D   ]
  18695.   046   2E   .  Γöé  062   3E   >  Γöé  078   4E   N  Γöé  094   5E   ^
  18696.   047   2F   /  Γöé  063   3F   ?  Γöé  079   4F   O  Γöé  095   5F   _
  18697.  
  18698.                    Lower Case, Miscellaneous
  18699.  
  18700.                  Dec  Hex  Chr Γöé  Dec  Hex  Chr
  18701.                  ---  ---  --- Γöé  ---  ---  ---
  18702.                  096   60   `  Γöé  112   70   p
  18703.                  097   61   a  Γöé  113   71   q
  18704.                  098   62   b  Γöé  114   72   r
  18705.                  099   63   c  Γöé  115   73   s
  18706.                  100   64   d  Γöé  116   74   t
  18707.                  101   65   e  Γöé  117   75   u
  18708.                  102   66   f  Γöé  118   76   v
  18709.                  103   67   g  Γöé  119   77   w
  18710.                  104   68   h  Γöé  120   78   x
  18711.                  105   69   i  Γöé  121   79   y
  18712.                  106   6A   j  Γöé  122   7A   z
  18713.                  107   6B   k  Γöé  123   7B   {
  18714.                  108   6C   l  Γöé  124   7C   |
  18715.                  109   6D   m  Γöé  125   7D   }
  18716.                  110   6E   n  Γöé  126   7E   ~
  18717.                  111   6F   o  Γöé  127   7F   
  18718.  
  18719.                 International; Graphics Characters 1
  18720.  
  18721.   Dec  Hex  Chr Γöé  Dec  Hex  Chr Γöé  Dec  Hex  Chr Γöé  Dec  Hex  Chr
  18722.   ---  ---  --- Γöé  ---  ---  --- Γöé  ---  ---  --- Γöé  ---  ---  ---
  18723.   128   80   ╨É  Γöé  144   90   ╨á  Γöé  160   A0      Γöé  176   B0
  18724.   129   81   ╨æ  Γöé  145   91   ╨í  Γöé  161   A1   ╨▒  Γöé  177   B1   ΓûÆ
  18725.   130   82   ╨Æ  Γöé  146   92   ╨ó  Γöé  162   A2   ╨▓  Γöé  178   B2   Γûô
  18726.   131   83   ╨ô  Γöé  147   93   ╨ú  Γöé  163   A3   ╨│  Γöé  179   B3   Γöé
  18727.   132   84   ╨ö  Γöé  148   94   ╨ñ  Γöé  164   A4   ╨┤  Γöé  180   B4   Γöñ
  18728.   133   85   ╨ò  Γöé  149   95   ╨Ñ  Γöé  165   A5   ╨╡  Γöé  181   B5   Γòí
  18729.   134   86   ╨û  Γöé  150   96   ╨ª  Γöé  166   A6   ╨╢  Γöé  182   B6
  18730.   135   87   ╨ù  Γöé  151   97   ╨º  Γöé  167   A7   ╨╖  Γöé  183   B7
  18731.   136   88   ╨ÿ  Γöé  152   98   ╨¿  Γöé  168   A8   ╨╕  Γöé  184   B8   Γòò
  18732.   137   89   ╨Ö  Γöé  153   99   ╨⌐  Γöé  169   A9   ╨╣  Γöé  185   B9   Γòú
  18733.   138   8A   ╨Ü  Γöé  154   9A   ╨¬  Γöé  170   AA   ╨║  Γöé  186   BA   Γòæ
  18734.   139   8B   ╨¢  Γöé  155   9B   ╨½  Γöé  171   AB   ╨╗  Γöé  187   BB   Γòù
  18735.   140   8C   ╨£  Γöé  156   9C   ╨¼  Γöé  172   AC   ╨╝  Γöé  188   BC   Γò¥
  18736.   141   8D   ╨¥  Γöé  157   9D   ╨¡  Γöé  173   AD   ╨╜  Γöé  189   BD   Γò£
  18737.   142   8E   ╨₧  Γöé  158   9E   ╨«  Γöé  174   AE   ╨╛  Γöé  190   BE   Γò¢
  18738.   143   8F   ╨ƒ  Γöé  159   9F   ╨»  Γöé  175   AF   ╨┐  Γöé  191   BF   ΓöÉ
  18739.  
  18740.                   Graphics Characters 2; Symbols
  18741.  
  18742.   Dec  Hex  Chr Γöé  Dec  Hex  Chr Γöé  Dec  Hex  Chr Γöé  Dec  Hex  Chr
  18743.   ---  ---  --- Γöé  ---  ---  --- Γöé  ---  ---  --- Γöé  ---  ---  ---
  18744.   192   C0   Γöö  Γöé  208   D0   Γò¿  Γöé  224   E0   ╤Ç  Γöé  240   F0   ╨ü
  18745.   193   C1   Γö┤  Γöé  209   D1   Γòñ  Γöé  225   E1   ╤ü  Γöé  241   F1   ╤æ
  18746.   194   C2   Γö¼  Γöé  210   D2   ΓòÑ  Γöé  226   E2   ╤é  Γöé  242   F2   ╨ä
  18747.   195   C3   Γö£  Γöé  211   D3   ΓòÖ  Γöé  227   E3   ╤â  Γöé  243   F3   ╤ö
  18748.   196   C4   ΓöÇ  Γöé  212   D4   Γòÿ  Γöé  228   E4   ╤ä  Γöé  244   F4   ╨ç
  18749.   197   C5   Γö╝  Γöé  213   D5   ΓòÆ  Γöé  229   E5   ╤à  Γöé  245   F5   ╤ù
  18750.   198   C6   Γò₧  Γöé  214   D6   Γòô  Γöé  230   E6   ╤å  Γöé  246   F6   ╨Ä
  18751.   199   C7   Γòƒ  Γöé  215   D7   Γò½  Γöé  231   E7   ╤ç  Γöé  247   F7   ╤₧
  18752.   200   C8   ΓòÜ  Γöé  216   D8   Γò¬  Γöé  232   E8   ╤ê  Γöé  248   F8   ┬░
  18753.   201   C9   Γòö  Γöé  217   D9   Γöÿ  Γöé  233   E9   ╤ë  Γöé  249   F9   ΓêÖ
  18754.   202   CA   Γò⌐  Γöé  218   DA   Γöî  Γöé  234   EA   ╤è  Γöé  250   FA   ┬╖
  18755.   203   CB   Γòª  Γöé  219   DB   Γûê  Γöé  235   EB   ╤ï  Γöé  251   FB   ΓêÜ
  18756.   204   CC   Γòá  Γöé  220   DC   Γûä  Γöé  236   EC   ╤î  Γöé  252   FC   Γäû
  18757.   205   CD   ΓòÉ  Γöé  221   DD   Γûî  Γöé  237   ED   ╤ì  Γöé  253   FD   ┬ñ
  18758.   206   CE   Γò¼  Γöé  222   DE   ΓûÉ  Γöé  238   EE   ╤Ä  Γöé  254   FE   Γûá
  18759.   207   CF   Γòº  Γöé  223   DF   ΓûÇ  Γöé  239   EF   ╤Å  Γöé  255   FF
  18760.  
  18761.  
  18762. ΓòÉΓòÉΓòÉ 10.4.2. Key Codes and Scan Codes Table ΓòÉΓòÉΓòÉ
  18763.  
  18764. (For more details on key codes and scan codes, see the Key Codes and Scan Codes 
  18765. Explanation.) 
  18766.  
  18767. Key names prefaced by np are on the numeric keypad.  Those prefaced by cp are 
  18768. on the cursor keypad between the main typing keys and the number keypad.  The 
  18769. numeric keypad values are valid if Num Lock is turned off. If you need to 
  18770. specify a number key from the numeric keypad, use the scan code shown for the 
  18771. keypad and the ASCII code shown for the corresponding typewriter key.  For 
  18772. example, the keypad "7" has a scan code of 71 (the np Home scan code) and an 
  18773. ASCII code of 54 (the ASCII code for "7"). 
  18774.  
  18775. The chart is blank for key combinations that do not have scan codes or ASCII 
  18776. codes, like Ctrl-1 or Alt-PgUp. 
  18777.  
  18778.  
  18779.                         Top Two Keyboard Rows
  18780.  
  18781.                              Shift  Shift  Ctrl   Ctrl   Alt
  18782.                Scan   ASCII  Scan   ASCII  Scan   ASCII  Scan
  18783.      Key       Code   Code   Code   Code   Code   Code   Code
  18784.  
  18785.      Esc       1      27     1      27     1      27     1
  18786.      1  !      2      49     2      33                   120
  18787.      2  @      3      50     3      64     3      0      121
  18788.      3  #      4      51     4      35                   122
  18789.      4  $      5      52     5      36                   123
  18790.      5  %      6      53     6      37                   124
  18791.      6  ^      7      54     7      94     7      30     125
  18792.      7  &      8      55     8      38                   126
  18793.      8  *      9      56     9      42                   127
  18794.      9  (      10     57     10     40                   128
  18795.      0  )      11     48     11     41                   129
  18796.      -  _      12     45     12     95     12     31     130
  18797.      =  +      13     61     13     43                   131
  18798.      Backspace 14     8      14     8      14     127    14
  18799.      Tab       15     9      15     0      148    0      165
  18800.      Q         16     113    16     81     16     17     16
  18801.      W         17     119    17     87     17     23     17
  18802.      E         18     101    18     69     18     5      18
  18803.      R         19     114    19     82     19     18     19
  18804.      T         20     116    20     84     20     20     20
  18805.      Y         21     121    21     89     21     25     21
  18806.      U         22     117    22     85     22     21     22
  18807.      I         23     105    23     73     23     9      23
  18808.      O         24     111    24     79     24     15     24
  18809.      P         25     112    25     80     25     16     25
  18810.      [  {      26     91     26     123    26     27     26
  18811.      ]  }      27     93     27     125    27     29     27
  18812.      Enter     28     13     28     13     28     10     28
  18813.  
  18814.  
  18815.                        Bottom Two Keyboard Rows
  18816.  
  18817.                              Shift  Shift  Ctrl   Ctrl   Alt
  18818.                Scan   ASCII  Scan   ASCII  Scan   ASCII  Scan
  18819.      Key       Code   Code   Code   Code   Code   Code   Code
  18820.  
  18821.      A         30     97     30     65     30     1      30
  18822.      S         31     115    31     83     31     19     31
  18823.      D         32     100    32     68     32     4      32
  18824.      F         33     102    33     70     33     6      33
  18825.      G         34     103    34     71     34     7      34
  18826.      H         35     104    35     72     35     8      35
  18827.      J         36     106    36     74     36     10     36
  18828.      K         37     107    37     75     37     11     37
  18829.      L         38     108    38     76     38     12     38
  18830.      ; :       39     59     39     58                   39
  18831.      '  "      40     39     40     34                   40
  18832.      `  ~      41     96     41     126                  41
  18833.      \  |      43     92     43     124    43     28     43
  18834.      Z         44     122    44     90     44     26     44
  18835.      X         45     120    45     88     45     24     45
  18836.      C         46     99     46     67     46     3      46
  18837.      V         47     118    47     86     47     22     47
  18838.      B         48     98     48     66     48     2      48
  18839.      N         49     110    49     78     49     14     49
  18840.      M         50     109    50     77     50     13     50
  18841.      ,  <      51     44     51     60                   51
  18842.      .  >      52     46     52     62                   52
  18843.      /  ?      53     47     53     63                   53
  18844.      Space     57     32     57     32     57     32     57
  18845.  
  18846.  
  18847.                       Key Pads and Function Keys
  18848.  
  18849.                              Shift  Shift  Ctrl   Ctrl   Alt
  18850.                Scan   ASCII  Scan   ASCII  Scan   ASCII  Scan
  18851.      Key       Code   Code   Code   Code   Code   Code   Code
  18852.  
  18853.  
  18854.      F1        59     0      84     0      94     0      104
  18855.      F2        60     0      85     0      95     0      105
  18856.      F3        61     0      86     0      96     0      106
  18857.      F4        62     0      87     0      97     0      107
  18858.      F5        63     0      88     0      98     0      108
  18859.      F6        64     0      89     0      99     0      109
  18860.      F7        65     0      90     0      100    0      110
  18861.      F8        66     0      91     0      101    0      111
  18862.      F9        67     0      92     0      102    0      112
  18863.      F10       68     0      93     0      103    0      113
  18864.      F11       133    0      135    0      137    0      139
  18865.      F12       134    0      136    0      138    0      140
  18866.      np *      55     42     55     42     150    0      55
  18867.      np Home   71     0      71     55     119    0
  18868.      cp Home   71     224    71     224    119    224    151
  18869.      np Up     72     0      72     56     141    0
  18870.      cp Up     72     224    72     224    141    224    152
  18871.      np PgUp   73     0      73     57     132    0
  18872.      cp PgUp   73     224    73     224    132    224    153
  18873.      np Minus  74     45     74     45     142    0      74
  18874.      np Left   75     0      75     52     115    0
  18875.      cp Left   75     224    75     224    115    224    155
  18876.      np 5      76     0      76     53     143    0
  18877.      np Right  77     0      77     54     116    0
  18878.      cp Right  77     224    77     224    116    224    157
  18879.      np Plus   78     43     78     43     144    0      78
  18880.      np End    79     0      79     49     117    0
  18881.      cp End    79     224    79     224    117    224    159
  18882.      np Down   80     0      80     50     145    0
  18883.      cp Down   80     224    80     224    145    224    160
  18884.      np PgDn   81     0      81     51     118    0
  18885.      cp PgDn   81     224    81     224    118    224    161
  18886.      np Ins    82     0      82     48     146    0
  18887.      cp Ins    82     224    82     224    146    224    162
  18888.      np Del    83     0      83     46     147    0
  18889.      cp Del    83     224    83     224    147    224    163
  18890.      np /      224    47     224    47     149    0      164
  18891.      np Enter  224    13     224    13     224    10     166
  18892.  
  18893.  
  18894. ΓòÉΓòÉΓòÉ 10.4.3. Key Codes and Scan Codes Explanation ΓòÉΓòÉΓòÉ
  18895.  
  18896. Key Codes and Scan Codes Explanation 
  18897.  
  18898. (This section explains how key codes and scan codes work.  For a reference 
  18899. chart, see the Key Codes and Scan Codes Table.) 
  18900.  
  18901. When you press a single key or a key combination, OS/2 translates your 
  18902. keystroke into two numbers: a scan code, representing the actual key that was 
  18903. pressed, and an ASCII code, representing the ASCII value for that key.  OS/2 
  18904. returns these numbers the next time a program requests keyboard input.  This 
  18905. section explains how key codes work; for information on using them with Take 
  18906. Command see the TCMDOS2.INI file key mapping directives, keystroke aliases, and 
  18907. INKEY. 
  18908.  
  18909. Most Take Command commands that use the numeric key codes listed here also use 
  18910. key names, which are usually more convenient to use than the numeric codes. See 
  18911. Keys and Key Names for more information on key names. 
  18912.  
  18913. As PCs have evolved, the structure of keyboard codes has evolved somewhat 
  18914. haphazardly with them, resulting in a bewildering array of possible key codes. 
  18915. We'll give you a basic explanation of how key codes work.  For a more in-depth 
  18916. discussion, refer to a BIOS or PC hardware reference manual. 
  18917.  
  18918. The nuances of how your keyboard behaves depends on the keyboard manufacturer, 
  18919. the computer manufacturer who provides the built-in BIOS, and your operating 
  18920. system.  As a result, we can't guarantee the accuracy of the information in the 
  18921. tables for every system, but the discussion and reference table should be 
  18922. accurate for most systems.  Our discussion is based on the 101-key "enhanced" 
  18923. keyboard commonly used on 286, 386, 486, and Pentium computers, but virtually 
  18924. all of it is applicable to the 84-key keyboards on older systems.  The primary 
  18925. difference is that older keyboards lack a separate cursor pad and only have 10 
  18926. function keys. 
  18927.  
  18928. All keys have a scan code, but not all have an ASCII code.  For example, 
  18929. function keys and cursor keys are not part of the ASCII character set and have 
  18930. no ASCII value, but they do have a scan code.  Some keys have more than one 
  18931. ASCII code.  The A, for example, has ASCII code 97 (lower case "a") if you 
  18932. press it by itself.  If you press it along with Shift, the ASCII code changes 
  18933. to 65 (upper case "A"). If you press Ctrl and A the ASCII code changes to 1. 
  18934. In all these cases, the scan code (30) is unchanged because you are pressing 
  18935. the same physical key. 
  18936.  
  18937. Things are different if you press Alt-A.  Alt keystrokes have no ASCII code, so 
  18938. OS/2 returns an ASCII code of 0, along with the A key's scan code of 30.  This 
  18939. allows a program to detect all the possible variations of A, based on the 
  18940. combination of ASCII code and scan code. 
  18941.  
  18942. Some keys generate more than one scan code depending on whether Shift, Ctrl, or 
  18943. Alt is pressed.  This allows a program to differentiate between two different 
  18944. keystrokes on the same key, neither of which has a corresponding ASCII value. 
  18945. For example, F1 has no ASCII value so it returns an ASCII code of 0, and the F1 
  18946. scan code of 59.  Shift-F1 also returns an ASCII code 0; if it also returned a 
  18947. scan code of 59, a program couldn't distinguish it from F1.  The operating 
  18948. system translates scan codes for keys like Shift-F1 (and Ctrl-F1 and Alt-F1) so 
  18949. that each variation returns a different scan code along with an ASCII code of 
  18950. 0. 
  18951.  
  18952. On the 101-key keyboard there's one more variation:  non-ASCII keys on the 
  18953. cursor keypad (such as up-arrow) return the same scan code as the corresponding 
  18954. key on the numeric keypad, for compatibility reasons.  If they also returned an 
  18955. ASCII code of 0, a program couldn't tell which key was pressed.  Therefore, 
  18956. these keys return an ASCII code of 224 rather than 0. This means that older 
  18957. programs, which only look for an ASCII 0 to indicate a non-ASCII keystroke like 
  18958. up-arrow, may not detect these cursor pad keys properly. 
  18959.  
  18960. The number of different codes returned by any given key varies from one (for 
  18961. the spacebar) to four, depending on the key, the design of your keyboard, and 
  18962. the operating system.  Some keys, like Alt, Ctrl, and Shift by themselves or in 
  18963. combination with each other, plus Print Screen, SysReq, Scroll Lock, Pause, 
  18964. Break, Num Lock, and Caps Lock keys, do not have any code representations at 
  18965. all.  The same is true of keystrokes with more than one modifying key, like 
  18966. Ctrl-Shift- A. The operating system may perform special actions automatically 
  18967. when you press these keys (for example, it switches into Caps Lock mode when 
  18968. you press Caps Lock), but it does not report the keystrokes to whatever program 
  18969. is running.  Programs which detect such keystrokes access the keyboard hardware 
  18970. directly, a subject which is beyond the scope of this manual. 
  18971.  
  18972.  
  18973. ΓòÉΓòÉΓòÉ 10.4.4. ANSI Reference ΓòÉΓòÉΓòÉ
  18974.  
  18975. Take Command for OS/2's ANSI support allows you to manipulate the cursor, 
  18976. screen color, and other display attributes through sequences of special 
  18977. characters embedded in the text you display on the screen.  These sequences are 
  18978. called "ANSI commands". 
  18979.  
  18980. This section is a quick-reference to the ANSI commands supported by Take 
  18981. Command for OS/2.  These sequences are typically displayed by internal 
  18982. commands, or by character-mode applications started under Take Command's TTY 
  18983. application support (see Starting Character- Mode Applications). 
  18984.  
  18985. ANSI support within Take Command for OS/2 can be enabled or disabled with the 
  18986. ANSI directive in TCMDOS2.INI, the corresponding option on the Display page of 
  18987. the configuration notebook, or the SETDOS /A command.  You can test whether 
  18988. ANSI support is enabled with the _ANSI internal variable. 
  18989.  
  18990. An ANSI command string consists of three parts: 
  18991.  
  18992.         ESC[                The ASCII character ESC, followed by a left 
  18993.                             bracket. These two characters must be present in 
  18994.                             all ANSI strings. 
  18995.         parameters          Optional parameters for the command.  If there are 
  18996.                             multiple parameters they are separated by 
  18997.                             semicolons. 
  18998.         cmd                 A single-letter command.  The case of the letter IS 
  18999.                             meaningful. 
  19000.  
  19001.  For example, to position the cursor to row 7, column 12 the ANSI command is: 
  19002.  
  19003.           ESC[7;12H
  19004.  
  19005.  To transmit ANSI commands to the screen with Take Command for OS/2, you can 
  19006.  use the ECHO command.  The ESC character can be generated by inserting it into 
  19007.  the string directly (if you are putting the string in a batch file and your 
  19008.  editor will insert such a character), or by using Take command's internal 
  19009.  "escape" character (caret, [^]) followed by a lower-case "e".  For example, 
  19010.  the sequence shown above could be transmitted from a batch file with either of 
  19011.  these commands (the first uses an ESC character directly; the second uses ^e): 
  19012.  
  19013.           echo  [7;12H
  19014.           echo ^e[7;12H
  19015.  
  19016.  You can also include ANSI commands in your prompt, using $e to transmit the 
  19017.  ESC character. 
  19018.  
  19019.  Commands 
  19020.  
  19021.         ESC[rowsA               Cursor up 
  19022.         ESC[rowsB               Cursor down 
  19023.         ESC[colsC               Cursor right 
  19024.         ESC[colsD               Cursor left 
  19025.         ESC[row;colH            Set cursor position (top left is row 1, column 
  19026.                                 1) 
  19027.         ESC[2J                  Clear screen 
  19028.         ESC[K                   Clear from cursor to end of line 
  19029.         ESC[row;colf            Set cursor position, same as "H" command 
  19030.         ESC[attr;attr;...m      Set display attributes; see table of attribute 
  19031.                                 values below 
  19032.         ESC[s                   Save cursor position (may not be nested) 
  19033.         ESC[u                   Restore cursor position after a save 
  19034.  
  19035.  Display Attributes 
  19036.  
  19037.         1           High intensity (bright) foreground color 
  19038.         2           Normal intensity 
  19039.         30-37       Set the foreground color: 
  19040.                       30=Black  31=Red    32=Green  33=Yellow 
  19041.                       34=Blue   35=Magenta  36=Cyan   37=White 
  19042.         40-47       Set the background color, same values as above but 
  19043.                     substitute 40 for 30 etc. 
  19044.  
  19045.  Settings are cumulative, so (for example) to set bright red foreground you 
  19046.  must first set red, then set high intensity: 
  19047.  
  19048.           echo ^e[31;1m
  19049.  
  19050.  Examples 
  19051.  
  19052.  Set the display to bright cyan on blue, and clear the screen: 
  19053.  
  19054.           echo ^e[44;36;1m^e[2J
  19055.  
  19056.  Set up a prompt which saves the cursor position, displays the date and time on 
  19057.  the top line in bright white on magenta, and then restores the cursor position 
  19058.  and sets the color to bright cyan on blue, and displays the standard prompt: 
  19059.  
  19060.           prompt $e[s$e[1;1f$e[45;37;1m$e[K$d $t$e[u$e[44;36;1m$p$g
  19061.  
  19062.  
  19063. ΓòÉΓòÉΓòÉ 10.5. Glossary ΓòÉΓòÉΓòÉ
  19064.  
  19065. The glossary contains over 200 terms, and is divided into sections by the first 
  19066. letter of each term.  Select the section you want to review: 
  19067.  
  19068. A B C D E F G H I K L M N O P R S T U V W X 
  19069.  
  19070.  
  19071. ΓòÉΓòÉΓòÉ 10.5.1. Glossary - A ΓòÉΓòÉΓòÉ
  19072.  
  19073. B C D E F G H I K L M N O P R S T U V W X 
  19074.  
  19075. Alias Parameter:  A numbered variable (e.g. %2) included in an alias 
  19076. definition, allowing a different value to be used in the alias each time it is 
  19077. executed. 
  19078.  
  19079. Alias:  A shorthand name for a command or series of commands. 
  19080.  
  19081. AND:  A logical combination of two true or false conditions.  If both 
  19082. conditions are true, the result is true; if either condition is false, the 
  19083. result is false. 
  19084.  
  19085. ANSI:  Usually a reference to ANSI control sequences, standardized sequences of 
  19086. text characters which control colors on the screen, manipulate the cursor, and 
  19087. redefine keys.  OS2 includes support for ANSI screen and cursor control 
  19088. sequences.  The abbreviation ANSI is for American National Standards Institute, 
  19089. an organization whch sets standards for computer-related systems, including 
  19090. "ANSI" screen control sequences. 
  19091.  
  19092. Append:  Concatenation of one file or string onto the end of another (this use 
  19093. is not related to the DOS and OS/2 external command named APPEND). 
  19094.  
  19095. Application:  A program run from the command prompt or a batch file.  Used 
  19096. broadly to mean any program other than the command processor; and more narrowly 
  19097. to mean a program with a specific purpose such as a spreadsheet or word 
  19098. processing program, as opposed to a utility. 
  19099.  
  19100. Archive:  A file attribute indicating that the file has been modified since the 
  19101. last backup (most backup programs clear this attribute).  Also sometimes refers 
  19102. to a single file (such as a .ZIP file) which contains a number of other files 
  19103. in compressed form. 
  19104.  
  19105. Argument:  See Parameter. 
  19106.  
  19107. ASCII File:  A file containing ASCII text, as opposed to a binary file which 
  19108. may contain numbers, or other information that cannot be sensibly interpreted 
  19109. as text. 
  19110.  
  19111. ASCII:  The American Standard Code for Information Interchange, which defines 
  19112. numeric values for 128 different characters comprising the English alphabet, 
  19113. numbers, punctuation, and some control characters. 
  19114.  
  19115. Attribute:  A characteristic of a file which can be set or cleared.  The 
  19116. standard attributes are Read-Only, Hidden, System, and Archive; other 
  19117. attributes include Directory and Volume Label. 
  19118.  
  19119. Automatic Batch Files:  See TCSTART and TCEXIT. 
  19120.  
  19121. Automatic Directory Change:  A Take Command feature which allows you to change 
  19122. directories by typing the directory name and a backslash [\] at the prompt. 
  19123.  
  19124.  
  19125. ΓòÉΓòÉΓòÉ 10.5.2. Glossary - B ΓòÉΓòÉΓòÉ
  19126.  
  19127. A C D E F G H I K L M N O P R S T U V W X 
  19128.  
  19129. Base Name:  The file name without a drive, path, or extension.  For example, in 
  19130. the file name C:\DIR1\LETTER.DAT the base name is LETTER. 
  19131.  
  19132. BAT File:  See Batch File. 
  19133.  
  19134. Batch File:  A text file containing a sequence of commands for the command 
  19135. processor to execute.  Batch files are used to save command sequences so that 
  19136. they can be re-executed at any time, transferred to another system, etc.  The 
  19137. extension of a batch file may be .BAT, .CMD, or .BTM, depending on the 
  19138. operating system and command processor you are using. 
  19139.  
  19140. Batch File Parameter:  A numbered variable (e.g. %2) used within a batch file, 
  19141. allowing a different value to be used at that spot in the file each time it is 
  19142. executed. 
  19143.  
  19144. Binary File:  A file containing information which does not represent or cannot 
  19145. sensibly be interpreted as text.  See also ASCII File. 
  19146.  
  19147. BIOS or Basic Input Output System:  The software (or "firmware") stored on 
  19148. chips inside PC systems.  The BIOS provides basic low-level control of devices 
  19149. required to operate the system, such as the keyboard, floppy disk, and screen; 
  19150. it also handles system self-tests at startup, and intiates loading of the 
  19151. operating system. 
  19152.  
  19153. Block Device:  A physical device for input or output which can transmit or 
  19154. receive large blocks of data while the computer is engaged in other activities. 
  19155. Examples include disk, tape, and CD-ROM drives.  See also Character Device. 
  19156.  
  19157. Boot Directory:  The current directory at the time the system is booted, 
  19158. usually the root directory of the boot drive. 
  19159.  
  19160. Boot Drive:  The disk drive that the system is booted from, usually A: (the 
  19161. floppy disk) or C: (the hard disk). 
  19162.  
  19163. Boot:  The process of starting the computer and loading the operating system 
  19164. into memory.  See also Reboot, Cold Reboot, and Warm Reboot. 
  19165.  
  19166. Break:  A signal sent to a program to tell it to halt what it is doing.  The 
  19167. Ctrl-C key  or Ctrl-Break key is used to send this signal.  Some external 
  19168. commands abort when they receive a break signal; others return to a previous 
  19169. screen or menu, or abort the current operation. 
  19170.  
  19171. BTM File:  A special type of Take Command batch file which is loaded into 
  19172. memory to speed up execution. 
  19173.  
  19174. Buffer:  An area of memory set aside for storage.  For example, disk buffers 
  19175. are used to save information as it is transferred between your program and the 
  19176. disk, and the keyboard buffer holds keystrokes until a program can use them. 
  19177.  
  19178.  
  19179. ΓòÉΓòÉΓòÉ 10.5.3. Glossary - C ΓòÉΓòÉΓòÉ
  19180.  
  19181. A B D E F G H I K L M N O P R S T U V W X 
  19182.  
  19183. CDFS or CD-ROM File System:  The file system which supports CD-ROM drives. 
  19184. This is typically implemented as a distinct file system in 32-bit operating 
  19185. systems like OS/2 and Windows NT.  On other platforms it is implemented as a 
  19186. component of or addition to the underlying general file system for disk drives. 
  19187.  
  19188. Character Device:  A physical device for input or output which must communicate 
  19189. with your computer one character at a time.  Examples include the console, 
  19190. communications ports, and printers.  See also Block Device. 
  19191.  
  19192. Character Mode:  A display mode in which output is displayed in a fixed font, 
  19193. typically with 80 columns in a line and 25 lines on the screen (some systems 
  19194. allow you to increase the number of rows and columns to other fixed sizes), and 
  19195. which cannot display graphics or pictures.  See also Graphics Mode. 
  19196.  
  19197. CMD File:  See Batch File. 
  19198.  
  19199. CMDLINE:  An environment variable used to extend the command line passed to 
  19200. another program beyond its normal length limits. 
  19201.  
  19202. Cold Reboot:  The process of restarting the computer in a way that physically 
  19203. resets most hardware devices, typically by pressing a reset button, or by 
  19204. turning the power off and back on.  See also Warm Reboot. 
  19205.  
  19206. Command Completion:  A Take Command feature which allows you to recall a 
  19207. previous command by typing the first few letters of the command, then an 
  19208. up-arrow or down-arrow. 
  19209.  
  19210. Command Echoing:  A feature which displays commands as they are executed. 
  19211. Echoing can be turned on and off. 
  19212.  
  19213. Command Grouping:  A Take Command feature which allows you to group several 
  19214. commands with parentheses, and have them treated as a single command for most 
  19215. purposes. 
  19216.  
  19217. Command History Window:  A pop-up window used by Take Command to display the 
  19218. command history, allowing you to choose a previous command to modify and/or 
  19219. execute. 
  19220.  
  19221. Command History:  A Take Command feature which retains commands you have 
  19222. executed, so that they can be modified and re-executed later. 
  19223.  
  19224. Command Processor:  A program which interprets commands and executes other 
  19225. programs.  Sometimes also called a Command Interpreter. 
  19226.  
  19227. Command Recall:  See Command History. 
  19228.  
  19229. Command Separator:  A character used to separate multiple commands on the same 
  19230. command line. 
  19231.  
  19232. Command Tail:  The portion of a command consisting of all the arguments, i.e., 
  19233. everything but the command name itself. 
  19234.  
  19235. Compound Command:  See Multiple Commands. 
  19236.  
  19237. Compression:  An operating system feature which compresses data as it is stored 
  19238. in a disk file, and decompresses it as it is read back, resulting in more 
  19239. efficient use of disk space (at a slight cost in processor time to perform the 
  19240. compression and decompression).  More generally, an approach to data storage 
  19241. which reduces repeated or redundant information to a smaller number of bytes in 
  19242. the compressed version than in the original, in order to minimize the space 
  19243. required to store the information. 
  19244.  
  19245. COMSPEC:  An environment variable which defines where to find the 
  19246. character-mode command processor to start a secondary shell. 
  19247.  
  19248. Conditional Commands:  A Take Command feature allowing commands to be executed 
  19249. or skipped depending on the results of a previous command.  See also Exit Code. 
  19250.  
  19251. Console:  The PC keyboard and display. 
  19252.  
  19253. Console Mode:  See Character Mode. 
  19254.  
  19255. Control Character:  A character which is part of the ASCII code, but does not 
  19256. have a normal text representation, and which can usually be generated by 
  19257. pressing the Ctrl key along with another key. 
  19258.  
  19259. Coprocessor:  See Numeric Coprocessor. 
  19260.  
  19261. Country Settings:  The internal settings which tell the operating system how to 
  19262. interpret keyboard characters which vary from country to country, which 
  19263. character set to use, and how to retrieve and display date, time, and other 
  19264. information in the format appropriate to a particular country.  See also Code 
  19265. Page. 
  19266.  
  19267. CPU:  The Central Processing Unit which performs all logic and most 
  19268. calculations in a computer.  In PC-compatible systems, the CPU is on a single 
  19269. microprocessor chip. 
  19270.  
  19271. CR or Carriage Return:  The ASCII character "carriage return" (decimal value 
  19272. 13), generated by pressing the Enter key on the keyboard, and stored in most 
  19273. ASCII files at the end of each line. 
  19274.  
  19275. Critical Error:  An error, usually related to a physical or hardware problem 
  19276. with input, output, or network access, which prevents a program from 
  19277. continuing. 
  19278.  
  19279. Current Directory:  The directory in which all file operations will take place 
  19280. unless otherwise specified.  The current directory is typically displayed as 
  19281. part of the command prompt.  Also called the Current Working Directory. 
  19282.  
  19283. Current Drive:  The disk drive on which all file operations will take place 
  19284. unless otherwise specified.  The current drive is typically displayed as part 
  19285. of the command prompt. 
  19286.  
  19287. Cursor:  A movable marker on the screen to show where text will be entered when 
  19288. you type at the keyboard, or which object on the screen will be affected when a 
  19289. mouse button is clicked.  In character mode only the text cursor is available; 
  19290. graphical systems typically show both a mouse cursor and, when text can be 
  19291. entered, a separate text cursor. 
  19292.  
  19293.  
  19294. ΓòÉΓòÉΓòÉ 10.5.4. Glossary - D ΓòÉΓòÉΓòÉ
  19295.  
  19296. A B C E F G H I K L M N O P R S T U V W X 
  19297.  
  19298. Date Range:  A Take Command feature which allows you to select files based on 
  19299. the date and time they were last modified. 
  19300.  
  19301. Date Stamp:  Information stored in a file's directory entry to show the dates 
  19302. on which the file was created, last modified, and last accessed.  Creation and 
  19303. last access dates are not available in the FAT file system.  See also Time 
  19304. Stamp. 
  19305.  
  19306. Default Directory:  See Current Directory 
  19307.  
  19308. Default Drive:  See Current Drive. 
  19309.  
  19310. Delete Tracking:  An operating system or utility software feature which is 
  19311. designed to allow you to "undelete" or recover files which have recently been 
  19312. deleted.  Delete tracking typically works by temporarily retaining the deleted 
  19313. files and/or information about the deleted files in a special area of the disk. 
  19314.  
  19315. Description:  A string of characters assigned to describe a file with the Take 
  19316. Command DESCRIBE command. 
  19317.  
  19318. Destination:  In file processing commands (e.g. COPY or MOVE), the name or 
  19319. directory files should have after any copying or modification has taken place, 
  19320. generally the last specification on the command line.  See also Source. 
  19321.  
  19322. Detached Process:  A program which is "detached" from the normal means of user 
  19323. input and output, and cannot use the keyboard, mouse, or video display. 
  19324.  
  19325. Device Driver:  A program which allows the operating system to communicate with 
  19326. a device, and which is loaded into memory when the system boots.  Device 
  19327. drivers are also used to manage memory or for other similar internal functions. 
  19328.  
  19329. Device:  A physical device for input or output such as the console, a 
  19330. communications port, or a printer.  Sometimes "device" is used to refer to 
  19331. character devices, and excludes block devices. 
  19332.  
  19333. Directive:  An individual item in the TCMDOS2.INI file, used to control the 
  19334. configuration of Take Command. 
  19335.  
  19336. Directory:  A portion of any disk, identified by a name and a relationship to 
  19337. other directories in a "tree" structure, with the tree starting at the root 
  19338. directory.  A directory separates files on the disk into logical groups, but 
  19339. does not represent a physical division of the data on the disk. 
  19340.  
  19341. Directory History:  A Take Command feature which allows you to recall 
  19342. recently-used directory names in a popup window, and choose one to switch to. 
  19343.  
  19344. Directory History Window:  See Directory History. 
  19345.  
  19346. Directory Stack:  A Take Command feature, implemented through the PUSHD and 
  19347. POPD commands, which allows you to save the current directory and return to it 
  19348. later.  See also Stack. 
  19349.  
  19350. Directory Tree:  The branching structure of directories on a hard disk, 
  19351. starting at the root directory.  The root of the tree is usually considered as 
  19352. the "top" of the structure, so the actual structure can be visualized as an 
  19353. upside-down tree with the root at the top and branches going "down".  A portion 
  19354. or branch of the directory tree is sometimes called a " subtree". 
  19355.  
  19356. DOS Memory:  See Base Memory. 
  19357.  
  19358. DOS Session:  See Session. 
  19359.  
  19360. DPMI or DOS Protected Mode Interface:  A specification which allows DOS 
  19361. programs to access memory beyond 1 MB in order to manage larger programs or 
  19362. larger amounts of information than will fit in base memory.  DPMI support for 
  19363. DOS programs is provided by some DOS memory managers, and by OS/2, Windows 3.1 
  19364. and above, Windows 95, and Windows NT. 
  19365.  
  19366. Drive Letter:  A letter used to designate a specific local disk volume, or part 
  19367. or all of a network server drive.  In most cases drive letters range from A - 
  19368. Z, but some network operating systems allow the use of certain punctuation 
  19369. characters as drive letters in order to support more than 26 volumes. 
  19370.  
  19371.  
  19372. ΓòÉΓòÉΓòÉ 10.5.5. Glossary - E ΓòÉΓòÉΓòÉ
  19373.  
  19374. A B C D F G H I K L M N O P R S T U V W X 
  19375.  
  19376. Echo:  See Command Echoing. 
  19377.  
  19378. Environment:  An area of memory which contains multiple entries in the form 
  19379. "NAME=value".  See also Master Environment and Passed Environment. 
  19380.  
  19381. Environment Variable:  The name of a single entry in the environment. 
  19382.  
  19383. Error Level:  A numeric value between 0 and 255 returned from an external 
  19384. command to indicate its result (e.g., success, failure, response to a 
  19385. question).  See also Exit Code. 
  19386.  
  19387. Escape Character:  In some contexts, the Take Command escape character, which 
  19388. is used to suppress the normal meaning of or give special meaning to the 
  19389. following character.  In other cases, the specific ASCII character ESC.  The 
  19390. meaning must be determined from the context. 
  19391.  
  19392. Escape Sequence:  A sequence of text characters which has a special meaning and 
  19393. is not treated as normal text.  For example, the character sequence <ESC>]K 
  19394. (where <ESC> is the ASCII "escape" character, decimal value 27) will cause an 
  19395. ANSI driver to clear the screen from the cursor to the end of the current line, 
  19396. rather than simply displaying the string "ESC]K" on the screen.  Similarly, in 
  19397. Take Command, the escape sequence ^f on the command line is translated to a 
  19398. form feed, and is not treated as the literal characters "^f". 
  19399.  
  19400. Executable Extensions:  A Take Command feature which allows you to specify the 
  19401. application to be executed when a file with a particular extension is named at 
  19402. the command prompt. 
  19403.  
  19404. Executable File:  A file, usually with the extension .COM or .EXE, which can be 
  19405. loaded into memory and run as a program. 
  19406.  
  19407. Exit Code:  The result code returned by an external command or an internal 
  19408. command.  Take Command internal commands return an exit code of 0 if 
  19409. successful, or non-zero if unsuccessful.  See also Errorlevel. 
  19410.  
  19411. Expansion:  The process Take Command goes through when it scans a command line 
  19412. and substitutes the appropriate actual values for aliases, alias parameters, 
  19413. batch file parameters, and environment variables.  See also Parsing. 
  19414.  
  19415. Extended ASCII Character:  A character which is not part of the standard set of 
  19416. 128 ASCII characters, but is used on the PC as part of an extended set of 256 
  19417. characters.  These characters include international language symbols, and box 
  19418. and line drawing characters. 
  19419.  
  19420. Extended Attributes:  An OS/2 High Performance File System (HPFS) feature which 
  19421. allows storage of additional information about a file, separate from the file 
  19422. itself.  Extended attributes are typically used to store icons for executable 
  19423. files, property or settings information, and other information added by the 
  19424. user. 
  19425.  
  19426. Extended Directory Search:  A Take Command feature which maintains a directory 
  19427. search " database" or list, typically including all directories in your system, 
  19428. and allows you to change quickly to any directory in the list. 
  19429.  
  19430. Extended Key Code:  The code for a key on the PC keyboard which has no 
  19431. representation in the standard ASCII character set, such as a function key, 
  19432. cursor key, or Alt plus another key.  The extended key code for a key is often 
  19433. the same as the scan code for that key. 
  19434.  
  19435. Extended Memory:  Any memory on a computer system with a 286, 386, 486, or 
  19436. Pentium processor which is above the first 1 MB (one megabyte, or 1024*1024 
  19437. bytes) of memory.  See also XMS. 
  19438.  
  19439. Extended Parent Directory Names:  A Take Command feature which allows you to 
  19440. use additional periods in a directory name to represent directories which are 
  19441. successively higher in the directory tree. 
  19442.  
  19443. Extended Wildcard:  A Take Command feature which extends the traditional 
  19444. wildcard syntax and allows you to use multiple wildcard characters, and 
  19445. character ranges (e.g. [a-f] for the letters A through F).  See also Wildcard. 
  19446.  
  19447. Extension:  The final portion of a file name, preceded by a period.  For 
  19448. example, in the file name C:\DIR1\LETTER.DAT the extension is .DAT.  In a long 
  19449. filename which contains multiple periods, the extension is usually considered 
  19450. to be the portion of the name after the final period. 
  19451.  
  19452. External Command:  A program which resides in an executable file, as opposed to 
  19453. an internal command which is part of the command processor. 
  19454.  
  19455. EXTPROC:  A command processor feature which allows you to designate a specific 
  19456. external program to run a particular batch file. 
  19457.  
  19458.  
  19459. ΓòÉΓòÉΓòÉ 10.5.6. Glossary - F ΓòÉΓòÉΓòÉ
  19460.  
  19461. A B C D E G H I K L M N O P R S T U V W X 
  19462.  
  19463. FAT File System:  The traditional file system used by DOS to store files on 
  19464. diskettes and hard disks; also supported by OS/2 and Windows NT.  Uses a File 
  19465. Allocation Table to keep track of allocated and unallocated space on the disk. 
  19466.  
  19467. FAT-Compatible File Name:  See SFN. 
  19468.  
  19469. FF or Form Feed:  The ASCII character "form feed" (decimal value 12), which 
  19470. typically causes a printer to skip to a new page.  The FF character is not 
  19471. normally entered from the keyboard, but in many cases it can be generated, if 
  19472. necessary, by holding the Alt key, pressing 0-1-2, and releasing the Alt key. 
  19473.  
  19474. File Attribute:  See Attribute. 
  19475.  
  19476. File Description:  See Description. 
  19477.  
  19478. File Exclusion Range:  A Take Command feature which allows you to exclude files 
  19479. from processing by internal commands based on their names. 
  19480.  
  19481. Filename Completion:  A Take Command feature which allows you to type part of a 
  19482. filename on the command line, and have the command processor fill in the rest 
  19483. for you. 
  19484.  
  19485. Free Memory:  Usually, the amount of total memory which is unoccupied and 
  19486. available for applications. 
  19487.  
  19488.  
  19489. ΓòÉΓòÉΓòÉ 10.5.7. Glossary - G ΓòÉΓòÉΓòÉ
  19490.  
  19491. A B C D E F H I K L M N O P R S T U V W X 
  19492.  
  19493. Global Aliases:  A Take Command option which allows you to store aliases in a 
  19494. global area accessible to all copies of Take Command, so that any change made 
  19495. by one copy is immediately available to all other copies.  See also Local 
  19496. Aliases. 
  19497.  
  19498. Global Directory History:  An option which allows you to store the directory 
  19499. history in a global area accessible to all copies of Take Command, so that any 
  19500. change made by one copy is immediately available to all other copies.  See also 
  19501. Local Directory History. 
  19502.  
  19503. Global History:  A Take Command option which allows you to store the command 
  19504. history in a global area accessible to all copies of Take Command, so that any 
  19505. change made by one copy is immediately available to all other copies.  See also 
  19506. Local History. 
  19507.  
  19508. Graphics Mode:  A display mode in which output is displayed in any one of a 
  19509. range of fonts, typically in resizable windows with a variable number of text 
  19510. rows and columns, and which supports the display of graphics and pictures along 
  19511. with text.  See also Character Mode. 
  19512.  
  19513.  
  19514. ΓòÉΓòÉΓòÉ 10.5.8. Glossary - H ΓòÉΓòÉΓòÉ
  19515.  
  19516. A B C D E F H I K L M N O P R S T U V W X 
  19517.  
  19518. Hidden:  A file attribute indicating that the file should not be displayed with 
  19519. a normal DIR command, and should not be made available to programs unless they 
  19520. specifically request access to hidden files. 
  19521.  
  19522. History Window:  See Command History Window and Directory History. 
  19523.  
  19524. History:  See Command History. 
  19525.  
  19526. HMA or High Memory Area:  The area of PC memory located in the first 64K bytes 
  19527. above the 1 megabyte that DOS can address directly.  The HMA can be made 
  19528. addressable from DOS programs using special hardware facilities, or an XMS 
  19529. driver. 
  19530.  
  19531. HPFS or High Performance File System:  A file system distributed with OS/2 and 
  19532. Windows NT 3.51 and below which allows longer file names, supports larger 
  19533. drives, and provides better performance than the traditional FAT file system. 
  19534.  
  19535.  
  19536. ΓòÉΓòÉΓòÉ 10.5.9. Glossary - I ΓòÉΓòÉΓòÉ
  19537.  
  19538. A B C D E F G H K L M N O P R S T U V W X 
  19539.  
  19540. IFS or Installable File System:  A file system which can be loaded when 
  19541. required to support devices such as CD-ROM or network drives, or non-default 
  19542. disk formats like HPFS (in OS/2) or NTFS (in Windows NT).  Installable file 
  19543. systems are primarily supported 32-bit operating systems like OS/2 and Windows 
  19544. NT.  Depending on operating system design they may be loaded at boot time, or 
  19545. loaded and unloaded dynamically while the system is running. 
  19546.  
  19547. Include List:  A concise method of specifying several files or groups of files 
  19548. in the same directory, for use with all Take Command commands which take file 
  19549. names as arguments. 
  19550.  
  19551. Inheritance:  A feature which allows one copy of Take Command to "inherit" the 
  19552. .INI file data, aliases, command history, and directory history from a previous 
  19553. copy.  More generally, a system which allows one program to pass information or 
  19554. settings on to another, often to a second copy of the same program. 
  19555.  
  19556. .INI File:  The Take Command initialization file containing directives which 
  19557. set the initial configuration of the command processor. 
  19558.  
  19559. Insert Mode:  When editing text, a mode in which newly typed characters are 
  19560. inserted into the line at the cursor position, rather than overwriting existing 
  19561. characters on the line.  See also Overstrike Mode. 
  19562.  
  19563. Internal Command:  A command which is part of the command processor, as opposed 
  19564. to an external command. 
  19565.  
  19566. Internal Variables:  Environment variables created by Take Command to provide 
  19567. information about your system.  Internal variables are evaluated each time they 
  19568. are used, and are not actually stored in the environment. 
  19569.  
  19570.  
  19571. ΓòÉΓòÉΓòÉ 10.5.10. Glossary - K ΓòÉΓòÉΓòÉ
  19572.  
  19573. A B C D E F G H I L M N O P R S T U V W X 
  19574.  
  19575. Key Code:  The code passed to a program when a key is pressed on the keyboard. 
  19576. Depending on the key that is pressed, and the software handling the keyboard, 
  19577. the code can be an ASCII code, a scan code, or an extended key code. 
  19578.  
  19579. Key Mapping:  A Take Command feature which allows you to assign new keystrokes 
  19580. for command line functions such as manipulating the command history or 
  19581. completing file names. 
  19582.  
  19583. Keyboard Buffer:  A buffer which holds keystrokes you have typed that have not 
  19584. yet been used by the currently executing program. 
  19585.  
  19586. Keystroke Alias:  An alias assigned to a key, so that it can be invoked or 
  19587. recalled with a single keystroke. 
  19588.  
  19589.  
  19590. ΓòÉΓòÉΓòÉ 10.5.11. Glossary - L ΓòÉΓòÉΓòÉ
  19591.  
  19592. A B C D E F G H I K M N O P R S T U V W X 
  19593.  
  19594. Label:  A marker in a batch file, with the format :name, allowing GOTO and 
  19595. GOSUB commands to "jump" to that point in the file.  See also Volume Label. 
  19596.  
  19597. LF or Line Feed:  The ASCII character "line feed" (decimal value 10), stored in 
  19598. most ASCII files at the end of each line, after the CR character.  The LF 
  19599. character is not normally entered from the keyboard, but in many cases it can 
  19600. be generated, if necessary, by pressing Ctrl-Enter. 
  19601.  
  19602. Local Aliases:  A Take Command option which allows you to store aliases in a 
  19603. local area only accessible to the current copy of Take Command, so that a 
  19604. change made in the current copy of Take Command does not affect other copies, 
  19605. and vice versa.  See also  Global Aliases. 
  19606.  
  19607. Local Directory History:  A Take Command option which allows you to store the 
  19608. directory history in a local area only accessible to the current copy of Take 
  19609. Command, so that a change made in the current copy of Take Command does not 
  19610. affect other copies, and vice versa.  See also Global Directory History. 
  19611.  
  19612. Local History:  A Take Command option which allows you to store the command 
  19613. history in a local area only accessible to the current copy of Take Command, so 
  19614. that a change made in the current copy of Take Command does not affect other 
  19615. copies, and vice versa.  See also  Global History. 
  19616.  
  19617. Logging:  A Take Command feature, implemented via the LOG command, which allows 
  19618. you to save a record of the commands you execute. 
  19619.  
  19620.  
  19621. ΓòÉΓòÉΓòÉ 10.5.12. Glossary - M ΓòÉΓòÉΓòÉ
  19622.  
  19623. A B C D E F G H I K L N O P R S T U V W X 
  19624.  
  19625. Master Environment:  The master copy of the environment maintained by the 
  19626. command processor. 
  19627.  
  19628. Modulo:  The remainder after an integer division.  For example 11 modulo 3 is 
  19629. 2, because when 11 is divided by 3 the remainder is 2. 
  19630.  
  19631. Multiple Commands:  A Take Command feature which allows multiple commands to be 
  19632. placed on a line, separated by an ampersand [&], or another, user-defined 
  19633. character. 
  19634.  
  19635. Multitasking:  A capability of some software (and the related hardware) which 
  19636. allows two or more programs to run apparently simultaneously on the same 
  19637. computer.  Multitasking software for PC compatible systems includes operating 
  19638. environments like Windows 3, and complete operating systems like OS/2, Windows 
  19639. 95, and Windows NT. 
  19640.  
  19641.  
  19642. ΓòÉΓòÉΓòÉ 10.5.13. Glossary - N ΓòÉΓòÉΓòÉ
  19643.  
  19644. A B C D E F G H I K L M O P R S T U V W X 
  19645.  
  19646. Network:  A system which allows several computers to be connected together to 
  19647. share files, printers, modems, or other resources, and to pass electronic mail 
  19648. or other information between the systems on the network. 
  19649.  
  19650. Network File System:  Software which runs over a network to allow access to 
  19651. files on the server.  A network file system may support the same options as the 
  19652. file system used on local drives, or it may be more or less restrictive than 
  19653. the local file system about file names, disk volume capacity, and other similar 
  19654. features. 
  19655.  
  19656. NTFS or New Technology File System:  A file system distributed with Windows NT 
  19657. which allows longer file names, supports larger drives, and provides better 
  19658. performance than the traditional FAT file system. 
  19659.  
  19660. Numeric Coprocessor:  A chip which works in conjunction with an Intel 8086, 
  19661. 80286, 80386, 80486, or Pentium CPU to perform decimal arithmetic ("floating 
  19662. point") calculations.  Some 80486s and the Pentium CPU have the numeric 
  19663. coprocessor built in to the CPU chip; in all other cases it is on a physically 
  19664. separate chip, and is optional (when the coprocessor is not avilable, the CPU 
  19665. performs decimal arithmetic through other, much slower methods). 
  19666.  
  19667.  
  19668. ΓòÉΓòÉΓòÉ 10.5.14. Glossary - O ΓòÉΓòÉΓòÉ
  19669.  
  19670. A B C D E F G H I K L M N P R S T U V W X 
  19671.  
  19672. Operating System:  A collection of software which loads when the computer is 
  19673. started, provides services to other software, and ensures that programs don't 
  19674. interfere with each other while they are running. 
  19675.  
  19676. Option:  See Switch. 
  19677.  
  19678. OR:  A logical combination of two true or false conditions.  If both conditions 
  19679. are false the result is false; if either condition is true the result is true. 
  19680.  
  19681. Overstrike Mode:  When editing text, a mode in which newly typed characters 
  19682. overwrite existing characters on the line, rather than being inserted into the 
  19683. line at the cursor position.  See also Insert Mode. 
  19684.  
  19685.  
  19686. ΓòÉΓòÉΓòÉ 10.5.15. Glossary - P ΓòÉΓòÉΓòÉ
  19687.  
  19688. A B C D E F G H I K L M N O R S T U V W X 
  19689.  
  19690. Parameter:  A piece of additional information placed after a command or 
  19691. function name.  For example, in the command DIR XYZ, XYZ is a parameter.  Also 
  19692. used to refer to an alias parameter or batch file parameter. 
  19693.  
  19694. Parent Directory:  The directory in which a particular subdirectory resides, 
  19695. often seen as the directory "above" a subdirectory. 
  19696.  
  19697. Parsing:  The process Take Command performs to analyze the command line, 
  19698. perform alias and environment variable expansion, and find the appropriate 
  19699. internal command or external command to execute.  More generally, the process 
  19700. of breaking down a string or message into its individual components in order to 
  19701. process them properly. 
  19702.  
  19703. Passed Environment:  A copy of the master environment created before running an 
  19704. application, so that any changes made by the application will not affect the 
  19705. master environment. 
  19706.  
  19707. Path:  A specification of all the directories a file resides in.  For example, 
  19708. the path for C:\WPFILES\MYDIR\MEMO.TXT is C:\WPFILES\MYDIR\.  Also used to 
  19709. refer to the environment variable PATH, which contains a series of path 
  19710. specifications used when searching for external commands and batch files. 
  19711.  
  19712. Pipe:  A method for collecting the standard output of one program and passing 
  19713. it on as the standard input of the next program to be executed, signified by a 
  19714. vertical bar "|" on the command line.  See also Redirection. 
  19715.  
  19716. Previous Working Directory:  The working directory used most recently, just 
  19717. prior to the current working directory.  For example, if C:\DATA is the current 
  19718. working directory and you switch to D:\UTIL, C:\DATA then becomes the previous 
  19719. working directory. 
  19720.  
  19721. Primary Shell:  The copy of the character-mode command processor which is 
  19722. loaded by the operating system when the system boots or a session opens. 
  19723.  
  19724.  
  19725. ΓòÉΓòÉΓòÉ 10.5.16. Glossary - R ΓòÉΓòÉΓòÉ
  19726.  
  19727. A B C D E F G H I K L M N O P S T U V W X 
  19728.  
  19729. RAM or Random Access Memory:  The physical memory used to store data while a 
  19730. computer is operating.  The information in most types of RAM is lost when power 
  19731. is turned off. 
  19732.  
  19733. RAM Disk:  A pseudo "disk drive", created by software, which appears like a 
  19734. normal physical disk drive to programs.  Sometimes also called a Virtual Disk. 
  19735.  
  19736. Range:  See Date Range, Size Range, Time Range, and File Exclusion Range. 
  19737.  
  19738. Read-Only:  A file attribute indicating that the file can be read, but not 
  19739. written or deleted by the operating system or the command processor unless 
  19740. special commands are used. 
  19741.  
  19742. Reboot:  The process of restarting the computer with software, with the 
  19743. keyboard (e.g. by pressing Ctrl-Alt-Del), by pressing a reset button, or by 
  19744. turning the power off and back on.  See also Cold Reboot and Warm Reboot. 
  19745.  
  19746. Redirection:  A method for collecting output from a program in a file, and/or 
  19747. of providing the input for a program from a file.  See also Pipe. 
  19748.  
  19749. REXX:  A file and text processing language developed by IBM, and available on 
  19750. many PC and other platforms. 
  19751.  
  19752. ROM or Read Only Memory:  A physical memory device used to store information 
  19753. which cannot be readily modified, such as the BIOS built into each PC system. 
  19754. The information in ROM is typically retained when power is turned off. 
  19755.  
  19756. Root Directory:  The first directory on any disk, from which all other 
  19757. directories are "descended."  The root directory is referenced with a single 
  19758. backslash [\]. 
  19759.  
  19760.  
  19761. ΓòÉΓòÉΓòÉ 10.5.17. Glossary - S ΓòÉΓòÉΓòÉ
  19762.  
  19763. A B C D E F G H I K L M N O P R T U V W X 
  19764.  
  19765. Scan Code:  The physical code for a key on the PC keyboard.  For the original 
  19766. U.S. English keyboard layout the scan code represents the physical position of 
  19767. the key, starting with 1 for the key in the upper left corner (Esc), and 
  19768. increasing from left to right and top to bottom.  This order will vary for more 
  19769. recent keyboards or those designed for other countries or languages. 
  19770.  
  19771. Search Path:  See PATH. 
  19772.  
  19773. Secondary Shell:  A copy of the command processor which is started by another 
  19774. program, rather than by the operating system. 
  19775.  
  19776. Session:  A general term for the individual windows or tasks started by a 
  19777. multitasking system.  For example, under OS/2 you might run a DOS application 
  19778. in one session, and Take Command in another. 
  19779.  
  19780. Shell:  See Command Processor.  Also used to refer to a program which gives 
  19781. access to operating system functions and commands through a menu- or 
  19782. mouse-driven system, or which replaces the primary user interface of the 
  19783. operating system. 
  19784.  
  19785. Size Range:  A Take Command feature which allows you to select files based on 
  19786. their size. 
  19787.  
  19788. Source:  In file processing commands (e.g. COPY or MOVE), the original files 
  19789. before any copying or modification has taken place, i.e., those specified 
  19790. earlier on the command line.  See also Destination. 
  19791.  
  19792. Stack:  An area of memory used by any program to store temporary data while the 
  19793. program is running; more generally, any such storage area where the last item 
  19794. stored is normally the first one removed. 
  19795.  
  19796. Standard Error, Standard Input, and Standard Output:  The file(s) or character 
  19797. device(s) where a program respectively displays error messages, obtains its 
  19798. normal input, and displays its normal output.  Standard error, standard input, 
  19799. and standard output normally refer to the console, unless redirection is used. 
  19800.  
  19801. Subdirectory:  Any directory other than the root directory. 
  19802.  
  19803. Subtree:  See Directory Tree. 
  19804.  
  19805. Swap File:  A disk file created by an operating system or a program to store 
  19806. unused information on disk, and thereby free up memory for other purposes. 
  19807.  
  19808. Switch:  A parameter for an internal command or application which specifies a 
  19809. particular behavior or setting.  For example, the command "DIR /P" might be 
  19810. referred to as "having the /P switch set". 
  19811.  
  19812. System:  A file attribute indicating that the file belongs to the operating 
  19813. system or command processor, and should not be accessed by other programs. 
  19814.  
  19815.  
  19816. ΓòÉΓòÉΓòÉ 10.5.18. Glossary - T ΓòÉΓòÉΓòÉ
  19817.  
  19818. A B C D E F G H I K L M N O P R S U V W X 
  19819.  
  19820. Target:  See Destination. 
  19821.  
  19822. TCEXIT:  A batch file which is executed whenever Take Command exits. 
  19823.  
  19824. TCSTART:  A batch file which is executed whenever Take Command starts. 
  19825.  
  19826. Time Range:  A Take Command feature which allows you to select files based on 
  19827. the time they were last modified. 
  19828.  
  19829. Time Stamp:  Information stored in a file's directory entry to show the times 
  19830. at which the file was created, last modified, and last accessed.  Creation time 
  19831. is not available in the FAT file system; last access time is only available in 
  19832. the HPFS and NTFS file systems.  See also Date Stamp. 
  19833.  
  19834. Tree:  See Directory Tree. 
  19835.  
  19836.  
  19837. ΓòÉΓòÉΓòÉ 10.5.19. Glossary - U ΓòÉΓòÉΓòÉ
  19838.  
  19839. A B C D E F G H I K L M N O P R S T V W X 
  19840.  
  19841. UMB or Upper Memory Block:  An XMS Upper Memory Block, whose address is above 
  19842. the end of base memory (normally, above 640K), but within the 1 megabyte of 
  19843. memory that DOS can address directly. 
  19844.  
  19845. UNC or Universal Naming Convention:  A common method for accessing files on a 
  19846. network drive without using a "mapped" drive letter.  Names specified this way 
  19847. are called UNC names, and typically appear as \\server\volume\path\filename, 
  19848. where server is the name of the network server where the files reside, volume 
  19849. is the name of a disk volume on that server, and the path\filename portion is a 
  19850. directory name and file name. 
  19851.  
  19852.  
  19853. ΓòÉΓòÉΓòÉ 10.5.20. Glossary - V ΓòÉΓòÉΓòÉ
  19854.  
  19855. A B C D E F G H I K L M N O P R S T U W X 
  19856.  
  19857. Variable Expansion:  The process of scanning a command line and replacing each 
  19858. environment variable name, alias parameter, or batch file parameter with its 
  19859. value. 
  19860.  
  19861. Variable Functions:  Functions provided by Take Command to manipulate strings, 
  19862. dates, and filenames; perform arithmetic; read and write files; and perform 
  19863. other similar functions.  Variable functions are similar to static environment 
  19864. variables or internal variables, but have parameters and can perform actions 
  19865. rather than just returning static information. 
  19866.  
  19867. Variable:  See Alias Parameter, Batch File Parameter, and Environment Variable. 
  19868.  
  19869. Virtual Disk:  See RAM Disk. 
  19870.  
  19871. Volume Label:  A special, hidden file placed on any disk, whose name 
  19872. constitutes a "label" for the entire disk. 
  19873.  
  19874. Volume:  See Disk Drive. 
  19875.  
  19876.  
  19877. ΓòÉΓòÉΓòÉ 10.5.21. Glossary - W ΓòÉΓòÉΓòÉ
  19878.  
  19879. A B C D E F G H I K L M N O P R S T U V X 
  19880.  
  19881. Warm Reboot:  The process of restarting the computer with software, or with the 
  19882. keyboard (e.g. by pressing Ctrl-Alt-Del), typically without physically 
  19883. resetting any hardware devices.  See also Cold Reboot. 
  19884.  
  19885. White Space Character:  A character used to separate arguments on the command 
  19886. line.  The white space characters recognized by Take Command are the space, 
  19887. tab, and comma. 
  19888.  
  19889. Wildcard:  A character ("*" or "?") used in a filename to specify the 
  19890. possibility that any single character ("?") or sequence of characters ("*") can 
  19891. occur at that point in the actual name.  See also Extended Wildcard. 
  19892.  
  19893. Windows NT File System:  See NTFS. 
  19894.  
  19895.  
  19896. ΓòÉΓòÉΓòÉ 10.5.22. Glossary - X ΓòÉΓòÉΓòÉ
  19897.  
  19898. A B C D E F G H I K L M N O P R S T U V W 
  19899.  
  19900. XOR (exclusive OR):  A logical combination of two true or false conditions.  If 
  19901. both conditions are false or both conditions are true the result is false; if 
  19902. either condition is true and the other is false the result is true.