home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / CMDINF.ZIP / CMDLINE.INF (.txt)
OS/2 Help File  |  1992-09-04  |  27KB  |  695 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. About the CommandLine Application Launcher ΓòÉΓòÉΓòÉ
  3.  
  4. About the CommandLine Application Launcher 
  5.  
  6. CommandLine acts as an on-demand command prompt, allowing users to execute an 
  7. OS/2 command or program without leaving the active PM application in search of 
  8. an icon or an open OS/2 session, thus eliminating the need for "spare" OS/2 
  9. sessions and avoiding the irritating keyboard-mouse-keyboard cycle. 
  10.  
  11. The package can be invoked via a user-defined hot key, remembers previous 
  12. commands across boot sessions and takes full advantage of OS/2 2.0 ability to 
  13. transparently launch DOS and Windows applications.  It has aliasing, inline 
  14. file find and filename completion and an inline REXX expression interpreter 
  15. extendable through REXX and DLLs. 
  16.  
  17. In addition to providing a hotkey prompt, CommandLine acts as a fast task 
  18. switcher.  Any program or command can be assigned to a hotkey, with a variety 
  19. of options.  The hotkey can be set to switch to the same session or always 
  20. start a new one.  Programs started by a hotkey can be set to restart 
  21. automatically in the event of termination, abnormal or otherwise.  CommandLine 
  22. also allows the user to toggle between the two most recently used windows. 
  23.  
  24. Finally, CommandLine simplifies access to several Workplace Shell features. 
  25. Users can open a directory folder by specifying its name, without  traversing 
  26. through the Drives folder.  Program icons can be created in the same manner. 
  27. Other WPS objects can be created using the SysCreateObject call directly from 
  28. the CommandLine prompt.  In addition, the program can act as a Workplace Shell 
  29. replacement in vertical or low memory environments. 
  30.  
  31. For more information about using the Help facility, select Help For Help in the 
  32. Help menu..* 
  33.  
  34.  
  35. ΓòÉΓòÉΓòÉ 2. Getting Started ΓòÉΓòÉΓòÉ
  36.  
  37. Getting Started 
  38.  
  39. To install CommandLine, place the diskette in your 3.5" floppy drive. In any 
  40. command window, type "A:SETUP" and press Enter. The SetUp program will start, 
  41. and request several path-related items: where to place the CommandLine files, 
  42. the DLL, the INF information file and object placement.  Any time that one of 
  43. the entries is set to a path not found in the corresponding environment 
  44. variable within the CONFIG.SYS file, one of the environment variable change 
  45. boxes will be checked. These indicate the changes which will be made to 
  46. CONFIG.SYS.  If you specify "Add to Startup folder", CommandLine will run 
  47. automatically as part of the Startup folder processing.  Otherwise, you may 
  48. choose the Command Prompts folder or you may manually add CommandLine to your 
  49. STARTUP.CMD file. You probably want to use the defaults.  If you don't, you may 
  50. have to reboot prior to using CommandLine to ensure access to the DLL. 
  51.  
  52. If you want to use CommandLine as a Workplace Shell replacement, please refer 
  53. to the  Tips and Techniques section. 
  54.  
  55. After installation, CommandLine will run automatically as part of the Startup 
  56. folder processing, unless you specified otherwise.  You should notice the 
  57. CommandLine Logo window during system startup.  Hold down the Alt key and press 
  58. the Space bar to bring up the CommandLine window. 
  59.  
  60. Take a solemn moment here -- you may well have used the command window for the 
  61. very last time. 
  62.  
  63.  
  64. ΓòÉΓòÉΓòÉ 3. Launching Commands ΓòÉΓòÉΓòÉ
  65.  
  66. Launching Commands 
  67.  
  68. CommandLine accepts commands just like any OS/2 command window.  It checks the 
  69. application type and will start Presentation Manager, Windows and window 
  70. compatible applications directly through PM.  Applications requiring shell 
  71. support will be started in the OS/2 or user-specified command shell.  Multiple 
  72. commands can be entered on the same line by joining them with ampersands. 
  73.  
  74. Commands can also be launched by typing an associated alias or pressing a 
  75. hotkey. 
  76.  
  77. For more information regarding the OS/2 Command Interpreter, see the OS/2 
  78. Command Reference, or enter "VIEW CMDREF" in any OS/2 command Window. 
  79.  
  80. Also see  Aliases  Hotkeys  File Name Completion  File Find 
  81.  
  82.  
  83. ΓòÉΓòÉΓòÉ 4. File Name Completion ΓòÉΓòÉΓòÉ
  84.  
  85. File Name Completion 
  86.  
  87. File paths and names will be completed when you press Ctrl and the Right Arrow 
  88. key.  If an exact match is found, the file will be completed automatically.  If 
  89. no match is found, a low beep will sound.  If there are several files matching, 
  90. a listbox will appear containing the files for selection.  Directories are 
  91. indicated by having a backslash appended to them.  Double clicking the mouse or 
  92. pressing Enter will add the highlighted file to the command. 
  93.  
  94. Also see  File Find 
  95.  
  96.  
  97. ΓòÉΓòÉΓòÉ 5. File Find ΓòÉΓòÉΓòÉ
  98.  
  99. File Find 
  100.  
  101. File Find is very similar to File Name Completion, except that it will 
  102. recursively check directories for matching files from the directory specified 
  103. when you press Ctrl and the Left Arrow key.  If no directory is specified, the 
  104. search will begin from the root.  While the search is in progress, the 
  105. directory being scanned is displayed in the titlebar of the match window.  The 
  106. search can be terminated by pressing Esc. 
  107.  
  108. Also see  File Name Completion 
  109.  
  110.  
  111. ΓòÉΓòÉΓòÉ 6. Aliases ΓòÉΓòÉΓòÉ
  112.  
  113. Aliases 
  114.  
  115. Aliases can be associated with command strings using the Aliases dialog box. 
  116. Aliases can refer to commands which include CommandLine !directives, but cannot 
  117. reference other aliases.  An alias can be up to eight characters in length, and 
  118. may consist of any characters you can type into the command field, including 
  119. punctuation marks and spaces. 
  120.  
  121. Also see  Hotkeys 
  122.  
  123.  
  124. ΓòÉΓòÉΓòÉ 7. Hotkeys ΓòÉΓòÉΓòÉ
  125.  
  126. Hotkeys 
  127.  
  128. Hotkeys can be associated with command strings via the Hotkeys dialog box. 
  129. Hotkeys must point to strings which are valid for your command shell (in most 
  130. cases CMD.EXE).  CommandLine directives and aliases will be ignored. Commands 
  131. associated with hotkeys can be set to autostart on CommandLine startup, and to 
  132. be restarted in case of their termination, abnormal or otherwise. 
  133.  
  134. There are two types of hotkeys.  The default is Execute Command, defined as a 
  135. start key, which will always execute the defined command. The other is Display 
  136. Window, defined as a switch key, which will start the defined command only if 
  137. it's not already running; otherwise, it will switch to the currently running 
  138. session. 
  139.  
  140. CommandLine uses two hotkeys for internal purposes.  The first is used to bring 
  141. up CommandLine itself.  The second is used to toggle between the two most 
  142. recently used windows.  Both keys are specified in the Hotkeys dialog. 
  143.  
  144. Additionally, for applications to be started by Commandline, there are four 
  145. options: 
  146.  
  147. 1) Auto Start - Causes the command to be executed automatically during 
  148. CommandLine initialization. 
  149.  
  150. 2) Restart - Causes the command to be re-executed whenever an instance started 
  151. previously terminates.  This is particularly useful for server or communication 
  152. applications that must stay up. 
  153.  
  154. 3) only on abnormal exit - If the restart option above is selected, users may 
  155. opt to restart the application ONLY on abnormal exits (e.g. crashes).  If the 
  156. existing application is properly exited, it will not be restarted. 
  157.  
  158. 4) Create New Instance - Causes CommandLine to execute a new instance of the 
  159. command every time the hotkey is invoked, rather than switching to an existing 
  160. instance. 
  161.  
  162. Also see  Aliases 
  163.  
  164.  
  165. ΓòÉΓòÉΓòÉ 8. CommandLine Command Line Commands ΓòÉΓòÉΓòÉ
  166.  
  167. CommandLine Command Line Commands 
  168.  
  169. The following flags can be used on the CommandLine Command Line. 
  170.  
  171. CmdLine [-dDir -fFile -sShell] 
  172.  
  173. Flag           Meaning 
  174. -d             Sets current directory 
  175. -f             Adds a list of commands to the History 
  176. -s             Specifies an Alternate Shell 
  177.  
  178.  
  179. ΓòÉΓòÉΓòÉ 8.1. Setting the Current Directory ΓòÉΓòÉΓòÉ
  180.  
  181. Setting the Current Directory 
  182.  
  183. The -d flag specifies the current directory from which all processing will 
  184. start.  The argument should consist of a fully qualified path to a valid 
  185. directory.  The default directory is C:\. 
  186.  
  187. Example: CmdLine -dD:\MYAPPS 
  188.  
  189. CommandLine also allows you to specify the current directory by using the !CD 
  190. command (See  Changing the Current Directory) or by using the menu option (See 
  191. Change Directory). 
  192.  
  193.  
  194. ΓòÉΓòÉΓòÉ 8.2. Adding Commands to the History ΓòÉΓòÉΓòÉ
  195.  
  196. Adding Commands to the History 
  197.  
  198. The -f flag specifies the name of a file containing commands to be appended to 
  199. the command history.  This allows commands to be imported each time CommandLine 
  200. is started, ensuring that frequently used or very long commands remain in the 
  201. history.  There is no default for this option. 
  202.  
  203. Example: CmdLine -fD:\CMD\STD_CMDS.CMD 
  204.  
  205.  
  206. ΓòÉΓòÉΓòÉ 8.3. Specifying an Alternate Shell ΓòÉΓòÉΓòÉ
  207.  
  208. Specifying an Alternate Shell 
  209.  
  210. The -s flag specifies the name of an alternate execution shell to be used in 
  211. place of the standard OS/2 CMD shell.  Shell arguments can be supplied by 
  212. wrapping the entire statement in double quotes.  The fully qualified name must 
  213. be used. 
  214.  
  215. Example: CmdLine -sMKS 
  216.  
  217. Example: CmdLine -s"HCS -q" 
  218.  
  219.  
  220. ΓòÉΓòÉΓòÉ 9. CommandLine Internal Commands ΓòÉΓòÉΓòÉ
  221.  
  222. CommandLine Internal Commands 
  223.  
  224. There are several special commands which affect the CommandLine environment. 
  225. These are preceded by an exclamation point (!, or 'bang' to you UNIX gurus). 
  226.  
  227. Command                            Meaning 
  228. !CD <directory>                    Changes current directory 
  229. !INTERPRET <expr>                  Interprets REXX expressions 
  230. !OBJECT <filename>                 Creates Object 
  231.  
  232. Only the first character is used to determine the command, so they can be 
  233. reduced to !c, !i and !o.  All these commands have menu equivalents. 
  234.  
  235.  
  236. ΓòÉΓòÉΓòÉ 9.1. Changing the Current Directory ΓòÉΓòÉΓòÉ
  237.  
  238. Changing the Current Directory 
  239.  
  240. The !CD command changes the current directory from which all processing will 
  241. start.  It will display the new directory above the command entry field after 
  242. processing the command.  The argument should consist of a fully qualified path 
  243. to a valid directory.  The default directory is C:\. 
  244.  
  245. Example: !CD D:\MYAPPS 
  246.  
  247. CommandLine also allows you to specify the current directory during startup 
  248. (See  Setting the Current Directory) or by using the menu option (See  Change 
  249. Directory). 
  250.  
  251.  
  252. ΓòÉΓòÉΓòÉ 9.2. Interpreting REXX Expressions ΓòÉΓòÉΓòÉ
  253.  
  254. Interpreting REXX Expressions 
  255.  
  256. We consider this facility one of the most useful in CommandLine, and hope you 
  257. will as well.  The !INTERPRET command sends the input to a REXX expression 
  258. interpreter and displays the response, if any.  This is particularly useful as 
  259. a calculator. 
  260.  
  261. Example: !I 355/113 
  262.  
  263. Example: !I DATE() TIME() 
  264.  
  265. It also has proven to be very useful to programmers during coding sessions, by 
  266. using some of the REXX conversion operatives, such as: 
  267.  
  268. Example: !I X2D(3BF) 
  269.  
  270. Example: !I D2B(232) 
  271.  
  272. or as a quick means of trying a code fragment 
  273.  
  274. Example: !I j=1;DO 10;j=j*2;END; 
  275.  
  276. For complex statements like the one above, we return the variable before the 
  277. first equal sign.  If the statement contains no equal sign as in the first four 
  278. examples, we assign one and return the resulting value. Don't try to use the 
  279. SAY operator, it will not work in this context. If no response is returned, 
  280. then either your statement is bad or our macro failed. Which do you consider 
  281. more likely? 
  282.  
  283.  
  284. ΓòÉΓòÉΓòÉ 9.3. Creating WPS directory folders and program icons ΓòÉΓòÉΓòÉ
  285.  
  286. Creating objects 
  287.  
  288. Use this facility to create a directory folder without going through the Drives 
  289. folder, or to create a program icon without going to templates.  All that's 
  290. required is the name of the program or directory. 
  291.  
  292. Example: !o x:\OS2\APPS 
  293.  
  294. Example: !o x:\mydir.\mypgm.exe 
  295.  
  296.  
  297. ΓòÉΓòÉΓòÉ 10. File Menu ΓòÉΓòÉΓòÉ
  298.  
  299. CommandLine File Menu 
  300.  
  301.  The CommandLine menu provides access to CommandLine features for users who do 
  302. not wish to use the various shortcut keys and special directives. At the same 
  303. time, the menu lists all of the equivalent shortcut keys and directives, 
  304. serving as a reminder. 
  305.  
  306. Menu Item                                              Meaning 
  307. Locate File... -- Also <Ctrl+Down Arrow>               Brings up standard file 
  308.                                                        dialog 
  309. Find file... -- Also <Ctrl+Left Arrow>                 Finds matching files on 
  310.                                                        current disk 
  311. Complete name... -- Also <Ctrl+Right Arrow>            Completes file names 
  312. Change Directory -- Also <!CD>                         Changes current 
  313.                                                        directory 
  314. Hide -- Also <Esc>                                     Hides CommandLine window 
  315. Terminate -- Also <F3>                                 Exits CommandLine and 
  316.                                                        all hotkey applications 
  317. Quick Shutdown                                         Shuts down OS/2 without 
  318.                                                        confirming program exits 
  319.  
  320.  All shortcuts are listed in <> brackets to the right of the menu items. 
  321.  
  322.  
  323. ΓòÉΓòÉΓòÉ 10.1. Locate File... ΓòÉΓòÉΓòÉ
  324.  
  325. Locate file 
  326.  
  327. The Locate File menu item brings up a standard file dialog, allowing the user 
  328. to navigate throughout the file system.  Pressing <OK> in the dialog pastes the 
  329. selected file or directory into the CommandLine window.  Pressing <Cancel> 
  330. returns the user to the CommandLine window. 
  331.  
  332.  
  333. ΓòÉΓòÉΓòÉ 10.2. Find file... ΓòÉΓòÉΓòÉ
  334.  
  335. Find matching files 
  336.  
  337. Using this menu option will cause CommandLine to use the text in its window as 
  338. a file search mask. 
  339.  
  340. For detailed description, see:  File Find 
  341.  
  342.  
  343. ΓòÉΓòÉΓòÉ 10.3. Complete name... ΓòÉΓòÉΓòÉ
  344.  
  345. Completes path / filename 
  346.  
  347. Using this menu option will cause CommandLine to use the text in its window as 
  348. a filename completion mask. 
  349.  
  350. For detailed description, see:  File Name Completion 
  351.  
  352.  
  353. ΓòÉΓòÉΓòÉ 10.4. Change Directory ΓòÉΓòÉΓòÉ
  354.  
  355. Change Directory 
  356.  
  357. Using this menu option changes the current directory from which all processing 
  358. will start.  It will display the new directory above the command entry field 
  359. after processing the command.  The argument should consist of a fully qualified 
  360. path to a valid directory.  The default directory is C:\. 
  361.  
  362. CommandLine also allows you to specify the current directory during startup 
  363. (See  Setting the Current Directory) or by using the !CD command (See  Changing 
  364. the Current Directory). 
  365.  
  366.  
  367. ΓòÉΓòÉΓòÉ 10.5. Hide ΓòÉΓòÉΓòÉ
  368.  
  369. Hide CommandLine window 
  370.  
  371. Using this menu option will cause CommandLine to hide itself.  CommandLine 
  372. would normally hide itself whenever a different window is selected. 
  373.  
  374.  
  375. ΓòÉΓòÉΓòÉ 10.6. Terminate ΓòÉΓòÉΓòÉ
  376.  
  377. Exit CommandLine 
  378.  
  379. Using this menu option will cause CommandLine and all processes invoked via the 
  380. hotkey or CommandLine autostart features to terminate. 
  381.  
  382.  
  383. ΓòÉΓòÉΓòÉ 10.7. Quick Shutdown ΓòÉΓòÉΓòÉ
  384.  
  385. Shuts down OS/2 without confirming program exits 
  386.  
  387. This menu option shuts down OS/2, without confirming the closing of programs, 
  388. thereby providing a quicker shutdown.  Use this option only if you're sure you 
  389. don't require saving data in any of the running programs, as this data will not 
  390. be saved. 
  391.  
  392.  
  393. ΓòÉΓòÉΓòÉ 11. Command Menu ΓòÉΓòÉΓòÉ
  394.  
  395. CommandLine Command Menu 
  396.  
  397.  The CommandLine menu provides access to CommandLine features for users who do 
  398. not wish to use the various shortcut keys and special directives. At the same 
  399. time, the menu lists all of the equivalent shortcut keys and directives, 
  400. serving as a reminder. 
  401.  
  402. Menu Item                          Meaning 
  403. Previous -- Also <Up Arrow>        Retrieves previous command 
  404. Next -- Also <Down Arrow>          Retrieves next command 
  405. History... -- Also <Page Up>       Brings up command history listbox 
  406. Aliases...                         Brings up Alias definition dialog 
  407. Hot Keys                           Brings up Hot Keys definition dialog 
  408. Interpret -- Also <!i>             Interprets REXX expressions 
  409. Create Object -- Also <!o>         Creates Object 
  410.  
  411. All shortcuts are listed in <> brackets to the right of the menu items. 
  412.  
  413. Interpret expects an expression in the entry field when invoked, as Create 
  414. Object expects a valid path or filename. 
  415.  
  416.  
  417. ΓòÉΓòÉΓòÉ 11.1. Previous ΓòÉΓòÉΓòÉ
  418.  
  419. Retrieves previous command from history 
  420.  
  421. This menu item retrieves the previously typed command into the CommandLine 
  422. window, where it can be edited and executed again. 
  423.  
  424.  
  425. ΓòÉΓòÉΓòÉ 11.2. Next ΓòÉΓòÉΓòÉ
  426.  
  427. Retrieves next command from history 
  428.  
  429. This menu item retrieves the next command into the CommandLine window, where it 
  430. can be edited and executed again. 
  431.  
  432.  
  433. ΓòÉΓòÉΓòÉ 11.3. History... ΓòÉΓòÉΓòÉ
  434.  
  435. Shows Command History 
  436.  
  437. Using this menu option causes CommandLine to present a listbox containing the 
  438. previously entered commands.  If any text was present in the CommandLine 
  439. window, the listbox will only display those entries which contain this text. 
  440.  
  441.  
  442. ΓòÉΓòÉΓòÉ 11.4. Aliases... ΓòÉΓòÉΓòÉ
  443.  
  444. Alias Definition Dialog 
  445.  
  446. Using this menu option will cause CommandLine to display the alias definition 
  447. dialog, where users can enter aliases of up to eight characters for frequently 
  448. used commands. 
  449.  
  450. Also see:  Aliases 
  451.  
  452.  
  453. ΓòÉΓòÉΓòÉ 11.5. Hot Keys... ΓòÉΓòÉΓòÉ
  454.  
  455. Hotkey Definition Dialog 
  456.  
  457. Using this menu option will cause CommandLine to display the hotkey definition 
  458. dialog, where users can enter hotkeys and associate them with frequently used 
  459. commands or applications. 
  460.  
  461. Also see:  Hotkeys 
  462.  
  463.  
  464. ΓòÉΓòÉΓòÉ 12. Help Menu ΓòÉΓòÉΓòÉ
  465.  
  466. CommandLine Help Menu 
  467.  
  468.  The CommandLine menu provides access to CommandLine features for users who do 
  469. not wish to use the various shortcut keys and special directives. At the same 
  470. time, the menu lists all of the equivalent shortcut keys and directives, 
  471. serving as a reminder. 
  472.  
  473. Menu Item                          Meaning 
  474. Help -- Also <F1>                  Brings up CommandLine help 
  475. Product Information                Shows CommandLine product information 
  476.  
  477.  
  478. ΓòÉΓòÉΓòÉ 12.1. CommandLine Help ΓòÉΓòÉΓòÉ
  479.  
  480. Brings up CommandLine help 
  481.  
  482. This menu option brings up the CommandLine information file in the OS/2 View 
  483. facility.  It can also be brought up by hitting the F1 key or typing "VIEW 
  484. CMDLINE.INF" at any command prompt. 
  485.  
  486.  
  487. ΓòÉΓòÉΓòÉ 12.2. CommandLine Product Information ΓòÉΓòÉΓòÉ
  488.  
  489. CommandLine Product Information 
  490.  
  491. This menu option shows the CommandLine product information, including the Soft 
  492. & GUI logo, address and telephone number. 
  493.  
  494.  
  495. ΓòÉΓòÉΓòÉ 13. Tips and Techniques ΓòÉΓòÉΓòÉ
  496.  
  497. Tips and Techniques 
  498.  
  499. This section is comprised of a list of suggestions and answers to frequently 
  500. asked questions.  We hope these suggestions, many of which were originated by 
  501. users, will make using CommandLine easier and more productive. If you have 
  502. additional suggestions you would like to share, please let us know. 
  503.  
  504.  
  505. ΓòÉΓòÉΓòÉ 13.1. Utilizing the OS/2 Command Shell ΓòÉΓòÉΓòÉ
  506.  
  507. Utilizing the OS/2 Command Shell 
  508.  
  509. The OS/2 command shell is full of powerful features.  We strongly recommend 
  510. that you read the CMD.EXE documentation, which is available by typing "VIEW 
  511. CMDREF" at any prompt.  If you are using a different command processor, it is 
  512. of course helpful to be familiar with its feature set as well.  All of the 
  513. features of CMD.EXE or the command processor of your choice are available 
  514. through CommandLine.  Use them as needed to provide the desired functionality. 
  515. In this discussion, we will give examples using CMD.EXE syntax, as it is the 
  516. most commonly used command processor under OS/2.  In most cases, however, these 
  517. examples can be converted to other command processor syntax. 
  518.  
  519.  
  520. ΓòÉΓòÉΓòÉ 13.2. Specifying the Current Directory ΓòÉΓòÉΓòÉ
  521.  
  522. Specifying the Current Directory 
  523.  
  524. CommandLine allows you to specify the current directory during startup (See 
  525. Setting the Current Directory) or by using the menu option (See  Changing the 
  526. Current Directory). 
  527.  
  528.  
  529. ΓòÉΓòÉΓòÉ 13.3. Executing a Batch file in every OS/2 Session ΓòÉΓòÉΓòÉ
  530.  
  531. Executing a Batch file in every OS/2 Session 
  532.  
  533. The simplest way to accomplish this is to change the default command shell. 
  534. Specify CMD.EXE with the desired batch file as an argument and an ampersand at 
  535. the end. 
  536.  
  537. Example: CmdLine -s"CMD.EXE /K MYBATCH.CMD & " 
  538.  
  539.  
  540. ΓòÉΓòÉΓòÉ 13.4. Executing Multiple Commands ΓòÉΓòÉΓòÉ
  541.  
  542. Executing Multiple Commands 
  543.  
  544. Running a program which resides in a different directory and on a different 
  545. drive is a frequent requirement.  CMD.EXE allows the concatenation of commands 
  546. using the ampersand. 
  547.  
  548. Example: D: & CD\MYDIR & MYPGM.EXE 
  549.  
  550. This may be lengthy to retype time after time, but not if you recall it from 
  551. history, or better yet, if it's a frequently used command, make it an alias or 
  552. a hotkey.  Note that you do not need to create a batch file to handle these 
  553. types of cases. 
  554.  
  555. Review the CMD.EXE documentation, which is available by typing "VIEW CMDREF" at 
  556. any prompt to learn about more features of the command shell. 
  557.  
  558.  
  559. ΓòÉΓòÉΓòÉ 13.5. Forcing the Invocation of the Command Shell ΓòÉΓòÉΓòÉ
  560.  
  561. Forcing the Invocation of the Command Shell 
  562.  
  563. When you enter a command at the CommandLine prompt, CommandLine evaluates the 
  564. command type, so that it can be executed efficiently.  Commands are passed on 
  565. to the specified command processor, while programs of various types, i.e. OS/2 
  566. fullscreen, VIO, DOS and Windows programs are started directly.  This can cause 
  567. a problem with certain programs which use standard I/O to write to the screen 
  568. -- they simply finish their task and exit, without giving the user an 
  569. opportunity to view the information.  To avoid this, force the execution of 
  570. these programs via a comand processor, by simply entering a space before the 
  571. program name. 
  572.  
  573. Example: " MYSTDIO.EXE" 
  574.  
  575. Alternatively, use the multiple command syntax discussed above, and append an 
  576. & PAUSE or a filter or redirector to the command.  A frequently used 
  577. combination might be: 
  578.  
  579. Example: MYSTDIO.EXE & PAUSE & EXIT 
  580.  
  581.  
  582. ΓòÉΓòÉΓòÉ 13.6. Accessing CommandLine's Internal Hotkeys ΓòÉΓòÉΓòÉ
  583.  
  584. Accessing CommandLine's Internal Hotkeys 
  585.  
  586. In addition to all the assignable hot keys which can be set to bring up 
  587. CommandLine itself and various programs or windows, CommandLine uses several 
  588. internal hotkeys to provide shortcuts to menu options and other facilities. 
  589. They are: 
  590.  
  591. 1. <CTRL> <Left Arrow> for  File Find. 
  592.  
  593. 2. <CTRL> <Right Arrow> for  File Name Completion. 
  594.  
  595. 3. <CTRL> <Down Arrow> for  File Locate via standard file dialog. 
  596.  
  597. 4. <PageUp> for history listbox. 
  598.  
  599. 5. <Up Arrow> for  Previous history entry. 
  600.  
  601. 6. <Down Arrow> for  Next history entry. 
  602.  
  603. 7. <CTRL> <Enter> for entering commands without entering them into history. 
  604.  
  605. 8. <CTRL> <Esc> To bring up CommandLine when in the tasklist. 
  606.  
  607. Other hotkeys act as standard accelerators to the CommandLine menu. 
  608.  
  609.  
  610. ΓòÉΓòÉΓòÉ 13.7. Implementing Vertical Environments ΓòÉΓòÉΓòÉ
  611.  
  612. Implementing Vertical Environments 
  613.  
  614. Many users may wish to use CommandLine for its ability to hotkey between 
  615. various applications or windows, but may be not wish the CommandLine window to 
  616. be accessible.  This may be for security purposes -- the users may not have the 
  617. authority to access the "raw" prompt, or lack the knowledge to use it 
  618. effectively.  The CommandLine window can be made inaccessable by simply editing 
  619. the CMDLINE.HOT file and erasing the CommandLine hotkey, which by default says 
  620. "aSPACE".  Note that the line must remain in the file, only the text left of 
  621. the first semicolon should be removed.  The same technique may be used on any 
  622. line in this file to both autostart and automatically restart applications 
  623. without allowing hotkey access to them. 
  624.  
  625. Note:  Editing the file in this manner should be done when only CommandLine is 
  626. not running, as exiting CommandLine will cause the file to be overwritten with 
  627. whichever values are in memory. 
  628.  
  629.  
  630. ΓòÉΓòÉΓòÉ 13.8. Replacing the Workplace Shell ΓòÉΓòÉΓòÉ
  631.  
  632. Replacing the Workplace Shell 
  633.  
  634. In some cases, CommandLine users may wish to run without the Workplace Shell. 
  635. This might be due to a preference towards the command prompt interface, or by 
  636. the needs of a vertical application where access to the underlying system and 
  637. hardware limitations such as low disk space and memory availability dictate a 
  638. "less is more" approach. 
  639.  
  640. The task of replacing the Workplace Shell as the standard operating environment 
  641. is an easy one.  Replace the PMSHELL.EXE entries in the CONFIG.SYS file with 
  642. CMDLINE.EXE.  Remember to specify the CommandLine parameters.  When OS/2 boots, 
  643. CommandLine will be started, as well as any applications which were specified 
  644. as autostart to CommandLine.  All of the CommandLine facilities will be 
  645. available as usual, with the exception of the Workplace Shell object creation 
  646. facilities. 
  647.  
  648. The combination of the hotkey CommandLine prompt, the tasklist and hotkey 
  649. application launching and switching will give you complete access to OS/2 
  650. facilities without the overhead of the Workplace Shell. 
  651.  
  652.  
  653. ΓòÉΓòÉΓòÉ 14. Ordering Information ΓòÉΓòÉΓòÉ
  654.  
  655. Ordering Information 
  656.  
  657. CommandLine is available directly from Soft & GUI Inc. and through various 
  658. software catalogs.  Discounts are available to OS/2 users groups. Site licenses 
  659. are available. 
  660.  
  661. List Price: $39.95 
  662.  
  663.                              Soft & GUI Incorporated
  664.                               2224 East 21st Street
  665.                             Brooklyn, New York  11229
  666.  
  667.                                  (718) 769-8017
  668.  
  669. Please contact us for quantity discounts and site license information. 
  670.  
  671.  
  672. ΓòÉΓòÉΓòÉ 15. About Soft & GUI ΓòÉΓòÉΓòÉ
  673.  
  674. About Soft & GUI 
  675.  
  676.                              Soft & GUI Incorporated
  677.                               2224 East 21st Street
  678.                             Brooklyn, New York  11229
  679.  
  680.                                  (718) 769-8017
  681.  
  682. Soft & GUI was founded in 1991, by Arthur Goikhman.  In 1992, Steve Dacek came 
  683. on board and the two began development of CommandLine.  The charter was to make 
  684. money by venturing into the untamed (and untrampled) regions of OS/2. 
  685.  
  686. CommandLine was an idea concieved during an IBM presentation of the OS/2 2.0 
  687. Workplace Shell.  While the shell can be a very effective tool to new users, 
  688. accessing the prompts or the file system can be a frustrating experience to 
  689. command prompt and mouse users alike.  Please let us know of features you would 
  690. like added, or problems you encounter using CommandLine. Your feedback will 
  691. drive all future development. 
  692.  
  693. Soft & GUI is currently working on several other projects: ErrorManager, a 
  694. runtime API debugger and production code monitor (which does not require the 
  695. debugging kernel); and KingMaker, a visual application development environment.