home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / mkwin929.zip / README.TXT < prev    next >
Text File  |  1995-09-24  |  92KB  |  1,597 lines

  1.                        MKWINOS/2 - Make OS/2 Desktop Objects
  2.                          from Your Windows Program Manager
  3.  
  4.                      Copyright (c) 1995 by C F S Nevada, Inc.
  5.  
  6.  
  7.                    If you have been provided with a complimen-
  8.                    tary key to enable this program, that key is
  9.                    personal to you and must not be given to
  10.                    others. Please don't abuse it!
  11.  
  12.                    Note: This document is formatted so that it
  13.                    can be printed using the following command:
  14.  
  15.                         copy readme!.txt prn
  16.  
  17.  
  18.  
  19.                                  Table of Contents
  20.  
  21.  
  22.      1    Introduction . . . . . . . . . . . . . . . . . . . . . . . . . .   2
  23.           1.1 OS/2 Warp Blue Box vs. Red Box and MKWINOS/2   . . . . . . .   2
  24.           1.2 How MKWINOS/2 differs from Warp's Add Programs   . . . . . .   2
  25.  
  26.      2    Installation & Execution . . . . . . . . . . . . . . . . . . . .   3
  27.           2.1 Quick Start Summary  . . . . . . . . . . . . . . . . . . . .   4
  28.           2.2 Altering MKWINRUN.CMD  . . . . . . . . . . . . . . . . . . .   5
  29.           2.3 Adjusting folder window positions  . . . . . . . . . . . . .   5
  30.  
  31.      3    Contents of the MKWIN directory  . . . . . . . . . . . . . . . .   6
  32.           3.1 The MKWINOS/2 files  . . . . . . . . . . . . . . . . . . . .   6
  33.           3.2 The MKWINOS2.KEY File  . . . . . . . . . . . . . . . . . . .   8
  34.           3.3 Controlling Windows VDM Settings   . . . . . . . . . . . . .   8
  35.           3.4 OS/2 Folder Presentation Style   . . . . . . . . . . . . . .   9
  36.  
  37.      4    MKWINRUN.CMD Structure . . . . . . . . . . . . . . . . . . . . .   9
  38.           4.1 Startup and banner initialization  . . . . . . . . . . . . .   9
  39.           4.2 Housekeeping   . . . . . . . . . . . . . . . . . . . . . . .   9
  40.           4.3 Trap processing routine  . . . . . . . . . . . . . . . . . .  10
  41.           4.4 Folder & Program creation  . . . . . . . . . . . . . . . . .  10
  42.           4.5 Common routines  . . . . . . . . . . . . . . . . . . . . . .  10
  43.           4.6 Sequence numbering   . . . . . . . . . . . . . . . . . . . .  11
  44.  
  45.      5    MKWINOS/2 Error Messages . . . . . . . . . . . . . . . . . . . .  11
  46.  
  47.      6    Windows file processing - Full Pack only . . . . . . . . . . . .  13
  48.  
  49.      7    Enabling MKWINOS/2 . . . . . . . . . . . . . . . . . . . . . . .  13
  50.           7.1 Obtaining a MKWINOS/2 key  . . . . . . . . . . . . . . . . .  13
  51.           7.2 Updates and service  . . . . . . . . . . . . . . . . . . . .  14
  52.  
  53.      Appendix A  . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  15
  54.  
  55.  
  56.  
  57.  
  58.      MKWINOS/2 Version 1.0                                              Page 1
  59.      1    Introduction
  60.           ------------
  61.  
  62.           MKWINOS/2 is a commercial OS/2 program that creates the equivalent
  63.      of your Windows Program Manager as an OS/2 Desktop folder named "Program
  64.      Manager Desktop Equivalent". Your Windows groups and the program entities
  65.      within each group are used to create OS/2 folders and program objects
  66.      respectively within the Program Manager Desktop Equivalent folder.
  67.      MKWINOS/2 is equally effective with OS/2 Warp or OS/2 2.1 and 2.11.
  68.  
  69.           The MKWINOS/2 main program (MKWINOS2.CMD) creates a REXX program
  70.      (MKWINRUN.CMD) which you run to build the OS/2 objects. You can alter the
  71.      contents of MKWINRUN.CMD and the program can be rerun as desired. 
  72.  
  73.           Each OS/2 folder (the Desktop folder along with the group folders)
  74.      will be the same size and in the same relative screen position as they
  75.      exist on your full screen Windows display. The OS/2 folders created from
  76.      the Windows program groups will contain the same Windows and DOS programs
  77.      as the originals. Each program is setup as a Win-OS/2 object.
  78.  
  79.           Each program object created by MKWINOS/2 uses the default settings
  80.      you have established with the WIN-OS/2 Setup option found in your OS/2
  81.      System Setup settings notebook. MKWINOS/2 then adjusts these settings for
  82.      the particular program with the settings found in MKWINOS2.DBX (an
  83.      updated version of the DATABASE.TXT file provided with OS/2).
  84.  
  85.           1.1 OS/2 Warp Blue Box vs. Red Box and MKWINOS/2
  86.  
  87.               If you have OS/2 for Windows or OS/2 Warp (Red box) then
  88.           MKWINOS/2 creates OS/2 Desktop objects to mirror your Windows
  89.           Program Manager - nothing in your Windows directory is altered.
  90.  
  91.               MKWINOS/2 performs additional functions for OS/2 full pack (FP)
  92.           systems (including Warp "Blue box", Warp Connect, Warp Server, OS/2
  93.           2.1, and 2.11) with WIN-OS2 support. Control information and files
  94.           from your Windows configuration is "merged" into the OS/2 \WINOS2
  95.           files and directories. Hence, the program MKWINBAK.CMD is provided
  96.           to create a backup repository of your \WINOS2 directory and all
  97.           subordinate directories. A procedural .CMD file (R-WINOS2.CMD) is
  98.           dynamically created to allow restoration of the WINOS2 files and
  99.           directories in the event that it is necessary.
  100.  
  101.  
  102.           1.2 How MKWINOS/2 differs from Warp's Add Programs
  103.  
  104.               MKWINOS/2 is significantly different from the Add Programs (or
  105.           OS/2 2.1 Migrate Programs) facility in OS/2 since it creates program
  106.           objects for just those applications that you had setup under
  107.           Windows. MKWINOS/2 does not search your drives looking for possible
  108.           candidates. Any previously created OS/2 Windows-related objects
  109.           remain unchanged and can be removed at your discretion. Beyond
  110.           simply creating OS/2 objects, MKWINOS/2 merges Windows files and
  111.           properties into WINOS2 on an OS/2 fullpack system. The backup
  112.           facility described above is provided to allow restoration of the
  113.           WINOS2 files and directories in the event that it is necessary.
  114.  
  115.      MKWINOS/2 Version 1.0                                              Page 2               Windows group folders that are open when MKWINOS/2 is run
  116.           receive special attention on Warp. An option is provided at the end
  117.           of MKWINRUN to shadow these folder and program objects to the OS/2
  118.           Startup folder. A positive user reply is required to add these
  119.           objects to the OS/2 Startup folder; they are also immediately opened
  120.           on the OS/2 system. In either case, the Program Manager Desktop
  121.           Equivalent folder is opened when MKWINRUN completes.
  122.  
  123.               MKWINOS/2 has an optional debugging log facility. The debugging
  124.           facility is enabled for the initial release of MKWINOS/2. In
  125.           subsequent releases this debugging facility would be activated by
  126.           the presence of either -d or /d on the command line. Enabling the
  127.           debugging facility, intended primarily for support use, results in
  128.           the file MKWINOS2.LOG being created. Previous MKWINOS2.LOG files are
  129.           overwritten.
  130.  
  131.  
  132.      2    Installation & Execution
  133.           ------------------------
  134.  
  135.           If you downloaded this program from a software repository the
  136.      program is a demo version, not Shareware, that has been restricted to
  137.      processing a limited number of Windows group folders. Only the programs
  138.      within the Accessories group, the Main group, and the Startup group will
  139.      be processed by the un-enabled, demo version. MKWINOS/2 processes all of
  140.      the programs in all of the groups when the demo version is enabled with a
  141.      key. The details for obtaining the key to enable the program appear later
  142.      in this README!.TXT file.
  143.  
  144.           If you received an enabled copy, the .ZIP file contains the file
  145.      MKWINOS2.KEY created just for you, Please do not pass this file or its
  146.      contents on to others as you will be depriving not only the program's
  147.      authors but the sales, distribution, and support organizations of their
  148.      due revenue.
  149.  
  150.           In either case, simply unzip the .ZIP file you received into its own
  151.      directory (the suggested directory name is MKWIN). There is no
  152.      restriction on where this directory resides. After the distribution file
  153.      is unzipped, the program is ready to run. The program name is MKWINOS2
  154.      and it can be run from a full screen or windowed OS/2 command line
  155.      session with the MKWIN (or directory of your choice) as the current
  156.      directory. No changes are necessary to any files or other components on
  157.      your system. (This assumes you have the current directory indication,
  158.      ".;", in your LIBPATH statement.)
  159.  
  160.           Running MKWINOS2 creates a REXX program file named MKWINRUN.CMD in
  161.      the same directory where MKWINOS2.CMD exists. MKWINRUN is the program you
  162.      run to actually build the Windows equivalent objects. MKWINRUN may be
  163.      altered and re-run as frequently as desired. However, we don't anticipate
  164.      that most users will want to change the MKWINRUN program.
  165.  
  166.           The subject Windows system defaults to the Windows directory used by
  167.      your OS/2 System. With OS/2 Red box (OS/2 2.1 for Windows), this is your
  168.      actual Microsoft Windows directory. The subject Windows system for OS/2
  169.      Blue box (OS/2 2.1 Full Pack), is the ?:\OS2\MDOS\WINOS2 directory.
  170.  
  171.  
  172.      MKWINOS/2 Version 1.0                                              Page 3           There are two ways of altering the pointer to the default Windows
  173.      directory. If you have an enabled version of MKWINOS/2, you already have
  174.      a file named MKWINOS2.KEY. If you are running the demo version, it will
  175.      be necessary for you to create an ASCII text file called MKWINOS2.KEY in
  176.      the MKWIN directory. MKWINOS/2 checks the first line of this file to see
  177.      if it contains an enabling key, if you have one. All other data within
  178.      this file is structured in a key word=value format and the position
  179.      within the file, case, and white space is irrelevant. To specify a
  180.      specific Windows directory for MKWINOS/2, add the line:
  181.  
  182.               Windows=path
  183.  
  184.      where path is the drive letter and path of the directory that contains
  185.      the Windows PROGMAN.INI file. Generally, this line will be:
  186.  
  187.               Windows=c:\windows
  188.  
  189.           The other means of specifying an alternate Windows directory is by
  190.      including it as a command line parameter when you run MKWINOS/2. For
  191.      example:
  192.  
  193.               mkwinos2 c:\windows
  194.  
  195.      The command line specification overrides any Windows path stored in the
  196.      MKWINOS2.KEY file.
  197.  
  198.           2.1 Quick Start Summary
  199.  
  200.               1)   Unzip MKWINOS/2 .ZIP file into a directory of your
  201.                    choice - MKWIN suggested. The .ZIP file name is
  202.                    MKWINOS2.ZIP (or MKWINnnn.ZIP for beta or other interim
  203.                    releases).
  204.  
  205.               2)   If you are running a Full Pack version of OS/2 (original
  206.                    OS/2 2.1 or Warp Blue box - including Connect and Server),
  207.                    run MKWINBAK to create a backup of the subdirectories and
  208.                    contents your \OS2\MDOS\WINOS2 directory. (This step is
  209.                    not necessary for OS/2 warp Red box or OS/2 2.1 for
  210.                    Windows since there are no \OS2\MDOS\WINOS2 files to
  211.                    concern yourself with.)
  212.  
  213.               3)   If you have an enabling key, create the file MKWINOS2.KEY
  214.                    in the MKWIN directory with the key value as the first or
  215.                    only line of this file. White space and case is
  216.                    irrelevant.
  217.  
  218.               4)   Run MKWINOS2 to build MKWINRUN.CMD. If you are running a
  219.                    Full Pack system, specify the path to your \WINDOWS
  220.                    directory on the command line. Alternately, you can add
  221.                    the line:
  222.  
  223.                         Windows=path
  224.  
  225.                    to the MKWINOS2.KEY file where path is the drive and path
  226.                    to your Windows directory (probably C:\WINDOWS). 
  227.  
  228.  
  229.      MKWINOS/2 Version 1.0                                              Page 4               5)   Run MKWINRUN to build the Program Manager Desktop
  230.                    Equivalent folder and the OS/2 objects for your Windows
  231.                    group and program folders.
  232.  
  233.           2.2 Altering MKWINRUN.CMD
  234.  
  235.               You may want to alter some of the settings in MKWINRUN.CMD. Two
  236.           settings in particular were created with this in mind:
  237.  
  238.               GBL.icon_view   = "NONGRID"
  239.               GBL.sort_option = "NO"
  240.  
  241.           GBL.icon_view can be changed to either GRID or FLOWED and GBL.sort
  242.           option can be set to YES for Warp.
  243.  
  244.               If any of your Windows program entries point to non-existent
  245.           files (for example, if you have moved then and not updated your
  246.           Program Manager setup), each program setup string contains a TITLE=
  247.           line which appends (path?) to the program title. This allows you to
  248.           search MKWINRUN.CMD for any program objects which fall into this
  249.           category, alter the paths manually and then simply delete the
  250.           program setup string line:
  251.  
  252.               "TITLE=" || program_title || "^(path?);"
  253.  
  254.               These program objects are easily spotted when the group folder
  255.           containing then is opened since the (path?) is appended to the
  256.           program title and occupies a separate line. The number of program
  257.           objects which fall into this category can be found by looking at the
  258.           variable "GBL.unresolved_path_count".
  259.  
  260.           2.3 Adjusting folder window positions
  261.  
  262.               Under some conditions, an OS/2 group folder may open off of the
  263.           screen. This occurs because MKWINOS/2 has to calculate the position
  264.           of the group windows predicated on the relative positions of the
  265.           Windows group windows when Program Manager is maximized.
  266.  
  267.               Any folder whose window opens out of the range of the Desktop
  268.           can be brought into view using the following steps:
  269.  
  270.           1)  Open the group folder in by double clicking MB1.
  271.  
  272.           2)  Open the window list with <Ctrl-Esc> or clicking MB1 & MB2.
  273.  
  274.           3)  Select the folder in the window list and <Alt-F7>. The window
  275.               can then be moved by either mouse movement or the arrow keys on
  276.               the keyboard.
  277.  
  278.               Complete information on the use of <Alt-F7> will be found in
  279.           the general OS/2 help information.
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.      MKWINOS/2 Version 1.0                                              Page 5      3    Contents of the MKWIN directory
  287.           -------------------------------
  288.  
  289.           3.1 The MKWINOS/2 files
  290.  
  291.           The following files, shown here in alphabetical order, are contained
  292.      within the MKWINOS/2 package. They originate in the MKWINOS2.ZIP file or
  293.      are created by MKWINOS/2 programs:
  294.  
  295.               MKWINBAK.CMD        This REXX program has two functions: 1) It
  296.                                   creates a backup copy of the directory
  297.                                   structure and contents of the WINOS2 and
  298.                                   subordinate directories. 2) It creates a
  299.                                   procedural file, R-WINOS2.CMD, which will
  300.                                   restore your WINOS2 directory structure and
  301.                                   contents to its contents when the MKWINBAK
  302.                                   program was run.
  303.  
  304.               MKWINCLS.ICO        The icon associated with the Program Manager
  305.                                   Desktop Equivalent folder when it is closed
  306.                                   (Warp) or always (OS/2 2.1).
  307.  
  308.               MKWINMSD.ICO        MS-DOS program icon.
  309.  
  310.               MKWINOPN.ICO        The icon associated with the Program Manager
  311.                                   Desktop Equivalent folder when it is opened
  312.                                   (Warp only).
  313.  
  314.               MKWINOS2.CMD        The main MKWINOS/2 REXX program which you
  315.                                   run from an OS/2 windowed or full screen
  316.                                   command line.
  317.  
  318.               MKWINOS2.DAT        This file is an internal representation of
  319.                                   the program settings contained in
  320.                                   MKWINOS2.DBX. It is distributed in the
  321.                                   MKWINOS/2 package but is recreated whenever
  322.                                   MKWINOS2.DBX is updated or any program
  323.                                   changes to MKWINOS/2 dictate.
  324.  
  325.               MKWINOS2.DBX        This is an updated copy of the
  326.                                   \OS2\INSTALL\DATABASE.TXT file shipped with
  327.                                   each copy of OS/2. MKWINOS2.DBX can be
  328.                                   updated to include any additional program
  329.                                   settings you wish.
  330.  
  331.               MKWINOS2.FIL        This file is an internal representation of
  332.                                   the file and pathing data contained in
  333.                                   MKWINOS2.DBX. It is distributed in the
  334.                                   MKWINOS/2 package but is recreated whenever
  335.                                   MKWINOS2.DBX is updated or any program
  336.                                   changes to MKWINOS/2 dictate.
  337.  
  338.               MKWINOS2.KEY        This file contains the key to enable
  339.                                   MKWINOS/2 as well as serving as the
  340.                                   repository for any customization you choose
  341.                                   for MKWINOS/2.
  342.  
  343.      MKWINOS/2 Version 1.0                                              Page 6               MKWINOS2.LOG        This log file is created whenever the debug
  344.                                   option is specified for MKWINOS2. It is
  345.                                   intended to assist in any problem diagnosis
  346.                                   with MKWINOS2.
  347.  
  348.               MKWINOS2.PER        The MKWINOS/2 processing routines for an
  349.                                   OS/2 system with Personal REXX from Quercus
  350.                                   Systems.
  351.  
  352.               MKWINOS2.RPT        A report file created by running MKWINOS/2.
  353.                                   This file contains a summary of the tasks
  354.                                   performed when MKWINOS/2 is run. It also
  355.                                   contains information about any erroneous
  356.                                   conditions MKWINOS/2 found. The report file
  357.                                   contains the following groups of
  358.                                   information:
  359.  
  360.                                   1)  The contents of the MKWINOS2.KEY file.
  361.  
  362.                                   2)  Any .GRP files found in the Windows
  363.                                       directory that were not referenced in
  364.                                       PROGMAN.INI - in essence unused .GRP
  365.                                       files.
  366.  
  367.                                   3)  Files which will be copied from the
  368.                                       Windows directory to the WINOS2
  369.                                       directory (full pack only).
  370.  
  371.                                   4)  Group & program entries from
  372.                                       C:\WIN-311\PROGMAN.INI. These will be
  373.                                       annotated with any special
  374.                                       considerations which should be
  375.                                       addressed for the group or program
  376.                                       entry. For example, unresolved .EXE
  377.                                       paths, ambiguous MKWINOS2.DBX settings,
  378.                                       etc.
  379.  
  380.               MKWINOS2.SAA        The MKWINOS/2 processing routines for a
  381.                                   standard OS/2 SAA REXX environment.
  382.  
  383.               MKWINPCD.ICO        IBM PC DOS program icon.
  384.  
  385.               QREXXLIB.DLL        REXXLIB (see below) for Personal REXX from
  386.                                   Quercus Systems.
  387.  
  388.               R-WINOS2.CMD        A procedural command file created by
  389.                                   MKWINBAK that restores the \OS2\MDOS\WINOS2
  390.                                   directory to the contents saved when
  391.                                   MKWINBAK was last run.
  392.  
  393.               R-WINOS2.YES        A three byte file containing the letter Y
  394.                                   and used as redirected input to provide a
  395.                                   reply of Y to the system inquiry: Are you
  396.                                   sure (Y/N). The presence of this file also
  397.                                   serves as a control mechanism for the backup
  398.                                   facility.
  399.  
  400.      MKWINOS/2 Version 1.0                                              Page 7               README!.TXT         This file.
  401.  
  402.               REXXLIB.DLL         An OS/2 application program interface from
  403.                                   Quercus Systems that provides the expanded
  404.                                   capabilities in REXX required by MKWINOS/2.
  405.  
  406.                                   It is absolutely necessary that the version
  407.                                   of REXXLIB distributed with MKWINOS/2, or a
  408.                                   newer version, be used with MKWINOS/2 as
  409.                                   there are functions that have been added to
  410.                                   REXXLIB expressly for MKWINOS/2. Use of
  411.                                   prior versions of REXXLIB will result in a
  412.                                   MKWINOS/2 error message.
  413.  
  414.                                   REXXLIB is a copyrighted program product
  415.                                   from Quercus Systems and is distributed with
  416.                                   the permission of Quercus Systems. Its use
  417.                                   is restricted to MKWINOS/2 unless you are a
  418.                                   licensed REXXLIB user. Licensed REXXLIB
  419.                                   users may delete this copy of REXXLIB if a
  420.                                   newer version already exists in a LIBPATHed
  421.                                   directory. It is suggested that the latest
  422.                                   version of REXXLIB be retained.
  423.  
  424.           3.2 The MKWINOS2.KEY File
  425.  
  426.               The MKWINOS2.KEY file additionally serves as a repository for
  427.           optional information used by the MKWINOS/2 processing routines. If
  428.           the key to enable the full functionality of MKWINOS/2 is present, it
  429.           MUST be the first line of the file and in the following format
  430.           (white space and case is irrelevant):
  431.  
  432.               1234567 01 02 03 04 05 06 07
  433.                         or
  434.               1234567 0102 0304 0506 07 
  435.  
  436.               All of the other, optional information is of the form key
  437.           word=value. For example, a pointer to the subject Windows directory
  438.           can be specified by adding the line:
  439.  
  440.               windows=drive_and_path
  441.  
  442.  
  443.           3.3 Controlling Windows VDM Settings
  444.  
  445.               MKWINOS/2 is distributed with MKWINOS2.DBX - its own version of
  446.           the OS/2 file \OS2\INSTALL\DATABASE.TXT which describes the
  447.           recommended Virtual DOS Machine (VDM) settings for many Windows
  448.           programs. In the event that you have a program that is not contained
  449.           in MKWINOS2.DBX, you can specify that it is to use the same settings
  450.           as any other program that is contained in MKWINOS2.DBX by adding a
  451.           line to the MKWINOS2.KEY file in the following format:
  452.  
  453.               alias=new,old
  454.  
  455.           where new is the .EXE name of the program that does not exist in
  456.  
  457.      MKWINOS/2 Version 1.0                                              Page 8           DATABASE.TXT and old is the .EXE name of the program whose settings
  458.           are itemized in MKWINOS2.DBX and are adequate for the new program.
  459.           There is no limit to the number of alias statements included. In the
  460.           event of duplicate new name alias lines, the last occurrence
  461.           prevails. Invalid entries are ignored.
  462.  
  463.           3.4 OS/2 Folder Presentation Style
  464.  
  465.               The normal presentation style of the folders created by
  466.           MKWINRUN is ICONVIEW=NONGRID and, for Warp, ALWAYSSORT=NO. These
  467.           defaults can be changed by adding the following to your MKWINOS2.KEY
  468.           file:
  469.  
  470.               ICONVIEW=FLOWED
  471.               ALWAYSSORT=YES
  472.  
  473.  
  474.      4    MKWINRUN.CMD Structure
  475.           ----------------------
  476.  
  477.           When you run MKWINOS/2, the MKWINRUN.CMD REXX program is created,
  478.      replacing any previous copy of MKWINRUN.CMD. An abbreviated copy of a
  479.      MKWINRUN.CMD program in included in Appendix A. The MKWINRUN.CMD program
  480.      may be altered and rerun as often as desired and/or necessary. The
  481.      overall structure of the MKWINRUN.CMD program is:
  482.  
  483.           4.1 Startup and banner initialization
  484.  
  485.               This first section of MKWINRUN.CMD contains an introductory
  486.           comment which includes the version and modification level of the
  487.           MKWINOS/2 package, the date and time that the MKWINRUN.CMD program
  488.           was created, the OS/2 video resolution, the number of Program
  489.           Manager groups processed, and the subject Windows path that was used
  490.           to build the group and program objects. 
  491.  
  492.           4.2 Housekeeping
  493.  
  494.               The housekeeping used to establish the operating environment
  495.           for MKWINRUN.CMD as well as enabling a trap processing routine in
  496.           the event of an error occurring in the MKWINRUN.CMD program. A
  497.           number of initialization variables and their assigned values may be
  498.           of special interest to you before you launch MKWINRUN:
  499.  
  500.               4.2.1     GBL.ambiguous_program_count
  501.  
  502.                    The value assigned to this variable represents the number,
  503.               if any, of program objects which had multiple representations
  504.               in MKWINOS2.DBX thus preventing the unique identity of the
  505.               program from being determined. The values within MKWINOS2.DBX
  506.               used to try to uniquely identify a Windows program are; the
  507.               .EXE name, any ASSOC_FILE entries, and the program's TITLE
  508.               value.
  509.  
  510.                    All of the program objects in MKWINRUN.CMD that fall into
  511.               this ambiguous category also contain a comment which can be
  512.               located by searching on the word "ambiguous" in the
  513.  
  514.      MKWINOS/2 Version 1.0                                              Page 9               MKWINRUN.CMD file. The comment created for each of these
  515.               program objects will identify the choices that were available
  516.               in MKWINOS2.DBX.
  517.  
  518.               4.2.2     GBL.font
  519.  
  520.                    The font size for all of the newly created objects will
  521.               match that used on the subject Windows system. The font style
  522.               defaults to Helv since any alternative font on the Windows
  523.               system which does directly correspond to an OS/2 type 1 is best
  524.               left to the users discretion.
  525.  
  526.               4.2.3     GBL.wallpaper
  527.  
  528.                    Any .BMP file used as wallpaper on the subject Windows
  529.               system will be used as the background image for the Program
  530.               Manager Desktop Equivalent folder. Depending on your color
  531.               scheme, it may be necessary to turn off the transparency
  532.               setting for this folder so that the titles of each of the
  533.               folders contained within the Program Manager Desktop Equivalent
  534.               folder will be visible.
  535.  
  536.                    This is accomplished on Warp by selecting the View tab of
  537.               the Settings notebook for the Program manager Desktop
  538.               Equivalent folder and un-checking the "transparent background"
  539.               box.
  540.  
  541.               4.2.4     GBL.icon_view
  542.                         GBL.sort_option
  543.  
  544.                    These variables default to FLOWED and NO respectively.
  545.               Their generated values can be altered with appropriate entries
  546.               in the MKWINOS2.KEY file. You can change these values an rerun
  547.               MKWINRUN to alter the style of the all of the objects created
  548.               by MKWINRUN.
  549.  
  550.           4.3 Trap processing routine
  551.  
  552.               The REXX trap processing is enabled in MKWINRUN as well as all
  553.           of the MKWINOS/2 programs. If one of these trap conditions is
  554.           raised, a message indicating the kind of trap and the line number of
  555.           the offending instruction is displayed along with the file ?.DMP
  556.           being created. This file contains all of the variables used in the
  557.           program along with the values assigned to those variables. The
  558.           information displayed about the trap is also included in the .DMP
  559.           file.
  560.  
  561.           4.4 Folder & Program creation
  562.  
  563.               The REXX commands and values used to build each Windows group
  564.           equivalent folder along with objects for each of the programs
  565.           contained in each group.
  566.  
  567.           4.5 Common routines
  568.  
  569.               Commonly used internal functions along with DLL registration
  570.  
  571.      MKWINOS/2 Version 1.0                                             Page 10           and trap processing complete the MKWINRUN.CMD program.
  572.  
  573.           4.6 Sequence numbering
  574.  
  575.               Each MKWINRUN.CMD line used to create any of the three groups
  576.           of OS/2 objects (Program Manager Desktop Equivalent folder, group
  577.           folder, or program object) contains a 6 character sequence number as
  578.           a REXX comment - /*ggppnn*/. This 6 character value includes a two
  579.           digit value representing the relative group number with the Desktop
  580.           folder being group 00, two digits representing the relative program
  581.           number within the group (group entries contain 00), and a two digit
  582.           sequential number. This style was carefully chosen to provide a user
  583.           not familiar with REXX an intuitive means of generally identifying
  584.           the contents of the MKWINRUN.CMD program. The sequence numbers are
  585.           informational only and need not be maintained if you choose to alter
  586.           the contents of MKWINRUN.CMD.
  587.  
  588.  
  589.      5    MKWINOS/2 Error Messages
  590.           ------------------------
  591.  
  592.           The following error messages can occur when running MKWINOS/2:
  593.  
  594.      MK001    Unable to locate PROGMAN.INI file in ?:\...
  595.  
  596.           The program was unable to locate PROGMAN.INI using the the following
  597.           criteria in decreasing priority:
  598.  
  599.               1) Command line
  600.  
  601.               2) Key file (MKWINOS2.KEY)
  602.  
  603.               3) WINOS2_LOCATION value in OS2.INI.
  604.  
  605.  
  606.      MK002    Unable to find the Order= string in PROGMAN.INI
  607.  
  608.           The string Order= could not be found in the PROGMAN.INI file. Should
  609.           not occur.
  610.  
  611.      MK003    Unable to find the [Groups] string in PROGMAN.INI
  612.  
  613.           The string [Groups] could not be found in the PROGMAN.INI file.
  614.           Should not occur.
  615.  
  616.      MK004    Error processing Group#= line in PROGMAN.INI (nnn).
  617.  
  618.           A line in the [Groups] stanza could not be recognized. The numeric
  619.           value indicates the absolute byte position in the file where the
  620.           line was in error. Should not occur.
  621.  
  622.      MK005    .GRP file name missing. Group is ignored.
  623.  
  624.           The file name shown for the indicated group number in PROGMAN.INI
  625.           can not be found. The group is ignored.
  626.  
  627.  
  628.      MKWINOS/2 Version 1.0                                             Page 11      MK006    File_name is not a valid .GRP file
  629.  
  630.           Parsing of the .GRP file was omitted or may be in error because of
  631.           one of the following:
  632.  
  633.               1) Bytes 1-4 do not contain PMCC.
  634.  
  635.               2) Unable to find "Tag Data" at end of .GRP file
  636.  
  637.      MK007    Unable to locate MKWINOS2.DBX
  638.  
  639.           This is our version of DATABASE.TXT. Should not occur.
  640.  
  641.      MK008    Unable to locate [WINDOWS] in MKWINOS2.DBX
  642.  
  643.  
  644.      MK009    Unable to locate [OS2] in MKWINOS2.DBX
  645.  
  646.  
  647.      MK010    Unable to locate the object WIN.INI file in ?:\...
  648.  
  649.           Could not locate WIN.INI in the WINOS2 path. Should not occur.
  650.  
  651.      MK011    Unable to locate WIN.INI file in ?:\...
  652.  
  653.           The program was unable to locate WIN.INI using the the following
  654.           criteria in decreasing priority:
  655.  
  656.               1) Command line
  657.  
  658.               2) Key file (MKWINOS2.KEY)
  659.  
  660.               3) WINOS2_LOCATION value in OS2.INI.
  661.  
  662.  
  663.      MK012    REXXLIB is at an obsolete level. See REXXLIB.DLL description on
  664.               page 8.
  665.  
  666.      MK013    External REXX data queue error.
  667.  
  668.           Queue synchronization error. This is an internal program error that
  669.           should not occur. It appears to be caused by the RXQUEUE('DEL')
  670.           function intermittently not deleting the queue. Testing has shown
  671.           that the program can be rerun without error.
  672.  
  673.      MK014    Unable to locate SYSTEM.INI file in ?:\...
  674.  
  675.           The program was unable to locate SYSTEM.INI using the the following
  676.           criteria in decreasing priority:
  677.  
  678.               1) Command line
  679.  
  680.               2) Key file (MKWINOS2.KEY)
  681.  
  682.               3) WINOS2_LOCATION value in OS2.INI.
  683.  
  684.  
  685.      MKWINOS/2 Version 1.0                                             Page 12      MK015    Error while parsing source / object WIN.INI file.
  686.  
  687.           This is an internal programming error that should not occur. It is
  688.           suffixed by a sequential number to indicate its source.
  689.  
  690.      MK016    Unable to locate MKWINOS2.FIL file.
  691.  
  692.  
  693.      MK017    MKWINOS2 source code has been altered. It is necessary that
  694.               this REXX program be run in the form it was received.
  695.  
  696.  
  697.      6    Windows file processing - Full Pack only
  698.           ----------------------------------------
  699.  
  700.           Many Windows programs require .INI files to hold data specific to a
  701.      program or groups of programs. MKWINRUN.CMD handles this by identifying
  702.      those .INI files contained in the subject Windows path that do not exist
  703.      in the WINOS2 path. This situation only occurs in an OS/2 Warp Blue box
  704.      (or original OS/2 2.1 - full pack) environment. MKWINRUN copies these
  705.      .INI files to the WINOS2 directory if either; a) the .INI files does not
  706.      exist; or b) the .INI file in the WINOS2 directory pre-dates the copy in
  707.      the subject Windows directory. INI files which are part of the Windows
  708.      program itself (e.g. CONTROL.INI, PROGMAN.INI, SYSTEM.INI, WIN.INI) are
  709.      not copied. 
  710.  
  711.           If any Windows group windows are open or if there are programs in
  712.      the Windows Startup group when MKWINOS/2 is run, MKWINRUN provides you
  713.      with the option to shadow the equivalent OS/2 objects into the OS/2
  714.      Startup folder (<WP_START>). The default is not to create these shadows
  715.      and a 30 second time is permitted to reply to MKWINRUN in order to change
  716.      the default from No to YES.
  717.  
  718.  
  719.      7    Enabling MKWINOS/2
  720.           ------------------
  721.  
  722.           The demo version of MKWINOS/2 is transformed into the full,
  723.      commercial version by providing an enabling key as the first line of the
  724.      MKWINOS2.KEY file. The retail price of MKWINOS/2 key is 19.95 USD (if you
  725.      require diskette distribution add $7.00). All of the vendors listed below
  726.      accept credit cards (MasterCard, Visa, Discover, and American Express) or
  727.      a check payable in US dollars and drawn on a US bank. Credit card numbers
  728.      should NOT be sent via the Internet. CompuServe members can securely E-
  729.      mail orders to the CompuServe addresses shown below.
  730.  
  731.           7.1 Obtaining a MKWINOS/2 key
  732.  
  733.           The key can be obtained from the following sources:
  734.  
  735.               Productivity Solutions, Inc.
  736.               E-mail    Rosemary Moskowitz [74431,1016]
  737.               Voice     1-800-695-8642 (US & Canada)
  738.                         1-610-631-0339 (other)
  739.               FAX       1-610-631-0414
  740.  
  741.  
  742.      MKWINOS/2 Version 1.0                                             Page 13               C F S Nevada, Inc.
  743.               E-mail    Dick Goran [71154,2002]
  744.               Voice     1-800-864-2358 (US & Canada)
  745.                         1-702-732-9616 (other)
  746.               FAX       1-702-732-3847
  747.  
  748.               Quercus Systems - Personal REXX licensees only
  749.               E-mail    Charles Daney [75300,245]
  750.               Voice     1-800-440-5944 (US)
  751.                         1-408-867-7399
  752.               FAX       1-408-867-7489
  753.  
  754.           7.2 Updates and service
  755.  
  756.               The latest version of MKWINOS2.ZIP is available on the Internet
  757.           via a World Wide Web browser from <http://www.cfsrexx.com>, via FTP
  758.           from <ftp.cfsrexx.com/mkwinos2>, or from CompuServe in Library 1 of
  759.           the OS2AVEN forum. Updates to the current version of MKWINOS/2 will
  760.           be available at no additional charge from these electronic
  761.           repositories. Though MKWINOS/2 is also available from other BBS and
  762.           online services, C F S Nevada, Inc. only maintains the home sites.
  763.  
  764.               MKWINOS/2 is a trademark of C F S Nevada, Inc. OS/2 is
  765.               a registered trademark of IBM and Windows is a
  766.               registered trademark of Microsoft Corp.
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.      MKWINOS/2 Version 1.0                                             Page 14                                            Appendix A - MKWINRUN.CMD Sample
  800.  
  801.  
  802.        /* MKWINRUN.CMD Sample (abbreviated for Appendix A) */
  803.  
  804.        GBL. = ''             /* initialize stem */
  805.        parse Arg             GBL.command_line
  806.        parse Version         GBL.REXX_version .
  807.        parse Source          GBL.operating_system,
  808.                              GBL.calling_environment,
  809.                              GBL.program_path_and_name
  810.        GBL.package_name    = 'MKWINRUN'
  811.        GBL.environment     = 'OS2ENVIRONMENT'
  812.        GBL.boot_drive      = LEFT( VALUE( 'RUNWORKPLACE',, GBL.environment ), 2 )
  813.        GBL.program_version = 1.0         /* version / mod of this program */
  814.        GBL.program_name    = FILESPEC( 'N', GBL.program_path_and_name )
  815.        GBL.program_path    = FILESPEC( 'D', GBL.program_path_and_name ) ||,
  816.                              FILESPEC( 'P', GBL.program_path_and_name )
  817.  
  818.        parse var GBL.program_name,
  819.           GBL.program_fn '.',
  820.           GBL.program_fe
  821.  
  822.        /*-----------------------------------------------*\
  823.        |  Assure that REXXUTIL & REXXLIB are registered  |
  824.        \*-----------------------------------------------*/
  825.        call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
  826.        call SysLoadFuncs
  827.  
  828.        if RxFuncQuery( 'RexxLibDeregister' ) = 0 then
  829.           do
  830.              call RexxLibDeregister
  831.           end
  832.        if GBL.REXX_version = 'REXX/Personal' then
  833.           do
  834.              dll_name = 'QREXXLIB'
  835.           end
  836.        else
  837.           do
  838.              dll_name = 'REXXLIB'
  839.           end
  840.        call RxFuncAdd 'RexxLibRegister', dll_name, 'rexxlibregister'
  841.        call RexxLibRegister
  842.  
  843.        call TIME 'E'                       /* set elapsed timer - sssss.uuuuu */
  844.        say 'Begin' TRANSLATE( GBL.program_name ) 'at' TIME('N')
  845.  
  846.        /*------------------------------------------------------------------------*\
  847.        |                                                                          |
  848.        |                      Initialization and Setup code                       |
  849.        |                                                                          |
  850.        \*------------------------------------------------------------------------*/
  851.        GBL.ambiguous_program_count   = 04  /* MKWINOS2.DBX yielded multiples       */
  852.        GBL.bksp                      = "08"x
  853.        GBL.desktop_object_id         =,
  854.           "<MKWINOS2 Program Manager Desktop Equivalent>"
  855.  
  856.        MKWINOS/2 Version 1.0                                             Page 15                                            Appendix A - MKWINRUN.CMD Sample
  857.  
  858.        GBL.desktop_title             =,
  859.           "Program Manager^Desktop Equivalent^[Demo Version 0-917]"
  860.        GBL.font                      = "8.Helv"
  861.        GBL.group_total               = 33
  862.        GBL.progress_list             = "─\|/"
  863.        GBL.progress_subscript        = 1
  864.        GBL.seconds_to_wait_for_reply = 30  /* wait for user reply before shadowing */
  865.        GBL.shadow_table.0            = 0   /* object IDs of shadowed objects       */
  866.        GBL.subject_windows_path      = "C:\WIN-311\"
  867.        GBL.wallpaper                 = ""
  868.        GBL.WINOS2_path               = "C:\WIN-311\"
  869.        GBL.unresolved_path_count     = 0   /* unresolved .EXE paths */
  870.  
  871.        /*---------------------------------------*\
  872.        |  The following value(s) can be changed  |
  873.        |  to suit your personal taste.           |
  874.        \*---------------------------------------*/
  875.        GBL.icon_view   = "NONGRID"           /* can be set to FLOWED | NONGRID */
  876.        GBL.sort_option = "NO"                /* can be set to YES    | NO      */
  877.  
  878.        /*------------------------------------------------------------------*\
  879.        |  The following seemingly needless code is to identify a rare,      |
  880.        |  intermittent WPS bug where an existing object is not correctly    |
  881.        |  deleted. If any MKWINOS2 objects are found to exist in the        |
  882.        |  OS2.INI file after the Program Manager Desktop Equivalent object  |
  883.        |  is destroyed, this program will terminate. You are advised to     |
  884.        |  run one of the INI file maintenance programs to remove the        |
  885.        |  bad objects.                                                      |
  886.        \*------------------------------------------------------------------*/
  887.        application_name = "PM_Workplace:Location"
  888.        key = SYSINI( "USER", application_name, GBL.desktop_object_id )
  889.        if key ¬= "ERROR:" then
  890.           do
  891.              say "   Removing " || GBL.desktop_object_id
  892.              call SysDestroyObject GBL.desktop_object_id
  893.  
  894.              /*----------------------------------------*\
  895.              |  Check \OS2\OS2.INI for any remaining    |
  896.              |  MKWINOS2 objects that should have been  |
  897.              |  removed by SysDestroyObject().          |
  898.              \*----------------------------------------*/
  899.              lingering_object_count = 0
  900.  
  901.              call SYSINI "USER", application_name, "ALL:", "key_stem"
  902.              if RESULT ¬= "" then
  903.                 do
  904.                    say VALUE( "USER_INI",, GBL.environment ) "may be corrupted, " ||,
  905.                        "program canceled"
  906.                    call EOJ 200
  907.                 end
  908.  
  909.              do k = 1 to key_stem.0
  910.                 if LEFT( key_stem.k, 9 ) = "<MKWINOS2" then
  911.                    do
  912.  
  913.        MKWINOS/2 Version 1.0                                             Page 16                                            Appendix A - MKWINRUN.CMD Sample
  914.  
  915.                       lingering_object_count = lingering_object_count + 1
  916.                       if lingering_object_count = 1 then
  917.                          do
  918.                             say "The following WPS object(s) should not exist:"
  919.                          end
  920.                       say "   " || key_stem.k
  921.                    end
  922.              end
  923.  
  924.              if lingering_object_count ¬= 0 then
  925.                 do
  926.                    say GBL.program_name "is terminating because of the above error! Please try re-"
  927.                    say "running" GBL.program_name "and, if the error persists, please report it"
  928.                    say "at the numbers shown at the beginning of" GBL.program_name
  929.                    call EOJ 201
  930.                 end
  931.           end
  932.  
  933.        /*----------------------------------------------------------*\    /*000001*/
  934.        |  Build Program Manager Desktop Equivalent on OS/2 Desktop  |    /*000002*/
  935.        \*----------------------------------------------------------*/    /*000003*/
  936.        say COPIES( " ", 3 ) || "Building" GBL.desktop_title              /*000004*/
  937.                                                                          /*000005*/
  938.        folder_class    = "WPFolder"                                      /*000006*/
  939.        folder_title    = GBL.desktop_title                               /*000007*/
  940.        folder_location = "<WP_DESKTOP>"                                  /*000008*/
  941.        folder_option   = "UPDATE"                                        /*000009*/
  942.        folder_setup    =,                                                /*000010*/
  943.           "ALWAYSSORT="   || GBL.sort_option  || ";"                 ||, /*000011*/
  944.           "ICONNFILE=1,"  || GBL.program_path || "MKWINOPN.ICO;"     ||, /*000012*/
  945.           "ICONFILE="     || GBL.program_path || "MKWINCLS.ICO;"     ||, /*000013*/
  946.           "ICONFONT="     || GBL.font         || ";"                 ||, /*000014*/
  947.           "ICONVIEW="     || GBL.icon_view    || ",NORMAL;"          ||, /*000015*/
  948.           "ICONPOS=50,08;"                                           ||, /*000016*/
  949.           "ICONVIEWPOS=10,1,90,85;"                                  ||, /*000017*/
  950.           "OBJECTID=<MKWINOS2 Program Manager Desktop Equivalent>;"      /*000018*/
  951.        call SysCreateObject folder_class,,                               /*000019*/
  952.                             folder_title,,                               /*000020*/
  953.                             folder_location,,                            /*000021*/
  954.                             folder_setup,,                               /*000022*/
  955.                             folder_option                                /*000023*/
  956.        if RESULT ¬= 1 then                                               /*000024*/
  957.           do                                                             /*000025*/
  958.              say "   Unable to create " || folder_title || "folder,"     /*000026*/
  959.              say "      program canceled."                              /*000027*/
  960.              call EOJ 203                                                /*000028*/
  961.           end                                                            /*000029*/
  962.                                                                          /*000030*/
  963.        if GBL.wallpaper ¬= "" then                                       /*000031*/
  964.           do                                                             /*000032*/
  965.              say " "                                                     /*000033*/
  966.              say "   It may be necessary to turn off the ""Transparent"  /*000034*/
  967.              say "   bkgnd"" setting in the notebook settings for:"      /*000035*/
  968.              say "   " || GBL.desktop_title                              /*000036*/
  969.  
  970.        MKWINOS/2 Version 1.0                                             Page 17                                            Appendix A - MKWINRUN.CMD Sample
  971.  
  972.              say " "                                                     /*000037*/
  973.           end                                                            /*000038*/
  974.  
  975.        /*-------------------------------------*\                         /*010001*/
  976.        |  Build Group folder for: Accessories  |                         /*010002*/
  977.        \*-------------------------------------*/                         /*010003*/
  978.        say COPIES( " ", 6 ) || "Building Accessories folder."            /*010004*/
  979.                                                                          /*010005*/
  980.        folder_class    = "WPFolder"                                      /*010006*/
  981.        folder_title    = "Accessories"                                   /*010007*/
  982.        folder_location = "<MKWINOS2 Program Manager Desktop Equivalent>" /*010008*/
  983.        folder_option   = "UPDATE"                                        /*010009*/
  984.        folder_setup    =,                                                /*010010*/
  985.           "DETAILSFONT="  || GBL.font || ";"                         ||, /*010011*/
  986.           "TREEVIEWFONT=" || GBL.font || ";"                         ||, /*010012*/
  987.           "ICONFONT="     || GBL.font || ";"                         ||, /*010013*/
  988.           "ICONVIEW="     || GBL.icon_view || ",NORMAL;"             ||, /*010014*/
  989.           "ICONPOS=13,72;"                                           ||, /*010015*/
  990.           "ICONVIEWPOS=23,37,59,53;"                                 ||, /*010016*/
  991.           "ICONRESOURCE=72,PMWP;"                                    ||, /*010017*/
  992.           "ICONNRESOURCE=35,PMWP;"                                   ||, /*010018*/
  993.           "ALWAYSSORT="  || GBL.sort_option  || ";"                  ||, /*010019*/
  994.           "OBJECTID=<MKWINOS2:Accessories Group>;"                       /*010020*/
  995.        call SysCreateObject folder_class,,                               /*010021*/
  996.                             folder_title,,                               /*010022*/
  997.                             folder_location,,                            /*010023*/
  998.                             folder_setup,,                               /*010024*/
  999.                             folder_option                                /*010025*/
  1000.        if RESULT ¬= 1 then                                               /*010026*/
  1001.           do                                                             /*010027*/
  1002.              say "   Unable to create " || folder_title || "group folder,"
  1003.           end                                                            /*010029*/
  1004.  
  1005.           /*------------------------------------------*\                 /*010101*/
  1006.           |  Build WPProgram object for: Media Player  |                 /*010102*/
  1007.           \*------------------------------------------*/                 /*010103*/
  1008.           /* Program settings used are from MKWINOS2.DBX              */ /*010104*/
  1009.           program_class    = "WPProgram"                                 /*010105*/
  1010.           program_title    = "Media Player"                              /*010106*/
  1011.           program_location = "<MKWINOS2:Accessories Group>"              /*010107*/
  1012.           program_option   = "UPDATE"                                    /*010108*/
  1013.           program_setup    =,                                            /*010109*/
  1014.              "ICONFONT=" || GBL.font || ";"                          ||, /*010110*/
  1015.              "ICONPOS=23,16;"                                        ||, /*010111*/
  1016.              "EXENAME=C:\WIN-311\MPLAYER.EXE;"                       ||, /*010112*/
  1017.              "SET DOS_AUTOEXEC=E:\AUTOtest.BAT;"                     ||, /*010113*/
  1018.              "SET DPMI_MEMORY_LIMIT=64;"                             ||, /*010114*/
  1019.              "SET EMS_MEMORY_LIMIT=0;"                               ||, /*010115*/
  1020.              "SET IDLE_SECONDS=3;"                                   ||, /*010116*/
  1021.              "SET INT_DURING_IO=1;"                                  ||, /*010117*/
  1022.              "SET KBD_ALTHOME_BYPASS=1;"                             ||, /*010118*/
  1023.              "SET MOUSE_EXCLUSIVE_ACCESS=0;"                         ||, /*010119*/
  1024.              "SET VIDEO_8514A_XGA_IOTRAP=0;"                         ||, /*010120*/
  1025.              "SET VIDEO_RETRACE_EMULATION=1;"                        ||, /*010121*/
  1026.  
  1027.        MKWINOS/2 Version 1.0                                             Page 18                                            Appendix A - MKWINRUN.CMD Sample
  1028.  
  1029.              "SET VIDEO_SWITCH_NOTIFICATION=1;"                      ||, /*010122*/
  1030.              "SET WIN_ATM=1;"                                        ||, /*010123*/
  1031.              "SET WIN_CLIPBOARD=1;"                                  ||, /*010124*/
  1032.              "SET WIN_DDE=1;"                                        ||, /*010125*/
  1033.              "SET XMS_MEMORY_LIMIT=16384;"                           ||, /*010126*/
  1034.              "OBJECTID=<MKWINOS2:Media Player>;"                         /*010127*/
  1035.           call SysCreateObject program_class,,                           /*010128*/
  1036.                                program_title,,                           /*010129*/
  1037.                                program_location,,                        /*010130*/
  1038.                                program_setup,,                           /*010131*/
  1039.                                program_option                            /*010132*/
  1040.           if RESULT ¬= 1 then                                            /*010133*/
  1041.              do                                                          /*010134*/
  1042.                 say "   Unable to create " || program_title || " program object,"
  1043.              end                                                         /*010136*/
  1044.  
  1045.           /*-----------------------------------*\                        /*010201*/
  1046.           |  Build WPProgram object for: Write  |                        /*010202*/
  1047.           \*-----------------------------------*/                        /*010203*/
  1048.           /* No matching MKWINOS2.DBX entry for this program          */ /*010204*/
  1049.           program_class    = "WPProgram"                                 /*010205*/
  1050.           program_title    = "Write"                                     /*010206*/
  1051.           program_location = "<MKWINOS2:Accessories Group>"              /*010207*/
  1052.           program_option   = "UPDATE"                                    /*010208*/
  1053.           program_setup    =,                                            /*010209*/
  1054.              "ICONFONT=" || GBL.font || ";"                          ||, /*010210*/
  1055.              "ICONPOS=4,37;"                                         ||, /*010211*/
  1056.              "EXENAME=C:\WIN-311\WRITE.EXE;"                         ||, /*010212*/
  1057.              "SET DOS_AUTOEXEC=E:\AUTOtest.BAT;"                     ||, /*010213*/
  1058.              "SET DPMI_MEMORY_LIMIT=64;"                             ||, /*010214*/
  1059.              "SET IDLE_SECONDS=3;"                                   ||, /*010215*/
  1060.              "SET KBD_ALTHOME_BYPASS=1;"                             ||, /*010216*/
  1061.              "SET VIDEO_SWITCH_NOTIFICATION=1;"                      ||, /*010217*/
  1062.              "SET WIN_ATM=1;"                                        ||, /*010218*/
  1063.              "SET WIN_CLIPBOARD=1;"                                  ||, /*010219*/
  1064.              "SET WIN_DDE=1;"                                        ||, /*010220*/
  1065.              "SET XMS_MEMORY_LIMIT=16384;"                           ||, /*010221*/
  1066.              "OBJECTID=<MKWINOS2:Write>;"                                /*010222*/
  1067.           call SysCreateObject program_class,,                           /*010223*/
  1068.                                program_title,,                           /*010224*/
  1069.                                program_location,,                        /*010225*/
  1070.                                program_setup,,                           /*010226*/
  1071.                                program_option                            /*010227*/
  1072.           if RESULT ¬= 1 then                                            /*010228*/
  1073.              do                                                          /*010229*/
  1074.                 say "   Unable to create " || program_title || " program object,"
  1075.              end                                                         /*010231*/
  1076.  
  1077.           /*-----------------------------------*\                        /*010301*/
  1078.           |  Build WPProgram object for: Clock  |                        /*010302*/
  1079.           \*-----------------------------------*/                        /*010303*/
  1080.           /* No matching MKWINOS2.DBX entry for this program          */ /*010304*/
  1081.           program_class    = "WPProgram"                                 /*010305*/
  1082.           program_title    = "Clock"                                     /*010306*/
  1083.  
  1084.        MKWINOS/2 Version 1.0                                             Page 19                                            Appendix A - MKWINRUN.CMD Sample
  1085.  
  1086.           program_location = "<MKWINOS2:Accessories Group>"              /*010307*/
  1087.           program_option   = "UPDATE"                                    /*010308*/
  1088.           program_setup    =,                                            /*010309*/
  1089.              "ICONFONT=" || GBL.font || ";"                          ||, /*010310*/
  1090.              "ICONPOS=33,26;"                                        ||, /*010311*/
  1091.              "EXENAME=C:\WIN-311\CLOCK.EXE;"                         ||, /*010312*/
  1092.              "SET DOS_AUTOEXEC=E:\AUTOtest.BAT;"                     ||, /*010313*/
  1093.              "SET DPMI_MEMORY_LIMIT=64;"                             ||, /*010314*/
  1094.              "SET IDLE_SECONDS=3;"                                   ||, /*010315*/
  1095.              "SET KBD_ALTHOME_BYPASS=1;"                             ||, /*010316*/
  1096.              "SET VIDEO_SWITCH_NOTIFICATION=1;"                      ||, /*010317*/
  1097.              "SET WIN_ATM=1;"                                        ||, /*010318*/
  1098.              "SET WIN_CLIPBOARD=1;"                                  ||, /*010319*/
  1099.              "SET WIN_DDE=1;"                                        ||, /*010320*/
  1100.              "SET XMS_MEMORY_LIMIT=16384;"                           ||, /*010321*/
  1101.              "OBJECTID=<MKWINOS2:Clock>;"                                /*010322*/
  1102.           call SysCreateObject program_class,,                           /*010323*/
  1103.                                program_title,,                           /*010324*/
  1104.                                program_location,,                        /*010325*/
  1105.                                program_setup,,                           /*010326*/
  1106.                                program_option                            /*010327*/
  1107.           if RESULT ¬= 1 then                                            /*010328*/
  1108.              do                                                          /*010329*/
  1109.                 say "   Unable to create " || program_title || " program object,"
  1110.              end                                                         /*010331*/
  1111.  
  1112.           /*--------------------------------------*\                     /*010401*/
  1113.           |  Build WPProgram object for: Terminal  |                     /*010402*/
  1114.           \*--------------------------------------*/                     /*010403*/
  1115.           /* No matching MKWINOS2.DBX entry for this program          */ /*010404*/
  1116.           program_class    = "WPProgram"                                 /*010405*/
  1117.           program_title    = "Terminal"                                  /*010406*/
  1118.           program_location = "<MKWINOS2:Accessories Group>"              /*010407*/
  1119.           program_option   = "UPDATE"                                    /*010408*/
  1120.           program_setup    =,                                            /*010409*/
  1121.              "ICONFONT=" || GBL.font || ";"                          ||, /*010410*/
  1122.              "ICONPOS=23,37;"                                        ||, /*010411*/
  1123.              "EXENAME=C:\WIN-311\TERMINAL.EXE;"                      ||, /*010412*/
  1124.              "SET DOS_AUTOEXEC=E:\AUTOtest.BAT;"                     ||, /*010413*/
  1125.              "SET DPMI_MEMORY_LIMIT=64;"                             ||, /*010414*/
  1126.              "SET IDLE_SECONDS=3;"                                   ||, /*010415*/
  1127.              "SET KBD_ALTHOME_BYPASS=1;"                             ||, /*010416*/
  1128.              "SET VIDEO_SWITCH_NOTIFICATION=1;"                      ||, /*010417*/
  1129.              "SET WIN_ATM=1;"                                        ||, /*010418*/
  1130.              "SET WIN_CLIPBOARD=1;"                                  ||, /*010419*/
  1131.              "SET WIN_DDE=1;"                                        ||, /*010420*/
  1132.              "SET XMS_MEMORY_LIMIT=16384;"                           ||, /*010421*/
  1133.              "OBJECTID=<MKWINOS2:Terminal>;"                             /*010422*/
  1134.           call SysCreateObject program_class,,                           /*010423*/
  1135.                                program_title,,                           /*010424*/
  1136.                                program_location,,                        /*010425*/
  1137.                                program_setup,,                           /*010426*/
  1138.                                program_option                            /*010427*/
  1139.           if RESULT ¬= 1 then                                            /*010428*/
  1140.  
  1141.        MKWINOS/2 Version 1.0                                             Page 20                                            Appendix A - MKWINRUN.CMD Sample
  1142.  
  1143.              do                                                          /*010429*/
  1144.                 say "   Unable to create " || program_title || " program object,"
  1145.              end                                                         /*010431*/
  1146.  
  1147.           /*--------------------------------------------*\               /*010501*/
  1148.           |  Build WPProgram object for: Sound Recorder  |               /*010502*/
  1149.           \*--------------------------------------------*/               /*010503*/
  1150.           /* No matching MKWINOS2.DBX entry for this program          */ /*010504*/
  1151.           program_class    = "WPProgram"                                 /*010505*/
  1152.           program_title    = "Sound^Recorder"                            /*010506*/
  1153.           program_location = "<MKWINOS2:Accessories Group>"              /*010507*/
  1154.           program_option   = "UPDATE"                                    /*010508*/
  1155.           program_setup    =,                                            /*010509*/
  1156.              "ICONFONT=" || GBL.font || ";"                          ||, /*010510*/
  1157.              "ICONPOS=14,16;"                                        ||, /*010511*/
  1158.              "EXENAME=C:\WIN-311\SOUNDREC.EXE;"                      ||, /*010512*/
  1159.              "SET DOS_AUTOEXEC=E:\AUTOtest.BAT;"                     ||, /*010513*/
  1160.              "SET DPMI_MEMORY_LIMIT=64;"                             ||, /*010514*/
  1161.              "SET IDLE_SECONDS=3;"                                   ||, /*010515*/
  1162.              "SET KBD_ALTHOME_BYPASS=1;"                             ||, /*010516*/
  1163.              "SET VIDEO_SWITCH_NOTIFICATION=1;"                      ||, /*010517*/
  1164.              "SET WIN_ATM=1;"                                        ||, /*010518*/
  1165.              "SET WIN_CLIPBOARD=1;"                                  ||, /*010519*/
  1166.              "SET WIN_DDE=1;"                                        ||, /*010520*/
  1167.              "SET XMS_MEMORY_LIMIT=16384;"                           ||, /*010521*/
  1168.              "OBJECTID=<MKWINOS2:Sound Recorder>;"                       /*010522*/
  1169.           call SysCreateObject program_class,,                           /*010523*/
  1170.                                program_title,,                           /*010524*/
  1171.                                program_location,,                        /*010525*/
  1172.                                program_setup,,                           /*010526*/
  1173.                                program_option                            /*010527*/
  1174.           if RESULT ¬= 1 then                                            /*010528*/
  1175.              do                                                          /*010529*/
  1176.                 say "   Unable to create " || program_title || " program object,"
  1177.              end                                                         /*010531*/
  1178.  
  1179.           /*----------------------------------------*\                   /*010601*/
  1180.           |  Build WPProgram object for: Paintbrush  |                   /*010602*/
  1181.           \*----------------------------------------*/                   /*010603*/
  1182.           /* No matching MKWINOS2.DBX entry for this program          */ /*010604*/
  1183.           program_class    = "WPProgram"                                 /*010605*/
  1184.           program_title    = "Paintbrush"                                /*010606*/
  1185.           program_location = "<MKWINOS2:Accessories Group>"              /*010607*/
  1186.           program_option   = "UPDATE"                                    /*010608*/
  1187.           program_setup    =,                                            /*010609*/
  1188.              "ICONFONT=" || GBL.font || ";"                          ||, /*010610*/
  1189.              "ICONPOS=14,37;"                                        ||, /*010611*/
  1190.              "EXENAME=C:\WIN-311\PBRUSH.EXE;"                        ||, /*010612*/
  1191.              "SET DOS_AUTOEXEC=E:\AUTOtest.BAT;"                     ||, /*010613*/
  1192.              "SET DPMI_MEMORY_LIMIT=64;"                             ||, /*010614*/
  1193.              "SET IDLE_SECONDS=3;"                                   ||, /*010615*/
  1194.              "SET KBD_ALTHOME_BYPASS=1;"                             ||, /*010616*/
  1195.              "SET VIDEO_SWITCH_NOTIFICATION=1;"                      ||, /*010617*/
  1196.              "SET WIN_ATM=1;"                                        ||, /*010618*/
  1197.  
  1198.        MKWINOS/2 Version 1.0                                             Page 21                                            Appendix A - MKWINRUN.CMD Sample
  1199.  
  1200.              "SET WIN_CLIPBOARD=1;"                                  ||, /*010619*/
  1201.              "SET WIN_DDE=1;"                                        ||, /*010620*/
  1202.              "SET XMS_MEMORY_LIMIT=16384;"                           ||, /*010621*/
  1203.              "OBJECTID=<MKWINOS2:Paintbrush>;"                           /*010622*/
  1204.           call SysCreateObject program_class,,                           /*010623*/
  1205.                                program_title,,                           /*010624*/
  1206.                                program_location,,                        /*010625*/
  1207.                                program_setup,,                           /*010626*/
  1208.                                program_option                            /*010627*/
  1209.           if RESULT ¬= 1 then                                            /*010628*/
  1210.              do                                                          /*010629*/
  1211.                 say "   Unable to create " || program_title || " program object,"
  1212.              end                                                         /*010631*/
  1213.  
  1214.           /*-------------------------------------*\                      /*010701*/
  1215.           |  Build WPProgram object for: Notepad  |                      /*010702*/
  1216.           \*-------------------------------------*/                      /*010703*/
  1217.           /* No matching MKWINOS2.DBX entry for this program          */ /*010704*/
  1218.           program_class    = "WPProgram"                                 /*010705*/
  1219.           program_title    = "Notepad"                                   /*010706*/
  1220.           program_location = "<MKWINOS2:Accessories Group>"              /*010707*/
  1221.           program_option   = "UPDATE"                                    /*010708*/
  1222.           program_setup    =,                                            /*010709*/
  1223.              "ICONFONT=" || GBL.font || ";"                          ||, /*010710*/
  1224.              "ICONPOS=33,37;"                                        ||, /*010711*/
  1225.              "EXENAME=C:\WIN-311\NOTEPAD.EXE;"                       ||, /*010712*/
  1226.              "SET DOS_AUTOEXEC=E:\AUTOtest.BAT;"                     ||, /*010713*/
  1227.              "SET DPMI_MEMORY_LIMIT=64;"                             ||, /*010714*/
  1228.              "SET IDLE_SECONDS=3;"                                   ||, /*010715*/
  1229.              "SET KBD_ALTHOME_BYPASS=1;"                             ||, /*010716*/
  1230.              "SET VIDEO_SWITCH_NOTIFICATION=1;"                      ||, /*010717*/
  1231.              "SET WIN_ATM=1;"                                        ||, /*010718*/
  1232.              "SET WIN_CLIPBOARD=1;"                                  ||, /*010719*/
  1233.              "SET WIN_DDE=1;"                                        ||, /*010720*/
  1234.              "SET XMS_MEMORY_LIMIT=16384;"                           ||, /*010721*/
  1235.              "OBJECTID=<MKWINOS2:Notepad>;"                              /*010722*/
  1236.           call SysCreateObject program_class,,                           /*010723*/
  1237.                                program_title,,                           /*010724*/
  1238.                                program_location,,                        /*010725*/
  1239.                                program_setup,,                           /*010726*/
  1240.                                program_option                            /*010727*/
  1241.           if RESULT ¬= 1 then                                            /*010728*/
  1242.              do                                                          /*010729*/
  1243.                 say "   Unable to create " || program_title || " program object,"
  1244.              end                                                         /*010731*/
  1245.  
  1246.           /*--------------------------------------*\                     /*010801*/
  1247.           |  Build WPProgram object for: Recorder  |                     /*010802*/
  1248.           \*--------------------------------------*/                     /*010803*/
  1249.           /* No matching MKWINOS2.DBX entry for this program          */ /*010804*/
  1250.           program_class    = "WPProgram"                                 /*010805*/
  1251.           program_title    = "Recorder"                                  /*010806*/
  1252.           program_location = "<MKWINOS2:Accessories Group>"              /*010807*/
  1253.           program_option   = "UPDATE"                                    /*010808*/
  1254.  
  1255.        MKWINOS/2 Version 1.0                                             Page 22                                            Appendix A - MKWINRUN.CMD Sample
  1256.  
  1257.           program_setup    =,                                            /*010809*/
  1258.              "ICONFONT=" || GBL.font || ";"                          ||, /*010810*/
  1259.              "ICONPOS=43,37;"                                        ||, /*010811*/
  1260.              "EXENAME=C:\WIN-311\RECORDER.EXE;"                      ||, /*010812*/
  1261.              "SET DOS_AUTOEXEC=E:\AUTOtest.BAT;"                     ||, /*010813*/
  1262.              "SET DPMI_MEMORY_LIMIT=64;"                             ||, /*010814*/
  1263.              "SET IDLE_SECONDS=3;"                                   ||, /*010815*/
  1264.              "SET KBD_ALTHOME_BYPASS=1;"                             ||, /*010816*/
  1265.              "SET VIDEO_SWITCH_NOTIFICATION=1;"                      ||, /*010817*/
  1266.              "SET WIN_ATM=1;"                                        ||, /*010818*/
  1267.              "SET WIN_CLIPBOARD=1;"                                  ||, /*010819*/
  1268.              "SET WIN_DDE=1;"                                        ||, /*010820*/
  1269.              "SET XMS_MEMORY_LIMIT=16384;"                           ||, /*010821*/
  1270.              "OBJECTID=<MKWINOS2:Recorder>;"                             /*010822*/
  1271.           call SysCreateObject program_class,,                           /*010823*/
  1272.                                program_title,,                           /*010824*/
  1273.                                program_location,,                        /*010825*/
  1274.                                program_setup,,                           /*010826*/
  1275.                                program_option                            /*010827*/
  1276.           if RESULT ¬= 1 then                                            /*010828*/
  1277.              do                                                          /*010829*/
  1278.                 say "   Unable to create " || program_title || " program object,"
  1279.              end                                                         /*010831*/
  1280.  
  1281.           /*--------------------------------------*\                     /*010901*/
  1282.           |  Build WPProgram object for: Cardfile  |                     /*010902*/
  1283.           \*--------------------------------------*/                     /*010903*/
  1284.           /* No matching MKWINOS2.DBX entry for this program          */ /*010904*/
  1285.           program_class    = "WPProgram"                                 /*010905*/
  1286.           program_title    = "Cardfile"                                  /*010906*/
  1287.           program_location = "<MKWINOS2:Accessories Group>"              /*010907*/
  1288.           program_option   = "UPDATE"                                    /*010908*/
  1289.           program_setup    =,                                            /*010909*/
  1290.              "ICONFONT=" || GBL.font || ";"                          ||, /*010910*/
  1291.              "ICONPOS=4,26;"                                         ||, /*010911*/
  1292.              "EXENAME=C:\WIN-311\CARDFILE.EXE;"                      ||, /*010912*/
  1293.              "SET DOS_AUTOEXEC=E:\AUTOtest.BAT;"                     ||, /*010913*/
  1294.              "SET DPMI_MEMORY_LIMIT=64;"                             ||, /*010914*/
  1295.              "SET IDLE_SECONDS=3;"                                   ||, /*010915*/
  1296.              "SET KBD_ALTHOME_BYPASS=1;"                             ||, /*010916*/
  1297.              "SET VIDEO_SWITCH_NOTIFICATION=1;"                      ||, /*010917*/
  1298.              "SET WIN_ATM=1;"                                        ||, /*010918*/
  1299.              "SET WIN_CLIPBOARD=1;"                                  ||, /*010919*/
  1300.              "SET WIN_DDE=1;"                                        ||, /*010920*/
  1301.              "SET XMS_MEMORY_LIMIT=16384;"                           ||, /*010921*/
  1302.              "OBJECTID=<MKWINOS2:Cardfile>;"                             /*010922*/
  1303.           call SysCreateObject program_class,,                           /*010923*/
  1304.                                program_title,,                           /*010924*/
  1305.                                program_location,,                        /*010925*/
  1306.                                program_setup,,                           /*010926*/
  1307.                                program_option                            /*010927*/
  1308.           if RESULT ¬= 1 then                                            /*010928*/
  1309.              do                                                          /*010929*/
  1310.                 say "   Unable to create " || program_title || " program object,"
  1311.  
  1312.        MKWINOS/2 Version 1.0                                             Page 23                                            Appendix A - MKWINRUN.CMD Sample
  1313.  
  1314.              end                                                         /*010931*/
  1315.  
  1316.           /*--------------------------------------*\                     /*011001*/
  1317.           |  Build WPProgram object for: Calendar  |                     /*011002*/
  1318.           \*--------------------------------------*/                     /*011003*/
  1319.           /* No matching MKWINOS2.DBX entry for this program          */ /*011004*/
  1320.           program_class    = "WPProgram"                                 /*011005*/
  1321.           program_title    = "Calendar"                                  /*011006*/
  1322.           program_location = "<MKWINOS2:Accessories Group>"              /*011007*/
  1323.           program_option   = "UPDATE"                                    /*011008*/
  1324.           program_setup    =,                                            /*011009*/
  1325.              "ICONFONT=" || GBL.font || ";"                          ||, /*011010*/
  1326.              "ICONPOS=14,26;"                                        ||, /*011011*/
  1327.              "EXENAME=C:\WIN-311\CALENDAR.EXE;"                      ||, /*011012*/
  1328.              "SET DOS_AUTOEXEC=E:\AUTOtest.BAT;"                     ||, /*011013*/
  1329.              "SET DPMI_MEMORY_LIMIT=64;"                             ||, /*011014*/
  1330.              "SET IDLE_SECONDS=3;"                                   ||, /*011015*/
  1331.              "SET KBD_ALTHOME_BYPASS=1;"                             ||, /*011016*/
  1332.              "SET VIDEO_SWITCH_NOTIFICATION=1;"                      ||, /*011017*/
  1333.              "SET WIN_ATM=1;"                                        ||, /*011018*/
  1334.              "SET WIN_CLIPBOARD=1;"                                  ||, /*011019*/
  1335.              "SET WIN_DDE=1;"                                        ||, /*011020*/
  1336.              "SET XMS_MEMORY_LIMIT=16384;"                           ||, /*011021*/
  1337.              "OBJECTID=<MKWINOS2:Calendar>;"                             /*011022*/
  1338.           call SysCreateObject program_class,,                           /*011023*/
  1339.                                program_title,,                           /*011024*/
  1340.                                program_location,,                        /*011025*/
  1341.                                program_setup,,                           /*011026*/
  1342.                                program_option                            /*011027*/
  1343.           if RESULT ¬= 1 then                                            /*011028*/
  1344.              do                                                          /*011029*/
  1345.                 say "   Unable to create " || program_title || " program object,"
  1346.              end                                                         /*011031*/
  1347.  
  1348.           /*----------------------------------------*\                   /*011101*/
  1349.           |  Build WPProgram object for: Calculator  |                   /*011102*/
  1350.           \*----------------------------------------*/                   /*011103*/
  1351.           /* No matching MKWINOS2.DBX entry for this program          */ /*011104*/
  1352.           program_class    = "WPProgram"                                 /*011105*/
  1353.           program_title    = "Calculator"                                /*011106*/
  1354.           program_location = "<MKWINOS2:Accessories Group>"              /*011107*/
  1355.           program_option   = "UPDATE"                                    /*011108*/
  1356.           program_setup    =,                                            /*011109*/
  1357.              "ICONFONT=" || GBL.font || ";"                          ||, /*011110*/
  1358.              "ICONPOS=23,26;"                                        ||, /*011111*/
  1359.              "EXENAME=C:\WIN-311\CALC.EXE;"                          ||, /*011112*/
  1360.              "SET DOS_AUTOEXEC=E:\AUTOtest.BAT;"                     ||, /*011113*/
  1361.              "SET DPMI_MEMORY_LIMIT=64;"                             ||, /*011114*/
  1362.              "SET IDLE_SECONDS=3;"                                   ||, /*011115*/
  1363.              "SET KBD_ALTHOME_BYPASS=1;"                             ||, /*011116*/
  1364.              "SET VIDEO_SWITCH_NOTIFICATION=1;"                      ||, /*011117*/
  1365.              "SET WIN_ATM=1;"                                        ||, /*011118*/
  1366.              "SET WIN_CLIPBOARD=1;"                                  ||, /*011119*/
  1367.              "SET WIN_DDE=1;"                                        ||, /*011120*/
  1368.  
  1369.        MKWINOS/2 Version 1.0                                             Page 24                                            Appendix A - MKWINRUN.CMD Sample
  1370.  
  1371.              "SET XMS_MEMORY_LIMIT=16384;"                           ||, /*011121*/
  1372.              "OBJECTID=<MKWINOS2:Calculator>;"                           /*011122*/
  1373.           call SysCreateObject program_class,,                           /*011123*/
  1374.                                program_title,,                           /*011124*/
  1375.                                program_location,,                        /*011125*/
  1376.                                program_setup,,                           /*011126*/
  1377.                                program_option                            /*011127*/
  1378.           if RESULT ¬= 1 then                                            /*011128*/
  1379.              do                                                          /*011129*/
  1380.                 say "   Unable to create " || program_title || " program object,"
  1381.              end                                                         /*011131*/
  1382.  
  1383.           /*---------------------------------------------*\              /*011201*/
  1384.           |  Build WPProgram object for: Object Packager  |              /*011202*/
  1385.           \*---------------------------------------------*/              /*011203*/
  1386.           /* No matching MKWINOS2.DBX entry for this program          */ /*011204*/
  1387.           program_class    = "WPProgram"                                 /*011205*/
  1388.           program_title    = "Object^Packager"                           /*011206*/
  1389.           program_location = "<MKWINOS2:Accessories Group>"              /*011207*/
  1390.           program_option   = "UPDATE"                                    /*011208*/
  1391.           program_setup    =,                                            /*011209*/
  1392.              "ICONFONT=" || GBL.font || ";"                          ||, /*011210*/
  1393.              "ICONPOS=43,26;"                                        ||, /*011211*/
  1394.              "EXENAME=C:\WIN-311\PACKAGER.EXE;"                      ||, /*011212*/
  1395.              "SET DOS_AUTOEXEC=E:\AUTOtest.BAT;"                     ||, /*011213*/
  1396.              "SET DPMI_MEMORY_LIMIT=64;"                             ||, /*011214*/
  1397.              "SET IDLE_SECONDS=3;"                                   ||, /*011215*/
  1398.              "SET KBD_ALTHOME_BYPASS=1;"                             ||, /*011216*/
  1399.              "SET VIDEO_SWITCH_NOTIFICATION=1;"                      ||, /*011217*/
  1400.              "SET WIN_ATM=1;"                                        ||, /*011218*/
  1401.              "SET WIN_CLIPBOARD=1;"                                  ||, /*011219*/
  1402.              "SET WIN_DDE=1;"                                        ||, /*011220*/
  1403.              "SET XMS_MEMORY_LIMIT=16384;"                           ||, /*011221*/
  1404.              "OBJECTID=<MKWINOS2:Object Packager>;"                      /*011222*/
  1405.           call SysCreateObject program_class,,                           /*011223*/
  1406.                                program_title,,                           /*011224*/
  1407.                                program_location,,                        /*011225*/
  1408.                                program_setup,,                           /*011226*/
  1409.                                program_option                            /*011227*/
  1410.           if RESULT ¬= 1 then                                            /*011228*/
  1411.              do                                                          /*011229*/
  1412.                 say "   Unable to create " || program_title || " program object,"
  1413.              end                                                         /*011231*/
  1414.  
  1415.           /*-------------------------------------------*\                /*011301*/
  1416.           |  Build WPProgram object for: Character Map  |                /*011302*/
  1417.           \*-------------------------------------------*/                /*011303*/
  1418.           /* No matching MKWINOS2.DBX entry for this program          */ /*011304*/
  1419.           program_class    = "WPProgram"                                 /*011305*/
  1420.           program_title    = "Character Map"                             /*011306*/
  1421.           program_location = "<MKWINOS2:Accessories Group>"              /*011307*/
  1422.           program_option   = "UPDATE"                                    /*011308*/
  1423.           program_setup    =,                                            /*011309*/
  1424.              "ICONFONT=" || GBL.font || ";"                          ||, /*011310*/
  1425.  
  1426.        MKWINOS/2 Version 1.0                                             Page 25                                            Appendix A - MKWINRUN.CMD Sample
  1427.  
  1428.              "ICONPOS=4,16;"                                         ||, /*011311*/
  1429.              "EXENAME=C:\WIN-311\CHARMAP.EXE;"                       ||, /*011312*/
  1430.              "SET DOS_AUTOEXEC=E:\AUTOtest.BAT;"                     ||, /*011313*/
  1431.              "SET DPMI_MEMORY_LIMIT=64;"                             ||, /*011314*/
  1432.              "SET IDLE_SECONDS=3;"                                   ||, /*011315*/
  1433.              "SET KBD_ALTHOME_BYPASS=1;"                             ||, /*011316*/
  1434.              "SET VIDEO_SWITCH_NOTIFICATION=1;"                      ||, /*011317*/
  1435.              "SET WIN_ATM=1;"                                        ||, /*011318*/
  1436.              "SET WIN_CLIPBOARD=1;"                                  ||, /*011319*/
  1437.              "SET WIN_DDE=1;"                                        ||, /*011320*/
  1438.              "SET XMS_MEMORY_LIMIT=16384;"                           ||, /*011321*/
  1439.              "OBJECTID=<MKWINOS2:Character Map>;"                        /*011322*/
  1440.           call SysCreateObject program_class,,                           /*011323*/
  1441.                                program_title,,                           /*011324*/
  1442.                                program_location,,                        /*011325*/
  1443.                                program_setup,,                           /*011326*/
  1444.                                program_option                            /*011327*/
  1445.           if RESULT ¬= 1 then                                            /*011328*/
  1446.              do                                                          /*011329*/
  1447.                 say "   Unable to create " || program_title || " program object,"
  1448.              end                                                         /*011331*/
  1449.  
  1450.        /*-----------------------------------------*\
  1451.        |  Open Program Manager Desktop Equivalent  |
  1452.        \*-----------------------------------------*/
  1453.        call SysOpenObject GBL.desktop_object_id, 0, 1
  1454.        if RESULT ¬= 1 then
  1455.           do
  1456.              say "   Unable to open" GBL.desktop_object_id || ". This should not occur"
  1457.           end
  1458.  
  1459.        exit
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.  
  1475.  
  1476.  
  1477.  
  1478.  
  1479.  
  1480.  
  1481.  
  1482.  
  1483.        MKWINOS/2 Version 1.0                                             Page 26                                        Index
  1484.  
  1485.  
  1486.      .BMP  . . . . . . . . . . . .  10      GBL.unresolved_path_count .  5, 16
  1487.      .CMD  . . . . . . . . . . . . . 2      GBL.wallpaper . . . .   10, 16, 17
  1488.      .DMP  . . . . . . . . . . . .  10      GRID  . . . . . . . . . . . . .  5
  1489.      .EXE  . . . . . . . . . . 7-9, 16      IBM PC DOS program icon.
  1490.      .GRP  . . . . . . . . . 7, 11, 12           MKWINPCD.ICO . . . . . . .  7
  1491.      .INI  . . . . . . . . . . . .  13      ICONVIEW= . . . . . . . .   17, 18
  1492.      .ZIP  . . . . . . . . . . .  3, 4      Installation & Execution  . . .  3
  1493.      (path?)                                Key file
  1494.           unresolved .EXE paths  . . 5           MKWINOS2.KEY . . . . . . .  6
  1495.      <Alt-F7>  . . . . . . . . . . . 5      LIBPATH . . . . . . . . . . . .  3
  1496.      <Ctrl-Esc>  . . . . . . . . . . 5      Log file
  1497.      <ftp.cfsrexx.com/mkwinos2>  .  14           MKWINOS2.LOG . . . . . . .  7
  1498.      <http://www.cfsrexx.com>  . .  14      MKWINBAK.CMD  . . . . . . .   2, 6
  1499.      <WP_START>  . . . . . . . . .  13      MKWINCLS.ICO  . . . . . . .  6, 17
  1500.      \WINOS2 . . . . . . . . . . . . 2      MKWINMSD.ICO  . . . . . . . . .  6
  1501.      Add Programs                           MKWINnnn.ZIP  . . . . . . . . .  4
  1502.           differences from                  MKWINOPN.ICO  . . . . . . .  6, 17
  1503.               MKWINOS/2  . . . . . . 2      MKWINOS/2 files . . . . . . . .  6
  1504.      Adjusting folder window                MKWINOS2.CMD  . . . .   2, 3, 6, 2
  1505.               positions                     MKWINOS2.DAT  . . . . . . . . .  6
  1506.           <Alt-F7> . . . . . . . . . 5      MKWINOS2.DBX                                                          2, 6-10, 12, 15, 18-25
  1507.      alias . . . . . . . . . . .  8, 9           updated version of
  1508.      Altering MKWINRUN.CMD . . . . . 5                DATABASE.TXT  . . . .  2
  1509.      Altering the pointer to the            MKWINOS2.FIL  . . . . . . .  6, 13
  1510.               default Windows               MKWINOS2.KEY  . . . .   3, 4, 6-13
  1511.               directory  . . . . . . 4      MKWINOS2.LOG  . . . . . . .   3, 7
  1512.      ALWAYSSORT  . . . . . . 9, 17, 18      MKWINOS2.PER  . . . . . . . . .  7
  1513.      ambiguous . . . . . . .  7, 9, 15      MKWINOS2.RPT  . . . . . . . . .  7
  1514.      Appendix A  . . . . . . . . .  15      MKWINOS2.SAA  . . . . . . . . .  7
  1515.      ASSOC_FILE  . . . . . . . . . . 9      MKWINOS2.ZIP  . . . . .   4, 6, 14
  1516.      background  . . . . . . . . .  10      MKWINPCD.ICO  . . . . . . . . .  7
  1517.      Backup WINOS2 directory                MKWINRUN.CMD  2-5, 9-11, 13, 15, 2
  1518.           MKWINBAK.CMD . . . . . . . 6      MS-DOS program icon
  1519.      CompuServe  . . . . . . .  13, 14           MKWINMSD.ICO . . . . . . .  6
  1520.      Connect . . . . . . . . . .  2, 4      Obtaining a MKWINOS/2 key . .   13
  1521.      Contents of the MKWIN                  OS/2 Folder Presentation
  1522.               directory  . . . . . . 6                Style . . . . . . . .  9
  1523.      CONTROL.INI . . . . . . . . .  13      OS/2 System Setup
  1524.      Controlling Windows VDM                     WIN-OS/2 setup . . . . . .  2
  1525.               Settings   . . . . . . 8      Program Manager . . . . . . . .  2
  1526.      DATABASE.TXT  . .  2, 6, 8, 9, 12      Program Manager Desktop
  1527.      Debugging log . . . . . . . . . 3                Equivalent
  1528.      E-mail  . . . . . . . . .  13, 14           folder . . . . . . . . . .  2
  1529.      Enabling MKWINOS/2  . . . . .  13      QREXXLIB.DLL  . . . . . . . . .  7
  1530.      Error Messages  . . . . . . .  11      Quick Start Summary . . . . . .  4
  1531.      FAX . . . . . . . . . . .  13, 14      R-WINOS2.CMD  . . . . . .  2, 6, 7
  1532.      FLOWED  . . . . . .  5, 9, 10, 16      R-WINOS2.YES  . . . . . . . . .  7
  1533.      FTP . . . . . . . . . . . . .  14      Report file
  1534.      GBL.ambiguous_program_count 9, 15           MKWINOS2.RPT . . . . . . .  7
  1535.      GBL.font  . . . . . . . 10, 16-25      REXXLIB.DLL . . . . . . . .  8, 12
  1536.      GBL.icon_view . . .  5, 10, 16-18      Sequence numbering
  1537.      GBL.sort  . . . . .  5, 10, 16-18           MKWINRUN.CMD . . . . . .   11
  1538.      GBL.sort_option . .  5, 10, 16-18      Trap processing routine . . .   10
  1539.  
  1540.      MKWINOS/2 Version 1.0                                             Page 27                                        Index
  1541.  
  1542.      Updates and service . . . . .  14
  1543.      VDM . . . . . . . . . . . . . . 8
  1544.      wallpaper . . . . . .  10, 16, 17
  1545.      Warp  . . . . . . . . . . . . . 2
  1546.      Warp Blue Box vs. Red Box
  1547.               and MKWINOS/2  . . . . 2
  1548.      WIN-OS/2 Setup  . . . . . . . . 2
  1549.      Windows file processing
  1550.           Full pack  . . . . . . .  13
  1551.      Windows Program Manager . . . . 2
  1552.      WINOS2_LOCATION . . . . .  11, 12
  1553.      [Groups]  . . . . . . . . . .  11
  1554.      [OS2] . . . . . . . . . . . .  12
  1555.      [WINDOWS] . . . . . . . . . .  12
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.      MKWINOS/2 Version 1.0                                             Page 28