home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR24 / TRICKS2.ZIP / TRICKS.INF (.txt) next >
OS/2 Help File  |  1993-11-29  |  146KB  |  1,654 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Introduction ΓòÉΓòÉΓòÉ
  3.  
  4. Stupid OS/2 Tricks 
  5.  
  6. (Double click on a bitmap) 
  7.  
  8. compiled by M. Woo 
  9. for the Champaign-Urbana OS/2 Users Group 
  10. release #2, Dec 1993 
  11.  
  12. Information about this document: 
  13.  
  14. o Types of "tricks" included 
  15. o How to submit tips and tricks 
  16. o Revisions 
  17. o Revision schedule 
  18. o How this document was created 
  19. o Disclaimer 
  20.  
  21. Copyright 1993 M. Woo 
  22.  
  23.  
  24. ΓòÉΓòÉΓòÉ 1.1. Types of "tricks" included ΓòÉΓòÉΓòÉ
  25.  
  26. This file contains various tips and tricks for OS/2 which have been gathered 
  27. over time from various sources. Creation of this text was inspired by the 
  28. "Clever Tricks" section of Tim Sipples' excellent Frequently Asked Questions 
  29. list, a must read for all OS/2 owners. 
  30.  
  31. The type of tips and tricks included in this text are those which cover 
  32. features of OS/2 that people often ask about, short REXX scripts which do 
  33. interesting things, as well as other items which hopefully don't overlap 
  34. information already contained in Tim Sipples' FAQ (well, not by TOO much, 
  35. anyway). 
  36.  
  37. The tricks contained in this text do not make references to any specific 
  38. product names, other than those components included in OS/2 itself.  However, 
  39. it may occasionally have been necessary to mention generic classes of utilities 
  40. which are not included as part of OS/2. 
  41.  
  42. "Stupid OS/2 Tricks" can be freely distributed for non-commercial use, as long 
  43. as it remains unaltered.  This work is not public domain. 
  44.  
  45. Related subject(s): 
  46.  
  47. o How to submit tips and tricks 
  48.  
  49.  
  50. ΓòÉΓòÉΓòÉ 1.2. How to submit tips and tricks ΓòÉΓòÉΓòÉ
  51.  
  52. If you know of any neat OS/2 tips or tricks that you're dying to share, please 
  53. send them along.  They would be greatly appreciated! 
  54.  
  55. If your tip or trick is used, your name will be listed along with it for all to 
  56. see! 
  57.  
  58. Neat OS/2 tricks can be sent to: 
  59.  
  60. Internet, m-woo@uiuc.edu 
  61. Fidonet, Sysop @ 1:233/4.0 
  62.  
  63. Please also send any corrections to either of the addresses above. 
  64.  
  65. (these addresses are subject to change after Jan 1993) 
  66.  
  67.  
  68. ΓòÉΓòÉΓòÉ 1.3. Revisions ΓòÉΓòÉΓòÉ
  69.  
  70. INF revision marks 
  71.  
  72. Revisions/additions to this INF file will be displayed in the following text 
  73. color (this is a revision). 
  74.  
  75. Related subject(s): 
  76.  
  77. o Revision schedule 
  78.  
  79.  
  80. ΓòÉΓòÉΓòÉ 1.4. Revision schedule ΓòÉΓòÉΓòÉ
  81.  
  82. This text will be updated when the number of new tips and tricks gathered 
  83. warrants a new version. 
  84.  
  85. Revision History: 
  86.  
  87. o Release #1 - Nov 1993; initial release 
  88. o Release #2 - Dec 1993 
  89.  
  90. Related subject(s): 
  91.  
  92. o Revision marking 
  93.  
  94.  
  95. ΓòÉΓòÉΓòÉ 1.4.1. Release #2 ΓòÉΓòÉΓòÉ
  96.  
  97. Release #2 - Dec 1993 
  98.  
  99.      Changed: 
  100.  
  101.      Using Elvis v1.8c beta instead of v1.6 
  102.      Corrected info in "Getting more out of your command line" 
  103.      Corrected typos in SETMOUSE.CMD (this is important!!!) 
  104.      Added note to "Adding an 'open folder' entry to the desktop's popup menu" 
  105.      Improved BITMAP.CMD 
  106.  
  107.      Added: 
  108.  
  109.      Getting Epson ActionLaser 1500 to work 
  110.      Using keyboard shortcuts in PM 
  111.      Navigating in notebooks without a mouse 
  112.      Shutting down from a REXX script automatically 
  113.      Curing "jumpy mouse" 
  114.      Retrieving a "changed" icon 
  115.      Pasting between Windows applications 
  116.      Associating data files with programs 
  117.      Getting memory back from unused caches 
  118.      Changing the default view of a folder 
  119.      Dealing with OS/2 !! SYS messages on boot 
  120.      Using multiple arguments at the OS/2 command line 
  121.      Using EPM as a customized command shell 
  122.      Setting the startup directory for command line objects 
  123.      Restoring last desktop backup 
  124.      Creating new printer objects 
  125.      Viewing *.inf files more conveniently 
  126.      Formatting a diskette with the detach command 
  127.      Creating your own templates 
  128.      Using less memory for DOS images 
  129.      Replacing your Shredder if deleted 
  130.  
  131.  
  132. ΓòÉΓòÉΓòÉ 1.5. How this document was created ΓòÉΓòÉΓòÉ
  133.  
  134. This document was written using the OS/2 port of Elvis v1.8c beta. Screen 
  135. captures were done using PMCamera/2 v2.10, an IBM EWS package, then processed 
  136. using JoeView v1.21.  The resulting tagged document was compiled using the IPF 
  137. compiler from the IBM OS/2 Developer's Toolkit v2.0. 
  138.  
  139.  
  140. ΓòÉΓòÉΓòÉ 1.6. Disclaimer ΓòÉΓòÉΓòÉ
  141.  
  142. I don't claim to be an expert on OS/2, so I can't guarantee that all the tips 
  143. and tricks presented in this document will work with all configurations of 
  144. OS/2.  Thus, the following disclaimer: 
  145.  
  146. The reader/user assumes all responsibility, liability and risk for any damages, 
  147. incidental or consequential, resulting from the use of the information provided 
  148. in this document.  No warranty is expressed or implied, and this document is 
  149. only guaranteed to use space on your disk. 
  150.  
  151.  
  152. ΓòÉΓòÉΓòÉ 2. System ΓòÉΓòÉΓòÉ
  153.  
  154. This section covers tips and tricks which affect the system in general. 
  155.  
  156. Topics in this section: 
  157.  
  158.      o Keeping applications from restarting at boot 
  159.      o Shutting down without a mouse 
  160.      o Rebooting from the command line 
  161.      o Finding settings for original objects 
  162.      o Controlling order of execution in Startup folder 
  163.      o Backing up the *.ini files 
  164.      o Removing device drivers for better performance 
  165.      o Speeding up some IDE drives 
  166.      o Disabling use of the floppy drives 
  167.      o Getting Epson ActionLaser 1500 to work 
  168.      o Getting memory back from unused caches 
  169.      o Dealing with OS/2 !! SYS messages on boot 
  170.      o Restoring last desktop backup 
  171.      o Viewing *.inf files more conveniently 
  172.      o Using less memory for DOS images 
  173.  
  174.  
  175. ΓòÉΓòÉΓòÉ 2.1. Keeping applications from restarting at boot ΓòÉΓòÉΓòÉ
  176.  
  177. When OS/2 is started, it automatically opens applications which were open 
  178. during the last OS/2 session.  To keep applications from restarting on boot, 
  179. you can use either the manual or automatic method. 
  180.  
  181. Related subject(s): 
  182.  
  183.      o Prevent restarting manually 
  184.      o Prevent restarting automatically 
  185.      o Rebooting from the command line 
  186.  
  187.  
  188. ΓòÉΓòÉΓòÉ 2.1.1. Prevent restarting manually ΓòÉΓòÉΓòÉ
  189.  
  190. To prevent applications from restarting during boot, hold down the Ctrl, left 
  191. Shift, and F1 keys at the same time, beginning when the mouse pointer appears 
  192. until the icons begin appearing on the desktop. If you find that disk activity 
  193. stops, you may have to release the keys and then quickly hold them down again. 
  194.  
  195. Related subject(s): 
  196.  
  197.      o Prevent restarting automatically 
  198.  
  199.  
  200. ΓòÉΓòÉΓòÉ 2.1.2. Prevent restarting automatically ΓòÉΓòÉΓòÉ
  201.  
  202. Placing the line 
  203.  
  204. SET RESTARTOBJECTS=STARTUPFOLDERSONLY,REBOOTONLY 
  205.  
  206. into your CONFIG.SYS file will prevent any applications which had been open in 
  207. the last session from opening, but will allow programs in the Startup folder to 
  208. open. 
  209.  
  210. Related subject(s): 
  211.  
  212.      o Prevent restarting manually 
  213.  
  214.  
  215. ΓòÉΓòÉΓòÉ 2.2. Shutting down without a mouse ΓòÉΓòÉΓòÉ
  216.  
  217. To shut OS/2 down without a mouse, press Ctrl-Esc to bring up the Window List, 
  218. choose the Desktop, press the Spacebar to deselect any icons, press Shift-F10 
  219. to pop up the Desktop's menu, choose Shutdown. 
  220.  
  221.  
  222. ΓòÉΓòÉΓòÉ 2.3. Rebooting from the command line ΓòÉΓòÉΓòÉ
  223.  
  224. To reboot OS/2 down from the command line, type 
  225.  
  226. SETBOOT /B 
  227.  
  228. or 
  229.  
  230. SETBOOT /IBD:<drive> 
  231.  
  232. where <drive> is the letter of the drive or partition to which you wish to boot 
  233.  
  234. Related subject(s): 
  235.  
  236.      o Keeping applications from restarting at boot 
  237.      o SHUTDOWN.CMD 
  238.  
  239.  
  240. ΓòÉΓòÉΓòÉ 2.4. Finding settings for original objects ΓòÉΓòÉΓòÉ
  241.  
  242. The settings for all of the objects which were created upon installation of 
  243. your OS/2 system are contained in the INI.RC file, located in the \OS2 
  244. subdirectory.  Those handy with REXX and the external REXXutils can use the 
  245. information contained in the INI.RC file to rebuild the original OS/2 objects. 
  246.  
  247. Related subject(s): 
  248.  
  249.      o Replacing your Shredder if deleted 
  250.  
  251.  
  252. ΓòÉΓòÉΓòÉ 2.5. Controlling order of execution in Startup folder ΓòÉΓòÉΓòÉ
  253.  
  254.  
  255. ΓòÉΓòÉΓòÉ <hidden> Startup execution window 1 ΓòÉΓòÉΓòÉ
  256.  
  257. You can control the order in which objects in your Startup folder execute. 
  258.  
  259.       1. Open the Startup folder in either Flowed or Non-flowed view. 
  260.       2. Drag objects or their shadows into the Startup Folder in the order you 
  261.          want them to execute. 
  262.  
  263.  
  264. ΓòÉΓòÉΓòÉ <hidden> Startup folder ΓòÉΓòÉΓòÉ
  265.  
  266. Startup folder in Flowed view with item being dragged into it. 
  267.  
  268.  
  269. ΓòÉΓòÉΓòÉ 2.6. Backing up the *.ini files ΓòÉΓòÉΓòÉ
  270.  
  271. Much of your system's customization is stored in two files, OS2.INI and 
  272. OS2SYS.INI.  To back up these important files, add the following line to the 
  273. beginning of your CONFIG.SYS: 
  274.  
  275. CALL=<drive1>:\OS2\XCOPY.EXE <drive2>:\OS2\OS*.INI <drive3>:\<path> 
  276.  
  277. where 
  278.  
  279.   <drive1> is the letter of the drive in which XCOPY.EXE is found 
  280.  
  281.   <drive2> is the letter of the drive in which the *.ini files are found 
  282.  
  283.   <drive3> is the letter of the drive in which you would like to locate the 
  284. backups of the *.ini files 
  285.  
  286.   <path> is the path in which you would like to locate the backups of the *.ini 
  287. files 
  288.  
  289. Related subject(s): 
  290.  
  291.      o Restoring last desktop backup 
  292.  
  293.  
  294. ΓòÉΓòÉΓòÉ 2.7. Removing device drivers for better performance ΓòÉΓòÉΓòÉ
  295.  
  296. (contributed by Jack Tan) 
  297.  
  298. If you aren't using the DOS subsystem, you can improve performance by removing 
  299. DOS-specific device drivers from loading in your CONFIG.SYS (they generally 
  300. begin with the letter V).  The same applies to Win-OS/2, HPFS, CD-ROM drivers 
  301. as well. 
  302.  
  303. Related subject(s): 
  304.  
  305.      o Getting memory back from unused caches 
  306.  
  307.  
  308. ΓòÉΓòÉΓòÉ 2.8. Speeding up some IDE drives ΓòÉΓòÉΓòÉ
  309.  
  310. (contributed by Jack Tan) 
  311.  
  312. Try adding switches to the BASEDEV=IBM1S506.ADD line: 
  313.  
  314. BASEDEV=IBM1S506.ADD /A:0 /U:0 /SMS 
  315.  
  316. and use /V to see if the /SMS works (/V = verbose).  This is supposed to speed 
  317. up IDE drives that support this feature; otherwise, it will be ignored. 
  318.  
  319.  
  320. ΓòÉΓòÉΓòÉ 2.9. Disabling use of the floppy drives ΓòÉΓòÉΓòÉ
  321.  
  322. (by Darius Vaskelis) 
  323.  
  324. To prevent users from using the floppy drives under OS/2, such as in a 
  325. workstation situation: 
  326.  
  327. Remove the following line from your CONFIG.SYS: 
  328.  
  329. BASEDEV=IBMxFLPY.ADD 
  330.  
  331. Where x is 1 for ISA and EISA, or 2 for Microchannel. 
  332.  
  333.  
  334. ΓòÉΓòÉΓòÉ 2.10. Getting Epson ActionLaser 1500 to work ΓòÉΓòÉΓòÉ
  335.  
  336. To get an Epson ActionLaser to work with OS/2 2.1: 
  337.  
  338.       1. First, follow the standard steps for non-working printers under OS/2: 
  339.  
  340.          a. Make sure you have a compliant cable. A parallel cable should have 
  341.             all 25 pins wired, unfortunately, a lot of cables currently 
  342.             manufactured only have 18 pins wired. 
  343.          b. Check your interrupts.  ISA and EISA bus machines cannot share 
  344.             interrupts under OS/2.  Often, a sound card will be set to the same 
  345.             interrupt as LPT1 (IRQ7), and must be changed. 
  346.          c. Get a compatible I/O card.  Some parallel port cards don't seem to 
  347.             work correctly under OS/2. 
  348.  
  349.       2. Finally, for the Epson ActionLaser, change the "Busy Delay" to +5 
  350.          (covered in p.4-15 of the Epson's manual). 
  351.  
  352.  
  353. ΓòÉΓòÉΓòÉ 2.11. Getting memory back from unused caches ΓòÉΓòÉΓòÉ
  354.  
  355. (from the OS/2 2.1 Technical Reference) 
  356.  
  357. You can increase available resources by disabling unused caches.  If you are 
  358. running an HPFS-only system, remove (or REM) the DISKCACHE line in your 
  359. CONFIG.SYS file.  Similarly, if you are running a FAT-only system, remove (or 
  360. REM) the IFS=<drive>:\OS2\HPFS.IFS line in your CONFIG.SYS. 
  361.  
  362. Related subject(s): 
  363.  
  364.      o Removing device drivers for better performance 
  365.  
  366.  
  367. ΓòÉΓòÉΓòÉ 2.12. Dealing with OS/2 !! SYS messages on boot ΓòÉΓòÉΓòÉ
  368.  
  369. (contributed by Jack Tan) 
  370.  
  371. The error message: 
  372.  
  373. OS/2 !! SYS01475 
  374. OS/2 !! SYS02027 
  375.  
  376. means that the system files can't be found.  Try removing any diskettes from 
  377. the disk drives.  If this message appears when trying to boot from a hard disk, 
  378. use SYSINSTX to restore the OS/2 system files. 
  379.  
  380.  
  381. ΓòÉΓòÉΓòÉ 2.13. Restoring last desktop backup ΓòÉΓòÉΓòÉ
  382.  
  383. (contributed by Jack Tan) 
  384.  
  385. To make the Alt-F1 trick restore your last desktop backup instead of the (ugly) 
  386. default, replace the CONFIG.SYS, OS2.INI, and OS2SYS.INI in \OS2\INSTALL with 
  387. the files from your last backup.  Make sure to save the original files in 
  388. \OS2\INSTALL before replacing them. 
  389.  
  390. Related subject(s): 
  391.  
  392.      o Backing up the *.ini files 
  393.  
  394.  
  395. ΓòÉΓòÉΓòÉ 2.14. Viewing *.inf files more conveniently ΓòÉΓòÉΓòÉ
  396.  
  397. (contributed by Jack Tan) 
  398.  
  399. Here are two tips to make viewing OS/2 *.inf files more convenient: 
  400.  
  401. 1. Put several INF files together using a plus sign.  On the command line (or 
  402. 'Parameters' field of the settings notebook), enter something such as: 
  403.  
  404. e.g., <drive>:\BOOKS\FILE1.INF+<drive>:\BOOKS\FILE2.INF+ 
  405. <drive>:\BOOKS\FILE3.INF. 
  406.  
  407. The pathnames aren't necessary if the file is in a directory specified by the 
  408. HELP environmental variable. 
  409.  
  410. 2. You can assign the book names to an environmental variable: 
  411.  
  412. e.g., SET FILE=<drive>:\BOOKS\FILE1.INF+<drive>:\BOOKS\FILE2.INF+ 
  413. <drive>:\BOOKS\FILE3.INF 
  414.  
  415. and execute VIEW.EXE using the variable name (e.g., VIEW FILE). 
  416.  
  417.  
  418. ΓòÉΓòÉΓòÉ 2.15. Using less memory for DOS images ΓòÉΓòÉΓòÉ
  419.  
  420. When you load a DOS image file (Virtual Machine Boot, or VMB), the entire 
  421. diskette image is loaded into memory.  Since the files on the DOS image 
  422. diskette don't take up much room themselves, much of the memory used for the 
  423. diskette is wasted.  Therefore, in order to regain memory when loading the 
  424. specific DOS session, try using double-density diskettes to make your DOS 
  425. images, instead of high-density diskettes. 
  426.  
  427.  
  428. ΓòÉΓòÉΓòÉ 3. Desktop ΓòÉΓòÉΓòÉ
  429.  
  430. This section covers tips and tricks which relate to the Workplace Shell. 
  431.  
  432. Topics in this section: 
  433.  
  434.      o Saving desktop without shutting down 
  435.      o Adding an "open folder" entry to the desktop's popup menu 
  436.      o Changing color of shadow icon text 
  437.      o Moving icon a small distance 
  438.      o Changing desktop bitmaps randomly at specified interval 
  439.      o Changing the standard mouse pointer 
  440.      o Making an object prompt for a parameter 
  441.      o Finding a "covered" icon 
  442.      o Changing icon text color 
  443.      o Recovering after an accidental Arrange 
  444.      o Creating an onscreen "app bar" 
  445.      o Creating a "trash can" 
  446.      o Selecting objects without mouse 
  447.      o Hiding a folder 
  448.      o Creating a system file editor object 
  449.      o Retrieving a "changed" icon 
  450.      o Associating data files with programs 
  451.      o Creating new printer objects 
  452.      o Creating your own templates 
  453.      o Replacing your Shredder if deleted 
  454.  
  455.  
  456. ΓòÉΓòÉΓòÉ 3.1. Saving desktop without shutting down ΓòÉΓòÉΓòÉ
  457.  
  458. To save the settings of your desktop without shutting down OS/2: 
  459.  
  460. (by Jack Tan) 
  461.  
  462.       1. Open the Settings folder for the Desktop. 
  463.       2. Choose the Window tab. 
  464.       3. Under Object Open Behavior, choose Create New Object. 
  465.       4. Close the Settings folder. 
  466.       5. Click on the arrow next to Open in the Desktop's popup menu; choose 
  467.          Icon View. 
  468.       6. A folder of your Desktop should appear.  You can arrange this folder 
  469.          any way you wish. 
  470.       7. Close the folder of your Desktop to save its settings.  The icon 
  471.          positions will be saved. 
  472.       8. Change the Object Open Behavior to Display Existing Window. 
  473.       9. To activate the newly-saved Desktop, use a kill utility to kill the 
  474.          second PMSHELL process.  The Workplace Shell will restart with your 
  475.          newly-saved icon settings. 
  476.  
  477.      Related subject(s): 
  478.  
  479.      o Recovering after an accidental Arrange 
  480.  
  481.  
  482. ΓòÉΓòÉΓòÉ 3.2. Adding an "open folder" entry to the desktop's popup menu ΓòÉΓòÉΓòÉ
  483.  
  484. To add an entry to the desktop's popup menu which allows you to open a specific 
  485. folder: 
  486.  
  487.       1. Create a REXX script, OPEN.CMD to open the folder. 
  488.       2. Open the Templates folder. 
  489.       3. Use the right mouse button to drag a copy of the Program template to 
  490.          the desired final location.  Its Settings notebook should open. 
  491.       4. Fill in the path and file name (OPEN.CMD) on the Programs page. 
  492.          Complete the General page as desired. 
  493.       5. Close the Settings notebook. 
  494.       6. Open the Settings notebook for the Desktop. 
  495.       7. Choose the Menu tab. 
  496.       8. If using OS/2 v2.1, drag the icon of your newly-created OPEN.CMD 
  497.          object onto the box underneath "Actions on menu: Primary pop-up menu." 
  498.          If using OS/2 v2.0, click on the Create Another button and fill in the 
  499.          proper information. 
  500.       9. The menu choice for your OPEN.CMD object should now be available on 
  501.          the desktop's popup menu. 
  502.  
  503.      Note: If you repeat the "call SysSetObjectData" line a second time, the 
  504.      folder will open in the foreground. 
  505.  
  506.      Other REXX scripts: 
  507.  
  508.      o BITMAP.CMD 
  509.      o SETMOUSE.CMD 
  510.      o SETFONT.CMD 
  511.      o CHKDRIVE.CMD 
  512.      o SHUTDOWN.CMD 
  513.      o SHREDDER.CMD 
  514.  
  515.  
  516. ΓòÉΓòÉΓòÉ 3.3. Changing color of shadow icon text ΓòÉΓòÉΓòÉ
  517.  
  518.  
  519. ΓòÉΓòÉΓòÉ <hidden> Shadow icon text window 1 ΓòÉΓòÉΓòÉ
  520.  
  521. To change the color of the shadow icon text: 
  522.  
  523.       1. Open the Scheme Palette. 
  524.       2. Choose Shadow Text. 
  525.       3. Choose the desired color from the color wheel. 
  526.       4. Close the Scheme Palette. 
  527.       5. Drag (or Alt-drag) the desired scheme to the desired folder with the 
  528.          right mouse button. 
  529.  
  530.      Related subject(s): 
  531.  
  532.      o Changing icon text color 
  533.  
  534.  
  535. ΓòÉΓòÉΓòÉ <hidden> Scheme Palette ΓòÉΓòÉΓòÉ
  536.  
  537. Scheme Palette with Shadow Text highlighted. 
  538.  
  539.  
  540. ΓòÉΓòÉΓòÉ 3.4. Moving icon a small distance ΓòÉΓòÉΓòÉ
  541.  
  542.  
  543. ΓòÉΓòÉΓòÉ <hidden> Moving icon window 1 ΓòÉΓòÉΓòÉ
  544.  
  545. (from Tim Sipples' FAQ) 
  546.  
  547. To move an icon a small distance, "grab" the outer edge of the icon with the 
  548. mouse and drag it to the new position. 
  549.  
  550.  
  551. ΓòÉΓòÉΓòÉ <hidden> Moving icon ΓòÉΓòÉΓòÉ
  552.  
  553.                         Moving an icon a small distance.
  554.  
  555.  
  556. ΓòÉΓòÉΓòÉ 3.5. Changing desktop bitmaps randomly at specified interval ΓòÉΓòÉΓòÉ
  557.  
  558. The Desktop bitmaps can be changed via a REXX script, BITMAP.CMD.  Note that 
  559. this script does not support tiling of bitmaps. 
  560.  
  561. Changes to bitmap.cmd (thanks to Jack Tan) added so that bitmap subdirectory is 
  562. no longer hard-coded into the script. 
  563.  
  564. Other REXX scripts: 
  565.  
  566.      o OPEN.CMD 
  567.      o SETMOUSE.CMD 
  568.      o SETFONT.CMD 
  569.      o CHKDRIVE.CMD 
  570.      o SHUTDOWN.CMD 
  571.      o SHREDDER.CMD 
  572.  
  573.  
  574. ΓòÉΓòÉΓòÉ 3.6. Changing the standard mouse pointer ΓòÉΓòÉΓòÉ
  575.  
  576. You can replace the standard mouse pointer with one of your own creations. 
  577.  
  578. (by Dann Lunsford) 
  579.  
  580.       1. Use the Icon Editor to create a mouse pointer file with the extension 
  581.          *.PTR. 
  582.       2. Create the REXX script, SETMOUSE.CMD. 
  583.       3. Invoke SETMOUSE.CMD as follows: 
  584.  
  585.          SETMOUSE.CMD <drive>:\<path>\<filename>.PTR 
  586.  
  587.          where 
  588.  
  589.             <drive> is the drive on which the *.PTR file resides 
  590.  
  591.             <path> is the path on which the *.PTR file resides 
  592.  
  593.             <filename> is the name of the new mouse pointer file 
  594.  
  595.      Other REXX scripts: 
  596.  
  597.      o OPEN.CMD 
  598.      o BITMAP.CMD 
  599.      o SETFONT.CMD 
  600.      o CHKDRIVE.CMD 
  601.      o SHUTDOWN.CMD 
  602.      o SHREDDER.CMD 
  603.  
  604.  
  605. ΓòÉΓòÉΓòÉ 3.7. Making an object prompt for a parameter ΓòÉΓòÉΓòÉ
  606.  
  607.  
  608. ΓòÉΓòÉΓòÉ <hidden> Object prompt window 1 ΓòÉΓòÉΓòÉ
  609.  
  610. To make an object prompt for a parameter when invoked 
  611.  
  612.       1. Open the Settings notebook for the object. 
  613.       2. In the Parameters field of the Program page, enter a left square 
  614.          bracket, a space, then a right square bracket, 
  615.          i.e., [ ] 
  616.       3. If you want text to appear along with parameter prompting, insert the 
  617.          desired text between the square brackets. 
  618.  
  619.  
  620. ΓòÉΓòÉΓòÉ <hidden> Settings notebook ΓòÉΓòÉΓòÉ
  621.  
  622. Parameters box of Settings notebook. 
  623.  
  624.  
  625. ΓòÉΓòÉΓòÉ 3.8. Finding a "covered" icon ΓòÉΓòÉΓòÉ
  626.  
  627.  
  628. ΓòÉΓòÉΓòÉ <hidden> Covered icons window 1 ΓòÉΓòÉΓòÉ
  629.  
  630. The disadvantage of having many windows open on the desktop is that icons on 
  631. the desktop can often get covered.  To find an icon more easily: 
  632.  
  633.       1. Click the right mouse button on a clear space on the desktop. 
  634.       2. Click on the arrow next to Open on the popup menu. 
  635.       3. Choose Tree or Details View (Icon View can only be selected if the 
  636.          Desktop's object open behavior has been set to Create New Window); 
  637.          this will open up a new view of your desktop from which you can find 
  638.          the icon you want. 
  639.  
  640.  
  641. ΓòÉΓòÉΓòÉ <hidden> Desktop Popup Menu ΓòÉΓòÉΓòÉ
  642.  
  643. Desktop's popup menu with Tree View highlighted. 
  644.  
  645.  
  646. ΓòÉΓòÉΓòÉ 3.9. Changing icon text color ΓòÉΓòÉΓòÉ
  647.  
  648.  
  649. ΓòÉΓòÉΓòÉ <hidden> Color Palette ΓòÉΓòÉΓòÉ
  650.  
  651. The color of the icon text on your desktop can be changed as follows: 
  652.  
  653.       1. Open the Color Palette. 
  654.       2. Hold the Ctrl key. 
  655.       3. Use the right mouse button to drag the desired color to the desktop. 
  656.  
  657.      Related subject(s): 
  658.  
  659.      o Changing color of shadow icon text 
  660.  
  661.  
  662. ΓòÉΓòÉΓòÉ <hidden> Color Palette ΓòÉΓòÉΓòÉ
  663.  
  664. Color Palette with color being dragged with mouse. 
  665.  
  666.  
  667. ΓòÉΓòÉΓòÉ 3.10. Recovering after an accidental Arrange ΓòÉΓòÉΓòÉ
  668.  
  669. To regain your desktop's icon positions after an accidental Arrange, use a 
  670. third-party utility which can kill processes to kill the second instance of 
  671. PMSHELL.  The Workplace Shell will restart with your old icon positions. 
  672.  
  673. Related subject(s): 
  674.  
  675.      o Saving desktop without shutting down 
  676.  
  677.  
  678. ΓòÉΓòÉΓòÉ 3.11. Creating an onscreen "app bar" ΓòÉΓòÉΓòÉ
  679.  
  680.  
  681. ΓòÉΓòÉΓòÉ <hidden> App bar window 1 ΓòÉΓòÉΓòÉ
  682.  
  683. You can create something that acts a little like an "app bar": 
  684.  
  685.       1. Create a new folder. 
  686.       2. Size the folder so that it has the shape and size that you like, then 
  687.          position it where you like. 
  688.       3. Set the folder's view to either Flowed or Non-flowed. 
  689.       4. Drag shadows of your most-used applications to the folder. 
  690.       5. Drag a shadow of your "app bar" folder to your Startup folder. 
  691.       6. You now have a folder of your most-used apps that will open at boot. 
  692.          You can further customize the "app bar" with a utility that will cause 
  693.          the folder to "float" on top of other windows so that it will be more 
  694.          accessible. 
  695.  
  696.  
  697. ΓòÉΓòÉΓòÉ <hidden> App Bar ΓòÉΓòÉΓòÉ
  698.  
  699. Example of an App Bar. 
  700.  
  701.  
  702. ΓòÉΓòÉΓòÉ 3.12. Creating a "trash can" ΓòÉΓòÉΓòÉ
  703.  
  704. You can create a trash can-like icon on your desktop: 
  705.  
  706.       1. Open the Templates folder and make a copy of the Folder template. 
  707.       2. You should now have a template called Folder:1; rename it to Trash, or 
  708.          whatever you like. 
  709.       3. Attach you favorite trash can icon to your Trash template. 
  710.       4. To create a trash can, use your right mouse button to drag a Trash 
  711.          folder from your Trash template onto your desktop. 
  712.       5. Drag objects to the Trash as you see fit. 
  713.       6. When you want to empty the Trash can, simply delete the folder, then 
  714.          replace it with a new Trash can by pulling one off of your Trash 
  715.          template. 
  716.       7. The advantage of using the Trash can over the shredder is that you can 
  717.          open your Trash can and observe the contents, and remove what you 
  718.          don't want deleted. 
  719.  
  720.  
  721. ΓòÉΓòÉΓòÉ 3.13. Selecting objects without mouse ΓòÉΓòÉΓòÉ
  722.  
  723. You can select objects in folders or the Deskop without a mouse.  Simply type 
  724. the first letter of the object, and the object will be highlighted. Hit Enter 
  725. to open the object.  If more than one object begins with the same letter, 
  726. subsequent typing of the same letter will jump between each object that begins 
  727. with that letter. 
  728.  
  729.  
  730. ΓòÉΓòÉΓòÉ 3.14. Hiding a folder ΓòÉΓòÉΓòÉ
  731.  
  732. You can hide folder icons on the desktop so that others can't see them: 
  733.  
  734.       1. Open the Settings notebook of the folder which you wish to hide. 
  735.       2. Click on the File tab, then click on the right arrow in the lower 
  736.          right corner to turn to the second page of the File tab. 
  737.       3. Place a check mark next to Hidden under the Flags section.  The folder 
  738.          should now be hidden. 
  739.  
  740.      To view the folder's icon once again: 
  741.  
  742.       1. Open the Settings notebook for the Desktop. 
  743.       2. Click on the Include tab. 
  744.       3. Click on the right arrow in the lower right corner to turn to the 
  745.          second page of the Include tab. 
  746.       4. Click on Change.  A new dialog box will appear. 
  747.       5. In the dialog box, choose the following settings: 
  748.  
  749.          a. Property to be considered = Flags 
  750.          b. Comparison type = Not equal 
  751.          c. Comparison value = H 
  752.  
  753.       6. Click on Change. 
  754.       7. Close Settings notebook.  The icon should now be visible. 
  755.  
  756.  
  757. ΓòÉΓòÉΓòÉ 3.15. Creating a system file editor object ΓòÉΓòÉΓòÉ
  758.  
  759. You can create an object which, when opened, will open your system setup files 
  760. for editing, through the aid of a Work Area folder: 
  761.  
  762.       1. Open the Settings notebook for the System Editor. 
  763.       2. Click on the Association tab. 
  764.       3. If Plain Text does not appear in the Current Types box, use the Add 
  765.          button to add it from the Available Types box.  Close the Settings 
  766.          notebook. 
  767.       4. Create a new folder. 
  768.       5. Open the Settings notebook for the new folder. 
  769.       6. Click on the File tab. 
  770.       7. Place a check in the box next to Work Area.  Close the Settings 
  771.          notebook. 
  772.       8. Open the Drives object, then open the drive(s) with the CONFIG.SYS, 
  773.          WIN.INI, and SYSTEM.INI files. 
  774.       9. Open the Settings notebook for the CONFIG.SYS file. 
  775.      10. Click on Association. 
  776.      11. If Plain Text does not appear in the Current Types box, use the Add 
  777.          button to add it from the Available Types box.  Close the Settings 
  778.          notebook. Repeat for the Settings notebook for the WIN.INI and 
  779.          SYSTEM.INI files. 
  780.      12. Drag shadows of the CONFIG.SYS, WIN.INI, and SYSTEM.INI files into the 
  781.          new folder. 
  782.      13. Open the new folder if not already open. 
  783.      14. Use the right mouse button on the CONFIG.SYS shadow object to popup 
  784.          the menu.  Click on the arrow next to Open, choose System Editor. 
  785.          Your CONFIG.SYS should be loaded into the System Editor.  Repeat for 
  786.          WIN.INI and SYSTEM.INI. 
  787.      15. Leaving the three System Editor windows open, close the new folder. 
  788.      16. You should now have a folder object that will open up your system 
  789.          files automatically when the folder is opened. 
  790.  
  791.  
  792. ΓòÉΓòÉΓòÉ 3.16. Retrieving a "changed" icon ΓòÉΓòÉΓòÉ
  793.  
  794. In OS/2 2.1, making changes to an object's settings often causes the object's 
  795. icon to revert to its default icon.  To retrieve your customized icon, this 
  796. usually works: 
  797.  
  798.       1. Open the object's Settings notebook. 
  799.       2. Choose the General tab. 
  800.       3. Click on the Undo button. 
  801.  
  802.  
  803. ΓòÉΓòÉΓòÉ 3.17. Associating data files with programs ΓòÉΓòÉΓòÉ
  804.  
  805.  
  806. ΓòÉΓòÉΓòÉ <hidden> Associate files ΓòÉΓòÉΓòÉ
  807.  
  808. Want to be able to double click on a data file object and have it open in its 
  809. appropriate application?  Try setting up associations in your applications: 
  810.  
  811.       1. Open the Settings notebook for the application. 
  812.       2. Choose the Association tab. 
  813.       3. Under Available Types, see if you can find the file type appropriate 
  814.          for your application.  If so, highlight the file type, and press the 
  815.          Add button to the right of the box. 
  816.       4. If the file type you need doesn't exist under Available Types, and the 
  817.          data files you wish to have associated have a common file extension or 
  818.          name, enter the common part of the filename (with appropriate 
  819.          wildcards) in the New Name box.  Click on the Add button to the right 
  820.          of the box. 
  821.       5. If neither of the above two situations applies, open up the Settings 
  822.          notebook for each data file you wish to associate, and set up the 
  823.          association there. 
  824.  
  825.      Note that this does not work for all programs. 
  826.  
  827.  
  828. ΓòÉΓòÉΓòÉ <hidden> Associations ΓòÉΓòÉΓòÉ
  829.  
  830. Settings notebook displaying Describe association. 
  831.  
  832.  
  833. ΓòÉΓòÉΓòÉ 3.18. Creating new printer objects ΓòÉΓòÉΓòÉ
  834.  
  835. To create a new printer object: 
  836.  
  837.       1. Open the Templates folder. 
  838.       2. Drag a new printer object out from the Printer template with the right 
  839.          mouse button. 
  840.       3. Customize the settings for your printer. 
  841.  
  842.  
  843. ΓòÉΓòÉΓòÉ 3.19. Creating your own templates ΓòÉΓòÉΓòÉ
  844.  
  845. You can create your own templates for customized uses.  For example, you can 
  846. create a template of a word processor file with boilerplate text for business 
  847. letters.  The next time you want to write a new business letter, just drag a 
  848. copy off of your customized template, and the file, complete with your 
  849. pre-defined settings, will be ready to edit. 
  850.  
  851. To create a customized template: 
  852.  
  853.       1. Customize your data file (such as a wordprocessor file) to the way you 
  854.          want it.  Save the file. 
  855.       2. Open the Drives object and find the file you just created. 
  856.       3. Make a copy of the file object; you can either use Copy from the 
  857.          object's pop-up menu, or hold down the Ctrl key while dragging off a 
  858.          copy with your right mouse button. 
  859.       4. Open the Settings notebook for the copy you just made. 
  860.       5. Choose the General tab. 
  861.       6. Place a check mark next to Template.  Close the notebook. 
  862.       7. When you want to use the new template, just use your right mouse 
  863.          button and drag a copy off of the template. 
  864.  
  865.  
  866. ΓòÉΓòÉΓòÉ 3.20. Replacing your Shredder if deleted ΓòÉΓòÉΓòÉ
  867.  
  868. Did you somehow manage to shred your Shredder?  If so, SHREDDER.CMD can replace 
  869. it. 
  870.  
  871. CAUTION:
  872. This REXX script does not check to see if you already have a Shredder present, 
  873. and will replace one if it exists. 
  874.  
  875. Related subject(s): 
  876.  
  877.      o Finding settings for original objects 
  878.      o OPEN.CMD 
  879.      o BITMAP.CMD 
  880.      o SETMOUSE.CMD 
  881.      o SETFONT.CMD 
  882.      o CHKDRIVE.CMD 
  883.      o SHUTDOWN.CMD 
  884.  
  885.  
  886. ΓòÉΓòÉΓòÉ 4. Presentation Manager ΓòÉΓòÉΓòÉ
  887.  
  888. This section covers tips and tricks which affect Presentation Manager. 
  889.  
  890. Topics in this section: 
  891.  
  892.      o Making fonts extremely small 
  893.      o Starting PM programs minimized 
  894.      o Changing the default PM system font 
  895.      o Moving a window in the background 
  896.      o Closing several windows at once 
  897.      o Using keyboard shortcuts in PM 
  898.      o Navigating in notebooks without a mouse 
  899.      o Changing the default view of a folder 
  900.  
  901.  
  902. ΓòÉΓòÉΓòÉ 4.1. Making fonts extremely small ΓòÉΓòÉΓòÉ
  903.  
  904.  
  905. ΓòÉΓòÉΓòÉ <hidden> Small fonts split window 1 ΓòÉΓòÉΓòÉ
  906.  
  907. You can make most Presentation Manager fonts as small as you like: 
  908.  
  909.       1. Open the Font Palette. 
  910.       2. Double click on one of the fonts.  A new dialog box will open. 
  911.       3. Under "Size," highlight the font size shown in the box. 
  912.       4. Type in a new font size that is non-zero (decimal values work); you 
  913.          should notice a corresponding change in the size of the font in the 
  914.          Sample box. 
  915.  
  916.      Note that this trick does not work for System Proportional, System 
  917.      Monospaced, or System VIO fonts. 
  918.  
  919.      Related subject(s): 
  920.  
  921.      o Changing the default PM system font 
  922.  
  923.  
  924. ΓòÉΓòÉΓòÉ <hidden> Font Palette ΓòÉΓòÉΓòÉ
  925.  
  926. Font Palette dialog box with point size highlighted. 
  927.  
  928.  
  929. ΓòÉΓòÉΓòÉ 4.2. Starting PM programs minimized ΓòÉΓòÉΓòÉ
  930.  
  931. (from Tim Sipples' FAQ) 
  932.  
  933. In order to start Presentation Manager programs minimized 
  934.  
  935.       1. Open the Settings notebook for the object. 
  936.       2. On the Program page, change the name of the program so that it is 
  937.          misspelled. 
  938.       3. Go to the Session page and click on Start Minimized. 
  939.       4. Go back to the Program page, and correct the spelling of the program 
  940.          name. 
  941.       5. Close the Settings notebook. 
  942.  
  943.  
  944. ΓòÉΓòÉΓòÉ 4.3. Changing the default PM system font ΓòÉΓòÉΓòÉ
  945.  
  946. You can change the default system font with a REXX script, SETFONT.CMD. 
  947. However, the font used in the Settings notebooks will not be affected. 
  948.  
  949. Note: system fonts are designated by font size and font name, separated only by 
  950. a period.  (e.g., 8pt Helv would be designated by "8.Helv") 
  951.  
  952. Related subject(s): 
  953.  
  954.      o Making fonts extremely small 
  955.      o OPEN.CMD 
  956.      o BITMAP.CMD 
  957.      o SETMOUSE.CMD 
  958.      o CHKDRIVE.CMD 
  959.      o SHUTDOWN.CMD 
  960.      o SHREDDER.CMD 
  961.  
  962.  
  963. ΓòÉΓòÉΓòÉ 4.4. Moving a window in the background ΓòÉΓòÉΓòÉ
  964.  
  965. You can move a window in the background without bringing it to the front by 
  966. holding the Ctrl key and dragging the window by its title bar with your mouse. 
  967.  
  968.  
  969. ΓòÉΓòÉΓòÉ 4.5. Closing several windows at once ΓòÉΓòÉΓòÉ
  970.  
  971.  
  972. ΓòÉΓòÉΓòÉ <hidden> Closing windows split window 1 ΓòÉΓòÉΓòÉ
  973.  
  974. You can close all or several of your open windows using the following method: 
  975.  
  976.       1. Bring up the Window List with Ctrl-Esc or clicking both mouse buttons 
  977.          at once. 
  978.       2. Highlight the windows you want to close with your mouse. 
  979.       3. Press the Delete key on your keyboard, or click your right mouse 
  980.          button on one of the highlighted entries and choose Close from the 
  981.          popup menu. 
  982.  
  983.  
  984. ΓòÉΓòÉΓòÉ <hidden> Closing windows split window 2 ΓòÉΓòÉΓòÉ
  985.  
  986. Window List with highlighted items and popup menu. 
  987.  
  988.  
  989. ΓòÉΓòÉΓòÉ 4.6. Using keyboard shortcuts in PM ΓòÉΓòÉΓòÉ
  990.  
  991. There are plenty of keyboard shortcuts in Presentation Manager.  Here are just 
  992. a few of the lesser-known ones: 
  993.  
  994.       1. Alt-Backspace = undo last action (note that this doesn't always work). 
  995.       2. Ctrl-Del = erase to end of field (useful when you have to retype text 
  996.          in a field - press Home to get to the beginning of a field, then 
  997.          Ctrl-Del to erase the text in the field - no more endless 
  998.          backspacing). 
  999.       3. Alt-F4 = close window. 
  1000.       4. Alt-F5 = restore window. 
  1001.       5. Alt-F6 = move between related windows, such as between an application 
  1002.          and its Help Window. 
  1003.       6. Alt-F7 = move window with cursor keys. 
  1004.       7. Alt-F8 = resize window with cursor keys. 
  1005.       8. Alt-F9 = minimize/hide window. 
  1006.       9. Alt-F10 = maximize window. 
  1007.      10. F5 = refresh window. 
  1008.  
  1009.      Related subject(s): 
  1010.  
  1011.      o Navigating in notebooks without a mouse 
  1012.  
  1013.  
  1014. ΓòÉΓòÉΓòÉ 4.7. Navigating in notebooks without a mouse ΓòÉΓòÉΓòÉ
  1015.  
  1016. To navigate around the notebooks (such as an object's Settings notebook) 
  1017. without a mouse (note that sometimes these keys don't always act consistently): 
  1018.  
  1019.       1. Down/Up Arrows = moves between notebook tabs when a tab is highlighted 
  1020.       2. Tab = moves dotted box highlight between selections 
  1021.       3. Spacebar = moves to next page if its notebook tab is highlighted 
  1022.       4. Alt-Down Arrow = move from notebook tab to page 
  1023.       5. Alt-Up Arrow = move from page to notebook tab 
  1024.       6. Alt-PageDown = move to next page 
  1025.       7. Alt-PageUp = move to previous page 
  1026.       8. Ctrl-Tab = move to next field on a page 
  1027.       9. Shift-Tab = move to previous field on a page 
  1028.  
  1029.      Related subject(s): 
  1030.  
  1031.      o Using keyboard shortcuts in PM 
  1032.  
  1033.  
  1034. ΓòÉΓòÉΓòÉ 4.8. Changing the default view of a folder ΓòÉΓòÉΓòÉ
  1035.  
  1036.  
  1037. ΓòÉΓòÉΓòÉ <hidden> Default folder view ΓòÉΓòÉΓòÉ
  1038.  
  1039.       1. Open the Settings notebook for the folder you wish to change. 
  1040.       2. Choose the Menu tab. 
  1041.       3. Highlight ~Open in the box marked Available Menus. 
  1042.       4. Click on the Settings button to the right of the box.  A new dialog 
  1043.          box will open. 
  1044.       5. Under Default Action, click on the down arrow next to the box. 
  1045.          Several choices will be revealed.  Choose the one you wish. 
  1046.       6. Click on OK, and close the Settings notebook. 
  1047.  
  1048.  
  1049. ΓòÉΓòÉΓòÉ <hidden> Changing default view ΓòÉΓòÉΓòÉ
  1050.  
  1051. Dialog box with Default Action choice. 
  1052.  
  1053.  
  1054. ΓòÉΓòÉΓòÉ 5. Command Line ΓòÉΓòÉΓòÉ
  1055.  
  1056. This section covers tips and tricks which affect command line sessions. 
  1057.  
  1058. Topics in this section: 
  1059.  
  1060.      o Pasting text without the final carriage return 
  1061.      o Clearing the Delete subdirectory 
  1062.      o Searching for file names 
  1063.      o Maximizing windows when opening 
  1064.      o Creating a scroll buffer 
  1065.      o Using OS/2 without the Workplace Shell 
  1066.      o Enhancing speed of text scrolling 
  1067.      o Adding entries to your PATH 
  1068.      o Permanently deleting a file when Undelete is active 
  1069.      o Suppressing echo from *.CMD files 
  1070.      o Getting more out of your command line 
  1071.      o Checking drive status 
  1072.      o Shutting down from a REXX script automatically 
  1073.      o Using multiple arguments at the OS/2 command line 
  1074.      o Using EPM as a customized command shell 
  1075.      o Setting the startup directory for command line objects 
  1076.      o Formatting a diskette with the detach command 
  1077.  
  1078.  
  1079. ΓòÉΓòÉΓòÉ 5.1. Pasting text without the final carriage return ΓòÉΓòÉΓòÉ
  1080.  
  1081. To paste text after a copy/mark operation without a final carriage return, hold 
  1082. down the Shift key while choosing Paste from the pull-down menu. 
  1083.  
  1084.  
  1085. ΓòÉΓòÉΓòÉ 5.2. Clearing the Delete subdirectory ΓòÉΓòÉΓòÉ
  1086.  
  1087. In order to remove the files from the Delete subdirectory of a drive to regain 
  1088. some drive space, type the following at a command line: 
  1089.  
  1090. UNDELETE <drive>:\* /f /s /a 
  1091.  
  1092. where <drive> is the letter of the drive which contains the Delete subdirectory 
  1093. you wish to clear. 
  1094.  
  1095. Related subject(s): 
  1096.  
  1097.      o Permanently deleting a file when Undelete is active 
  1098.  
  1099.  
  1100. ΓòÉΓòÉΓòÉ 5.3. Searching for file names ΓòÉΓòÉΓòÉ
  1101.  
  1102. To search for a particular file name on a drive, type 
  1103.  
  1104. DIR <drive>:\<file spec> /S 
  1105.  
  1106. where 
  1107.  
  1108. <drive> is the letter of the drive you wish to search 
  1109.  
  1110. <file spec> is the specification of the file you are searching; standard wild 
  1111. cards can be used. 
  1112.  
  1113.  
  1114. ΓòÉΓòÉΓòÉ 5.4. Maximizing windows when opening ΓòÉΓòÉΓòÉ
  1115.  
  1116.  
  1117. ΓòÉΓòÉΓòÉ <hidden> Maximizing windows split window 1 ΓòÉΓòÉΓòÉ
  1118.  
  1119. To make all command line windows open maximized, hold the Shift key while 
  1120. clicking on the maximize button. 
  1121.  
  1122. In some cases, you additionally may have to hold the Shift key while using the 
  1123. mouse to resize the window to its fullest size by dragging the bottom right 
  1124. corner. 
  1125.  
  1126.  
  1127. ΓòÉΓòÉΓòÉ <hidden> Maximizing windows ΓòÉΓòÉΓòÉ
  1128.  
  1129. Command window with mouse pointer on Maximize button. 
  1130.  
  1131.  
  1132. ΓòÉΓòÉΓòÉ 5.5. Creating a scroll buffer ΓòÉΓòÉΓòÉ
  1133.  
  1134. (from Tim Sipples' FAQ) 
  1135.  
  1136. To create a small scroll-back buffer for your command line sessions, type 
  1137.  
  1138. MODE 80,102 
  1139.  
  1140.  
  1141. ΓòÉΓòÉΓòÉ 5.6. Using OS/2 without the Workplace Shell ΓòÉΓòÉΓòÉ
  1142.  
  1143. To use OS/2 without loading the Workplace Shell, replace the following line in 
  1144. your CONFIG.SYS 
  1145.  
  1146. SET RUNWORKPLACE=<drive>:\OS2\PMSHELL.EXE 
  1147.  
  1148. with 
  1149.  
  1150. SET RUNWORKPLACE=<drive>:\OS2\CMD.EXE 
  1151.  
  1152. where <drive> is the letter of the drive on which OS/2 is located. 
  1153.  
  1154. Note that you can always invoke the Workplace Shell by typing PMSHELL at an 
  1155. OS/2 command line.  It can consequently be removed by closing it from the 
  1156. Window List. 
  1157.  
  1158.  
  1159. ΓòÉΓòÉΓòÉ 5.7. Enhancing speed of text scrolling ΓòÉΓòÉΓòÉ
  1160.  
  1161. Tricks for speeding up text display. 
  1162.  
  1163. Related subject(s): 
  1164.  
  1165.      o Changing font size 
  1166.      o Changing Video_ROM_Emulation 
  1167.  
  1168.  
  1169. ΓòÉΓòÉΓòÉ 5.7.1. Changing font size ΓòÉΓòÉΓòÉ
  1170.  
  1171.  
  1172. ΓòÉΓòÉΓòÉ <hidden> Changing font size window 1 ΓòÉΓòÉΓòÉ
  1173.  
  1174. Fonts which are 8 pixels wide generally display faster than those which are not 
  1175. 8 pixels wide.  Choose Font Size from the pull-down menu, then choose a "x 8" 
  1176. type of font size. 
  1177.  
  1178.  
  1179. ΓòÉΓòÉΓòÉ <hidden> Font Size dialog ΓòÉΓòÉΓòÉ
  1180.  
  1181. Font Size dialog box with 14x8 font size highlighted. 
  1182.  
  1183.  
  1184. ΓòÉΓòÉΓòÉ 5.7.2. Changing Video_ROM_Emulation ΓòÉΓòÉΓòÉ
  1185.  
  1186.  
  1187. ΓòÉΓòÉΓòÉ <hidden> VideoROM window 1 ΓòÉΓòÉΓòÉ
  1188.  
  1189. Text scrolling speed can also be enhanced using the Video_ROM_Emulation 
  1190. setting. 
  1191.  
  1192.       1. Select DOS Settings from either the pull-down menu of a DOS session, 
  1193.          or from the Session page of the Settings notebook of a DOS session. 
  1194.       2. Highlight Video_ROM_Emulation. 
  1195.       3. Try the setting both on and off to find out if one setting results in 
  1196.          better performance than the other. 
  1197.  
  1198.  
  1199. ΓòÉΓòÉΓòÉ <hidden> DOS Settings ΓòÉΓòÉΓòÉ
  1200.  
  1201. DOS Settings dialog with Video_ROM_Emulation highlighted. 
  1202.  
  1203.  
  1204. ΓòÉΓòÉΓòÉ 5.8. Adding entries to your PATH ΓòÉΓòÉΓòÉ
  1205.  
  1206. You can add entries to your PATH "on the fly" by using: 
  1207.  
  1208. PATH %PATH%;<drive>:\<path> 
  1209.  
  1210. where 
  1211.  
  1212. <drive> is the drive on which the subdirectory you want to add is located 
  1213.  
  1214. <path> is the path you want to add 
  1215.  
  1216. (This also works for DPATH) 
  1217.  
  1218.  
  1219. ΓòÉΓòÉΓòÉ 5.9. Permanently deleting a file when Undelete is active ΓòÉΓòÉΓòÉ
  1220.  
  1221. If you have Undelete activated (via SET DELDIR in your CONFIG.SYS), but want to 
  1222. delete a file or files so they can't be undeleted, use: 
  1223.  
  1224. DEL <file(s)> /F 
  1225.  
  1226. where <file(s)> is the file specification of the file(s) you want to delete 
  1227.  
  1228. Related subject(s): 
  1229.  
  1230.      o Clearing the Delete subdirectory 
  1231.  
  1232.  
  1233. ΓòÉΓòÉΓòÉ 5.10. Suppressing echo from *.CMD files ΓòÉΓòÉΓòÉ
  1234.  
  1235. If you are using batch files (*.CMD) which do not have ECHO OFF statements, you 
  1236. can also suppress the echo by using the /Q switch: 
  1237.  
  1238. Example:  BATCH.CMD /Q 
  1239.  
  1240.  
  1241. ΓòÉΓòÉΓòÉ 5.11. Getting more out of your command line ΓòÉΓòÉΓòÉ
  1242.  
  1243. Supplement your command line usage by stacking commands with &&, &, ||, and (): 
  1244.  
  1245. (contributed by Jack Tan) 
  1246.  
  1247.       1. && executes the second program only if the former succeeds, 
  1248.          e.g., RunMe.EXE && RunMeIfFormerSucceeds.EXE 
  1249.  
  1250.       2. || executes the second program if the former doesn't succeed, 
  1251.          e.g., RunMe.EXE || RunMeIfTheFormerDidntSucceed.EXE 
  1252.  
  1253.       3. Combining && and || results in an if..then..else situation, 
  1254.          e.g., If.EXE && Then.EXE || Else.EXE 
  1255.          (Else.EXE doesn't run if and only if both If.EXE and Then.EXE run 
  1256.          successfully) 
  1257.  
  1258.       4. & runs both the first and second programs, 
  1259.          e.g., RunMe.EXE & AndMeToo.EXE 
  1260.  
  1261.       5. () executes the instructions within the parentheses, overriding the 
  1262.          normal order of command precedence, 
  1263.          e.g., DETACH (FORMAT a: /once /v:"hi" && XCOPY c:\x A: /S) & UNZIP 
  1264.          myfile.zip 
  1265.          (the commands in parentheses are operated on by DETACH, then UNZIP 
  1266.          executes) 
  1267.  
  1268.  
  1269. ΓòÉΓòÉΓòÉ 5.12. Checking drive status ΓòÉΓòÉΓòÉ
  1270.  
  1271. (inspired by a code snippet by Dick Goran) 
  1272.  
  1273. You can check the status of a drive (e.g., if a floppy is inserted into a 
  1274. floppy drive or not) with a REXX script, CHKDRIVE.CMD. 
  1275.  
  1276. The routines in CHKDRIVE.CMD can be incorporated into longer REXX scripts 
  1277. whenever the status of a drive needs to be ascertained. 
  1278.  
  1279. Other REXX scripts: 
  1280.  
  1281.      o OPEN.CMD 
  1282.      o BITMAP.CMD 
  1283.      o SETMOUSE.CMD 
  1284.      o SETFONT.CMD 
  1285.      o SHUTDOWN.CMD 
  1286.      o SHREDDER.CMD 
  1287.  
  1288.  
  1289. ΓòÉΓòÉΓòÉ 5.13. Shutting down from a REXX script automatically ΓòÉΓòÉΓòÉ
  1290.  
  1291. (by David Matocha) 
  1292.  
  1293. You can shutdown your system with a countdown using SHUTDOWN.CMD combined with 
  1294. a scheduling utility and a automatic power-down of the system. 
  1295.  
  1296. Related subject(s): 
  1297.  
  1298.      o Rebooting from the command line 
  1299.      o OPEN.CMD 
  1300.      o BITMAP.CMD 
  1301.      o SETMOUSE.CMD 
  1302.      o SETFONT.CMD 
  1303.      o CHKDRIVE.CMD 
  1304.      o SHREDDER.CMD 
  1305.  
  1306.  
  1307. ΓòÉΓòÉΓòÉ 5.14. Using multiple arguments at the OS/2 command line ΓòÉΓòÉΓòÉ
  1308.  
  1309. Unlike DOS, OS/2's command line allows you to use multiple arguments at the 
  1310. command line for the DEL and DIR commands. 
  1311.  
  1312. e.g., 
  1313.  
  1314. DEL <file1> <file2> <file3> 
  1315. DIR <file1> <file2> <file3> 
  1316.  
  1317. where <file1>, <file2>, and <file3> are different filenames (with any 
  1318. appropriate wildcards). 
  1319.  
  1320.  
  1321. ΓòÉΓòÉΓòÉ 5.15. Using EPM as a customized command shell ΓòÉΓòÉΓòÉ
  1322.  
  1323.  
  1324. ΓòÉΓòÉΓòÉ <hidden> EPM shell ΓòÉΓòÉΓòÉ
  1325.  
  1326. (contributed by Jack Tan) 
  1327.  
  1328. Use the Enhanced Editor (EPM) command SHELL to produce a command line with the 
  1329. following attributes: 
  1330.  
  1331.      o Uses any font recognized by EPM. 
  1332.      o Window sizeable to nearly any size. 
  1333.      o Dynamically resizeable window. 
  1334.      o Can alter text/background colors. 
  1335.      o Scroll buffer spans the entire session. 
  1336.  
  1337.      Unfortunately, programs which take control of the screen (like 
  1338.      screen-based editors) won't run. 
  1339.  
  1340.  
  1341. ΓòÉΓòÉΓòÉ <hidden> EPM command shell ΓòÉΓòÉΓòÉ
  1342.  
  1343. EPM command shell, using the Helvetica font. 
  1344.  
  1345.  
  1346. ΓòÉΓòÉΓòÉ 5.16. Setting the startup directory for command line objects ΓòÉΓòÉΓòÉ
  1347.  
  1348. (contributed by Jack Tan) 
  1349.  
  1350. The 'Working Directory' entry in the settings notebook also applies to command 
  1351. lines, such as 'OS/2 Window' and 'DOS Full Screen.'  In these cases, the 
  1352. working directory becomes the starting directory. 
  1353.  
  1354.  
  1355. ΓòÉΓòÉΓòÉ 5.17. Formatting a diskette with the detach command ΓòÉΓòÉΓòÉ
  1356.  
  1357. You can format a diskette in the background from the command line or in a batch 
  1358. file without user intervention with the line: 
  1359.  
  1360. DETACH FORMAT <drive>: /ONCE /V:<label> 
  1361.  
  1362. where <drive> is the drive of the diskette you wish to format, and <label> is 
  1363. the name you wish to use for the volume label. 
  1364.  
  1365.  
  1366. ΓòÉΓòÉΓòÉ 6. Win-OS/2 ΓòÉΓòÉΓòÉ
  1367.  
  1368. This section covers tips and tricks which affect Win-OS/2. 
  1369.  
  1370. Topics in this section: 
  1371.  
  1372.      o Reducing Win-OS/2 initial load time 
  1373.      o Using Windows screen blanker for OS/2 
  1374.      o Running Win-OS/2 from a DOS image 
  1375.      o Curing "jumpy mouse" 
  1376.      o Pasting between Windows applications 
  1377.  
  1378.  
  1379. ΓòÉΓòÉΓòÉ 6.1. Reducing Win-OS/2 initial load time ΓòÉΓòÉΓòÉ
  1380.  
  1381. If you are running Windows programs in a common session, the load time for the 
  1382. first Windows program you execute will be much longer than subsequent load 
  1383. times because OS/2 needs to load both a VDM and the Win-OS/2 code.  If you want 
  1384. to speed up loading Windows programs, load a small Windows program, such as the 
  1385. Clock, via your Startup folder.  Your boot time will increase, but when you 
  1386. finally sit down to work, your Windows programs will load more quickly. 
  1387.  
  1388.  
  1389. ΓòÉΓòÉΓòÉ 6.2. Using Windows screen blanker for OS/2 ΓòÉΓòÉΓòÉ
  1390.  
  1391. You can use a Windows screen blanker when running seamless Windows to blank the 
  1392. OS/2 desktop.  However, since Win-OS/2 can sometimes miss keystrokes intended 
  1393. for Presentation Manager, be sure to set the delay of the screen blanker as 
  1394. long as possible. 
  1395.  
  1396.  
  1397. ΓòÉΓòÉΓòÉ 6.3. Running Win-OS/2 from a DOS image ΓòÉΓòÉΓòÉ
  1398.  
  1399. You can run Win-OS/2 from a DOS image, also known as a Virtual Machine Boot 
  1400. (VMB) or specific DOS session: 
  1401.  
  1402.       1. Put a bootable DOS system disk in the A: drive.  Make sure that you 
  1403.          have a simple, DOS-compatible editor on this disk that you can use to 
  1404.          edit the CONFIG.SYS and AUTOEXEC.BAT files. 
  1405.       2. Open an OS/2 command line session. 
  1406.       3. Create a subdirectory to store the boot images. 
  1407.       4. At the OS/2 command line, type VMDISK A: <imagename> where <imagename> 
  1408.          is a name you give to the boot image 
  1409.       5. When the system files have been transferred from A: to your boot image 
  1410.          subdirectory, close the OS/2 command line and remove the diskette from 
  1411.          A:. 
  1412.       6. Open the Templates folder and use the right mouse button to drag a 
  1413.          template from the Program template icon.  The Settings notebook for 
  1414.          the new program object should open. 
  1415.       7. On the Program page, put an asterisk in the Path and Filename box. 
  1416.       8. Click on the Session tab. 
  1417.       9. Select either the DOS Window or DOS Full Screen button. 
  1418.      10. Click on the DOS settings button. 
  1419.      11. Highlight the DOS_STARTUP_DRIVE option. 
  1420.      12. In the Value box, enter the drive, path and name of your boot image. 
  1421.      13. Highlight DOS_FILES. 
  1422.      14. In the Value box, set DOS_FILES to 40. 
  1423.      15. Highlight DPMI_MEMORY_LIMIT. 
  1424.      16. In the Value box, set DPMI_MEMORY_LIMIT to 4 or higher. 
  1425.      17. Click on Save. 
  1426.      18. Close the Settings notebook. 
  1427.      19. Open the newly-created DOS image. 
  1428.      20. While in the DOS image, create/edit the CONFIG.SYS file. 
  1429.      21. The CONFIG.SYS should contain, among other entries, these lines: 
  1430.  
  1431.          a. DEVICE=<drive>:\OS2\MDOS\FSFILTER.SYS -- this line should be near 
  1432.             the top of CONFIG.SYS, and <drive> is the drive on which your OS/2 
  1433.             DOS support files are located. 
  1434.          b. DEVICE=<drive>:\OS2\MDOS\HIMEM.SYS 
  1435.          c. DEVICE=<drive>:\OS2\MDOS\EMM386.SYS 
  1436.  
  1437.      22. Save the CONFIG.SYS and create/edit an AUTOEXEC.BAT file as you wish. 
  1438.      23. Close the session by double clicking on the title bar icon. 
  1439.      24. Reopen the DOS image, and type WIN to start Win-OS/2. 
  1440.  
  1441.  
  1442. ΓòÉΓòÉΓòÉ 6.4. Curing "jumpy mouse" ΓòÉΓòÉΓòÉ
  1443.  
  1444. The mouse can often be "jumpy" in fullscreen Win-OS/2 sessions.  Try changing 
  1445. its idle sensitivity setting: 
  1446.  
  1447.       1. Open the Settings notebook for the object. 
  1448.       2. Choose the Session tab. 
  1449.       3. Click on DOS Settings. 
  1450.       4. Highlight IDLE_SENSITIVITY. 
  1451.       5. Set IDLE_SENSITIVITY to 100 (idle detection off). 
  1452.  
  1453.  
  1454. ΓòÉΓòÉΓòÉ 6.5. Pasting between Windows applications ΓòÉΓòÉΓòÉ
  1455.  
  1456. Sometimes data gets lost when you're pasting between Windows applications under 
  1457. Win-OS/2.  If this happens to you, try: 
  1458.  
  1459.       1. Open the Win-OS/2 object's Settings notebook. 
  1460.       2. Choose the Session tab. 
  1461.       3. Click on DOS Settings. 
  1462.       4. Highlight VIDEO_FASTPASTE. 
  1463.       5. Set VIDEO_FASTPASTE to ON. 
  1464.  
  1465.  
  1466. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  1467.  
  1468. /* OPEN.CMD - opens a folder */
  1469. call RxFuncAdd "SysSetObjectData", "RexxUtil", "SysSetObjectData"
  1470. folderpath="<drive>:\<path>"
  1471. call SysSetObjectData folderpath, "OPEN=DEFAULT";
  1472. exit
  1473. /* where <drive> is the letter of the drive on which the subdirectory
  1474.                  corresponding to the folder is located
  1475.          <path>  is the path to the subdirectory corresponding to the folder */
  1476.  
  1477.  
  1478. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  1479.  
  1480. /* bitmap.cmd - change desktop background randomly */
  1481. /* changes to bitmap.cmd by Jack Tan               */
  1482. call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
  1483. call SysLoadFuncs
  1484. parse arg changetime;
  1485. changetime=strip(changetime)
  1486. if changetime=' ' then do
  1487.         say "BITMAP.CMD--change bitmaps randomly at a specified interval"
  1488.         say ""
  1489.         say "USAGE: bitmap <time>"
  1490.         say "where <time> is the interval between bitmap changes in seconds"
  1491.         exit
  1492.         end
  1493. else
  1494. bitmap = SysSearchPath("DPATH", "OS2LOGO.BMP")
  1495. bitmappath = DELSTR(bitmap, LASTPOS("\", bitmap))
  1496. call SysFileTree bitmappath || '\*.*', "bitmaps.", "O"
  1497. do forever
  1498.         call SysSleep changetime
  1499.         i = random(1,bitmaps.0)
  1500.         call SysSetObjectData "<WP_DESKTOP>", "BACKGROUND="bitmaps.i";"
  1501. end
  1502. exit
  1503.  
  1504.  
  1505. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  1506.  
  1507. /* SETMOUSE.CMD by Dann Lunsford */
  1508. /* Short procedure to set mouse pointer to contents of specified .PTR file */
  1509. /* This file is in the public domain, but I'd appreciate it greatly if you */
  1510. /* would leave this notice in...     Author:  Dann Lunsford                */
  1511. /*                                            Vortex BBS (1:203/726)       */
  1512. /*                                            13-Aug-1993                  */
  1513. /* invoke from a commandline with the name of your custom pointer file as  */
  1514. /* the argument.                                                           */
  1515. arg ptr_file_name
  1516. if ptr_file_name == '' then
  1517.    do
  1518.       say "Usage: setmouse complete_pointer_file_pathname"
  1519.       exit
  1520.    end
  1521. file = stream(ptr_file_name,'C','query exists')
  1522. if file == '' then
  1523.    do
  1524.       say "Specified file is not accessible."
  1525.       exit
  1526.    end
  1527. /* load REXX utility library */
  1528. call RxFuncAdd 'SysLoadFuncs','REXXUTIL','SysLoadFuncs'
  1529. call SysLoadFuncs
  1530. /* now do the deed */
  1531. val = x2c('01000000')||file||x2c('00')
  1532. res = SysIni('USER','PM_SysPointer','1',val)
  1533. if res \= '' then
  1534.    do
  1535.       say "Error while setting PM_SysPointer"
  1536.       exit
  1537.    end
  1538. say "Your new pointer will become effective at the next system boot."
  1539. exit
  1540.  
  1541.  
  1542. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  1543.  
  1544. /* shredder.cmd - REXX script to recreate the Shredder */
  1545. call RxFuncAdd "SysCreateObject", "RexxUtil", "SysCreateObject"
  1546. class="WPShredder"
  1547. title="Shredder"
  1548. location="<WP_DESKTOP>"
  1549. settings="OBJECTID=<WP_SHRED>;"
  1550. settings=settings||"ICONPOS=90 8;"
  1551.  
  1552. call SysCreateObject class, title, location, settings, "REPLACE"
  1553. exit
  1554.  
  1555.  
  1556. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  1557.  
  1558. /* setfont.cmd                          */
  1559. /* Usage: SETFONT <font size/type>      */
  1560. /* where <font size/type> is the        */
  1561. /* point size and font desired in the   */
  1562. /* format size.type (e.g., 8.Helv)      */
  1563. call RxFuncAdd "SysIni", "RexxUtil", "SysIni"
  1564. parse arg Font
  1565. KeyName = "DefaultFont"
  1566. call SysIni "USER","PM_SystemFonts","DefaultFont","Font"||x2c(0)
  1567. say Result
  1568. exit
  1569.  
  1570.  
  1571. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  1572.  
  1573. /* CHKDRIVE.CMD - check drive status */
  1574. '@echo off'
  1575. parse arg drive_letter;
  1576. drive_letter=delstr(drive_letter,2);
  1577. if drive_letter=' ' then do
  1578.     say "CHKDRIVE.CMD - check status of drive"
  1579.     say "USAGE: CHKDRIVE.CMD <drive>"
  1580.     say "where <drive> is the letter of drive you wish to check"
  1581.     exit
  1582.     end
  1583. else
  1584. signal ON NOTREADY name NOT_READY
  1585. call STREAM drive_letter || ':*', 'D'
  1586. say "Drive Ready"
  1587. exit
  1588. NOT_READY:
  1589. say "Drive Not Ready"
  1590. return
  1591.  
  1592.  
  1593. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  1594.  
  1595. /* REXX script to shutdown the PC in 5 minutes
  1596.    Author: David Matocha            david.matocha@yob.sccsi.com
  1597.    If you make any improvements, please send me a copy.
  1598.    Version 930316.6                            */
  1599. say ' '
  1600. say 'Please close all running applications.'
  1601. say ' '
  1602. say 'WARNING: The Computer will shutdown in 5 minutes!'
  1603. beep(500, 1000);
  1604. CALL SysSleep 14;
  1605. beep(475, 1000);
  1606. CALL SysSleep 14;
  1607. beep(450, 1000);
  1608. CALL SysSleep 14;
  1609. beep(425, 1000);
  1610. CALL SysSleep 14;
  1611. say ' '
  1612. say 'WARNING: The Computer will shutdown in 4 minutes!'
  1613. beep(400, 1000);
  1614. CALL SysSleep 14;
  1615. beep(375, 1000);
  1616. CALL SysSleep 14;
  1617. beep(350, 1000);
  1618. CALL SysSleep 14;
  1619. beep(325, 1000);
  1620. CALL SysSleep 14;
  1621. say ' '
  1622. say 'WARNING: The Computer will shutdown in 3 minutes!'
  1623. beep(300, 1000);
  1624. CALL SysSleep 14;
  1625. beep(275, 1000);
  1626. CALL SysSleep 14;
  1627. beep(250, 1000);
  1628. CALL SysSleep 14;
  1629. beep(225, 1000);
  1630. CALL SysSleep 14;
  1631. say ' '
  1632. say 'WARNING: The Computer will shutdown in 2 minutes!'
  1633. beep(200, 1000);
  1634. CALL SysSleep 14;
  1635. beep(175, 1000);
  1636. CALL SysSleep 14;
  1637. beep(150, 1000);
  1638. CALL SysSleep 14;
  1639. beep(125, 1000);
  1640. CALL SysSleep 14;
  1641. say ' '
  1642. say 'WARNING: The Computer will shutdown in 1 minute!'
  1643. beep(100, 1000);
  1644. CALL SysSleep 14;
  1645. beep(500, 1000);
  1646. CALL SysSleep 14;
  1647. beep(1000, 1000);
  1648. CALL SysSleep 14;
  1649. beep(1500, 1000);
  1650. CALL SysSleep 14;
  1651.  'setboot /T:NO'
  1652.  'setboot /B'
  1653. exit
  1654.