home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / INFO / DIVSINFO / TRICKS5 / TRICKS.INF (.txt) < prev   
OS/2 Help File  |  1994-11-20  |  372KB  |  3,801 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Introduction ΓòÉΓòÉΓòÉ
  3.  
  4. Stupid OS/2 Tricks 
  5.  
  6. compiled by M. Woo, Champaign-Urbana OS/2 Users Group, release #5, Nov 1994 
  7.  
  8.  
  9. (Double click on a bitmap to start) 
  10.  
  11. Information about this document: 
  12.  
  13. Γûá Types of "tricks" included 
  14. Γûá How to use the included REXX scripts 
  15. Γûá How to submit tips and tricks 
  16. Γûá Revisions 
  17. Γûá Revision schedule 
  18. Γûá How this document was created 
  19. Γûá Disclaimer 
  20.  
  21. Copyright 1993-94 M. Woo. 
  22. All Rights Reserved.  This work, or parts thereof, may not be reproduced or 
  23. redistributed in any form without permission, with the exception that "Stupid 
  24. OS/2 Tricks" can be freely distributed in electronic form for non-commercial 
  25. use, as long as it remains unaltered. 
  26.  
  27.  
  28. ΓòÉΓòÉΓòÉ 1.1. Types of "tricks" included ΓòÉΓòÉΓòÉ
  29.  
  30. This file contains various tips and tricks for OS/2 which have been gathered 
  31. over time from various sources. Creation of this text was inspired by the 
  32. "Clever Tricks" section of Tim Sipples' excellent Frequently Asked Questions 
  33. list, a must read for all OS/2 owners. 
  34.  
  35. The type of tips and tricks included in this text are those which cover 
  36. features of OS/2 that people often ask about, short REXX scripts which do 
  37. interesting things, as well as other items which hopefully don't overlap 
  38. information already contained in Tim Sipples' FAQ (well, not by TOO much, 
  39. anyway). 
  40.  
  41. The tricks contained in this text do not make references to any specific 
  42. product names, other than those components included in OS/2 itself.  However, 
  43. it may occasionally have been necessary to mention generic classes of utilities 
  44. which are not included as part of OS/2. 
  45.  
  46. A Japanese language version of Stupid OS/2 Tricks should now be available. 
  47. Contact A. Kikuchi at kiku@ymtl01.yamato.ibm.co.jp for details. 
  48.  
  49. Related subject(s): 
  50.  
  51. Γûá How to submit tips and tricks 
  52.  
  53.  
  54. ΓòÉΓòÉΓòÉ 1.2. How to use the included REXX scripts ΓòÉΓòÉΓòÉ
  55.  
  56. as per a suggestion from Dawn Perchik 
  57.  
  58. In order to use the included REXX scripts, you must have REXX installed on your 
  59. OS/2 system.  If you did not install REXX during your OS/2 installation, it can 
  60. be installed using the Selective Install object in your System Setup folder. 
  61.  
  62. Each REXX script is linked to the first instance of its name via a hypertext 
  63. link.  If you double-click with mouse button 1 on the hypertext link, a window 
  64. will pop up containing the REXX script. 
  65.  
  66. To write the REXX script to disk, make sure the window containing the REXX 
  67. script is the active window.  Pull the Services menu down from the menu bar, 
  68. then choose Copy to File.  This will create a file called TEXT.TMP on your 
  69. disk. 
  70.  
  71. Open TEXT.TMP into a text editor (such as the System Editor) for editing. In 
  72. order for OS/2 to recognize the script as a REXX script, rather than a regular 
  73. OS/2 batch file, the symbols "/*" (without quotes) must reside on the topmost 
  74. line, in the positions to the farthest left.  In order to accomplish this, you 
  75. will have to delete the blank lines at the top of the file, and delete any 
  76. spaces that occur before the first "/*" symbols. 
  77.  
  78. When you are finished editing TEXT.TMP, save it as a filename which ends with 
  79. the extension .CMD (such as SETPTR.CMD), so that OS/2 can recognize the file as 
  80. a REXX script. 
  81.  
  82. Voila!  You should now have a working REXX script that can be run simply by 
  83. typing its name at an OS/2 command line. 
  84.  
  85.  
  86. ΓòÉΓòÉΓòÉ 1.3. How to submit tips and tricks ΓòÉΓòÉΓòÉ
  87.  
  88. If you know of any neat OS/2 tips or tricks that you're dying to share, please 
  89. send them along.  They would be greatly appreciated! 
  90.  
  91. If your tip or trick is used, your name will be listed along with it for all to 
  92. see! 
  93.  
  94. Neat OS/2 tricks can be sent to: 
  95.  
  96. Internet, m-woo@uiuc.edu 
  97. Fidonet, Sysop @ 1:233/4.0 
  98.  
  99. Please also send any corrections to either of the addresses above. 
  100.  
  101. (these addresses are not subject to change any time soon) 
  102.  
  103.  
  104. ΓòÉΓòÉΓòÉ 1.4. Revisions ΓòÉΓòÉΓòÉ
  105.  
  106. INF revision marks 
  107.  
  108. Revisions/additions to this INF file will be displayed in the following text 
  109. color (this is a revision). 
  110.  
  111. Related subject(s): 
  112.  
  113. Γûá Revision schedule 
  114.  
  115.  
  116. ΓòÉΓòÉΓòÉ 1.5. Revision schedule ΓòÉΓòÉΓòÉ
  117.  
  118. This text will be updated when the number of new tips and tricks gathered 
  119. warrants a new version. 
  120.  
  121. Revision History: 
  122.  
  123. Γûá Release #1 - Nov 1993; initial release 
  124. Γûá Release #2 - Dec 1993 
  125. Γûá Release #3 - Jan 1994 
  126. Γûá Release #4 - Apr 1994 
  127. Γûá Release #5 - Nov 1994 
  128.  
  129. Related subject(s): 
  130.  
  131. Γûá Revision marking 
  132.  
  133.  
  134. ΓòÉΓòÉΓòÉ 1.5.1. Release #2 ΓòÉΓòÉΓòÉ
  135.  
  136. Release #2 - Dec 1993 
  137.  
  138.      Changed: 
  139.  
  140.      Using Elvis v1.8c beta instead of v1.6 
  141.      Corrected info in "Getting more out of your command line" 
  142.      Corrected typos in SETMOUSE.CMD (this is important!!!) 
  143.      Added note to "Adding an 'open folder' entry to the desktop's popup menu" 
  144.      Improved BITMAP.CMD 
  145.  
  146.      Added: 
  147.  
  148.      Getting Epson ActionLaser 1500 to work 
  149.      Using keyboard shortcuts in PM 
  150.      Navigating in notebooks without a mouse 
  151.      Shutting down from a REXX script automatically 
  152.      Curing "jumpy mouse" 
  153.      Retrieving a "changed" icon 
  154.      Pasting between Windows applications 
  155.      Associating data files with programs 
  156.      Getting memory back from unused caches 
  157.      Changing the default view of a folder 
  158.      Dealing with OS/2 !! SYS messages on boot 
  159.      Using multiple arguments at the OS/2 command line 
  160.      Using EPM as a customized command shell 
  161.      Setting the startup directory for command line objects 
  162.      Restoring last desktop backup 
  163.      Creating new printer objects 
  164.      Viewing *.inf files more conveniently 
  165.      Formatting a diskette with the detach command 
  166.      Creating your own templates 
  167.      Using less memory for DOS images 
  168.      Replacing your Shredder if deleted 
  169.  
  170.  
  171. ΓòÉΓòÉΓòÉ 1.5.2. Release #3 ΓòÉΓòÉΓòÉ
  172.  
  173. Release #3 - Jan 1994 
  174.  
  175.      Changed: 
  176.  
  177.      Added comment to "Prevent restarting automatically" 
  178.      Added note to "Speeding up some IDE drives" 
  179.      Corrected code and added comment to SETFONT.CMD. 
  180.      Replaced SETMOUSE.CMD with an improved version, SETPTR.CMD 
  181.  
  182.      Added: 
  183.  
  184.      Starting seamless Windows from the command line 
  185.      Resizing a command line window permanently 
  186.      Making the system "sleep" 
  187.      Substituting REPLACE for the COPY command 
  188.      Deleting "undeletable" objects 
  189.      Speeding up opening folders 
  190.      Managing your icons 
  191.      Enlarging the mouse cursor 
  192.      Manipulating objects through the Window List 
  193.      Booting OS/2 in full-screen mode 
  194.      Completing shutdown 
  195.      "Touching" a file's date and time 
  196.      Adjusting your swap file 
  197.      Adding command sessions to the desktop's popup menu 
  198.      Using SVGA.EXE under real DOS 
  199.      Selecting listbox entries without a mouse 
  200.      Making "no-shows" re-appear 
  201.      Opening multiple command line sessions from the desktop menu 
  202.      Creating a command line calculator 
  203.      Loading a DOS device driver into high memory 
  204.      Starting a DOS session with maximum free memory 
  205.      Fixing "locked" INI files 
  206.      Using START to avoid the dreaded "clock" 
  207.      Coloring OS/2 command line sessions 
  208.  
  209.  
  210. ΓòÉΓòÉΓòÉ 1.5.3. Release #4 ΓòÉΓòÉΓòÉ
  211.  
  212. Release #4 - Apr 1994 
  213.  
  214.      Changed: 
  215.  
  216.      Added code to BIGDOS.CMD to make DOS session open in foreground. 
  217.      Removed ICONRES.CMD because it was copyrighted. 
  218.      Added 2.11 note to "Maximizing windows when opening" 
  219.      Added 2.11 note to "Retrieving a 'changed' icon" 
  220.      Added note to "Rebooting from the command line" 
  221.      Added 2.11 note to "Backing up the *.ini files" 
  222.      Added info to "Curing 'jumpy mouse'" 
  223.  
  224.      Added: 
  225.  
  226.      Opening the parent folder 
  227.      Playing audio CDs via REXX 
  228.      Copying fullscreen text to the Clipboard 
  229.      Displaying custom DOS settings at the command line 
  230.      Using Windows File Manager on your OS/2 desktop 
  231.      Fixing seamless Windows on some 2.11 CSD systems 
  232.      Jumping between windowed sessions 
  233.      Playing media files from the command line 
  234.      Editing object names on the desktop 
  235.      How to use the included REXX scripts 
  236.      Determining if you have a buffered UART in your computer 
  237.      Moving a template object without creating a copy 
  238.      Changing the long name (icon text) of a file or folder without changing 
  239.      the real name 
  240.      Starting an OS/2 command line from a folder's directory 
  241.      Adding INF files to the desktop popup menu 
  242.  
  243.  
  244. ΓòÉΓòÉΓòÉ 1.5.4. Release #5 ΓòÉΓòÉΓòÉ
  245.  
  246. Release #5 - Nov 1994 
  247.  
  248.      Changed: 
  249.  
  250.      Unfortunately, it became necessary to expand on the copyright statement 
  251.      Added a separate section for OS/2 Warp-specific tips 
  252.      Added warning to "Changing the standard mouse pointer" 
  253.      New version of BITMAP.CMD 
  254.      Added note to indicate that author's address is now more or less permanent 
  255.      Now using the IPF compiler from the IBM OS/2 Developer's Toolkit v2.1 
  256.  
  257.      Added: 
  258.  
  259.      Opening windowed command line in the background 
  260.      Recreating a "lost" template 
  261.      Viewing the Nowhere subdirectory 
  262.      Using PMREXX as a scrolling command window 
  263.      Backing up INI files in the background 
  264.      Tearing off Launchpad drawer 
  265.      Opening the Settings notebook 
  266.      Changing printing from polling to interrupt-driven 
  267.      Closing the parent folder when opening an object 
  268.      Recovering a deleted Launchpad 
  269.      Keeping the system running, even through traps 
  270.      Obtaining information about your hardware 
  271.      Editing animated folder icons 
  272.      Bringing the Launchpad to the top 
  273.      Setting the swap file 
  274.      Setting video modes 
  275.      Speeding up opening folders II 
  276.      Closing parent folders automatically 
  277.      Setting default folder appearance 
  278.      Creating OS/2 Warp boot diskettes 
  279.      Caching your cdrom drive 
  280.      Resetting Boot Manager to have no default partition 
  281.      Switching temporarily to a different directory 
  282.      Associating icon with executable 
  283.      Booting DOS from a C: partition within OS/2 
  284.      Resetting the boot record 
  285.      Canceling print jobs from the command line 
  286.      Adding more LPT ports in Win-OS/2 
  287.      Customizing the Launchpad 
  288.  
  289.  
  290. ΓòÉΓòÉΓòÉ 1.6. How this document was created ΓòÉΓòÉΓòÉ
  291.  
  292. This document was written using the OS/2 port of Elvis v1.8c beta. Screen 
  293. captures were done using PMCamera/2 v2.10, an IBM EWS package.  The resulting 
  294. tagged document was compiled using the IPF compiler from the IBM OS/2 
  295. Developer's Toolkit v2.1. 
  296.  
  297.  
  298. ΓòÉΓòÉΓòÉ 1.7. Disclaimer ΓòÉΓòÉΓòÉ
  299.  
  300. I don't claim to be an expert on OS/2, so I can't guarantee that all the tips 
  301. and tricks presented in this document will work with all configurations of 
  302. OS/2.  Thus, the following disclaimer: 
  303.  
  304. The reader/user assumes all responsibility, liability and risk for any damages, 
  305. incidental or consequential, resulting from the use of the information provided 
  306. in this document.  No warranty is expressed or implied, and this document is 
  307. only guaranteed to use space on your disk. 
  308.  
  309.  
  310. ΓòÉΓòÉΓòÉ 2. System ΓòÉΓòÉΓòÉ
  311.  
  312. This section covers tips and tricks which affect the system in general. 
  313.  
  314. Topics in this section: 
  315.  
  316.      Γûá Keeping applications from restarting at boot 
  317.      Γûá Shutting down without a mouse 
  318.      Γûá Rebooting from the command line 
  319.      Γûá Finding settings for original objects 
  320.      Γûá Controlling order of execution in Startup folder 
  321.      Γûá Backing up the *.ini files 
  322.      Γûá Removing device drivers for better performance 
  323.      Γûá Speeding up some IDE drives 
  324.      Γûá Disabling use of the floppy drives 
  325.      Γûá Getting Epson ActionLaser 1500 to work 
  326.      Γûá Getting memory back from unused caches 
  327.      Γûá Dealing with OS/2 !! SYS messages on boot 
  328.      Γûá Restoring last desktop backup 
  329.      Γûá Viewing *.inf files more conveniently 
  330.      Γûá Using less memory for DOS images 
  331.      Γûá Booting OS/2 in full-screen mode 
  332.      Γûá Completing shutdown 
  333.      Γûá Adjusting your swap file 
  334.      Γûá Using SVGA.EXE under real DOS 
  335.      Γûá Loading a DOS device driver into high memory 
  336.      Γûá Fixing "locked" INI files 
  337.      Γûá Playing audio CDs via REXX 
  338.      Γûá Playing media files from the command line 
  339.      Γûá Determining if you have a buffered UART in your computer 
  340.      Γûá Pooling multiple printers 
  341.      Γûá Viewing the Nowhere subdirectory 
  342.      Γûá Backing up INI files in the background 
  343.      Γûá Caching your cdrom drive 
  344.      Γûá Resetting Boot Manager to have no default partition 
  345.      Γûá Booting DOS from a C: partition within OS/2 
  346.      Γûá Resetting the boot record 
  347.  
  348.  
  349. ΓòÉΓòÉΓòÉ 2.1. Keeping applications from restarting at boot ΓòÉΓòÉΓòÉ
  350.  
  351. When OS/2 is started, it automatically opens applications which were open 
  352. during the last OS/2 session.  To keep applications from restarting on boot, 
  353. you can use either the manual or automatic method. 
  354.  
  355. Related subject(s): 
  356.  
  357.      Γûá Prevent restarting manually 
  358.      Γûá Prevent restarting automatically 
  359.      Γûá Rebooting from the command line 
  360.  
  361.  
  362. ΓòÉΓòÉΓòÉ 2.1.1. Prevent restarting manually ΓòÉΓòÉΓòÉ
  363.  
  364. To prevent applications from restarting during boot, hold down the Ctrl, left 
  365. Shift, and F1 keys at the same time, beginning when the mouse pointer appears 
  366. until the icons begin appearing on the desktop. If you find that disk activity 
  367. stops, you may have to release the keys and then quickly hold them down again. 
  368.  
  369. Related subject(s): 
  370.  
  371.      Γûá Prevent restarting automatically 
  372.  
  373.  
  374. ΓòÉΓòÉΓòÉ 2.1.2. Prevent restarting automatically ΓòÉΓòÉΓòÉ
  375.  
  376. Placing the line 
  377.  
  378. SET RESTARTOBJECTS=STARTUPFOLDERSONLY,REBOOTONLY 
  379.  
  380. into your CONFIG.SYS file will prevent any applications which had been open in 
  381. the last session from opening, but will allow programs in the Startup folder to 
  382. open. 
  383.  
  384. (this line may be order-dependent on some systems) 
  385.  
  386. Related subject(s): 
  387.  
  388.      Γûá Prevent restarting manually 
  389.  
  390.  
  391. ΓòÉΓòÉΓòÉ 2.2. Shutting down without a mouse ΓòÉΓòÉΓòÉ
  392.  
  393. To shut OS/2 down without a mouse, press Ctrl-Esc to bring up the Window List, 
  394. choose the Desktop, press the Spacebar to deselect any icons, press Shift-F10 
  395. to pop up the Desktop's menu, choose Shutdown. 
  396.  
  397.  
  398. ΓòÉΓòÉΓòÉ 2.3. Rebooting from the command line ΓòÉΓòÉΓòÉ
  399.  
  400. To reboot OS/2 down from the command line, type 
  401.  
  402. SETBOOT /B 
  403.  
  404. Note: the above only works with Boot Manager installed. 
  405.  
  406. or 
  407.  
  408. SETBOOT /IBD:<drive> 
  409.  
  410. where <drive> is the letter of the drive or partition to which you wish to boot 
  411.  
  412. Related subject(s): 
  413.  
  414.      Γûá Keeping applications from restarting at boot 
  415.      Γûá SHUTDOWN.CMD 
  416.  
  417.  
  418. ΓòÉΓòÉΓòÉ 2.4. Finding settings for original objects ΓòÉΓòÉΓòÉ
  419.  
  420. The settings for all of the objects which were created upon installation of 
  421. your OS/2 system are contained in the INI.RC file, located in the \OS2 
  422. subdirectory.  Those handy with REXX and the external REXXutils can use the 
  423. information contained in the INI.RC file to rebuild the original OS/2 objects. 
  424.  
  425. Related subject(s): 
  426.  
  427.      Γûá Replacing your Shredder if deleted 
  428.  
  429.  
  430. ΓòÉΓòÉΓòÉ 2.5. Controlling order of execution in Startup folder ΓòÉΓòÉΓòÉ
  431.  
  432.  
  433. ΓòÉΓòÉΓòÉ <hidden> Startup execution window 1 ΓòÉΓòÉΓòÉ
  434.  
  435. You can control the order in which objects in your Startup folder execute. 
  436.  
  437.       1. Open the Startup folder in either Flowed or Non-flowed view. 
  438.       2. Drag objects or their shadows into the Startup Folder in the order you 
  439.          want them to execute. 
  440.  
  441.  
  442. ΓòÉΓòÉΓòÉ <hidden> Startup folder ΓòÉΓòÉΓòÉ
  443.  
  444. Startup folder in Flowed view with item being dragged into it. 
  445.  
  446.  
  447. ΓòÉΓòÉΓòÉ 2.6. Backing up the *.ini files ΓòÉΓòÉΓòÉ
  448.  
  449. Much of your system's customization is stored in two files, OS2.INI and 
  450. OS2SYS.INI.  To back up these important files, add the following line to the 
  451. beginning of your CONFIG.SYS: 
  452.  
  453. CALL=<drive1>:\OS2\XCOPY.EXE <drive2>:\OS2\OS*.INI <drive3>:\<path> 
  454.  
  455. where 
  456.  
  457.   <drive1> is the letter of the drive in which XCOPY.EXE is found 
  458.  
  459.   <drive2> is the letter of the drive in which the *.ini files are found 
  460.  
  461.   <drive3> is the letter of the drive in which you would like to locate the 
  462. backups of the *.ini files 
  463.  
  464.   <path> is the path in which you would like to locate the backups of the *.ini 
  465. files 
  466.  
  467. Note: The 2.11 CSD adds the System attribute to OS2.INI and OS2SYS.INI.  In 
  468. order for this tip to work, you should use XCOPY's /T switch at the end of the 
  469. CALL command above. 
  470.  
  471. Related subject(s): 
  472.  
  473.      Γûá Restoring last desktop backup 
  474.      Γûá Backing up INI files in the background 
  475.  
  476.  
  477. ΓòÉΓòÉΓòÉ 2.7. Removing device drivers for better performance ΓòÉΓòÉΓòÉ
  478.  
  479. contributed by Jack Tan 
  480.  
  481. If you aren't using the DOS subsystem, you can improve performance by removing 
  482. DOS-specific device drivers from loading in your CONFIG.SYS (they generally 
  483. begin with the letter V).  The same applies to Win-OS/2, HPFS, CD-ROM drivers 
  484. as well. 
  485.  
  486. Related subject(s): 
  487.  
  488.      Γûá Getting memory back from unused caches 
  489.  
  490.  
  491. ΓòÉΓòÉΓòÉ 2.8. Speeding up some IDE drives ΓòÉΓòÉΓòÉ
  492.  
  493. contributed by Jack Tan 
  494.  
  495. Try adding switches to the BASEDEV=IBM1S506.ADD line: 
  496.  
  497. BASEDEV=IBM1S506.ADD /A:0 /U:0 /SMS 
  498.  
  499. and use /V to see if the /SMS works (/V = verbose).  This is supposed to speed 
  500. up IDE drives that support this feature; otherwise, it will be ignored. 
  501.  
  502. (note: the switches above affect the first drive on the first adapter in the 
  503. system -- for more information on the switches, search for "basedev" in your 
  504. online OS/2 Command Reference) 
  505.  
  506.  
  507. ΓòÉΓòÉΓòÉ 2.9. Disabling use of the floppy drives ΓòÉΓòÉΓòÉ
  508.  
  509. by Darius Vaskelis 
  510.  
  511. To prevent users from using the floppy drives under OS/2, such as in a 
  512. workstation situation: 
  513.  
  514. Remove the following line from your CONFIG.SYS: 
  515.  
  516. BASEDEV=IBMxFLPY.ADD 
  517.  
  518. Where x is 1 for ISA and EISA, or 2 for Microchannel. 
  519.  
  520.  
  521. ΓòÉΓòÉΓòÉ 2.10. Getting Epson ActionLaser 1500 to work ΓòÉΓòÉΓòÉ
  522.  
  523. To get an Epson ActionLaser to work with OS/2 2.1: 
  524.  
  525.       1. First, follow the standard steps for non-working printers under OS/2: 
  526.  
  527.          a) Make sure you have a compliant cable. A parallel cable should have 
  528.             all 25 pins wired, unfortunately, a lot of cables currently 
  529.             manufactured only have 18 pins wired. 
  530.          b) Check your interrupts.  ISA and EISA bus machines cannot share 
  531.             interrupts under OS/2.  Often, a sound card will be set to the same 
  532.             interrupt as LPT1 (IRQ7), and must be changed. 
  533.          c) Get a compatible I/O card.  Some parallel port cards don't seem to 
  534.             work correctly under OS/2. 
  535.  
  536.       2. Finally, for the Epson ActionLaser, change the "Busy Delay" to +5 
  537.          (covered in p.4-15 of the Epson's manual). 
  538.  
  539.  
  540. ΓòÉΓòÉΓòÉ 2.11. Getting memory back from unused caches ΓòÉΓòÉΓòÉ
  541.  
  542. from the OS/2 2.1 Technical Reference 
  543.  
  544. You can increase available resources by disabling unused caches.  If you are 
  545. running an HPFS-only system, remove (or REM) the DISKCACHE line in your 
  546. CONFIG.SYS file.  Similarly, if you are running a FAT-only system, remove (or 
  547. REM) the IFS=<drive>:\OS2\HPFS.IFS line in your CONFIG.SYS. 
  548.  
  549. Related subject(s): 
  550.  
  551.      Γûá Removing device drivers for better performance 
  552.  
  553.  
  554. ΓòÉΓòÉΓòÉ 2.12. Dealing with OS/2 !! SYS messages on boot ΓòÉΓòÉΓòÉ
  555.  
  556. contributed by Jack Tan 
  557.  
  558. The error message: 
  559.  
  560. OS/2 !! SYS01475 
  561. OS/2 !! SYS02027 
  562.  
  563. means that the system files can't be found.  Try removing any diskettes from 
  564. the disk drives.  If this message appears when trying to boot from a hard disk, 
  565. use SYSINSTX to restore the OS/2 system files. 
  566.  
  567.  
  568. ΓòÉΓòÉΓòÉ 2.13. Restoring last desktop backup ΓòÉΓòÉΓòÉ
  569.  
  570. contributed by Jack Tan 
  571.  
  572. To make the Alt-F1 trick restore your last desktop backup instead of the (ugly) 
  573. default, replace the CONFIG.SYS, OS2.INI, and OS2SYS.INI in \OS2\INSTALL with 
  574. the files from your last backup.  Make sure to save the original files in 
  575. \OS2\INSTALL before replacing them. 
  576.  
  577. Related subject(s): 
  578.  
  579.      Γûá Backing up the *.ini files 
  580.  
  581.  
  582. ΓòÉΓòÉΓòÉ 2.14. Viewing *.inf files more conveniently ΓòÉΓòÉΓòÉ
  583.  
  584. contributed by Jack Tan 
  585.  
  586. Here are two tips to make viewing OS/2 *.inf files more convenient: 
  587.  
  588. 1. Put several INF files together using a plus sign.  On the command line (or 
  589. 'Parameters' field of the settings notebook), enter something such as: 
  590.  
  591. e.g., <drive>:\BOOKS\FILE1.INF+<drive>:\BOOKS\FILE2.INF+ 
  592. <drive>:\BOOKS\FILE3.INF. 
  593.  
  594. The pathnames aren't necessary if the file is in a directory specified by the 
  595. HELP environmental variable. 
  596.  
  597. 2. You can assign the book names to an environmental variable: 
  598.  
  599. e.g., SET FILE=<drive>:\BOOKS\FILE1.INF+<drive>:\BOOKS\FILE2.INF+ 
  600. <drive>:\BOOKS\FILE3.INF 
  601.  
  602. and execute VIEW.EXE using the variable name (e.g., VIEW FILE). 
  603.  
  604.  
  605. ΓòÉΓòÉΓòÉ 2.15. Using less memory for DOS images ΓòÉΓòÉΓòÉ
  606.  
  607. When you load a DOS image file (Virtual Machine Boot, or VMB), the entire 
  608. diskette image is loaded into memory.  Since the files on the DOS image 
  609. diskette don't take up much room themselves, much of the memory used for the 
  610. diskette is wasted.  Therefore, in order to regain memory when loading the 
  611. specific DOS session, try using double-density diskettes to make your DOS 
  612. images, instead of high-density diskettes. 
  613.  
  614. Related subject(s): 
  615.  
  616.      Γûá Booting DOS from a C: partition within OS/2 
  617.  
  618.  
  619. ΓòÉΓòÉΓòÉ 2.16. Booting OS/2 in full-screen mode ΓòÉΓòÉΓòÉ
  620.  
  621. You can boot OS/2 in full-screen mode, and still retain Presentation Manager 
  622. support for multiple sessions: 
  623.  
  624.       1. Change: 
  625.  
  626.          SET RUNWORKPLACE=<drive>:\OS2\PMSHELL.EXE 
  627.  
  628.          in your CONFIG.SYS file to: 
  629.  
  630.          SET RUNWORKPLACE=<drive>:\OS2\CMD.EXE /FS 
  631.  
  632.          where <drive> is the drive on which OS/2 resides. 
  633.  
  634.       2. Create the file STARTUP.CMD in your OS/2 boot drive's root directory. 
  635.          STARTUP.CMD should contain the following lines: 
  636.  
  637.                   @ECHO OFF
  638.                   START /FS
  639.                   EXIT
  640.  
  641.      Related subject(s): 
  642.  
  643.      Γûá Using OS/2 without the Workplace Shell 
  644.  
  645.  
  646. ΓòÉΓòÉΓòÉ 2.17. Completing shutdown ΓòÉΓòÉΓòÉ
  647.  
  648. If shutdown seems to "hang" at the first shutdown message box, this trick 
  649. sometimes works: 
  650.  
  651.       1. Press the Ctrl-Esc keys. 
  652.       2. Wait for about a minute. 
  653.       3. In many cases, a dialog box will pop up telling you that the Workplace 
  654.          Shell isn't responding to system requests, and will give you the 
  655.          choice of clicking on Enter to end the application, or Cancel. 
  656.       4. Click on the Enter box.  The shutdown usually proceeds normally. 
  657.  
  658.  
  659. ΓòÉΓòÉΓòÉ 2.18. Adjusting your swap file ΓòÉΓòÉΓòÉ
  660.  
  661. If you have disk space to spare, you can adjust the default startup size of 
  662. your swap file (SWAPPER.DAT) to improve system performance. 
  663.  
  664. The default startup size of SWAPPER.DAT is set in your CONFIG.SYS file with the 
  665. line: 
  666.  
  667. SWAPPATH=<drive>:<path> <minfree> <swapsize> 
  668.  
  669. where <swapsize> is the default startup size of SWAPPER.DAT. 
  670.  
  671. To adjust the startup size for better performance: 
  672.  
  673.       1. Monitor the size of the SWAPPER.DAT over the course of a normal day's 
  674.          work.  A third-party utility for monitoring swap file size makes this 
  675.          task a bit easier. 
  676.       2. Note the maximum size that SWAPPER.DAT reaches during normal usage. 
  677.       3. Change the <swapsize> parameter of SWAPPATH to reflect at least the 
  678.          maximum swap file size you noted (<swapsize> is measured in 
  679.          kilobytes). 
  680.  
  681.           CAUTION:
  682.      You MUST have enough free drive space to use this tip.  If the size of the 
  683.      <swapsize> parameter violates the amount needed for the <minfree> 
  684.      parameter, your system will not boot. 
  685.  
  686.      Related subject(s): 
  687.  
  688.      Γûá Setting the swap file 
  689.  
  690.  
  691. ΓòÉΓòÉΓòÉ 2.19. Using SVGA.EXE under real DOS ΓòÉΓòÉΓòÉ
  692.  
  693. contributed by Jack Tan 
  694.  
  695. Running SVGA.EXE in a VDM usually results in a file called SVGADATA.PMI, which 
  696. contains information which lets OS/2 access SVGA graphics modes. 
  697.  
  698. Sometimes, SVGA.EXE has trouble "seeing" the video chip, and extended graphics 
  699. modes won't work correctly.  If so, try running SVGA.EXE under real DOS or a 
  700. VMB.  This will create a file named SVGADATA.DOS.  Rename SVGADATA.DOS to 
  701. SVGADATA.PMI and copy it into your \OS2 subdirectory. 
  702.  
  703.  
  704. ΓòÉΓòÉΓòÉ 2.20. Loading a DOS device driver into high memory ΓòÉΓòÉΓòÉ
  705.  
  706.  
  707. ΓòÉΓòÉΓòÉ <hidden> Load into high memory ΓòÉΓòÉΓòÉ
  708.  
  709. contributed by Xavier Caballe 
  710.  
  711. In order to load a DOS device driver into high memory in a particular DOS 
  712. Session: 
  713.  
  714.       1. Open the settings notebook for the DOS object. 
  715.       2. Choose the Session tab. 
  716.       3. Click on the DOS Settings button. 
  717.       4. Highlight the DOS_DEVICE setting 
  718.       5. Add 'SIZE=0' (without quotes) before the path and filename for the 
  719.          device driver to load in high memory. For example: 
  720.  
  721.          SIZE=0 C:\OS2\MDOS\ANSI.SYS 
  722.  
  723.          In this example, the ANSI.SYS will be loaded in the high memory area 
  724.          (if available). 
  725.  
  726.  
  727. ΓòÉΓòÉΓòÉ <hidden> Loading device drivers high ΓòÉΓòÉΓòÉ
  728.  
  729. DOS Settings for loading a device driver high. 
  730.  
  731.  
  732. ΓòÉΓòÉΓòÉ 2.21. Fixing "locked" INI files ΓòÉΓòÉΓòÉ
  733.  
  734. contributed by Jack Tan 
  735.  
  736. If your INI files (OS2.INI and OS2SYS.INI) stop saving system changes, they may 
  737. have been marked read-only.  To reset the read-only attribute: 
  738.  
  739.       1. Change to your \OS2 subdirectory. 
  740.       2. Type 
  741.  
  742.          attrib -r os2*.ini 
  743.  
  744.          at an OS/2 command prompt. 
  745.       3. You may have to shutdown and reboot. 
  746.  
  747.      Note: if using OS/2 2.0, you may have to boot OS/2 from your installation 
  748.      floppies in order to reset the attributes. 
  749.  
  750.  
  751. ΓòÉΓòÉΓòÉ 2.22. Playing audio CDs via REXX ΓòÉΓòÉΓòÉ
  752.  
  753. contributed by Xavier Caballe 
  754.  
  755. The combination of REXX with MMPM/2 can be quite powerful, as demonstrated by 
  756. CDPLAY.CMD, a "poor man's CD player." 
  757.  
  758. Note: requires MMPM/2 
  759.  
  760. Related subject(s): 
  761.  
  762.      Γûá Playing media files from the command line 
  763.  
  764.  
  765. ΓòÉΓòÉΓòÉ 2.23. Playing media files from the command line ΓòÉΓòÉΓòÉ
  766.  
  767. contributed by Jack Tan 
  768.  
  769. Note: MMPM/2 is required. 
  770.  
  771.      To play a media file, use PLAY.CMD (included in MMPM/2, and requires REXX) 
  772.      or MPPM.EXE. 
  773.  
  774.      To play a media file immediately (i.e., no need to hit the "Play" button 
  775.      in the Media Player window) and close the session afterwards, use MPPM.EXE 
  776.      /SC <filename> where <filename> is a WAV or AVI file. 
  777.  
  778.      To play a media file immediately, close the session afterwards, and not 
  779.      see the Media Player window, use START /MIN MPPM.EXE /SC <filename> where 
  780.      <filename> is a WAV or AVI file. 
  781.  
  782.      Related subject(s): 
  783.  
  784.      Γûá Playing audio CDs via REXX 
  785.  
  786.  
  787. ΓòÉΓòÉΓòÉ 2.24. Determining if you have a buffered UART in your computer ΓòÉΓòÉΓòÉ
  788.  
  789. A buffered UART (such as the 16550AF chip) is often necessary for error-free 
  790. serial communications in a multitasking environment. 
  791.  
  792. To determine if your computer has a buffered UART: 
  793.  
  794.       1. Open an OS/2 command line session. 
  795.       2. Type 
  796.  
  797.          MODE COMx 
  798.  
  799.          where x is the number of the serial port you wish to check. 
  800.       3. A list of current settings for the serial port should appear.  If the 
  801.          line 
  802.  
  803.          BUFFER=N/A 
  804.  
  805.          appears, you do not have a buffered UART.  If the BUFFER line contains 
  806.          anything other than N/A, you have a buffered UART. 
  807.  
  808.  
  809. ΓòÉΓòÉΓòÉ 2.25. Pooling multiple printers ΓòÉΓòÉΓòÉ
  810.  
  811.  
  812. ΓòÉΓòÉΓòÉ <hidden> Pooling printers ΓòÉΓòÉΓòÉ
  813.  
  814. Choosing multiple ports for the printer object. 
  815.  
  816.  
  817. ΓòÉΓòÉΓòÉ <hidden> Pooling printers. ΓòÉΓòÉΓòÉ
  818.  
  819. If you have more than one printer that use the same printer driver, and each is 
  820. attached to different parallel or serial ports, you can configure your printer 
  821. object so that waiting print jobs will be sent to any free port. 
  822.  
  823. "Pooling" multiple printers: 
  824.  
  825.       1. Open the Settings notebook for the printer object. 
  826.       2. Click on the Printer Driver tab. 
  827.       3. Highlight the desired printer driver. 
  828.       4. Click on the Output tab. 
  829.       5. Hold the Ctrl key while selecting all the desired ports with mouse 
  830.          button 1. 
  831.       6. Close the Settings notebook. 
  832.  
  833.  
  834. ΓòÉΓòÉΓòÉ 2.26. Viewing the Nowhere subdirectory ΓòÉΓòÉΓòÉ
  835.  
  836. Note: this trick does not appear to work in OS/2 Warp. 
  837.  
  838. Ever wonder what the subdirectory called Nowhere on your OS/2 boot drive is? 
  839. The Nowhere subdirectory is a place where transient objects are stored. 
  840.  
  841. Since each directory represents a folder, you can view the Nowhere directory, 
  842. and watch objects appear and disappear in it: 
  843.  
  844.       1. Bring up the desktop's popup menu by clicking once on the desktop with 
  845.          mouse button 2. 
  846.       2. Choose Find. 
  847.       3. In the entry box next to "Folder:" type 
  848.  
  849.          <drive>:\ 
  850.  
  851.          where <drive> is the letter of the drive on which OS/2 is installed. 
  852.       4. Click on the Find button.  All of the objects in the root directory of 
  853.          your OS/2 drive should appear in a folder. 
  854.       5. Open the folder named "Nowhere."  (Note: you may have to open it in 
  855.          Icon view via its popup menu, depending on how your system defaults 
  856.          are set.) 
  857.       6. You should see some objects in your open Nowhere folder. 
  858.  
  859.                   CAUTION:
  860.          Do not manipulate any of the objects in the Nowhere folder!  Simply 
  861.          observe! 
  862.  
  863.  
  864.       7. Try opening and closing folders on your desktop; you should see 
  865.          objects appear and disappear from the Nowhere folder. 
  866.       8. When you are done watching the Nowhere folder, close it, then feel 
  867.          free to delete the Find Results folder, since the object in it are 
  868.          only shadows, not the actual objects. 
  869.  
  870.  
  871. ΓòÉΓòÉΓòÉ 2.27. Backing up INI files in the background ΓòÉΓòÉΓòÉ
  872.  
  873. contributed by Jorge Omar 
  874.  
  875. If you would like to backup your OS2.INI and OS2SYS.INI files in the background 
  876. during the boot process: 
  877.  
  878.       1. Create an OS/2 batch file named BACKINI.CMD: 
  879.  
  880.                   ATTRIB -S <drive>:\OS2\OS2*.INI
  881.                   COPY <drive>:\OS2\*.BK1 <drive>:\OS2\*.BK2
  882.                   COPY <drive>:\OS2\OS2*.INI <drive>:\OS2\*.BK1
  883.                   ATTRIB +S <drive>:\OS2\OS2*.INI
  884.  
  885.          where <drive> is the drive on which OS/2 resides. 
  886.  
  887.          Note: the ATTRIB command is only needed for systems running OS/2 2.11 
  888.          and higher. 
  889.       2. Open the Templates folder. 
  890.       3. Drag off a program template and place it into the Startup folder.  A 
  891.          Settings notebook should open. 
  892.       4. In the Path and File name box, fill in the necessary information for 
  893.          BACKINI.CMD. 
  894.       5. Click on the Session tab. 
  895.       6. Place a checkmark next to Start Minimized. 
  896.       7. Close the Settings notebook. 
  897.  
  898.      A variation of the above BACKINI.CMD uses XCOPY switches rather than using 
  899.      ATTRIB to reset the System attribute: 
  900.  
  901.      BACKINI.CMD: 
  902.  
  903.           XCOPY <drive>:\OS2\*.BK1 <drive>:\OS2\*.BK2 /T /R /O
  904.           XCOPY <drive>:\OS2\OS2*.INI <drive>:\OS2\*.BK1
  905.  
  906.      Note: the files OS2.BK1, OS2.BK2, OS2SYS.BK1, OS2SYS.BK2 must exist in 
  907.      <drive>:\OS2\ before this will run! 
  908.  
  909.      Related subject(s): 
  910.  
  911.      Γûá Backing up the *.ini files 
  912.  
  913.  
  914. ΓòÉΓòÉΓòÉ 2.28. Caching your cdrom drive ΓòÉΓòÉΓòÉ
  915.  
  916. You can adjust the read cache for your cdrom drive.  In your CONFIG.SYS, you 
  917. can add a switch to the end of the cdrom IFS line: 
  918.  
  919. IFS=<drive>:\OS2\CDFS.IFS /C:<number> 
  920.  
  921. where <drive> is the drive on which CDFS.IFS is located 
  922.  
  923. <number> is the number of 64K segments used for the cache.  The default is 2, 
  924. or 128K (2 x 64K = 128K). 
  925.  
  926.  
  927. ΓòÉΓòÉΓòÉ 2.29. Resetting Boot Manager to have no default partition ΓòÉΓòÉΓòÉ
  928.  
  929. contributed by Jack Tan 
  930.  
  931. Boot Manager can boot to the partition from which the system was last started, 
  932. but once you select a default partition from which to boot in Boot Manager, you 
  933. lose the ability.  To reset Boot Manager so that it has no default value, issue 
  934. the following command at an OS/2 prompt: 
  935.  
  936. SETBOOT /0: 
  937.  
  938.  
  939. ΓòÉΓòÉΓòÉ 2.30. Booting DOS from a C: partition within OS/2 ΓòÉΓòÉΓòÉ
  940.  
  941. You can create a Virtual Machine Boot to boot real DOS from the C: partition, 
  942. rather than the typical floppy boot if you are running a Boot Manager system 
  943. with real DOS on the primary (C:) partition.  Point the Virtual Machine Boot at 
  944. the C: partition by setting DOS_STARTUP_DRIVE to C:.  OS/2 must be installed on 
  945. a logical drive. 
  946.  
  947. Related subject(s): 
  948.  
  949.      Γûá Using less memory for DOS images 
  950.  
  951.  
  952. ΓòÉΓòÉΓòÉ 2.31. Resetting the boot record ΓòÉΓòÉΓòÉ
  953.  
  954. contributed by Jack Tan 
  955.  
  956. If your boot record should become damaged, you can reset your boot record by 
  957. typing the following at an OS/2 prompt: 
  958.  
  959. FDISK /NEWMBR 
  960.  
  961.  
  962. ΓòÉΓòÉΓòÉ 3. Desktop ΓòÉΓòÉΓòÉ
  963.  
  964. This section covers tips and tricks which relate to the Workplace Shell. 
  965.  
  966. Topics in this section: 
  967.  
  968.      Γûá Saving desktop without shutting down 
  969.      Γûá Adding an "open folder" entry to the desktop's popup menu 
  970.      Γûá Changing color of shadow icon text 
  971.      Γûá Moving icon a small distance 
  972.      Γûá Changing desktop bitmaps randomly at specified interval 
  973.      Γûá Changing the standard mouse pointer 
  974.      Γûá Making an object prompt for a parameter 
  975.      Γûá Finding a "covered" icon 
  976.      Γûá Changing icon text color 
  977.      Γûá Recovering after an accidental Arrange 
  978.      Γûá Creating an onscreen "app bar" 
  979.      Γûá Creating a "trash can" 
  980.      Γûá Selecting objects without mouse 
  981.      Γûá Hiding a folder 
  982.      Γûá Creating a system file editor object 
  983.      Γûá Retrieving a "changed" icon 
  984.      Γûá Associating data files with programs 
  985.      Γûá Creating new printer objects 
  986.      Γûá Creating your own templates 
  987.      Γûá Replacing your Shredder if deleted 
  988.      Γûá Deleting "undeletable" objects 
  989.      Γûá Managing your icons 
  990.      Γûá Editing object names on the desktop 
  991.      Γûá Moving a template object without creating a copy 
  992.      Γûá Changing the long name (icon text) of a file or folder without changing 
  993.        the real name 
  994.      Γûá Adding INF files to the desktop popup menu 
  995.      Γûá Recreating a "lost" template. 
  996.      Γûá Associating icon with executable 
  997.  
  998.  
  999. ΓòÉΓòÉΓòÉ 3.1. Saving desktop without shutting down ΓòÉΓòÉΓòÉ
  1000.  
  1001. To save the settings of your desktop without shutting down OS/2: 
  1002.  
  1003. by Jack Tan 
  1004.  
  1005.       1. Open the Settings folder for the Desktop. 
  1006.       2. Choose the Window tab. 
  1007.       3. Under Object Open Behavior, choose Create New Object. 
  1008.       4. Close the Settings folder. 
  1009.       5. Click on the arrow next to Open in the Desktop's popup menu; choose 
  1010.          Icon View. 
  1011.       6. A folder of your Desktop should appear.  You can arrange this folder 
  1012.          any way you wish. 
  1013.       7. Close the folder of your Desktop to save its settings.  The icon 
  1014.          positions will be saved. 
  1015.       8. Change the Object Open Behavior to Display Existing Window. 
  1016.       9. To activate the newly-saved Desktop, use a kill utility to kill the 
  1017.          second PMSHELL process.  The Workplace Shell will restart with your 
  1018.          newly-saved icon settings. 
  1019.  
  1020.      Related subject(s): 
  1021.  
  1022.      Γûá Recovering after an accidental Arrange 
  1023.  
  1024.  
  1025. ΓòÉΓòÉΓòÉ 3.2. Adding an "open folder" entry to the desktop's popup menu ΓòÉΓòÉΓòÉ
  1026.  
  1027. To add an entry to the desktop's popup menu which allows you to open a specific 
  1028. folder: 
  1029.  
  1030.       1. Create a REXX script, OPEN.CMD to open the folder. 
  1031.       2. Open the Templates folder. 
  1032.       3. Use the right mouse button to drag a copy of the Program template to 
  1033.          the desired final location.  Its Settings notebook should open. 
  1034.       4. Fill in the path and file name (OPEN.CMD) on the Programs page. 
  1035.          Complete the General page as desired. 
  1036.       5. Close the Settings notebook. 
  1037.       6. Open the Settings notebook for the Desktop. 
  1038.       7. Choose the Menu tab. 
  1039.       8. If using OS/2 v2.1, drag the icon of your newly-created OPEN.CMD 
  1040.          object onto the box underneath "Actions on menu: Primary pop-up menu." 
  1041.          If using OS/2 v2.0, click on the Create Another button and fill in the 
  1042.          proper information. 
  1043.       9. The menu choice for your OPEN.CMD object should now be available on 
  1044.          the desktop's popup menu. 
  1045.  
  1046.      Note: If you repeat the "call SysSetObjectData" line a second time, the 
  1047.      folder will open in the foreground. 
  1048.  
  1049.      Related subject(s): 
  1050.  
  1051.      Γûá Adding command sessions to the desktop's popup menu 
  1052.      Γûá Opening multiple command line sessions from the desktop menu 
  1053.      Γûá Adding INF files to the desktop popup menu 
  1054.      Γûá BITMAP.CMD 
  1055.      Γûá SETPTR.CMD 
  1056.      Γûá SETFONT.CMD 
  1057.      Γûá CHKDRIVE.CMD 
  1058.      Γûá SHUTDOWN.CMD 
  1059.      Γûá SHREDDER.CMD 
  1060.      Γûá SLEEP.CMD 
  1061.      Γûá LARGE.CMD 
  1062.      Γûá EVAL.CMD 
  1063.      Γûá BIGDOS.CMD 
  1064.      Γûá PUTLONG.CMD 
  1065.  
  1066.  
  1067. ΓòÉΓòÉΓòÉ 3.3. Changing color of shadow icon text ΓòÉΓòÉΓòÉ
  1068.  
  1069.  
  1070. ΓòÉΓòÉΓòÉ <hidden> Shadow icon text window 1 ΓòÉΓòÉΓòÉ
  1071.  
  1072. To change the color of the shadow icon text: 
  1073.  
  1074.       1. Open the Scheme Palette. 
  1075.       2. Choose Shadow Text. 
  1076.       3. Choose the desired color from the color wheel. 
  1077.       4. Close the Scheme Palette. 
  1078.       5. Drag (or Alt-drag) the desired scheme to the desired folder with the 
  1079.          right mouse button. 
  1080.  
  1081.      Related subject(s): 
  1082.  
  1083.      Γûá Changing icon text color 
  1084.  
  1085.  
  1086. ΓòÉΓòÉΓòÉ <hidden> Scheme Palette ΓòÉΓòÉΓòÉ
  1087.  
  1088. Scheme Palette with Shadow Text highlighted. 
  1089.  
  1090.  
  1091. ΓòÉΓòÉΓòÉ 3.4. Moving icon a small distance ΓòÉΓòÉΓòÉ
  1092.  
  1093.  
  1094. ΓòÉΓòÉΓòÉ <hidden> Moving icon window 1 ΓòÉΓòÉΓòÉ
  1095.  
  1096. from Tim Sipples' FAQ 
  1097.  
  1098. To move an icon a small distance, "grab" the outer edge of the icon with the 
  1099. mouse and drag it to the new position. 
  1100.  
  1101.  
  1102. ΓòÉΓòÉΓòÉ <hidden> Moving icon ΓòÉΓòÉΓòÉ
  1103.  
  1104.                         Moving an icon a small distance.
  1105.  
  1106.  
  1107. ΓòÉΓòÉΓòÉ 3.5. Changing desktop bitmaps randomly at specified interval ΓòÉΓòÉΓòÉ
  1108.  
  1109. The Desktop bitmaps can be changed via a REXX script, BITMAP.CMD.  Note that 
  1110. this script does not support tiling of bitmaps. 
  1111.  
  1112. You must set the environmental variable BOOTDRIVE to use the new version of 
  1113. BITMAP.CMD, e.g., 
  1114.  
  1115. SET BOOTDRIVE=<drive:> 
  1116.  
  1117. where <drive> is the drive from which you boot OS/2 
  1118.  
  1119. Changes to bitmap.cmd (thanks to Jack Tan) added so that bitmap subdirectory is 
  1120. no longer hard-coded into the script. 
  1121.  
  1122. Other REXX scripts: 
  1123.  
  1124.      Γûá OPEN.CMD 
  1125.      Γûá SETPTR.CMD 
  1126.      Γûá SETFONT.CMD 
  1127.      Γûá CHKDRIVE.CMD 
  1128.      Γûá SHUTDOWN.CMD 
  1129.      Γûá SHREDDER.CMD 
  1130.      Γûá SLEEP.CMD 
  1131.      Γûá LARGE.CMD 
  1132.      Γûá EVAL.CMD 
  1133.      Γûá BIGDOS.CMD 
  1134.      Γûá PUTLONG.CMD 
  1135.  
  1136.  
  1137. ΓòÉΓòÉΓòÉ 3.6. Changing the standard mouse pointer ΓòÉΓòÉΓòÉ
  1138.  
  1139. contributed by Jack Tan; original by Dann Lunsford 
  1140.  
  1141. You can replace the various mouse pointers with your own customized creations, 
  1142. and can remove the customized pointers. 
  1143.  
  1144.       1. Use the Icon Editor to create a mouse pointer file with the extension 
  1145.          *.PTR. 
  1146.       2. Create the REXX script, SETPTR.CMD. 
  1147.       3. Type SETPTR.CMD /? for help. 
  1148.  
  1149.           CAUTION:
  1150.      Do not move the *.ptr file after assigning the mouse pointer!  You will 
  1151.      not be able to boot your machine if the *.ptr file is missing or invalid. 
  1152.  
  1153.      Other REXX scripts: 
  1154.  
  1155.      Γûá OPEN.CMD 
  1156.      Γûá BITMAP.CMD 
  1157.      Γûá SETFONT.CMD 
  1158.      Γûá CHKDRIVE.CMD 
  1159.      Γûá SHUTDOWN.CMD 
  1160.      Γûá SHREDDER.CMD 
  1161.      Γûá SLEEP.CMD 
  1162.      Γûá LARGE.CMD 
  1163.      Γûá EVAL.CMD 
  1164.      Γûá BIGDOS.CMD 
  1165.      Γûá PUTLONG.CMD 
  1166.  
  1167.  
  1168. ΓòÉΓòÉΓòÉ 3.7. Making an object prompt for a parameter ΓòÉΓòÉΓòÉ
  1169.  
  1170.  
  1171. ΓòÉΓòÉΓòÉ <hidden> Object prompt window 1 ΓòÉΓòÉΓòÉ
  1172.  
  1173. To make an object prompt for a parameter when invoked 
  1174.  
  1175.       1. Open the Settings notebook for the object. 
  1176.       2. In the Parameters field of the Program page, enter a left square 
  1177.          bracket, a space, then a right square bracket, 
  1178.          i.e., [ ] 
  1179.       3. If you want text to appear along with parameter prompting, insert the 
  1180.          desired text between the square brackets. 
  1181.  
  1182.  
  1183. ΓòÉΓòÉΓòÉ <hidden> Settings notebook ΓòÉΓòÉΓòÉ
  1184.  
  1185. Parameters box of Settings notebook. 
  1186.  
  1187.  
  1188. ΓòÉΓòÉΓòÉ 3.8. Finding a "covered" icon ΓòÉΓòÉΓòÉ
  1189.  
  1190.  
  1191. ΓòÉΓòÉΓòÉ <hidden> Covered icons window 1 ΓòÉΓòÉΓòÉ
  1192.  
  1193. The disadvantage of having many windows open on the desktop is that icons on 
  1194. the desktop can often get covered.  To find an icon more easily: 
  1195.  
  1196.       1. Click the right mouse button on a clear space on the desktop. 
  1197.       2. Click on the arrow next to Open on the popup menu. 
  1198.       3. Choose Tree or Details View (Icon View can only be selected if the 
  1199.          Desktop's object open behavior has been set to Create New Window); 
  1200.          this will open up a new view of your desktop from which you can find 
  1201.          the icon you want. 
  1202.  
  1203.  
  1204. ΓòÉΓòÉΓòÉ <hidden> Desktop Popup Menu ΓòÉΓòÉΓòÉ
  1205.  
  1206. Desktop's popup menu with Tree View highlighted. 
  1207.  
  1208.  
  1209. ΓòÉΓòÉΓòÉ 3.9. Changing icon text color ΓòÉΓòÉΓòÉ
  1210.  
  1211.  
  1212. ΓòÉΓòÉΓòÉ <hidden> Color Palette ΓòÉΓòÉΓòÉ
  1213.  
  1214. The color of the icon text on your desktop can be changed as follows: 
  1215.  
  1216.       1. Open the Color Palette. 
  1217.       2. Hold the Ctrl key. 
  1218.       3. Use the right mouse button to drag the desired color to the desktop. 
  1219.  
  1220.      Related subject(s): 
  1221.  
  1222.      Γûá Changing color of shadow icon text 
  1223.  
  1224.  
  1225. ΓòÉΓòÉΓòÉ <hidden> Color Palette ΓòÉΓòÉΓòÉ
  1226.  
  1227. Color Palette with color being dragged with mouse. 
  1228.  
  1229.  
  1230. ΓòÉΓòÉΓòÉ 3.10. Recovering after an accidental Arrange ΓòÉΓòÉΓòÉ
  1231.  
  1232. To regain your desktop's icon positions after an accidental Arrange, use a 
  1233. third-party utility which can kill processes to kill the second instance of 
  1234. PMSHELL.  The Workplace Shell will restart with your old icon positions. 
  1235.  
  1236. Related subject(s): 
  1237.  
  1238.      Γûá Saving desktop without shutting down 
  1239.  
  1240.  
  1241. ΓòÉΓòÉΓòÉ 3.11. Creating an onscreen "app bar" ΓòÉΓòÉΓòÉ
  1242.  
  1243.  
  1244. ΓòÉΓòÉΓòÉ <hidden> App bar window 1 ΓòÉΓòÉΓòÉ
  1245.  
  1246. You can create something that acts a little like an "app bar": 
  1247.  
  1248.       1. Create a new folder. 
  1249.       2. Size the folder so that it has the shape and size that you like, then 
  1250.          position it where you like. 
  1251.       3. Set the folder's view to either Flowed or Non-flowed. 
  1252.       4. Drag shadows of your most-used applications to the folder. 
  1253.       5. Drag a shadow of your "app bar" folder to your Startup folder. 
  1254.       6. You now have a folder of your most-used apps that will open at boot. 
  1255.          You can further customize the "app bar" with a utility that will cause 
  1256.          the folder to "float" on top of other windows so that it will be more 
  1257.          accessible. 
  1258.  
  1259.  
  1260. ΓòÉΓòÉΓòÉ <hidden> App Bar ΓòÉΓòÉΓòÉ
  1261.  
  1262. Example of an App Bar. 
  1263.  
  1264.  
  1265. ΓòÉΓòÉΓòÉ 3.12. Creating a "trash can" ΓòÉΓòÉΓòÉ
  1266.  
  1267. You can create a trash can-like icon on your desktop: 
  1268.  
  1269.       1. Open the Templates folder and make a copy of the Folder template. 
  1270.       2. You should now have a template called Folder:1; rename it to Trash, or 
  1271.          whatever you like. 
  1272.       3. Attach you favorite trash can icon to your Trash template. 
  1273.       4. To create a trash can, use your right mouse button to drag a Trash 
  1274.          folder from your Trash template onto your desktop. 
  1275.       5. Drag objects to the Trash as you see fit. 
  1276.       6. When you want to empty the Trash can, simply delete the folder, then 
  1277.          replace it with a new Trash can by pulling one off of your Trash 
  1278.          template. 
  1279.       7. The advantage of using the Trash can over the shredder is that you can 
  1280.          open your Trash can and observe the contents, and remove what you 
  1281.          don't want deleted. 
  1282.  
  1283.  
  1284. ΓòÉΓòÉΓòÉ 3.13. Selecting objects without mouse ΓòÉΓòÉΓòÉ
  1285.  
  1286. You can select objects in folders or the Deskop without a mouse.  Simply type 
  1287. the first letter of the object, and the object will be highlighted. Hit Enter 
  1288. to open the object.  If more than one object begins with the same letter, 
  1289. subsequent typing of the same letter will jump between each object that begins 
  1290. with that letter. 
  1291.  
  1292. Related subject(s): 
  1293.  
  1294.      Γûá Selecting listbox entries without a mouse 
  1295.  
  1296.  
  1297. ΓòÉΓòÉΓòÉ 3.14. Hiding a folder ΓòÉΓòÉΓòÉ
  1298.  
  1299. You can hide folder icons on the desktop so that others can't see them: 
  1300.  
  1301.       1. Open the Settings notebook of the folder which you wish to hide. 
  1302.       2. Click on the File tab, then click on the right arrow in the lower 
  1303.          right corner to turn to the second page of the File tab. 
  1304.       3. Place a check mark next to Hidden under the Flags section.  The folder 
  1305.          should now be hidden. 
  1306.  
  1307.      To view the folder's icon once again: 
  1308.  
  1309.       1. Open the Settings notebook for the Desktop. 
  1310.       2. Click on the Include tab. 
  1311.       3. Click on the right arrow in the lower right corner to turn to the 
  1312.          second page of the Include tab. 
  1313.       4. Click on Change.  A new dialog box will appear. 
  1314.       5. In the dialog box, choose the following settings: 
  1315.  
  1316.          a) Property to be considered = Flags 
  1317.          b) Comparison type = Not equal 
  1318.          c) Comparison value = H 
  1319.  
  1320.       6. Click on Change. 
  1321.       7. Close Settings notebook.  The icon should now be visible. 
  1322.  
  1323.  
  1324. ΓòÉΓòÉΓòÉ 3.15. Creating a system file editor object ΓòÉΓòÉΓòÉ
  1325.  
  1326. You can create an object which, when opened, will open your system setup files 
  1327. for editing, through the aid of a Work Area folder: 
  1328.  
  1329.       1. Open the Settings notebook for the System Editor. 
  1330.       2. Click on the Association tab. 
  1331.       3. If Plain Text does not appear in the Current Types box, use the Add 
  1332.          button to add it from the Available Types box.  Close the Settings 
  1333.          notebook. 
  1334.       4. Create a new folder. 
  1335.       5. Open the Settings notebook for the new folder. 
  1336.       6. Click on the File tab. 
  1337.       7. Place a check in the box next to Work Area.  Close the Settings 
  1338.          notebook. 
  1339.       8. Open the Drives object, then open the drive(s) with the CONFIG.SYS, 
  1340.          WIN.INI, and SYSTEM.INI files. 
  1341.       9. Open the Settings notebook for the CONFIG.SYS file. 
  1342.      10. Click on Association. 
  1343.      11. If Plain Text does not appear in the Current Types box, use the Add 
  1344.          button to add it from the Available Types box.  Close the Settings 
  1345.          notebook. Repeat for the Settings notebook for the WIN.INI and 
  1346.          SYSTEM.INI files. 
  1347.      12. Drag shadows of the CONFIG.SYS, WIN.INI, and SYSTEM.INI files into the 
  1348.          new folder. 
  1349.      13. Open the new folder if not already open. 
  1350.      14. Use the right mouse button on the CONFIG.SYS shadow object to popup 
  1351.          the menu.  Click on the arrow next to Open, choose System Editor. 
  1352.          Your CONFIG.SYS should be loaded into the System Editor.  Repeat for 
  1353.          WIN.INI and SYSTEM.INI. 
  1354.      15. Leaving the three System Editor windows open, close the new folder. 
  1355.      16. You should now have a folder object that will open up your system 
  1356.          files automatically when the folder is opened. 
  1357.  
  1358.  
  1359. ΓòÉΓòÉΓòÉ 3.16. Retrieving a "changed" icon ΓòÉΓòÉΓòÉ
  1360.  
  1361. In OS/2 2.1, making changes to an object's settings often causes the object's 
  1362. icon to revert to its default icon.  To retrieve your customized icon, this 
  1363. usually works: 
  1364.  
  1365.       1. Open the object's Settings notebook. 
  1366.       2. Choose the General tab. 
  1367.       3. Click on the Undo button. 
  1368.  
  1369.      Note: this behavior is fixed in the 2.11 CSD. 
  1370.  
  1371.      Related subject(s): 
  1372.  
  1373.      Γûá Managing your icons 
  1374.  
  1375.  
  1376. ΓòÉΓòÉΓòÉ 3.17. Associating data files with programs ΓòÉΓòÉΓòÉ
  1377.  
  1378.  
  1379. ΓòÉΓòÉΓòÉ <hidden> Associate files ΓòÉΓòÉΓòÉ
  1380.  
  1381. Want to be able to double click on a data file object and have it open in its 
  1382. appropriate application?  Try setting up associations in your applications: 
  1383.  
  1384.       1. Open the Settings notebook for the application. 
  1385.       2. Choose the Association tab. 
  1386.       3. Under Available Types, see if you can find the file type appropriate 
  1387.          for your application.  If so, highlight the file type, and press the 
  1388.          Add button to the right of the box. 
  1389.       4. If the file type you need doesn't exist under Available Types, and the 
  1390.          data files you wish to have associated have a common file extension or 
  1391.          name, enter the common part of the filename (with appropriate 
  1392.          wildcards) in the New Name box.  Click on the Add button to the right 
  1393.          of the box. 
  1394.       5. If neither of the above two situations applies, open up the Settings 
  1395.          notebook for each data file you wish to associate, and set up the 
  1396.          association there. 
  1397.  
  1398.      Note that this does not work for all programs. 
  1399.  
  1400.  
  1401. ΓòÉΓòÉΓòÉ <hidden> Associations ΓòÉΓòÉΓòÉ
  1402.  
  1403. Settings notebook displaying Describe association. 
  1404.  
  1405.  
  1406. ΓòÉΓòÉΓòÉ 3.18. Creating new printer objects ΓòÉΓòÉΓòÉ
  1407.  
  1408. To create a new printer object: 
  1409.  
  1410.       1. Open the Templates folder. 
  1411.       2. Drag a new printer object out from the Printer template with the right 
  1412.          mouse button. 
  1413.       3. Customize the settings for your printer. 
  1414.  
  1415.  
  1416. ΓòÉΓòÉΓòÉ 3.19. Creating your own templates ΓòÉΓòÉΓòÉ
  1417.  
  1418. You can create your own templates for customized uses.  For example, you can 
  1419. create a template of a word processor file with boilerplate text for business 
  1420. letters.  The next time you want to write a new business letter, just drag a 
  1421. copy off of your customized template, and the file, complete with your 
  1422. pre-defined settings, will be ready to edit. 
  1423.  
  1424. To create a customized template: 
  1425.  
  1426.       1. Customize your data file (such as a wordprocessor file) to the way you 
  1427.          want it.  Save the file. 
  1428.       2. Open the Drives object and find the file you just created. 
  1429.       3. Make a copy of the file object; you can either use Copy from the 
  1430.          object's pop-up menu, or hold down the Ctrl key while dragging off a 
  1431.          copy with your right mouse button. 
  1432.       4. Open the Settings notebook for the copy you just made. 
  1433.       5. Choose the General tab. 
  1434.       6. Place a check mark next to Template.  Close the notebook. 
  1435.       7. When you want to use the new template, just use your right mouse 
  1436.          button and drag a copy off of the template. 
  1437.  
  1438.      Related topic(s): 
  1439.  
  1440.      Γûá Moving a template object without creating a copy 
  1441.  
  1442.  
  1443. ΓòÉΓòÉΓòÉ 3.20. Replacing your Shredder if deleted ΓòÉΓòÉΓòÉ
  1444.  
  1445. Did you somehow manage to shred your Shredder?  If so, SHREDDER.CMD can replace 
  1446. it. 
  1447.  
  1448. CAUTION:
  1449. This REXX script does not check to see if you already have a Shredder present, 
  1450. and will replace one if it exists. 
  1451.  
  1452. Related subject(s): 
  1453.  
  1454.      Γûá Finding settings for original objects 
  1455.      Γûá OPEN.CMD 
  1456.      Γûá BITMAP.CMD 
  1457.      Γûá SETPTR.CMD 
  1458.      Γûá SETFONT.CMD 
  1459.      Γûá CHKDRIVE.CMD 
  1460.      Γûá SHUTDOWN.CMD 
  1461.      Γûá SLEEP.CMD 
  1462.      Γûá LARGE.CMD 
  1463.      Γûá EVAL.CMD 
  1464.      Γûá BIGDOS.CMD 
  1465.      Γûá PUTLONG.CMD 
  1466.  
  1467.  
  1468. ΓòÉΓòÉΓòÉ 3.21. Deleting "undeletable" objects ΓòÉΓòÉΓòÉ
  1469.  
  1470. If you find you have an undeletable object, this trick sometimes (but not 
  1471. always) works. 
  1472.  
  1473.       1. Insert a floppy disk in a floppy drive. 
  1474.       2. Open the Drives object. 
  1475.       3. Drag the undeletable object to the floppy drive object.  Make sure 
  1476.          that you are moving the object (you can ensure this by holding the 
  1477.          Shift key while dragging). 
  1478.       4. Format the floppy disk. 
  1479.  
  1480.  
  1481. ΓòÉΓòÉΓòÉ 3.22. Managing your icons ΓòÉΓòÉΓòÉ
  1482.  
  1483.  
  1484. ΓòÉΓòÉΓòÉ <hidden> Change icon ΓòÉΓòÉΓòÉ
  1485.  
  1486. contributed by George Orvis 
  1487.  
  1488. To manage your icons more easily: 
  1489.  
  1490.       1. Place your icons (*.ICO) into a subdirectory (or several 
  1491.          subdirectories, if you have a large number of icons). 
  1492.  
  1493.       2. Create an object of that directory: 
  1494.  
  1495.          a) Open the Drive object of the drive in which the icon subdirectory 
  1496.             is located. 
  1497.          b) Drag a shadow of the icon subdirectory into the desired location. 
  1498.  
  1499.       3. Set view of the folder to Icon View. 
  1500.  
  1501.       4. You now have a handy folder full of icons.  If you double click on an 
  1502.          icon, it starts the icon editor. 
  1503.  
  1504.       5. To change an object's icon (OS/2 2.1): 
  1505.  
  1506.          a) Open the Settings notebook of the object. 
  1507.          b) Choose the General tab. 
  1508.          c) Drag an icon out of your icon folder with the right mouse button, 
  1509.             and drop it onto the icon on the General page of the Settings 
  1510.             notebook. 
  1511.  
  1512.      Related subject(s): 
  1513.  
  1514.      Γûá Retrieving a "changed" icon 
  1515.  
  1516.  
  1517. ΓòÉΓòÉΓòÉ <hidden> Icon directory ΓòÉΓòÉΓòÉ
  1518.  
  1519. Directory of icon files 
  1520.  
  1521.  
  1522. ΓòÉΓòÉΓòÉ <hidden> Creating object ΓòÉΓòÉΓòÉ
  1523.  
  1524. Creating an icon directory object. 
  1525.  
  1526.  
  1527. ΓòÉΓòÉΓòÉ <hidden> Setting Icon view ΓòÉΓòÉΓòÉ
  1528.  
  1529. Setting icon directory folder to Icon view by default. 
  1530.  
  1531.  
  1532. ΓòÉΓòÉΓòÉ <hidden> Icon folder ΓòÉΓòÉΓòÉ
  1533.  
  1534. Folder full of icons. 
  1535.  
  1536.  
  1537. ΓòÉΓòÉΓòÉ <hidden> Changing an icon ΓòÉΓòÉΓòÉ
  1538.  
  1539. Changing an object's icon by dragging and dropping (OS/2 2.1). 
  1540.  
  1541.  
  1542. ΓòÉΓòÉΓòÉ 3.23. Editing object names on the desktop ΓòÉΓòÉΓòÉ
  1543.  
  1544. contributed by Lt. Rob Targosz 
  1545.  
  1546. You can change the icon text as follows: 
  1547.  
  1548.       1. Select the icon. 
  1549.       2. Press Shift-F9 on your keyboard, or hold the Alt key and click on the 
  1550.          icon text with mouse button 1. 
  1551.       3. Type in the new icon text 
  1552.       4. Click on the screen with your mouse away from the icon. 
  1553.  
  1554.      contributed by Jack Tan 
  1555.  
  1556.      When editing the name of an object on the desktop, use the main keyboard 
  1557.      "Enter" key to add a newline to the name.  Use the keypad "Enter" key to 
  1558.      signal the end of editing. 
  1559.  
  1560.      Note: this may not be supported on all keyboards. 
  1561.  
  1562.  
  1563. ΓòÉΓòÉΓòÉ 3.24. Moving a template object without creating a copy ΓòÉΓòÉΓòÉ
  1564.  
  1565. contributed by Nathan Hamblen 
  1566.  
  1567. To move a template object without dragging off a copy of the template, hold 
  1568. down the Shift key while dragging the template with mouse button 2. 
  1569.  
  1570. Related topic(s): 
  1571.  
  1572.      Γûá Creating your own templates 
  1573.  
  1574.  
  1575. ΓòÉΓòÉΓòÉ 3.25. Changing the long name of a file or folder without changing the real name ΓòÉΓòÉΓòÉ
  1576.  
  1577. contributed by Bill Parrill 
  1578.  
  1579. The long name, or icon text, of a file or folder can be changed without 
  1580. changing its real name with PUTLONG.CMD. 
  1581.  
  1582. where  myfil.ext can either be a filename or the full path to a subdirectory 
  1583. which represents a folder. 
  1584.  
  1585. Other REXX scripts: 
  1586.  
  1587.      Γûá OPEN.CMD 
  1588.      Γûá BITMAP.CMD 
  1589.      Γûá SETPTR.CMD 
  1590.      Γûá SETFONT.CMD 
  1591.      Γûá SHREDDER.CMD 
  1592.      Γûá CHKDRIVE.CMD 
  1593.      Γûá SHUTDOWN.CMD 
  1594.      Γûá SLEEP.CMD 
  1595.      Γûá LARGE.CMD 
  1596.      Γûá EVAL.CMD 
  1597.      Γûá BIGDOS.CMD 
  1598.  
  1599.  
  1600. ΓòÉΓòÉΓòÉ 3.26. Adding INF files to the desktop popup menu ΓòÉΓòÉΓòÉ
  1601.  
  1602.  
  1603. ΓòÉΓòÉΓòÉ <hidden> INF file to popup menu ΓòÉΓòÉΓòÉ
  1604.  
  1605. Settings notebook for INF object. 
  1606.  
  1607.  
  1608. ΓòÉΓòÉΓòÉ <hidden> INF file to popup menu ΓòÉΓòÉΓòÉ
  1609.  
  1610. INF files are those that are viewed with OS/2's VIEW.EXE.  If an INF file is 
  1611. added to a popup menu via the regular procedure, attempts to open the INF file 
  1612. will result in a "Topic not found" error message.  To add an INF file to the 
  1613. desktop's popup menu: 
  1614.  
  1615.       1. Create a viewable INF object: 
  1616.  
  1617.          a) Open the Templates folder.  Drag a Program template off with mouse 
  1618.             button 2.  A Settings notebook will open. 
  1619.          b) On the Program page, under Path and file name, type: 
  1620.             <drive>:\OS2\VIEW.EXE 
  1621.             where <drive> is the drive on which OS/2 resides. 
  1622.          c) In the Parameters box, enter the path and name of the INF file, 
  1623.             then append a percent sign (%) to the end of the file name. 
  1624.          d) Close the Settings notebook for the INF object. 
  1625.  
  1626.       2. Add the INF file to the desktop's popup menu: 
  1627.  
  1628.          a) Open the Settings notebook for the desktop. 
  1629.          b) Click on the Menu tab. 
  1630.          c) With mouse button 2, drag the INF object onto the box under Actions 
  1631.             on Menu. 
  1632.          d) Close the Settings notebook for the desktop. 
  1633.  
  1634.       3. You should now have a menu choice for the INF file. 
  1635.  
  1636.      Related subject(s): 
  1637.  
  1638.      Γûá Adding an "open folder" entry to the desktop's popup menu 
  1639.      Γûá Adding command sessions to the desktop's popup menu 
  1640.  
  1641.  
  1642. ΓòÉΓòÉΓòÉ 3.27. Recreating a "lost" template ΓòÉΓòÉΓòÉ
  1643.  
  1644. contributed by Jack Tan 
  1645.  
  1646. To recreate a lost template: 
  1647.  
  1648.       1. Find an object on your system which is of the same type as the one 
  1649.          that was lost. 
  1650.       2. Pop up the menu of the object by clicking on the object once with 
  1651.          mouse button 2. 
  1652.       3. Select Create Another from the menu. 
  1653.       4. Open the Settings notebook for the new object. 
  1654.       5. Click on the General tab. 
  1655.       6. Place a check mark next to Template. 
  1656.       7. Close the Settings notebook for the object. 
  1657.       8. You should now have a template object. 
  1658.  
  1659.  
  1660. ΓòÉΓòÉΓòÉ 3.28. Associating icon with executable ΓòÉΓòÉΓòÉ
  1661.  
  1662. contributed by Jack Tan 
  1663.  
  1664. To associate an icon with an executable: 
  1665.  
  1666.       1. Copy the icon file to the same directory as the executable. 
  1667.       2. Rename the icon file to the same base name as the executable, except 
  1668.          with the extension *.ICO. 
  1669.  
  1670.  
  1671. ΓòÉΓòÉΓòÉ 4. Presentation Manager ΓòÉΓòÉΓòÉ
  1672.  
  1673. This section covers tips and tricks which affect Presentation Manager. 
  1674.  
  1675. Topics in this section: 
  1676.  
  1677.      Γûá Making fonts extremely small 
  1678.      Γûá Starting PM programs minimized 
  1679.      Γûá Changing the default PM system font 
  1680.      Γûá Moving a window in the background 
  1681.      Γûá Closing several windows at once 
  1682.      Γûá Using keyboard shortcuts in PM 
  1683.      Γûá Navigating in notebooks without a mouse 
  1684.      Γûá Changing the default view of a folder 
  1685.      Γûá Speeding up opening folders 
  1686.      Γûá Manipulating objects through the Window List 
  1687.      Γûá Selecting listbox entries without a mouse 
  1688.      Γûá Making "no-shows" re-appear 
  1689.      Γûá Opening the parent folder 
  1690.      Γûá Jumping between windowed sessions 
  1691.      Γûá Starting an OS/2 command line from a folder's directory 
  1692.      Γûá Opening windowed command line in the background 
  1693.      Γûá Speeding up opening folders II 
  1694.  
  1695.  
  1696. ΓòÉΓòÉΓòÉ 4.1. Making fonts extremely small ΓòÉΓòÉΓòÉ
  1697.  
  1698.  
  1699. ΓòÉΓòÉΓòÉ <hidden> Small fonts split window 1 ΓòÉΓòÉΓòÉ
  1700.  
  1701. You can make most Presentation Manager fonts as small as you like: 
  1702.  
  1703.       1. Open the Font Palette. 
  1704.       2. Double click on one of the fonts.  A new dialog box will open. 
  1705.       3. Under "Size," highlight the font size shown in the box. 
  1706.       4. Type in a new font size that is non-zero (decimal values work); you 
  1707.          should notice a corresponding change in the size of the font in the 
  1708.          Sample box. 
  1709.  
  1710.      Note that this trick does not work for System Proportional, System 
  1711.      Monospaced, or System VIO fonts. 
  1712.  
  1713.      Related subject(s): 
  1714.  
  1715.      Γûá Changing the default PM system font 
  1716.  
  1717.  
  1718. ΓòÉΓòÉΓòÉ <hidden> Font Palette ΓòÉΓòÉΓòÉ
  1719.  
  1720. Font Palette dialog box with point size highlighted. 
  1721.  
  1722.  
  1723. ΓòÉΓòÉΓòÉ 4.2. Starting PM programs minimized ΓòÉΓòÉΓòÉ
  1724.  
  1725. from Tim Sipples' FAQ 
  1726.  
  1727. In order to start Presentation Manager programs minimized 
  1728.  
  1729.       1. Open the Settings notebook for the object. 
  1730.       2. On the Program page, change the name of the program so that it is 
  1731.          misspelled. 
  1732.       3. Go to the Session page and click on Start Minimized. 
  1733.       4. Go back to the Program page, and correct the spelling of the program 
  1734.          name. 
  1735.       5. Close the Settings notebook. 
  1736.  
  1737.  
  1738. ΓòÉΓòÉΓòÉ 4.3. Changing the default PM system font ΓòÉΓòÉΓòÉ
  1739.  
  1740. You can change the default system font with a REXX script, SETFONT.CMD. 
  1741. However, the font used in the Settings notebooks will not be affected. 
  1742.  
  1743. Note: system fonts are designated by font size and font name, separated only by 
  1744. a period.  (e.g., 8pt Helv would be designated by "8.Helv") 
  1745.  
  1746. Note: only the "default" fonts will work, e.g., Helv (not Helvetica), Tms Rmn 
  1747. (not Times Roman), System Proportional, and System Monospaced. 
  1748.  
  1749. Related subject(s): 
  1750.  
  1751.      Γûá Making fonts extremely small 
  1752.      Γûá OPEN.CMD 
  1753.      Γûá BITMAP.CMD 
  1754.      Γûá SETPTR.CMD 
  1755.      Γûá CHKDRIVE.CMD 
  1756.      Γûá SHUTDOWN.CMD 
  1757.      Γûá SHREDDER.CMD 
  1758.      Γûá SLEEP.CMD 
  1759.      Γûá LARGE.CMD 
  1760.      Γûá EVAL.CMD 
  1761.      Γûá BIGDOS.CMD 
  1762.      Γûá PUTLONG.CMD 
  1763.  
  1764.  
  1765. ΓòÉΓòÉΓòÉ 4.4. Moving a window in the background ΓòÉΓòÉΓòÉ
  1766.  
  1767. You can move a window in the background without bringing it to the front by 
  1768. holding the Ctrl key and dragging the window by its title bar with your mouse. 
  1769.  
  1770. Related subject(s): 
  1771.  
  1772.      Γûá Opening windowed command line in the background 
  1773.  
  1774.  
  1775. ΓòÉΓòÉΓòÉ 4.5. Closing several windows at once ΓòÉΓòÉΓòÉ
  1776.  
  1777.  
  1778. ΓòÉΓòÉΓòÉ <hidden> Closing windows split window 1 ΓòÉΓòÉΓòÉ
  1779.  
  1780. You can close all or several of your open windows using the following method: 
  1781.  
  1782.       1. Bring up the Window List with Ctrl-Esc or clicking both mouse buttons 
  1783.          at once. 
  1784.       2. Highlight the windows you want to close with your mouse. 
  1785.       3. Press the Delete key on your keyboard, or click your right mouse 
  1786.          button on one of the highlighted entries and choose Close from the 
  1787.          popup menu. 
  1788.  
  1789.  
  1790. ΓòÉΓòÉΓòÉ <hidden> Closing windows split window 2 ΓòÉΓòÉΓòÉ
  1791.  
  1792. Window List with highlighted items and popup menu. 
  1793.  
  1794.  
  1795. ΓòÉΓòÉΓòÉ 4.6. Using keyboard shortcuts in PM ΓòÉΓòÉΓòÉ
  1796.  
  1797. There are plenty of keyboard shortcuts in Presentation Manager.  Here are just 
  1798. a few of the lesser-known ones: 
  1799.  
  1800.       1. Alt-Backspace = undo last action (note that this doesn't always work). 
  1801.       2. Ctrl-Del = erase to end of field (useful when you have to retype text 
  1802.          in a field - press Home to get to the beginning of a field, then 
  1803.          Ctrl-Del to erase the text in the field - no more endless 
  1804.          backspacing). 
  1805.       3. Alt-F4 = close window. 
  1806.       4. Alt-F5 = restore window. 
  1807.       5. Alt-F6 = move between related windows, such as between an application 
  1808.          and its Help Window. 
  1809.       6. Alt-F7 = move window with cursor keys. 
  1810.       7. Alt-F8 = resize window with cursor keys. 
  1811.       8. Alt-F9 = minimize/hide window. 
  1812.       9. Alt-F10 = maximize window. 
  1813.      10. F5 = refresh window. 
  1814.  
  1815.      Related subject(s): 
  1816.  
  1817.      Γûá Navigating in notebooks without a mouse 
  1818.  
  1819.  
  1820. ΓòÉΓòÉΓòÉ 4.7. Navigating in notebooks without a mouse ΓòÉΓòÉΓòÉ
  1821.  
  1822. To navigate around the notebooks (such as an object's Settings notebook) 
  1823. without a mouse (note that sometimes these keys don't always act consistently): 
  1824.  
  1825.       1. Down/Up Arrows = moves between notebook tabs when a tab is highlighted 
  1826.       2. Tab = moves dotted box highlight between selections 
  1827.       3. Spacebar = moves to next page if its notebook tab is highlighted 
  1828.       4. Alt-Down Arrow = move from notebook tab to page 
  1829.       5. Alt-Up Arrow = move from page to notebook tab 
  1830.       6. Alt-PageDown = move to next page 
  1831.       7. Alt-PageUp = move to previous page 
  1832.       8. Ctrl-Tab = move to next field on a page 
  1833.       9. Shift-Tab = move to previous field on a page 
  1834.  
  1835.      Related subject(s): 
  1836.  
  1837.      Γûá Using keyboard shortcuts in PM 
  1838.  
  1839.  
  1840. ΓòÉΓòÉΓòÉ 4.8. Changing the default view of a folder ΓòÉΓòÉΓòÉ
  1841.  
  1842.  
  1843. ΓòÉΓòÉΓòÉ <hidden> Default folder view ΓòÉΓòÉΓòÉ
  1844.  
  1845.       1. Open the Settings notebook for the folder you wish to change. 
  1846.       2. Choose the Menu tab. 
  1847.       3. Highlight ~Open in the box marked Available Menus. 
  1848.       4. Click on the Settings button to the right of the box.  A new dialog 
  1849.          box will open. 
  1850.       5. Under Default Action, click on the down arrow next to the box. 
  1851.          Several choices will be revealed.  Choose the one you wish. 
  1852.       6. Click on OK, and close the Settings notebook. 
  1853.  
  1854.  
  1855. ΓòÉΓòÉΓòÉ <hidden> Changing default view ΓòÉΓòÉΓòÉ
  1856.  
  1857. Dialog box with Default Action choice. 
  1858.  
  1859.  
  1860. ΓòÉΓòÉΓòÉ 4.9. Speeding up opening folders ΓòÉΓòÉΓòÉ
  1861.  
  1862. contributed by David Haar 
  1863.  
  1864. Folders open faster when set to Flowed view: 
  1865.  
  1866.       1. Open the Settings notebook for the folder. 
  1867.       2. On page 1 of the View section, click on Flowed. 
  1868.  
  1869.      You may also wish to have the folders sorted automatically: 
  1870.  
  1871.       1. Open the Settings notebook for the folder. 
  1872.       2. Choose the Sort tab. 
  1873.       3. In the pull down box under Default Sort Attribute, choose which type 
  1874.          of sorting you like. 
  1875.       4. Place a check next to Maintain Sort Order. 
  1876.       5. Close the Settings notebook. 
  1877.  
  1878.      Related subject(s): 
  1879.  
  1880.      Γûá Speeding up opening folders II 
  1881.  
  1882.  
  1883. ΓòÉΓòÉΓòÉ 4.10. Enlarging the mouse cursor ΓòÉΓòÉΓòÉ
  1884.  
  1885. You can make the mouse cursor larger on systems with standard VGA with 
  1886. LARGE.CMD. 
  1887.  
  1888. The system must be rebooted for the change to take effect. 
  1889.  
  1890. Other REXX scripts: 
  1891.  
  1892.      Γûá OPEN.CMD 
  1893.      Γûá BITMAP.CMD 
  1894.      Γûá SETPTR.CMD 
  1895.      Γûá SETFONT.CMD 
  1896.      Γûá CHKDRIVE.CMD 
  1897.      Γûá SHUTDOWN.CMD 
  1898.      Γûá SHREDDER.CMD 
  1899.      Γûá SLEEP.CMD 
  1900.      Γûá EVAL.CMD 
  1901.      Γûá BIGDOS.CMD 
  1902.      Γûá PUTLONG.CMD 
  1903.  
  1904.  
  1905. ΓòÉΓòÉΓòÉ 4.11. Manipulating objects through the Window List ΓòÉΓòÉΓòÉ
  1906.  
  1907. You can affect objects that are listed in the Window List: 
  1908.  
  1909.      Γûá Holding the Shift key and double-clicking on an object's name in the 
  1910.        Window List will minimize the application. 
  1911.  
  1912.      Γûá Holding the Ctrl key and double-clicking on an object's name in the 
  1913.        Window List will maximize the application. 
  1914.  
  1915.      Γûá Holding the Alt key and double-clicking on an object's name in the 
  1916.        Window List will allow you to change the name of the object. 
  1917.  
  1918.  
  1919. ΓòÉΓòÉΓòÉ 4.12. Selecting listbox entries without a mouse ΓòÉΓòÉΓòÉ
  1920.  
  1921. An easy way to select an entry in a Presentation Manager listbox is to type the 
  1922. first letter of the name of the entry.  Subsequent presses of the same letter 
  1923. will cycle through all listbox entries which start with that letter. 
  1924.  
  1925. Related subject(s): 
  1926.  
  1927.      Γûá Selecting objects without mouse 
  1928.  
  1929.  
  1930. ΓòÉΓòÉΓòÉ 4.13. Making "no-shows" re-appear ΓòÉΓòÉΓòÉ
  1931.  
  1932.  
  1933. ΓòÉΓòÉΓòÉ <hidden> No shows ΓòÉΓòÉΓòÉ
  1934.  
  1935. Sometimes you will swear that you've opened an application, but for some 
  1936. reason, you don't see it onscreen (the Sticky Pad and Settings notebooks are 
  1937. especially notorious).  Try this, and see if it does the trick: 
  1938.  
  1939.       1. Use Ctrl-Esc or click both mouse buttons simultaneously on the desktop 
  1940.          to open the Window List. 
  1941.       2. Click the right mouse button on the name of the offending application. 
  1942.          This will pop up the object's menu. 
  1943.       3. Choose either Tile or Cascade from the menu.  The application should 
  1944.          appear. 
  1945.  
  1946.  
  1947. ΓòÉΓòÉΓòÉ <hidden> "No shows" ΓòÉΓòÉΓòÉ
  1948.  
  1949. Window List with Tile choice selected for Settings notebook. 
  1950.  
  1951.  
  1952. ΓòÉΓòÉΓòÉ 4.14. Opening the parent folder ΓòÉΓòÉΓòÉ
  1953.  
  1954. contributed by Brian Mathewson 
  1955.  
  1956. You can open the parent of a folder from the folder's pulldown menu with an 
  1957. object created from a REXX script and added to the folder's menu: 
  1958.  
  1959.       1. Create the REXX script OPENPAR.CMD. 
  1960.       2. Create an object from OPENPAR.CMD: 
  1961.  
  1962.          a) Open the Templates folder. 
  1963.          b) Drag out a Program template with the right mouse button.  A 
  1964.             settings notebook will open. 
  1965.          c) Enter the location and name of OPENPAR.CMD in the Path and Name 
  1966.             field on the Program page. 
  1967.          d) Choose the Session tab. 
  1968.          e) Place a check next to Start Minimized. 
  1969.          f) Choose the General tab. 
  1970.          g) In the Title field, name the object whatever you wish. 
  1971.          h) Close the settings notebook for the new object. 
  1972.  
  1973.       3. Add the new object to the desired folder's pulldown menu: 
  1974.  
  1975.          a) Open the settings notebook for the desired folder. 
  1976.          b) Choose the Menu tab. 
  1977.          c) If using OS/2 2.1, drag the open parent folder object onto the 
  1978.             lower box labeled "Actions on Menu."  If using OS/2 2.0, you must 
  1979.             use the lower Create Another button to create the new menu entry. 
  1980.          d) Close the settings notebook for the folder. 
  1981.  
  1982.       4. To use the new menu choice, choose it from the folder's pulldown menu. 
  1983.          The parent folder should open. 
  1984.  
  1985.      Note: You can change the command 'OPEN=DEFAULT' to 'OPEN=DETAILS' or 
  1986.      'OPEN=ICON' or 'OPEN=TREE' in OPENPAR.CMD. 
  1987.  
  1988.      Other REXX scripts: 
  1989.  
  1990.      Γûá OPEN.CMD 
  1991.      Γûá BITMAP.CMD 
  1992.      Γûá SETPTR.CMD 
  1993.      Γûá SETFONT.CMD 
  1994.      Γûá CHKDRIVE.CMD 
  1995.      Γûá SHUTDOWN.CMD 
  1996.      Γûá SHREDDER.CMD 
  1997.      Γûá SLEEP.CMD 
  1998.      Γûá LARGE.CMD 
  1999.      Γûá EVAL.CMD 
  2000.      Γûá BIGDOS.CMD 
  2001.      Γûá PUTLONG.CMD 
  2002.  
  2003.  
  2004. ΓòÉΓòÉΓòÉ 4.15. Jumping between windowed sessions ΓòÉΓòÉΓòÉ
  2005.  
  2006. contributed by Lt. Rob Targosz 
  2007.  
  2008. Use Alt-Tab to jump between windowed sessions. 
  2009.  
  2010.  
  2011. ΓòÉΓòÉΓòÉ 4.16. Starting an OS/2 command line from a folder's directory ΓòÉΓòÉΓòÉ
  2012.  
  2013.  
  2014. ΓòÉΓòÉΓòÉ <hidden> Folder's directory command line ΓòÉΓòÉΓòÉ
  2015.  
  2016. Settings notebook for folder's directory command line object. 
  2017.  
  2018.  
  2019. ΓòÉΓòÉΓòÉ <hidden> Folder's directory command line ΓòÉΓòÉΓòÉ
  2020.  
  2021. contributed by Brian Mathewson 
  2022.  
  2023. You can open a command line at a specific folder's directory from the folder's 
  2024. pulldown menu: 
  2025.  
  2026.       1. Open the Templates folder. 
  2027.       2. Using mouse button 2, drag off a Program template.  The Settings 
  2028.          notebook should open. 
  2029.       3. On the Program page, place an asterisk (*) in the Path and File Name 
  2030.          box. 
  2031.       4. In the Parameters box, place the following: 
  2032.          /k "cd %*" 
  2033.       5. Click on the Session tab. 
  2034.       6. Click on the box next to "OS/2 Window." 
  2035.       7. Click on the General tab, name the object to anything you like, then 
  2036.          close the Settings notebook. 
  2037.       8. Add the newly-created object to the menu of any folder. 
  2038.       9. When you click on the new menu item on the folder's pulldown menu, an 
  2039.          OS/2 command prompt window will open in that folder's directory. 
  2040.  
  2041.  
  2042. ΓòÉΓòÉΓòÉ 4.17. Opening windowed command line in the background ΓòÉΓòÉΓòÉ
  2043.  
  2044. To open OS/2 and DOS windowed sessions in the background: 
  2045.  
  2046.       1. Make sure the windowed command line object to be opened is not 
  2047.          highlighted. To do this, you can either click once on the desktop with 
  2048.          mouse button 1, or hold the Ctrl key and click on the object with 
  2049.          mouse button 1.  The object will either have dotted lines around it, 
  2050.          or nothing at all. 
  2051.       2. Hold the Ctrl key while double clicking on the object with mouse 
  2052.          button 1. 
  2053.       3. The windowed command line should open in the background. 
  2054.  
  2055.      Related subject(s): 
  2056.  
  2057.      Γûá Moving a window in the background 
  2058.  
  2059.  
  2060. ΓòÉΓòÉΓòÉ 4.18. Speeding up opening folders II ΓòÉΓòÉΓòÉ
  2061.  
  2062. Folders appear to open faster if folder animation is disabled. 
  2063.  
  2064.       1. Open the System object.  It should be located in the System Setup 
  2065.          folder. 
  2066.       2. Click on the Window tab. 
  2067.       3. Under "Animation," click on the choice "Disabled." 
  2068.       4. Close the System object.  All folders on your system should now open 
  2069.          without animation. 
  2070.  
  2071.      Related subject(s): 
  2072.  
  2073.      Γûá Speeding up opening folders 
  2074.  
  2075.  
  2076. ΓòÉΓòÉΓòÉ 5. Command Line ΓòÉΓòÉΓòÉ
  2077.  
  2078. This section covers tips and tricks which affect command line sessions. 
  2079.  
  2080. Topics in this section: 
  2081.  
  2082.      Γûá Pasting text without the final carriage return 
  2083.      Γûá Clearing the Delete subdirectory 
  2084.      Γûá Searching for file names 
  2085.      Γûá Maximizing windows when opening 
  2086.      Γûá Creating a scroll buffer 
  2087.      Γûá Using OS/2 without the Workplace Shell 
  2088.      Γûá Enhancing speed of text scrolling 
  2089.      Γûá Adding entries to your PATH 
  2090.      Γûá Permanently deleting a file when Undelete is active 
  2091.      Γûá Suppressing echo from *.CMD files 
  2092.      Γûá Getting more out of your command line 
  2093.      Γûá Checking drive status 
  2094.      Γûá Shutting down from a REXX script automatically 
  2095.      Γûá Using multiple arguments at the OS/2 command line 
  2096.      Γûá Using EPM as a customized command shell 
  2097.      Γûá Setting the startup directory for command line objects 
  2098.      Γûá Formatting a diskette with the detach command 
  2099.      Γûá Resizing a command line window permanently 
  2100.      Γûá Making the system "sleep" 
  2101.      Γûá Substituting REPLACE for the COPY command 
  2102.      Γûá "Touching" a file's date and time 
  2103.      Γûá Adding command sessions to the desktop's popup menu 
  2104.      Γûá Opening multiple command line sessions from the desktop menu 
  2105.      Γûá Creating a command line calculator 
  2106.      Γûá Starting a DOS session with maximum free memory 
  2107.      Γûá Using START to avoid the dreaded "clock" 
  2108.      Γûá Coloring OS/2 command line sessions 
  2109.      Γûá Copying fullscreen text to the Clipboard 
  2110.      Γûá Displaying custom DOS settings at the command line 
  2111.      Γûá Using PMREXX as a scrolling command window 
  2112.      Γûá Switching temporarily to a different directory 
  2113.      Γûá Canceling print jobs from the command line 
  2114.  
  2115.  
  2116. ΓòÉΓòÉΓòÉ 5.1. Pasting text without the final carriage return ΓòÉΓòÉΓòÉ
  2117.  
  2118. To paste text after a copy/mark operation without a final carriage return, hold 
  2119. down the Shift key while choosing Paste from the pull-down menu. 
  2120.  
  2121.  
  2122. ΓòÉΓòÉΓòÉ 5.2. Clearing the Delete subdirectory ΓòÉΓòÉΓòÉ
  2123.  
  2124. In order to remove the files from the Delete subdirectory of a drive to regain 
  2125. some drive space, type the following at a command line: 
  2126.  
  2127. UNDELETE <drive>:\* /f /s /a 
  2128.  
  2129. where <drive> is the letter of the drive which contains the Delete subdirectory 
  2130. you wish to clear. 
  2131.  
  2132. Related subject(s): 
  2133.  
  2134.      Γûá Permanently deleting a file when Undelete is active 
  2135.  
  2136.  
  2137. ΓòÉΓòÉΓòÉ 5.3. Searching for file names ΓòÉΓòÉΓòÉ
  2138.  
  2139. To search for a particular file name on a drive, type 
  2140.  
  2141. DIR <drive>:\<file spec> /S 
  2142.  
  2143. where 
  2144.  
  2145. <drive> is the letter of the drive you wish to search 
  2146.  
  2147. <file spec> is the specification of the file you are searching; standard wild 
  2148. cards can be used. 
  2149.  
  2150.  
  2151. ΓòÉΓòÉΓòÉ 5.4. Maximizing windows when opening ΓòÉΓòÉΓòÉ
  2152.  
  2153.  
  2154. ΓòÉΓòÉΓòÉ <hidden> Maximizing windows split window 1 ΓòÉΓòÉΓòÉ
  2155.  
  2156. To make all command line windows open maximized, hold the Shift key while 
  2157. clicking on the maximize button. 
  2158.  
  2159. Note: the above procedure causes anomalous behavior (the window opens in the 
  2160. upper left hand corner, then repositions itself in the middle of the screen) 
  2161. under the 2.11 CSD.  To fix this problem, hold the Shift key while clicking on 
  2162. the restore button in the uppermost right hand corner of the command line 
  2163. window. 
  2164.  
  2165. In some cases, you additionally may have to hold the Shift key while using the 
  2166. mouse to resize the window to its fullest size by dragging the bottom right 
  2167. corner. 
  2168.  
  2169. Related subject(s): 
  2170.  
  2171.      Γûá Resizing a command line window permanently 
  2172.  
  2173.  
  2174. ΓòÉΓòÉΓòÉ <hidden> Maximizing windows ΓòÉΓòÉΓòÉ
  2175.  
  2176. Command window with mouse pointer on Maximize button. 
  2177.  
  2178.  
  2179. ΓòÉΓòÉΓòÉ 5.5. Creating a scroll buffer ΓòÉΓòÉΓòÉ
  2180.  
  2181. from Tim Sipples' FAQ 
  2182.  
  2183. To create a small scroll-back buffer for your command line sessions, type 
  2184.  
  2185. MODE 80,102 
  2186.  
  2187. Related subject(s): 
  2188.  
  2189.      Γûá Resizing a command line window permanently 
  2190.      Γûá Setting video modes in a command line window 
  2191.  
  2192.  
  2193. ΓòÉΓòÉΓòÉ 5.6. Using OS/2 without the Workplace Shell ΓòÉΓòÉΓòÉ
  2194.  
  2195. To use OS/2 without loading the Workplace Shell, replace the following line in 
  2196. your CONFIG.SYS 
  2197.  
  2198. SET RUNWORKPLACE=<drive>:\OS2\PMSHELL.EXE 
  2199.  
  2200. with 
  2201.  
  2202. SET RUNWORKPLACE=<drive>:\OS2\CMD.EXE 
  2203.  
  2204. where <drive> is the letter of the drive on which OS/2 is located. 
  2205.  
  2206. Note that you can always invoke the Workplace Shell by typing PMSHELL at an 
  2207. OS/2 command line.  It can consequently be removed by closing it from the 
  2208. Window List. 
  2209.  
  2210. Related subject(s): 
  2211.  
  2212.      Γûá Booting OS/2 in full-screen mode 
  2213.  
  2214.  
  2215. ΓòÉΓòÉΓòÉ 5.7. Enhancing speed of text scrolling ΓòÉΓòÉΓòÉ
  2216.  
  2217. Tricks for speeding up text display. 
  2218.  
  2219. Related subject(s): 
  2220.  
  2221.      Γûá Changing font size 
  2222.      Γûá Changing Video_ROM_Emulation 
  2223.  
  2224.  
  2225. ΓòÉΓòÉΓòÉ 5.7.1. Changing font size ΓòÉΓòÉΓòÉ
  2226.  
  2227.  
  2228. ΓòÉΓòÉΓòÉ <hidden> Changing font size window 1 ΓòÉΓòÉΓòÉ
  2229.  
  2230. Fonts which are 8 pixels wide generally display faster than those which are not 
  2231. 8 pixels wide.  Choose Font Size from the pull-down menu, then choose a "x 8" 
  2232. type of font size. 
  2233.  
  2234.  
  2235. ΓòÉΓòÉΓòÉ <hidden> Font Size dialog ΓòÉΓòÉΓòÉ
  2236.  
  2237. Font Size dialog box with 14x8 font size highlighted. 
  2238.  
  2239.  
  2240. ΓòÉΓòÉΓòÉ 5.7.2. Changing Video_ROM_Emulation ΓòÉΓòÉΓòÉ
  2241.  
  2242.  
  2243. ΓòÉΓòÉΓòÉ <hidden> VideoROM window 1 ΓòÉΓòÉΓòÉ
  2244.  
  2245. Text scrolling speed can also be enhanced using the Video_ROM_Emulation 
  2246. setting. 
  2247.  
  2248.       1. Select DOS Settings from either the pull-down menu of a DOS session, 
  2249.          or from the Session page of the Settings notebook of a DOS session. 
  2250.       2. Highlight Video_ROM_Emulation. 
  2251.       3. Try the setting both on and off to find out if one setting results in 
  2252.          better performance than the other. 
  2253.  
  2254.  
  2255. ΓòÉΓòÉΓòÉ <hidden> DOS Settings ΓòÉΓòÉΓòÉ
  2256.  
  2257. DOS Settings dialog with Video_ROM_Emulation highlighted. 
  2258.  
  2259.  
  2260. ΓòÉΓòÉΓòÉ 5.8. Adding entries to your PATH ΓòÉΓòÉΓòÉ
  2261.  
  2262. You can add entries to your PATH "on the fly" by using: 
  2263.  
  2264. PATH %PATH%;<drive>:\<path> 
  2265.  
  2266. where 
  2267.  
  2268. <drive> is the drive on which the subdirectory you want to add is located 
  2269.  
  2270. <path> is the path you want to add 
  2271.  
  2272. (This also works for DPATH) 
  2273.  
  2274.  
  2275. ΓòÉΓòÉΓòÉ 5.9. Permanently deleting a file when Undelete is active ΓòÉΓòÉΓòÉ
  2276.  
  2277. If you have Undelete activated (via SET DELDIR in your CONFIG.SYS), but want to 
  2278. delete a file or files so they can't be undeleted, use: 
  2279.  
  2280. DEL <file(s)> /F 
  2281.  
  2282. where <file(s)> is the file specification of the file(s) you want to delete 
  2283.  
  2284. Related subject(s): 
  2285.  
  2286.      Γûá Clearing the Delete subdirectory 
  2287.  
  2288.  
  2289. ΓòÉΓòÉΓòÉ 5.10. Suppressing echo from *.CMD files ΓòÉΓòÉΓòÉ
  2290.  
  2291. If you are using batch files (*.CMD) which do not have ECHO OFF statements, you 
  2292. can also suppress the echo by using the /Q switch: 
  2293.  
  2294. Example:  BATCH.CMD /Q 
  2295.  
  2296.  
  2297. ΓòÉΓòÉΓòÉ 5.11. Getting more out of your command line ΓòÉΓòÉΓòÉ
  2298.  
  2299. Supplement your command line usage by stacking commands with &&, &, ||, and (): 
  2300.  
  2301. contributed by Jack Tan 
  2302.  
  2303.       1. && executes the second program only if the former succeeds, 
  2304.          e.g., RunMe.EXE && RunMeIfFormerSucceeds.EXE 
  2305.  
  2306.       2. || executes the second program if the former doesn't succeed, 
  2307.          e.g., RunMe.EXE || RunMeIfTheFormerDidntSucceed.EXE 
  2308.  
  2309.       3. Combining && and || results in an if..then..else situation, 
  2310.          e.g., If.EXE && Then.EXE || Else.EXE 
  2311.          (Else.EXE doesn't run if and only if both If.EXE and Then.EXE run 
  2312.          successfully) 
  2313.  
  2314.       4. & runs both the first and second programs, 
  2315.          e.g., RunMe.EXE & AndMeToo.EXE 
  2316.  
  2317.       5. () executes the instructions within the parentheses, overriding the 
  2318.          normal order of command precedence, 
  2319.          e.g., DETACH (FORMAT a: /once /v:"hi" && XCOPY c:\x A: /S) & UNZIP 
  2320.          myfile.zip 
  2321.          (the commands in parentheses are operated on by DETACH, then UNZIP 
  2322.          executes) 
  2323.  
  2324.  
  2325. ΓòÉΓòÉΓòÉ 5.12. Checking drive status ΓòÉΓòÉΓòÉ
  2326.  
  2327. inspired by a code snippet by Dick Goran 
  2328.  
  2329. You can check the status of a drive (e.g., if a floppy is inserted into a 
  2330. floppy drive or not) with a REXX script, CHKDRIVE.CMD. 
  2331.  
  2332. The routines in CHKDRIVE.CMD can be incorporated into longer REXX scripts 
  2333. whenever the status of a drive needs to be ascertained. 
  2334.  
  2335. Other REXX scripts: 
  2336.  
  2337.      Γûá OPEN.CMD 
  2338.      Γûá BITMAP.CMD 
  2339.      Γûá SETPTR.CMD 
  2340.      Γûá SETFONT.CMD 
  2341.      Γûá SHUTDOWN.CMD 
  2342.      Γûá SHREDDER.CMD 
  2343.      Γûá SLEEP.CMD 
  2344.      Γûá LARGE.CMD 
  2345.      Γûá EVAL.CMD 
  2346.      Γûá BIGDOS.CMD 
  2347.      Γûá PUTLONG.CMD 
  2348.  
  2349.  
  2350. ΓòÉΓòÉΓòÉ 5.13. Shutting down from a REXX script automatically ΓòÉΓòÉΓòÉ
  2351.  
  2352. by David Matocha 
  2353.  
  2354. You can shutdown your system with a countdown using SHUTDOWN.CMD combined with 
  2355. a scheduling utility and a automatic power-down of the system. 
  2356.  
  2357. Related subject(s): 
  2358.  
  2359.      Γûá Rebooting from the command line 
  2360.      Γûá OPEN.CMD 
  2361.      Γûá BITMAP.CMD 
  2362.      Γûá SETPTR.CMD 
  2363.      Γûá SETFONT.CMD 
  2364.      Γûá CHKDRIVE.CMD 
  2365.      Γûá SHREDDER.CMD 
  2366.      Γûá SLEEP.CMD 
  2367.      Γûá LARGE.CMD 
  2368.      Γûá EVAL.CMD 
  2369.      Γûá BIGDOS.CMD 
  2370.      Γûá PUTLONG.CMD 
  2371.  
  2372.  
  2373. ΓòÉΓòÉΓòÉ 5.14. Using multiple arguments at the OS/2 command line ΓòÉΓòÉΓòÉ
  2374.  
  2375. Unlike DOS, OS/2's command line allows you to use multiple arguments at the 
  2376. command line for the DEL and DIR commands. 
  2377.  
  2378. e.g., 
  2379.  
  2380. DEL <file1> <file2> <file3> 
  2381. DIR <file1> <file2> <file3> 
  2382.  
  2383. where <file1>, <file2>, and <file3> are different filenames (with any 
  2384. appropriate wildcards). 
  2385.  
  2386.  
  2387. ΓòÉΓòÉΓòÉ 5.15. Using EPM as a customized command shell ΓòÉΓòÉΓòÉ
  2388.  
  2389.  
  2390. ΓòÉΓòÉΓòÉ <hidden> EPM shell ΓòÉΓòÉΓòÉ
  2391.  
  2392. contributed by Jack Tan 
  2393.  
  2394. Use the Enhanced Editor (EPM) command SHELL to produce a command line with the 
  2395. following attributes: 
  2396.  
  2397.      Γûá Uses any font recognized by EPM. 
  2398.      Γûá Window sizeable to nearly any size. 
  2399.      Γûá Dynamically resizeable window. 
  2400.      Γûá Can alter text/background colors. 
  2401.      Γûá Scroll buffer spans the entire session. 
  2402.  
  2403.      Unfortunately, programs which take control of the screen (like 
  2404.      screen-based editors) won't run. 
  2405.  
  2406.      Related subject(s): 
  2407.  
  2408.      Γûá Using PMREXX as a scrolling command window 
  2409.  
  2410.  
  2411. ΓòÉΓòÉΓòÉ <hidden> EPM command shell ΓòÉΓòÉΓòÉ
  2412.  
  2413. EPM command shell, using the Helvetica font. 
  2414.  
  2415.  
  2416. ΓòÉΓòÉΓòÉ 5.16. Setting the startup directory for command line objects ΓòÉΓòÉΓòÉ
  2417.  
  2418. contributed by Jack Tan 
  2419.  
  2420. The 'Working Directory' entry in the settings notebook also applies to command 
  2421. lines, such as 'OS/2 Window' and 'DOS Full Screen.'  In these cases, the 
  2422. working directory becomes the starting directory. 
  2423.  
  2424.  
  2425. ΓòÉΓòÉΓòÉ 5.17. Formatting a diskette with the detach command ΓòÉΓòÉΓòÉ
  2426.  
  2427. You can format a diskette in the background from the command line or in a batch 
  2428. file without user intervention with the line: 
  2429.  
  2430. DETACH FORMAT <drive>: /ONCE /V:<label> 
  2431.  
  2432. where <drive> is the drive of the diskette you wish to format, and <label> is 
  2433. the name you wish to use for the volume label. 
  2434.  
  2435.  
  2436. ΓòÉΓòÉΓòÉ 5.18. Resizing a command line window permanently ΓòÉΓòÉΓòÉ
  2437.  
  2438. contributed by Guy Gerard Lemieux 
  2439.  
  2440. You can save the size of any window permanently by holding the Shift key while 
  2441. resizing. 
  2442.  
  2443. Related subject(s): 
  2444.  
  2445.      Γûá Maximizing windows when opening 
  2446.      Γûá Creating a scroll buffer 
  2447.      Γûá Setting video modes in a command line window 
  2448.  
  2449.  
  2450. ΓòÉΓòÉΓòÉ 5.19. Making the system "sleep" ΓòÉΓòÉΓòÉ
  2451.  
  2452. The REXX script SLEEP.CMD will create a pause for a specified length of time. 
  2453.  
  2454. Other REXX scripts: 
  2455.  
  2456.      Γûá OPEN.CMD 
  2457.      Γûá BITMAP.CMD 
  2458.      Γûá SETPTR.CMD 
  2459.      Γûá SETFONT.CMD 
  2460.      Γûá CHKDRIVE.CMD 
  2461.      Γûá SHUTDOWN.CMD 
  2462.      Γûá SHREDDER.CMD 
  2463.      Γûá LARGE.CMD 
  2464.      Γûá EVAL.CMD 
  2465.      Γûá BIGDOS.CMD 
  2466.      Γûá PUTLONG.CMD 
  2467.  
  2468.  
  2469. ΓòÉΓòÉΓòÉ 5.20. Substituting REPLACE for the COPY command ΓòÉΓòÉΓòÉ
  2470.  
  2471. The REPLACE command will only copy files of the same name from the source to 
  2472. the target: 
  2473.  
  2474. REPLACE <source> <target> 
  2475.  
  2476. where <source> is the drive, path, and file specification of the files you want 
  2477. copied; and, <target> is the drive and path to which you want the files copied. 
  2478.  
  2479. However, when REPLACE is used with certain command line switches, it becomes 
  2480. even more useful. 
  2481.  
  2482. Have you ever wished you could only copy files which don't already exist on the 
  2483. target drive?  Try: 
  2484.  
  2485. REPLACE <source> <target> /A 
  2486.  
  2487. Have you wanted to copy only files which have been updated?  Try: 
  2488.  
  2489. REPLACE <source> <target> /U 
  2490.  
  2491.  
  2492. ΓòÉΓòÉΓòÉ 5.21. "Touching" a file's date and time ΓòÉΓòÉΓòÉ
  2493.  
  2494. You can "touch," i.e., change to current date and time, a file or set of files 
  2495. using a form of the COPY command: 
  2496.  
  2497. COPY <filespec> /b + ,, 
  2498.  
  2499. where <filespec> is any valid filename or OS/2 file specification 
  2500.  
  2501.  
  2502. ΓòÉΓòÉΓòÉ 5.22. Adding command sessions to the desktop's popup menu ΓòÉΓòÉΓòÉ
  2503.  
  2504.  
  2505. ΓòÉΓòÉΓòÉ <hidden> Adding command sessions ΓòÉΓòÉΓòÉ
  2506.  
  2507. When adding OS/2 or DOS command line sessions to the desktop's popup menu, 
  2508. prevent the object from passing the desktop's path by putting a percent sign 
  2509. (%) in the Parameters field on the Program page of the command line object's 
  2510. Settings notebook. 
  2511.  
  2512. Related subject(s): 
  2513.  
  2514.      Γûá Adding an "open folder" entry to the desktop's popup menu 
  2515.      Γûá Opening multiple command line sessions from the desktop menu 
  2516.      Γûá Adding INF files to the desktop popup menu 
  2517.  
  2518.  
  2519. ΓòÉΓòÉΓòÉ <hidden> Adding command sessions ΓòÉΓòÉΓòÉ
  2520.  
  2521. Placing a percent sign in the Parameters field. 
  2522.  
  2523.  
  2524. ΓòÉΓòÉΓòÉ 5.23. Opening multiple command line sessions from the desktop menu ΓòÉΓòÉΓòÉ
  2525.  
  2526.  
  2527. ΓòÉΓòÉΓòÉ <hidden> Create new window setting ΓòÉΓòÉΓòÉ
  2528.  
  2529. Desktop Settings notebook with Create New Window highlighted. 
  2530.  
  2531.  
  2532. ΓòÉΓòÉΓòÉ <hidden> Create new window setting ΓòÉΓòÉΓòÉ
  2533.  
  2534. In order to be able to open multiple command line sessions from a command line 
  2535. object that you added to the desktop's popup menu, you must alter the desktop's 
  2536. settings, not those of the command line object: 
  2537.  
  2538.       1. Open the Settings notebook for the desktop. 
  2539.       2. Choose the Window tab. 
  2540.       3. Under Object Open Behavior, select Create New Window. 
  2541.       4. Close the Settings notebook. 
  2542.  
  2543.      Note: changing the Object Open Behavior for the desktop may have 
  2544.      unexpected results when opening other objects from the desktop. 
  2545.  
  2546.      Related subject(s): 
  2547.  
  2548.      Γûá Adding an "open folder" entry to the desktop's popup menu 
  2549.      Γûá Adding command sessions to the desktop's popup menu 
  2550.  
  2551.  
  2552. ΓòÉΓòÉΓòÉ 5.24. Creating a command line calculator ΓòÉΓòÉΓòÉ
  2553.  
  2554. contributed by L. Kuru 
  2555.  
  2556. EVAL.CMD is a REXX script for a simple, yet powerful command line calculator. 
  2557.  
  2558. Several arithmetic functions are available: 
  2559.  
  2560.      Γûá The basic arithmetic functions: 
  2561.  
  2562.          1. +  = Addition 
  2563.          2. -  = Subtraction 
  2564.          3. *  = Multiplication 
  2565.          4. /  = Division 
  2566.          5. ** = Exponential (must be an integer) 
  2567.  
  2568.      Γûá Parentheses, e.g., EVAL (2+3)**2 
  2569.      Γûá Floating point numbers, e.g., EVAL 12.345567e14*1e-50 
  2570.      Γûá Environment variables, 
  2571.        e.g., set pi=3.1415926 
  2572.           set radius=3 
  2573.           EVAL %pi%*%radius%**2 
  2574.  
  2575.      Other REXX scripts: 
  2576.  
  2577.      Γûá OPEN.CMD 
  2578.      Γûá BITMAP.CMD 
  2579.      Γûá SETPTR.CMD 
  2580.      Γûá SETFONT.CMD 
  2581.      Γûá CHKDRIVE.CMD 
  2582.      Γûá SHUTDOWN.CMD 
  2583.      Γûá SHREDDER.CMD 
  2584.      Γûá SLEEP.CMD 
  2585.      Γûá LARGE.CMD 
  2586.      Γûá BIGDOS.CMD 
  2587.      Γûá PUTLONG.CMD 
  2588.  
  2589.  
  2590. ΓòÉΓòÉΓòÉ 5.25. Starting a DOS session with maximum free memory ΓòÉΓòÉΓòÉ
  2591.  
  2592. contributed by Xavier Caballe 
  2593.  
  2594. You can start a DOS session with the maximum free memory using BIGDOS.CMD. 
  2595.  
  2596. Note: if using OS/2 2.1, you may have to change RMSIZE=640 to RMSIZE=639 in 
  2597. your CONFIG.SYS file in order to get this to work. 
  2598.  
  2599. Other REXX scripts: 
  2600.  
  2601.      Γûá OPEN.CMD 
  2602.      Γûá BITMAP.CMD 
  2603.      Γûá SETPTR.CMD 
  2604.      Γûá SETFONT.CMD 
  2605.      Γûá CHKDRIVE.CMD 
  2606.      Γûá SHUTDOWN.CMD 
  2607.      Γûá SHREDDER.CMD 
  2608.      Γûá SLEEP.CMD 
  2609.      Γûá LARGE.CMD 
  2610.      Γûá EVAL.CMD 
  2611.      Γûá PUTLONG.CMD 
  2612.  
  2613.  
  2614. ΓòÉΓòÉΓòÉ 5.26. Using START to avoid the dreaded "clock" ΓòÉΓòÉΓòÉ
  2615.  
  2616. contributed by Jack Tan 
  2617.  
  2618. Use the START command in a fullscreen session to avoid the dreaded clock 
  2619. pointer and continue working at the command line when loading certain 
  2620. queue-hogging applications. 
  2621.  
  2622. e.g, at a fullscreen OS/2 prompt: 
  2623.  
  2624. START /b 123G.EXE 
  2625.  
  2626.  
  2627. ΓòÉΓòÉΓòÉ 5.27. Coloring OS/2 command line sessions ΓòÉΓòÉΓòÉ
  2628.  
  2629. contributed by Peder Madsen 
  2630.  
  2631. Tired of the dreaded black-and-white OS/2 command prompt? Create more colorful 
  2632. prompts with the PROMPT command. Try 
  2633.  
  2634. set prompt=$E[37;44m[$P] 
  2635.  
  2636. which gives you white text on blue background. 
  2637.  
  2638. Instead of 37 you can use any number between 30 and 37 to control the 
  2639. foreground color, and instead of 44 you can use any number between 40 and 47 to 
  2640. control the background color. 
  2641.  
  2642. You can also use the PROMPT command in your CONFIG.SYS file to start each OS/2 
  2643. command session with your favorite colors. 
  2644.  
  2645. Note: ANSI must be turned on (this is the default). 
  2646.  
  2647.  
  2648. ΓòÉΓòÉΓòÉ 5.28. Copying fullscreen text to the Clipboard ΓòÉΓòÉΓòÉ
  2649.  
  2650. contributed by Hugo Jimenez-Vazquez 
  2651.  
  2652. To copy fullscreen text to the OS/2 Clipboard: 
  2653.  
  2654.       1. Open the menu for the default printer and change the status of the 
  2655.          jobs to "Hold." 
  2656.       2. Go to the OS/2 fullscreen session you wish to copy, and press the 
  2657.          PrintScreen button on your keyboard. 
  2658.       3. Go back to the OS/2 desktop and open either the Icon or Details view 
  2659.          of the default printer. 
  2660.       4. Double click on the icon of the PrintScreen job.  This will place the 
  2661.          job into the OS/2 System Editor (E.EXE). 
  2662.       5. Copy the desired text from the OS/2 System Editor to the OS/2 
  2663.          Clipboard. 
  2664.       6. Delete the job from the list of the default printer. 
  2665.       7. Change the status of the default printer back to "Release." 
  2666.  
  2667.  
  2668. ΓòÉΓòÉΓòÉ 5.29. Displaying custom DOS settings at the command line ΓòÉΓòÉΓòÉ
  2669.  
  2670.  
  2671. ΓòÉΓòÉΓòÉ <hidden> DOS Settings ΓòÉΓòÉΓòÉ
  2672.  
  2673. contributed by Jack Tan 
  2674.  
  2675. To list custom DOS settings (i.e., the settings which have been changed from 
  2676. the default) at the command line: 
  2677.  
  2678.       1. Open the Settings notebook for the DOS program object. 
  2679.       2. Put an asterisk (*) as the first character in the "Path and File Name" 
  2680.          box on the Program page.  If the filename is already an asterisk, 
  2681.          place some text immediately after the asterisk. 
  2682.       3. The icon will change to that of an OS/2 window after the change. 
  2683.       4. Open the session by clicking on its icon.  This should bring up an 
  2684.          OS/2 command line window. 
  2685.       5. Type "SET" (without quotes) at the command line. 
  2686.       6. This should list the customized DOS settings, as well as some 
  2687.          environmental variables. 
  2688.       7. When done, remove the asterisk or extra text from the Settings 
  2689.          notebook. 
  2690.       8. If the DOS session was fullscreen initially, it may be changed to a 
  2691.          windowed session.  If so, click on the Session tab, and choose "DOS 
  2692.          full screen." 
  2693.  
  2694.  
  2695. ΓòÉΓòÉΓòÉ <hidden> DOS Settings ΓòÉΓòÉΓòÉ
  2696.  
  2697. Use asterisk as first character in "Path and File Name" box. 
  2698.  
  2699.  
  2700. ΓòÉΓòÉΓòÉ <hidden> DOS Settings II ΓòÉΓòÉΓòÉ
  2701.  
  2702. List of custom DOS settings (with cute cat pointer!). 
  2703.  
  2704.  
  2705. ΓòÉΓòÉΓòÉ 5.30. Using PMREXX as a scrolling command window ΓòÉΓòÉΓòÉ
  2706.  
  2707. contributed by Michael Prager 
  2708.  
  2709. Many of us have wished for a scrolling command window, as supplied in many 
  2710. graphical versions of Unix.  This is how to get one. At an OS/2 command line, 
  2711. type: 
  2712.  
  2713. PMREXX REXXTRY.CMD 
  2714.  
  2715. This gives a scrolling Rexx window that executes Rexx commands interactively. 
  2716. Since Rexx passes through all OS/2 commands, it can be used for executing OS/2 
  2717. commands.  Just don't forget that many OS/2 commands will need to be enclosed 
  2718. in quotation marks. 
  2719.  
  2720.      Γûá Using EPM as a customized command shell 
  2721.  
  2722.  
  2723. ΓòÉΓòÉΓòÉ 5.31. Switching temporarily to a different directory ΓòÉΓòÉΓòÉ
  2724.  
  2725. contributed by Jack Tan 
  2726.  
  2727. To switch temporarily to a different directory when at an OS/2 command line, 
  2728. type CMD.EXE at the command line.  Switch to the directory you want, and when 
  2729. you are finished in that directory, simply type EXIT at the prompt. You will be 
  2730. back in your original directory. 
  2731.  
  2732.  
  2733. ΓòÉΓòÉΓòÉ 5.32. Canceling print jobs from the command line ΓòÉΓòÉΓòÉ
  2734.  
  2735. contributed by Jack Tan 
  2736.  
  2737. You can use command line switches to cancel print jobs from the OS/2 command 
  2738. line: 
  2739.  
  2740. PRINT /C 
  2741.  
  2742. will cancel the current print job on the default printing device. 
  2743.  
  2744. PRINT /T 
  2745.  
  2746. will cancel the current print job and the rest of the print queue on the 
  2747. default printing device. 
  2748.  
  2749. If you want to cancel a job on a device other than the default, add the switch 
  2750.  
  2751. /D:device> 
  2752.  
  2753. where <device> is the name of the print device (e.g., LPT2). 
  2754.  
  2755.  
  2756. ΓòÉΓòÉΓòÉ 6. Win-OS/2 ΓòÉΓòÉΓòÉ
  2757.  
  2758. This section covers tips and tricks which affect Win-OS/2. 
  2759.  
  2760. Topics in this section: 
  2761.  
  2762.      Γûá Reducing Win-OS/2 initial load time 
  2763.      Γûá Using Windows screen blanker for OS/2 
  2764.      Γûá Running Win-OS/2 from a DOS image 
  2765.      Γûá Curing "jumpy mouse" 
  2766.      Γûá Pasting between Windows applications 
  2767.      Γûá Starting seamless Windows from the command line 
  2768.      Γûá Using Windows File Manager on your OS/2 desktop 
  2769.      Γûá Fixing seamless Windows on some 2.11 CSD systems 
  2770.      Γûá Adding more LPT ports in Win-OS/2 
  2771.  
  2772.  
  2773. ΓòÉΓòÉΓòÉ 6.1. Reducing Win-OS/2 initial load time ΓòÉΓòÉΓòÉ
  2774.  
  2775. If you are running Windows programs in a common session, the load time for the 
  2776. first Windows program you execute will be much longer than subsequent load 
  2777. times because OS/2 needs to load both a VDM and the Win-OS/2 code.  If you want 
  2778. to speed up loading Windows programs, load a small Windows program, such as the 
  2779. Clock, via your Startup folder.  Your boot time will increase, but when you 
  2780. finally sit down to work, your Windows programs will load more quickly. 
  2781.  
  2782.  
  2783. ΓòÉΓòÉΓòÉ 6.2. Using Windows screen blanker for OS/2 ΓòÉΓòÉΓòÉ
  2784.  
  2785. You can use a Windows screen blanker when running seamless Windows to blank the 
  2786. OS/2 desktop.  However, since Win-OS/2 can sometimes miss keystrokes intended 
  2787. for Presentation Manager, be sure to set the delay of the screen blanker as 
  2788. long as possible. 
  2789.  
  2790.  
  2791. ΓòÉΓòÉΓòÉ 6.3. Running Win-OS/2 from a DOS image ΓòÉΓòÉΓòÉ
  2792.  
  2793. You can run Win-OS/2 from a DOS image, also known as a Virtual Machine Boot 
  2794. (VMB) or specific DOS session: 
  2795.  
  2796.       1. Put a bootable DOS system disk in the A: drive.  Make sure that you 
  2797.          have a simple, DOS-compatible editor on this disk that you can use to 
  2798.          edit the CONFIG.SYS and AUTOEXEC.BAT files. 
  2799.       2. Open an OS/2 command line session. 
  2800.       3. Create a subdirectory to store the boot images. 
  2801.       4. At the OS/2 command line, type VMDISK A: <imagename> where <imagename> 
  2802.          is a name you give to the boot image 
  2803.       5. When the system files have been transferred from A: to your boot image 
  2804.          subdirectory, close the OS/2 command line and remove the diskette from 
  2805.          A:. 
  2806.       6. Open the Templates folder and use the right mouse button to drag a 
  2807.          template from the Program template icon.  The Settings notebook for 
  2808.          the new program object should open. 
  2809.       7. On the Program page, put an asterisk in the Path and Filename box. 
  2810.       8. Click on the Session tab. 
  2811.       9. Select either the DOS Window or DOS Full Screen button. 
  2812.      10. Click on the DOS settings button. 
  2813.      11. Highlight the DOS_STARTUP_DRIVE option. 
  2814.      12. In the Value box, enter the drive, path and name of your boot image. 
  2815.      13. Highlight DOS_FILES. 
  2816.      14. In the Value box, set DOS_FILES to 40. 
  2817.      15. Highlight DPMI_MEMORY_LIMIT. 
  2818.      16. In the Value box, set DPMI_MEMORY_LIMIT to 4 or higher. 
  2819.      17. Click on Save. 
  2820.      18. Close the Settings notebook. 
  2821.      19. Open the newly-created DOS image. 
  2822.      20. While in the DOS image, create/edit the CONFIG.SYS file. 
  2823.      21. The CONFIG.SYS should contain, among other entries, these lines: 
  2824.  
  2825.          a) DEVICE=<drive>:\OS2\MDOS\FSFILTER.SYS -- this line should be near 
  2826.             the top of CONFIG.SYS, and <drive> is the drive on which your OS/2 
  2827.             DOS support files are located. 
  2828.          b) DEVICE=<drive>:\OS2\MDOS\HIMEM.SYS 
  2829.          c) DEVICE=<drive>:\OS2\MDOS\EMM386.SYS 
  2830.  
  2831.      22. Save the CONFIG.SYS and create/edit an AUTOEXEC.BAT file as you wish. 
  2832.      23. Close the session by double clicking on the title bar icon. 
  2833.      24. Reopen the DOS image, and type WIN to start Win-OS/2. 
  2834.  
  2835.  
  2836. ΓòÉΓòÉΓòÉ 6.4. Curing "jumpy mouse" ΓòÉΓòÉΓòÉ
  2837.  
  2838. additions by Hugo Jimenez-Vazquez and Tony Colliver 
  2839.  
  2840. The mouse can often be "jumpy" in fullscreen Win-OS/2 sessions.  Try changing 
  2841. the following, checking after the first change to see if jumpiness has been 
  2842. cured.  If not, try the second change. 
  2843.  
  2844.       1. Open the Settings notebook for the object. 
  2845.       2. Choose the Session tab. 
  2846.       3. Click on DOS Settings. 
  2847.       4. Highlight IDLE_SECONDS. 
  2848.       5. Set IDLE_SECONDS to a value from 1 to 3 (you will have to play with 
  2849.          this setting). 
  2850.       6. Highlight IDLE_SENSITIVITY. 
  2851.       7. Set IDLE_SENSITIVITY to a value from 10 to 100 (you will have to play 
  2852.          with this setting, too). 
  2853.  
  2854.  
  2855. ΓòÉΓòÉΓòÉ 6.5. Pasting between Windows applications ΓòÉΓòÉΓòÉ
  2856.  
  2857. Sometimes data gets lost when you're pasting between Windows applications under 
  2858. Win-OS/2.  If this happens to you, try: 
  2859.  
  2860.       1. Open the Win-OS/2 object's Settings notebook. 
  2861.       2. Choose the Session tab. 
  2862.       3. Click on DOS Settings. 
  2863.       4. Highlight VIDEO_FASTPASTE. 
  2864.       5. Set VIDEO_FASTPASTE to ON. 
  2865.  
  2866.  
  2867. ΓòÉΓòÉΓòÉ 6.6. Starting seamless Windows from the command line ΓòÉΓòÉΓòÉ
  2868.  
  2869. contributed by Jack Tan 
  2870.  
  2871. To start a seamless Windows session from the OS/2 command line: 
  2872.  
  2873. START /WIN <program> 
  2874.  
  2875. where <program> is the name of the Windows program you wish to run. 
  2876.  
  2877.  
  2878. ΓòÉΓòÉΓòÉ 6.7. Using Windows File Manager on your OS/2 desktop ΓòÉΓòÉΓòÉ
  2879.  
  2880. contributed by Walter Dnes 
  2881.  
  2882. If you are familiar with the Windows File Manager, and wish to use it as your 
  2883. main shell on the OS/2 desktop (you must have seamless Windows capability to do 
  2884. this): 
  2885.  
  2886.       1. Open the Templates folder. 
  2887.       2. Use mouse button 2 to drag out a Program template to the location you 
  2888.          wish it to be.  The Settings notebook for the object should open. 
  2889.       3. On the Program page, in the "Path and File Name" box, type 
  2890.  
  2891.          <drive>:\OS2\MDOS\WINOS2\WINFILE.EXE 
  2892.  
  2893.          where <drive> is the drive on which Win-OS/2 is located. 
  2894.       4. Click on the Session page. 
  2895.       5. Select WIN-OS/2 Window. 
  2896.       6. Click on WIN-OS/2 Settings, and make any appropriate changes for a 
  2897.          Windows program (e.g., 64 meg DPMI). 
  2898.       7. Close the Settings notebook. 
  2899.  
  2900.      You should be able to run Windows, DOS, and OS/2 programs from the File 
  2901.      Manager by simply double clicking on the name of the file. 
  2902.  
  2903.      In order to run OS/2 *.CMD and REXX files, edit the "Programs=" line in 
  2904.      the [windows] section of WIN.INI to read: 
  2905.  
  2906.      Programs=com exe bat pif cmd 
  2907.  
  2908.      Associations in the [extensions] section of WIN.INI can also be added to 
  2909.      invoke OS/2 programs.  For example, you can associate *.INF files with 
  2910.      VIEW.EXE as follows: 
  2911.  
  2912.      INF=<drive>:\OS2\VIEW.EXE ^.INF 
  2913.  
  2914.      where <drive> is the drive on which OS/2 resides. 
  2915.  
  2916.  
  2917. ΓòÉΓòÉΓòÉ 6.8. Fixing seamless Windows on some 2.11 CSD systems ΓòÉΓòÉΓòÉ
  2918.  
  2919. Some systems running the 2.11 CSD have trouble running seamless Windows in that 
  2920. double-clicking on a seamless Windows application will cause the icon to be 
  2921. shaded, but nothing runs.  In some cases, this is the result of improper 
  2922. updating of Win-OS/2. 
  2923.  
  2924. Check the file named SERVICE.LOG.  It should be located in the subdirectory 
  2925. <drive>:\OS2\INSTALL.  Read through the listings to find out if either your 
  2926. Win-OS/2 subdirectories or Win-OS/2 video drivers have been updated or not. 
  2927.  
  2928. If not, you may have to run the SERVICE program located on the Service Pak disk 
  2929. 1, and instruct the program to update your Win-OS/2 subdirectories (it will 
  2930. inform you that no updating is needed).  If you are using high resolution video 
  2931. drivers, you may instead only have to install the new video drivers. 
  2932.  
  2933. CAUTION:
  2934. Make alterations to your system at your own risk! 
  2935.  
  2936.  
  2937. ΓòÉΓòÉΓòÉ 6.9. Adding more LPT ports in Win-OS/2 ΓòÉΓòÉΓòÉ
  2938.  
  2939. contributed by Gary Pool 
  2940.  
  2941. Windows has a limit of LPT ports 1 through 3.  If you are on a LAN or are in a 
  2942. situation where you have more than 3 LPT ports, you can add LPT ports by 
  2943. editing your WIN.INI file.  Find the "ports" section of the WIN.INI file. 
  2944. There you will see LPT1.OS2, LPT2.OS2, and LPT3.OS2.  Just manually add 
  2945. LPT4.OS2 through LPT9.OS2 and you will be able to access those printers from 
  2946. Win-OS/2. 
  2947.  
  2948.  
  2949. ΓòÉΓòÉΓòÉ 7. Warp ΓòÉΓòÉΓòÉ
  2950.  
  2951. This section covers tips and tricks for OS/2 Warp. 
  2952.  
  2953.  
  2954. ΓòÉΓòÉΓòÉ 7.1. System ΓòÉΓòÉΓòÉ
  2955.  
  2956. This section covers System tips for OS/2 Warp. 
  2957.  
  2958. Topics in this section: 
  2959.  
  2960.      Γûá Changing printing from polling to interrupt-driven 
  2961.      Γûá Recovering a deleted Launchpad 
  2962.      Γûá Keeping the system running, even through traps 
  2963.      Γûá Setting the swap file 
  2964.      Γûá Creating OS/2 Warp boot diskettes 
  2965.  
  2966.  
  2967. ΓòÉΓòÉΓòÉ 7.2. Changing printing from polling to interrupt driven ΓòÉΓòÉΓòÉ
  2968.  
  2969. Warp 
  2970.  
  2971. The default mode of printing under OS/2 Warp is now via polling, rather than 
  2972. interrupt-driven, as was the case in previous OS/2 versions.  Polling can cause 
  2973. problems with printing on some systems, and can use more system resources. 
  2974.  
  2975. To change from the polling mode of printing to interrupt-driven printing, edit 
  2976. the following line in your CONFIG.SYS file: 
  2977.  
  2978. BASEDEV=PRINT01.SYS 
  2979.  
  2980. to 
  2981.  
  2982. BASEDEV=PRINT01.SYS /IRQ 
  2983.  
  2984. Note that using the interrupt-driven mode of printing requires the use of IRQ 
  2985. 7. 
  2986.  
  2987.  
  2988. ΓòÉΓòÉΓòÉ 7.3. Recovering a deleted Launchpad ΓòÉΓòÉΓòÉ
  2989.  
  2990. Warp 
  2991.  
  2992. You can recover a deleted Launchpad by adding the word LAUNCHPAD to your SET 
  2993. AUTOSTART line in your CONFIG.SYS file. 
  2994.  
  2995. Conversely, to prevent the Launchpad from opening at boot, remove the word 
  2996. LAUNCHPAD from your SET AUTOSTART line. 
  2997.  
  2998. Related subject(s): 
  2999.  
  3000.      Γûá Removing the Launchpad permanently 
  3001.  
  3002.  
  3003. ΓòÉΓòÉΓòÉ 7.4. Keeping the system running, even through traps ΓòÉΓòÉΓòÉ
  3004.  
  3005. Warp 
  3006.  
  3007. To keep an unattended system, such as a BBS, running despite a TRAP condition, 
  3008. add the following lines to your CONFIG.SYS file: 
  3009.  
  3010. REIPL=ON 
  3011.  
  3012. Setting REIPL to ON will automatically reboot your system when a TRAP occurs. 
  3013.  
  3014. SUPPRESSPOPUPS=<drive> 
  3015.  
  3016. SUPPRESSPOPUPS will prevent TRAP information from popping up and will log the 
  3017. popup information to a log file.  <drive> is the drive to which the log file 
  3018. POPUPLOG.OS2 is written. 
  3019.  
  3020. DUMPPROCESS=<drive> 
  3021.  
  3022. DUMPPROCESS causes a process dump file PDUMP.* to be written.  <drive> is the 
  3023. drive letter to which PDUMP.* will be written. 
  3024.  
  3025.  
  3026. ΓòÉΓòÉΓòÉ 7.5. Setting the swap file ΓòÉΓòÉΓòÉ
  3027.  
  3028. contributed by Jack Tan 
  3029.  
  3030. Warp 
  3031.  
  3032. The swap file in OS/2 Warp will tend to grow larger than in previous versions 
  3033. of OS/2 because certain DLLs are treated differently.  Therefore, to prevent 
  3034. excess swapping, you may wish to increase the default size of your swap file 
  3035. from the value which you used in previous versions of OS/2. 
  3036.  
  3037. Related subject(s): 
  3038.  
  3039.      Γûá Adjusting your swap file 
  3040.  
  3041.  
  3042. ΓòÉΓòÉΓòÉ 7.6. Creating OS/2 Warp boot diskettes ΓòÉΓòÉΓòÉ
  3043.  
  3044. Warp 
  3045.  
  3046. OS/2 Warp has its own facility to create boot diskettes.  Simply open the 
  3047. System Setup folder and open the Create Utility Diskettes object. 
  3048.  
  3049. Create Utility Diskettes object. 
  3050.  
  3051.  
  3052. ΓòÉΓòÉΓòÉ 7.7. Workplace Shell ΓòÉΓòÉΓòÉ
  3053.  
  3054. This section covers Workplace Shell tips for OS/2 Warp. 
  3055.  
  3056. Topics in this section: 
  3057.  
  3058.      Γûá Tearing off Launchpad drawer 
  3059.      Γûá Opening the Settings notebook 
  3060.      Γûá Closing the parent folder when opening an object 
  3061.      Γûá Removing the Launchpad permanently 
  3062.      Γûá Editing animated folder icons 
  3063.      Γûá Bringing the Launchpad to the top 
  3064.      Γûá Closing parent folders automatically 
  3065.      Γûá Setting default folder appearance 
  3066.      Γûá Customizing the Launchpad 
  3067.  
  3068.  
  3069. ΓòÉΓòÉΓòÉ 7.8. Tearing off Launchpad drawer ΓòÉΓòÉΓòÉ
  3070.  
  3071.  
  3072. ΓòÉΓòÉΓòÉ <hidden> Tearoff drawer ΓòÉΓòÉΓòÉ
  3073.  
  3074. Launchpad with drawer "torn off." 
  3075.  
  3076.  
  3077. ΓòÉΓòÉΓòÉ <hidden> Tearoff drawer ΓòÉΓòÉΓòÉ
  3078.  
  3079. Warp 
  3080.  
  3081. You can "tear" off a drawer from the Launchpad and place it where you wish. 
  3082. Note that the drawer will disappear if the Launchpad is minimized or closed. 
  3083.  
  3084.       1. Open the desired drawer. 
  3085.       2. Drag the drawer to the desired location using either mouse button 1 or 
  3086.          mouse button 2. 
  3087.       3. To retrieve the drawer, just close the drawer as usual. 
  3088.  
  3089.  
  3090. ΓòÉΓòÉΓòÉ 7.9. Opening the Settings Notebook ΓòÉΓòÉΓòÉ
  3091.  
  3092. Warp 
  3093.  
  3094. A quick method of opening the Settings notebook for an object: 
  3095.  
  3096.       1. Highlight the desired object. 
  3097.       2. Hold the Alt key. 
  3098.       3. Double click on the object with mouse button 1. 
  3099.  
  3100.      Related subject(s): 
  3101.  
  3102.      Γûá Closing the parent folder when opening an object. 
  3103.      Γûá Opening a windowed command line in the background 
  3104.  
  3105.  
  3106. ΓòÉΓòÉΓòÉ 7.10. Closing the parent folder when opening an object. ΓòÉΓòÉΓòÉ
  3107.  
  3108. Warp 
  3109.  
  3110. You can automatically close the parent folder when opening an object: 
  3111.  
  3112.       1. Highlight the desired object. 
  3113.       2. Hold the Shift key. 
  3114.       3. Double click on the desired object with mouse button 1. 
  3115.  
  3116.      Related subject(s): 
  3117.  
  3118.      Γûá Opening the Settings notebook 
  3119.      Γûá Opening a windowed command line in the background 
  3120.      Γûá Closing parent folders automatically 
  3121.  
  3122.  
  3123. ΓòÉΓòÉΓòÉ 7.11. Removing the Launchpad permanently ΓòÉΓòÉΓòÉ
  3124.  
  3125. Warp 
  3126.  
  3127. To remove the Launchpad permanently from your system, drag the Launchpad object 
  3128. to your Shredder.  Then, remove the word LAUNCHPAD from the SET AUTOSTART line 
  3129. in your CONFIG.SYS file. 
  3130.  
  3131. Related subject(s): 
  3132.  
  3133.      Γûá Recovering a deleted Launchpad 
  3134.  
  3135.  
  3136. ΓòÉΓòÉΓòÉ 7.12. Editing animated folder icons ΓòÉΓòÉΓòÉ
  3137.  
  3138.  
  3139. ΓòÉΓòÉΓòÉ <hidden> Animation icon ΓòÉΓòÉΓòÉ
  3140.  
  3141. Warp 
  3142.  
  3143. To edit the animated folder icon: 
  3144.  
  3145.       1. Open the Settings notebook for the desired folder. 
  3146.       2. Click on the General tab. 
  3147.       3. Click on the right arrow in the lower right corner of the page. 
  3148.       4. Edit and save icon as usual, or change icon as usual. 
  3149.  
  3150.  
  3151. ΓòÉΓòÉΓòÉ <hidden> Animation icon page ΓòÉΓòÉΓòÉ
  3152.  
  3153. Animation icon page of Settings notebook. 
  3154.  
  3155.  
  3156. ΓòÉΓòÉΓòÉ 7.13. Bringing the Launchpad to the top ΓòÉΓòÉΓòÉ
  3157.  
  3158. contributed by Jack Tan 
  3159.  
  3160. Warp 
  3161.  
  3162. You might know that double-clicking with mouse button 1 on the OS/2 desktop 
  3163. will open the Launchpad, but double-clicking on the desktop is also useful for 
  3164. raising the Launchpad to the top if it is covered by other windows. 
  3165.  
  3166.  
  3167. ΓòÉΓòÉΓòÉ 7.14. Closing parent folders automatically ΓòÉΓòÉΓòÉ
  3168.  
  3169. Warp 
  3170.  
  3171. You can set all or some parent folders to close automatically when opening a 
  3172. subfolder or all objects. 
  3173.  
  3174. To set parent folders to close automatically system-wide: 
  3175.  
  3176.       1. Open the System object.  It should be located in the System Setup 
  3177.          folder. 
  3178.       2. Click on the Window tab. 
  3179.       3. Click once on the right arrow in the lower right hand corner of the 
  3180.          page. 
  3181.       4. Under "Folder Automatic Close," choose either "Subfolders only" or 
  3182.          "All Objects." 
  3183.  
  3184.      Individual folders' automatic closure settings can be changed in the same 
  3185.      manner through their individual Settings notebooks. 
  3186.  
  3187.      Related subject(s): 
  3188.  
  3189.      Γûá Closing the parent folder when opening an object 
  3190.  
  3191.  
  3192. ΓòÉΓòÉΓòÉ 7.15. Setting default folder appearance ΓòÉΓòÉΓòÉ
  3193.  
  3194.  
  3195. ΓòÉΓòÉΓòÉ <hidden> Default appearance page ΓòÉΓòÉΓòÉ
  3196.  
  3197. Page for setting default folder appearance. 
  3198.  
  3199.  
  3200. ΓòÉΓòÉΓòÉ <hidden> Default appearance page ΓòÉΓòÉΓòÉ
  3201.  
  3202. Warp 
  3203.  
  3204. You can determine whether the folders on your system will default to icon, 
  3205. tree, or details view: 
  3206.  
  3207.       1. Open the System object.  It should be located in the System Setup 
  3208.          folder. 
  3209.       2. Click on the Window tab. 
  3210.       3. Click twice on the right arrow in the lower right hand corner of the 
  3211.          page. You should be on page 3 of the Window tab. 
  3212.       4. Select Icon, Tree, or Details. 
  3213.       5. Close the System object. 
  3214.  
  3215.  
  3216. ΓòÉΓòÉΓòÉ 7.16. Customizing the Launchpad ΓòÉΓòÉΓòÉ
  3217.  
  3218.  
  3219. ΓòÉΓòÉΓòÉ <hidden> Launchpad options ΓòÉΓòÉΓòÉ
  3220.  
  3221. Warp 
  3222.  
  3223. The Launchpad can be customized to your taste.: 
  3224.  
  3225.       1. Click on an open area (no buttons) of the Launchpad with mouse button 
  3226.          2 to bring up its popup menu. 
  3227.       2. Choose Settings to open the Settings notebook. 
  3228.       3. Pages 1 and 2 of the Options tab contain several different options 
  3229.          which change the appearance of the Launchpad.  Choose the options you 
  3230.          desire. 
  3231.       4. Close the Settings notebook. 
  3232.  
  3233.  
  3234. ΓòÉΓòÉΓòÉ <hidden> Launchpad options ΓòÉΓòÉΓòÉ
  3235.  
  3236. Second page of Launchpad options. 
  3237.  
  3238.  
  3239. ΓòÉΓòÉΓòÉ 7.17. Command Line ΓòÉΓòÉΓòÉ
  3240.  
  3241. This section covers Command Line tips for OS/2 Warp. 
  3242.  
  3243. Topics in this section: 
  3244.  
  3245.      Γûá Obtaining information about your hardware 
  3246.      Γûá Setting video modes 
  3247.  
  3248.  
  3249. ΓòÉΓòÉΓòÉ 7.18. Obtaining information about your hardware ΓòÉΓòÉΓòÉ
  3250.  
  3251. Warp 
  3252.  
  3253. To obtain extensive information about your hardware, use the RMVIEW command at 
  3254. an OS/2 command prompt. 
  3255.  
  3256. RMVIEW /? 
  3257.  
  3258. will provide a list of the different command line switches which can be used 
  3259. with RMVIEW. 
  3260.  
  3261.  
  3262. ΓòÉΓòÉΓòÉ 7.19. Setting video modes in a command line window ΓòÉΓòÉΓòÉ
  3263.  
  3264. contributed by Jack Tan 
  3265.  
  3266. Warp 
  3267.  
  3268. In previous versions of OS/2, you could not specify non-standard column and row 
  3269. sizes in windowed command lines.  In OS/2 Warp, non-standard sizes can be 
  3270. specified.  Just use the OS/2 MODE command: 
  3271.  
  3272. MODE <columns>,<rows> 
  3273.  
  3274. where <columns> is the number of columns and <rows> is the number of rows 
  3275.  
  3276. Related subject(s): 
  3277.  
  3278.      Γûá Creating a scroll buffer 
  3279.      Γûá Resizing a command line window permanently 
  3280.  
  3281.  
  3282. ΓòÉΓòÉΓòÉ 7.20. BonusPak ΓòÉΓòÉΓòÉ
  3283.  
  3284. This section covers BonusPak tips for OS/2 Warp. 
  3285.  
  3286. Topics in this section: 
  3287.  
  3288. This area needs your favorite BonusPak tips and tricks! 
  3289.  
  3290.  
  3291. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3292.  
  3293. /* A "poor-man's" CD player for OS/2 using REXX */
  3294. /* Xavier Caballe - December 1993               */
  3295.  
  3296. /* Initialize MCIAPI */
  3297. call RxFuncAdd 'mciRxInit', 'MCIAPI', 'mciRxInit';
  3298. call mciRxInit;
  3299.  
  3300. /* Initialize variables */
  3301. A = 0;
  3302. P = 0;
  3303.  
  3304. /* Open a CD for subsequent manipulation */
  3305. Ordre = 'open cdaudio01 alias cederom wait';
  3306. call Executa;
  3307. say '';
  3308.  
  3309. /* Get the number of tracks on the disk */
  3310. Ordre = 'status cederom number of tracks wait';
  3311. call Executa;
  3312. say 'Songs on the CD disk:' RetStr;
  3313. Cancons = RetStr;
  3314.  
  3315. /* Get the beginning of each track */
  3316. do until A = Cancons
  3317.    A = A + 1;
  3318.    Ordre = 'status cederom position track 'A' wait';
  3319.    call Executa;
  3320.    say 'The track number 'A' begins at:' RetStr;
  3321.    P.A = RetStr;
  3322. end;
  3323.  
  3324. /* Get the last track */
  3325. Ordre = 'status cederom length wait';
  3326. call Executa;
  3327. say 'Last track on the CD disk:' RetStr;
  3328. UltimaPista = RetStr;
  3329.  
  3330. /* Data input */
  3331. Repetir:
  3332. say '';
  3333. say 'Which song do you wish? ';
  3334. pull Numero;
  3335. NumeroPlus1 = Numero + 1;
  3336. CanconsPlus1 = Cancons + 1;
  3337. P.CanconsPlus1 = UltimaPista;
  3338. if Numero < 1 | Numero > Cancons then do;
  3339.    say 'Wrong answer.';
  3340.    Signal Repetir;
  3341. end;
  3342.  
  3343. /* Play the selected song */
  3344. Ordre = 'play cederom from 'P.Numero' to 'P.NumeroPlus1' wait';
  3345. call Executa;
  3346.  
  3347. /* That's all, folks! */
  3348. Ordre = 'close cederom';
  3349. call Executa;
  3350. call mciRxExit;
  3351. exit;
  3352.  
  3353. /* Send a MCI command string to MMPM/2 */
  3354. Executa:
  3355. rc = mciRxSendString(Ordre, 'RetStr', '0', '0');
  3356. if (rc <> 0) then do
  3357.    say "Error No = " Ordre;
  3358.    say 'Code No. = ' rc;
  3359.    GetErr = mciRxGetErrorString(rc, 'ErrStVar');
  3360.    say 'Message  =' ErrStVar;
  3361. end;
  3362. return
  3363.  
  3364.  
  3365. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3366.  
  3367.  
  3368. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3369.  
  3370. /* OPEN.CMD - opens a folder */
  3371. call RxFuncAdd "SysSetObjectData", "RexxUtil", "SysSetObjectData"
  3372. folderpath="<drive>:\<path>"
  3373. call SysSetObjectData folderpath, "OPEN=DEFAULT";
  3374. exit
  3375. /* where <drive> is the letter of the drive on which the subdirectory
  3376.                  corresponding to the folder is located
  3377.          <path>  is the path to the subdirectory corresponding to the folder */
  3378.  
  3379.  
  3380. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3381.  
  3382. /* BITMAP.CMD:  change the desktop bitmap at regular intervals
  3383.    Syntax:  BITMAP.CMD <interval in seconds> [/?]
  3384.    Copyright 1994 Jack Tan
  3385. */
  3386. /* Check the interval value */
  3387.      arg interval
  3388.      if interval=="" | WORDPOS("/?", interval)<>0 then do
  3389.           SAY
  3390.           SAY "   BITMAP.CMD:  randomly change the desktop bitmap at",
  3391.               "periodic intervals"
  3392.           SAY "   Syntax:  BITMAP.CMD <interval in seconds> [/?]"
  3393.           SAY "   <interval> is the interval between bitmap changes,",
  3394.               "in seconds"
  3395.           exit 1
  3396.      end  /* Do */
  3397.      else if DATATYPE(interval, "Whole Number")<>1 then
  3398.           call badNumber interval
  3399.      else if interval<=0 then
  3400.           call badNumber interval
  3401. /* Prepare for the changes */
  3402.      signal on halt name exitProgram
  3403.      BootDrive  = VALUE("BOOTDRIVE", , "OS2ENVIRONMENT")
  3404.      BitmapSpec = BootDrive || "\OS2\BITMAP\*.BMP"
  3405.      call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs"
  3406.      call SysLoadFuncs
  3407.      SAY "BITMAP.CMD:  Hit Ctrl+Break to exit"
  3408. /* Execute the change */
  3409.      do forever
  3410.           call SysFileTree BitmapSpec, "bitmaps", "FO"
  3411.           if bitmaps.0>0 then do
  3412.                i = RANDOM(1, bitmaps.0)
  3413.                call SysSetObjectData "<WP_DESKTOP>", "BACKGROUND="bitmaps.i";"
  3414.           end  /* Do */
  3415.           call SysSleep interval
  3416.      end /* Do */
  3417. exitProgram:
  3418.      SAY "             Successfully exited"
  3419.      exit 0
  3420. badNumber: procedure
  3421.      SAY "Bad interval value '"ARG(1)"'"
  3422.      exit 2
  3423.  
  3424.  
  3425. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3426.  
  3427. /* SetPtr.CMD -- set/remove a custom mouse pointer.
  3428.    Copyright 11 January 1994 by Jack Tan
  3429.    This is based on Dann Lunsford's SETMOUSE.CMD
  3430.        SETMOUSE.CMD by Dann Lunsford
  3431.        Short procedure to set mouse pointer to contents of specified .PTR file
  3432.        This file is in the public domain, but I'd appreciate it greatly if you
  3433.        would leave this notice in...     Author:  Dann Lunsford
  3434.                                                   Vortex BBS (1:203/726)
  3435.                                                   13-Aug-1993
  3436.    Be careful about adding/removing lines to this script -- it uses the
  3437.    SOURCELINE function, which is source-dependent.
  3438.  
  3439.    Syntax:  SetPtr.CMD <filename> [pointer index] [/X] [/L] [/?]
  3440.  
  3441.       <filename> is the name of the file containing the pointer.
  3442.          If <filename> does not exist, <filename>.PTR is searched.
  3443.  
  3444.       [pointer index] is an optional parameter.  It defaults to 1.
  3445.         Index  Pointer                       Default OS/2 icon
  3446.         ------------------------------------------------------------------
  3447.           1    normal OS/2 pointer           arrow
  3448.           2    text insertion                I-beam
  3449.           3    wait cursor                   clock
  3450.           4    size pointer                  (no icon)
  3451.           5    move pointer                  four-way arrow
  3452.           6    resize (NW to SE)             diagonal double arrow (\)
  3453.           7    resize (NE to SW)             diagonal double arrow (/)
  3454.           8    resize (horizontal)           horizontal double arrow (-)
  3455.           9    resize (vertical)             vertical double arrow (|)
  3456.       /X (optional) indicates that the custom pointer should be removed.
  3457.       /L (optional) lists currently installed pointers.
  3458.       /? (optional) displays this help.
  3459. */
  3460.  
  3461. /* Get arguments */
  3462.    PARSE ARG arguments
  3463.    bigArgs = TRANSLATE(arguments)
  3464. /* Show help */
  3465.    if arguments=='' | WORDPOS("/?", arguments)<>0 then do
  3466.       do i=12 to 33
  3467.          SAY SOURCELINE(i)
  3468.       end /* do */
  3469.       EXIT(1)
  3470.    end  /* Do */
  3471.  /* Setup the REXX function */
  3472.    call RxFuncAdd 'SysIni', 'RexxUtil', 'SysIni'
  3473.    Inifile  = 'User'
  3474.    App      = 'PM_SysPointer'
  3475. /* Show current pointers */
  3476.    if WORDPOS('/L', bigArgs)<>0 then do
  3477.       result = SysIni(Inifile, App, 'All:', 'list')
  3478.       if list.0<1 then
  3479.          SAY "No custom pointers have been set."
  3480.       else do
  3481.          SAY "Current custom pointers:"
  3482.          do  i=1 to 9
  3483.             result = SysIni(Inifile, App, i)
  3484.             if result<>"ERROR:" then
  3485.                SAY "   ("i")" LEFT(pointerDesc(i), 20),
  3486.                   SUBSTR(result, 5, LENGTH(result)-5)
  3487.          end  /* Do */
  3488.       end  /* Do */
  3489.       EXIT(0)
  3490.    end  /* Do */
  3491. /* Look for a '/X' */
  3492.    xPos = WORDPOS('/X', bigArgs)
  3493.    if xPos<>0 then do
  3494.       removePtr = 1
  3495.       arguments = DELWORD(arguments, xPos, 1)
  3496.    end  /* Do */
  3497.    else
  3498.       removePtr = 0
  3499. /* Look for a pointer index */
  3500.    pointerIndex = 1
  3501.    if WORDS(arguments)>1 | removePtr then do
  3502.       /* Last argument should be the pointer index, since any '/X'
  3503.          has already been removed.  If the last argument does not fit
  3504.          the requirements for a pointer index, assume that it is part
  3505.          of the filename.
  3506.       */
  3507.       guessIndex = WORD(arguments, WORDS(arguments))
  3508.       if LENGTH(guessIndex)==1 & VERIFY(guessIndex, '123456789')==0 then do
  3509.          arguments = DELWORD(arguments, WORDS(arguments))
  3510.          pointerIndex = guessIndex
  3511.       end /* Do */
  3512.    end  /* Do */
  3513. /* Set the filename */
  3514.    if removePtr<>1 then do
  3515.       arguments = STRIP(arguments)
  3516.       if SUBSTR(arguments, 1, 1)=='"' then
  3517.          arguments = DELSTR(arguments, 1, 1)
  3518.       if SUBSTR(arguments, LENGTH(arguments))=='"' then
  3519.          arguments = DELSTR(arguments, LENGTH(arguments))
  3520.       filename = STREAM(arguments, 'Command', 'Query Exists')
  3521.       if filename=='' then do
  3522.          /* Try again use .PTR extension */
  3523.          filename = STREAM(arguments".PTR", 'Command', 'Query Exists')
  3524.          if filename=='' then do
  3525.             SAY "Cannot find file:  '"arguments"'"
  3526.             EXIT(3)
  3527.          end  /* Do */
  3528.       end  /* Do */
  3529.    end  /* Do */
  3530. /* Execute the change */
  3531.    if removePtr then
  3532.       result = SysIni(Inifile, App, pointerIndex, 'DELETE:')
  3533.    else do
  3534.       Keyvalue = x2c('01000000')||filename||x2c('00')
  3535.       result = SysIni(Inifile, App, pointerIndex, Keyvalue)
  3536.    end  /* Do */
  3537. /* If the change failed... */
  3538.    if result<>"" then do
  3539.       returnCode = 3
  3540.       if removePtr then
  3541.          SAY "Unable to delete the pointer"
  3542.       else
  3543.          SAY "Unable to set the pointer"
  3544.    end  /* Do */
  3545. /* ... else print 'successful' message */
  3546.    else do
  3547.       returnCode = 0
  3548.       if removePtr then
  3549.          SAY "Pointer successfully removed"
  3550.       else
  3551.          SAY "The new pointer will become effective at the next system boot."
  3552.    end  /* Do */
  3553. /* Give some more information */
  3554.    if removePtr<>1 then
  3555.       SAY "   File    = "filename
  3556.    SAY "   Pointer = "pointerDesc(pointerIndex) "("pointerIndex")"
  3557. EXIT(returnCode)
  3558. pointerDesc: procedure
  3559.    return STRIP(SUBSTR(SOURCELINE(20+ARG(1)), 15, 30))
  3560. /* End of REXX script */
  3561.  
  3562.  
  3563. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3564.  
  3565. /* shredder.cmd - REXX script to recreate the Shredder */
  3566. call RxFuncAdd "SysCreateObject", "RexxUtil", "SysCreateObject"
  3567. class="WPShredder"
  3568. title="Shredder"
  3569. location="<WP_DESKTOP>"
  3570. settings="OBJECTID=<WP_SHRED>;"
  3571. settings=settings||"ICONPOS=90 8;"
  3572.  
  3573. call SysCreateObject class, title, location, settings, "REPLACE"
  3574. exit
  3575.  
  3576.  
  3577. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3578.  
  3579. /* This procedure will change the long name of   */
  3580. /* a file without changing the actual file name. */
  3581. /* Usage:                                        */
  3582. /*    PUTLONG myfil.ext "Long File Name"         */
  3583. /* Written by Bill Parrill                       */
  3584. /* bparrill@vnet.ibm.com                         */
  3585.  
  3586. call RxFuncAdd 'SysPutEA', 'RexxUtil', 'SysPutEA'
  3587.  
  3588. parse arg FileName '"'LongName'"'
  3589.  
  3590. if FileName = '' then DO
  3591.    say 'Please specify a file name!'
  3592.    exit 1
  3593.    end  /* Do */
  3594.  
  3595. if LongName = '' then DO
  3596.    say 'Please specify a long name!'
  3597.    exit 2
  3598.    end  /* Do */
  3599.  
  3600. say 'File Name: 'FileName
  3601. say 'Long Name: 'LongName
  3602. RetCode = SysPutEA(FileName, '.LONGNAME',,
  3603.                    'FDFF'x||D2C(LENGTH(LongName))||'00'x||LongName)
  3604. say 'Return Code: 'RetCode
  3605.  
  3606. EXIT
  3607.  
  3608.  
  3609. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3610.  
  3611. /* setfont.cmd                          */
  3612. /* Usage: SETFONT <font size/type>      */
  3613. /* where <font size/type> is the        */
  3614. /* point size and font desired in the   */
  3615. /* format size.type (e.g., 8.Helv)      */
  3616. call RxFuncAdd "SysIni", "RexxUtil", "SysIni"
  3617. parse arg Font
  3618. IniFile = "USER"
  3619. AppName = "PM_SystemFonts"
  3620. KeyName = "DefaultFont"
  3621. call SysIni IniFile, AppName, KeyName, Font||x2c(0)
  3622. say Result
  3623. exit
  3624.  
  3625.  
  3626. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3627.  
  3628. /* large.cmd - increase cursor size      */
  3629. /* If you want to return to the standard */
  3630. /* mouse cursor, change '1' to '2' in    */
  3631. /* the "val" variable.                   */
  3632.  
  3633. call RxFuncAdd "SysIni", "RexxUtil", "SysIni"
  3634. inifile='USER'
  3635. app='PM_IBMVGA'
  3636. key='CURSOR_SIZE'
  3637. val='1'
  3638. call SysIni inifile, app, key, val
  3639. say Result
  3640. exit
  3641.  
  3642.  
  3643. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3644.  
  3645. /* OpenPar.cmd  4 January 1993
  3646.  * REXX script to open parent folder from a folder's menu in OS/2 2.x
  3647.  * Written by Brian B. Mathewson   bbm@r2d2.eeap.cwru.edu
  3648. */
  3649. Arg drivedir
  3650. parent=filespec(drive,drivedir)filespec(path,drivedir)
  3651. parent=left(parent,length(parent)-1)
  3652. Call RxFuncAdd 'SysSetObjectData', 'RexxUtil', 'SysSetObjectData'
  3653. Call SysSetObjectData parent, 'OPEN=DEFAULT' /* opens parent folder */
  3654. Call SysSetObjectData parent, 'OPEN=DEFAULT' /* brings it to foreground */
  3655. Exit
  3656.  
  3657.  
  3658. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3659.  
  3660. /* CHKDRIVE.CMD - check drive status */
  3661. '@echo off'
  3662. parse arg drive_letter;
  3663. drive_letter=delstr(drive_letter,2);
  3664. if drive_letter=' ' then do
  3665.     say "CHKDRIVE.CMD - check status of drive"
  3666.     say "USAGE: CHKDRIVE.CMD <drive>"
  3667.     say "where <drive> is the letter of drive you wish to check"
  3668.     exit
  3669.     end
  3670. else
  3671. signal ON NOTREADY name NOT_READY
  3672. call STREAM drive_letter || ':*', 'D'
  3673. say "Drive Ready"
  3674. exit
  3675. NOT_READY:
  3676. say "Drive Not Ready"
  3677. return
  3678.  
  3679.  
  3680. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3681.  
  3682. /* REXX script to shutdown the PC in 5 minutes
  3683.    Author: David Matocha            david.matocha@yob.sccsi.com
  3684.    If you make any improvements, please send me a copy.
  3685.    Version 930316.6                            */
  3686. say ' '
  3687. say 'Please close all running applications.'
  3688. say ' '
  3689. say 'WARNING: The Computer will shutdown in 5 minutes!'
  3690. beep(500, 1000);
  3691. CALL SysSleep 14;
  3692. beep(475, 1000);
  3693. CALL SysSleep 14;
  3694. beep(450, 1000);
  3695. CALL SysSleep 14;
  3696. beep(425, 1000);
  3697. CALL SysSleep 14;
  3698. say ' '
  3699. say 'WARNING: The Computer will shutdown in 4 minutes!'
  3700. beep(400, 1000);
  3701. CALL SysSleep 14;
  3702. beep(375, 1000);
  3703. CALL SysSleep 14;
  3704. beep(350, 1000);
  3705. CALL SysSleep 14;
  3706. beep(325, 1000);
  3707. CALL SysSleep 14;
  3708. say ' '
  3709. say 'WARNING: The Computer will shutdown in 3 minutes!'
  3710. beep(300, 1000);
  3711. CALL SysSleep 14;
  3712. beep(275, 1000);
  3713. CALL SysSleep 14;
  3714. beep(250, 1000);
  3715. CALL SysSleep 14;
  3716. beep(225, 1000);
  3717. CALL SysSleep 14;
  3718. say ' '
  3719. say 'WARNING: The Computer will shutdown in 2 minutes!'
  3720. beep(200, 1000);
  3721. CALL SysSleep 14;
  3722. beep(175, 1000);
  3723. CALL SysSleep 14;
  3724. beep(150, 1000);
  3725. CALL SysSleep 14;
  3726. beep(125, 1000);
  3727. CALL SysSleep 14;
  3728. say ' '
  3729. say 'WARNING: The Computer will shutdown in 1 minute!'
  3730. beep(100, 1000);
  3731. CALL SysSleep 14;
  3732. beep(500, 1000);
  3733. CALL SysSleep 14;
  3734. beep(1000, 1000);
  3735. CALL SysSleep 14;
  3736. beep(1500, 1000);
  3737. CALL SysSleep 14;
  3738.  'setboot /T:NO'
  3739.  'setboot /B'
  3740. exit
  3741.  
  3742.  
  3743. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3744.  
  3745. /* sleep.cmd - make system sleep for specified # of seconds */
  3746. /* syntax: sleep <time>, where <time> is time in seconds */
  3747. call RxFuncAdd "SysSleep", "RexxUtil", "SysSleep"
  3748. parse arg sleeptime;
  3749. sleeptime=strip(sleeptime)
  3750. if sleeptime= '' then do
  3751.    say "SLEEP.CMD - make system sleep for specified # of seconds"
  3752.    say "Usage: sleep <time>"
  3753.    say "       where <time> is time in seconds"
  3754.    exit
  3755.    end
  3756. else
  3757. call SysSleep sleeptime
  3758. exit
  3759.  
  3760.  
  3761. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3762.  
  3763. /* eval by L Kuru 25.11.1993 */
  3764. arg params;
  3765. interpret say params;
  3766. exit
  3767.  
  3768.  
  3769. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  3770.  
  3771. /* Start a DOS session with the maximum free memory   */
  3772. /* Xavier Caballe - December 1993                     */
  3773. /* code added to make DOS session open in foreground  */
  3774. /* M.Woo - 6 Jan 94                                   */
  3775.  
  3776. CALL RxFuncAdd SysLoadFuncs, RexxUtil,SysLoadFuncs;
  3777. CALL SysLoadFuncs;
  3778.  
  3779. ClassName='WPProgram';        /* Object type             */
  3780. Title='Big DOS';              /* Window title            */
  3781. Program='EXENAME=*;';         /* Program to run          */
  3782. Location='<WP_NOWHERE>';      /* Object location         */
  3783. Type='PROGTYPE=VDM;';         /* DOS full screen session */
  3784. StartUp='STARTUPDIR=C:\;'     /* Working directory       */
  3785. Objectid='OBJECTID=<BIGDOS>;' /* Object ID               */
  3786.  
  3787. /* Session Settings */
  3788.  
  3789. /* The Video_Mode_Restriction value *MUST BE* fifteen characters long */
  3790.  
  3791. Settings='SET VIDEO_MODE_RESTRICTION=CGA            ;'
  3792. Settings=Settings||'SET DOS_UMB=1;'
  3793. Settings=Settings||'SET DOS_HIGH=1;'
  3794.  
  3795. Open='OPEN=DEFAULT;'       /* Open default view       */
  3796.  
  3797. call SysCreateObject classname, title, location,,
  3798.     program||type||startup||objectid||settings||open, 'REPLACE'
  3799. call SysSetObjectData '<BIGDOS>', open
  3800. Return
  3801.