Changeset 651


Ignore:
Timestamp:
Apr 30, 2007, 10:22:44 PM (19 years ago)
Author:
John Small
Message:
  • Changed the script to create shadows of the text files

(README, HISTORY, COPYING, etc.) instead of program objects
which use E.EXE as a viewer.

  • Fixed a bug in the internal REXX code which caused it to fail

to recognize the presence of FM2UTILS.WPI (when WarpIN did find it).

  • Changed the "FM/2 Command line" object to call the default command

processor instead of a hard-coded CMD.EXE.

  • Moved "dead" code to a comment at the end of the script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/warpin/fm2.wis

    r637 r651  
    1 <WARPIN VERSION 1.0.15>
     1<WARPIN>
    22
    33<!--
     
    1010-->
    1111
    12 <!--
    13   CREATEOBJECT="WPShadow|History (Shadow)|<FM3_Docs>|SHADOWID=$(1)\docs\history;OBJECTID=<FM2HistoryShadow>;"
    14 -->
    15 
    1612<HEAD>
    1713<REXX NAME=UtilsCheck>
    18    if stream('fm2utils.wpi', 'c', 'query exists') = '' then
     14   if stream(WirexxGetEnv('WI_ARCHIVE_PATH') || '\fm2utils.wpi', 'c', 'query exists') = '' then
    1915      return '3'
    2016   else
     
    3026  LONGFILENAMES
    3127  CREATEOBJECT="WPFolder|File Manager/2|<WP_DESKTOP>|ICONFILE=$(1)\icons\fm2fldr.ICO;ICONNFILE=1,$(1)\icons\fm2fldr2.ICO;CCVIEW=YES;OBJECTID=<FM3_Folder>;"
    32   CREATEOBJECT="WPFolder|FM/2 Docs|<FM3_Folder>|ICONFILE=$(1)\icons\docs.ICO;ICONNFILE=1,$(1)\icons\docs2.ICO;OBJECTID=<FM3_Docs>;"
    33   CREATEOBJECT="WPFolder|FM/2 Tools|<FM3_Folder>|ICONFILE=$(1)\icons\toolbox.ICO;ICONNFILE=1,$(1)\icons\toolbox2.ICO;OBJECTID=<FM3_Tools>;"
    3428  CREATEOBJECT="WPProgram|FM/2|<FM3_Folder>|EXENAME=$(1)\fm3.exe;PARAMETERS=%*;STARTUPDIR=$(1);CCVIEW=YES;OBJECTID=<FM/2>;"
    3529  CREATEOBJECT="WPProgram|FM/2 Lite|<FM3_Folder>|EXENAME=$(1)\fm4.exe;PARAMETERS=%*;STARTUPDIR=$(1);CCVIEW=YES;TITLE=FM/2 LITE;OBJECTID=<FM/2 LITE>;"
     30  CREATEOBJECT="WPFolder|FM/2 Tools|<FM3_Folder>|ICONFILE=$(1)\icons\toolbox.ICO;ICONNFILE=1,$(1)\icons\toolbox2.ICO;OBJECTID=<FM3_Tools>;"
     31  CREATEOBJECT="WPFolder|FM/2 Docs|<FM3_Folder>|ICONFILE=$(1)\icons\docs.ICO;ICONNFILE=1,$(1)\icons\docs2.ICO;OBJECTID=<FM3_Docs>;"
    3632  CREATEOBJECT="WPProgram|Back up FM/2 Customizations^ and reset to defaults|<FM3_Folder>|EXENAME=*;PARAMETERS=/c cfgmgr /INSTALL /DEFAULTS /UNATTENDED;STARTUPDIR=$(1);PROGTYPE=WINDOWABLEVIO;MINIMIZED=YES;OBJECTID=<FM/2_RESET_TO_DEFAULTS>;"
    3733  CREATEOBJECT="WPProgram|Reverse last reset of^FM/2 Customizations|<FM3_Folder>|EXENAME=*;PARAMETERS=/c cfgmgr /DEINSTALL /DEFAULTS /UNATTENDED;STARTUPDIR=$(1);PROGTYPE=WINDOWABLEVIO;MINIMIZED=YES;OBJECTID=<FM/2_REVERSE_RESET_TO_DEFAULTS>;"
    3834  CREATEOBJECT="WPProgram|FM/2 Online Help|<FM3_Docs>|EXENAME=VIEW.EXE;PARAMETERS=$(1)\FM3.HLP;OBJECTID=<FM3HELP>;"
    39   CREATEOBJECT="WPProgram|GNU General Public License|<FM3_Docs>|EXENAME=E.EXE;PROGTYPE=PM;PARAMETERS=$(1)\docs\copying;OBJECTID=<FM3Copying>;"
    40   CREATEOBJECT="WPProgram|History|<FM3_Docs>|EXENAME=E.EXE;PROGTYPE=PM;PARAMETERS=$(1)\docs\history;OBJECTID=<FM2History>;"
    41   CREATEOBJECT="WPProgram|Read Me|<FM3_Docs>|EXENAME=E.EXE;PROGTYPE=PM;PARAMETERS=$(1)\docs\readme;OBJECTID=<FM3Readme>;"
    42   CREATEOBJECT="WPProgram|Customizing^Resources|<FM3_Docs>|EXENAME=E.EXE;PROGTYPE=PM;PARAMETERS=$(1)\docs\customizingresources.txt;OBJECTID=<FM3CustRes>;"
    4335  CREATEOBJECT="WPProgram|Archive Viewer/2|<FM3_Tools>|EXENAME=$(1)\FM2Tools\AV2.EXE;PROGTYPE=PM;PARAMETERS=%*;STARTUPDIR=$(1);TITLE=Archive Viewer/2;OBJECTID=<FM/2_AV/2>;"
    4436  CREATEOBJECT="WPProgram|Bookshelf Viewer|<FM3_Tools>|EXENAME=$(1)\FM2Tools\VIEWINFS.EXE;TITLE=Bookshelf Viewer;STARTUPDIR=$(1);OBJECTID=<FM/2_BOOKSHELF>;"
     
    4739  CREATEOBJECT="WPProgram|Dir Sizes|<FM3_Tools>|EXENAME=$(1)\FM2Tools\DIRSIZE.EXE;PARAMETERS=%*;STARTUPDIR=$(1);TITLE=Dir Sizes;OBJECTID=<FM/2_DIRSIZE>;"
    4840  CREATEOBJECT="WPProgram|EA Viewer|<FM3_Tools>|EXENAME=$(1)\FM2Tools\EAS.EXE;PARAMETERS=%*;STARTUPDIR=$(1);TITLE=EA Viewer;OBJECTID=<FM/2_EAVIEW>;"
    49   CREATEOBJECT="WPProgram|FM/2 Utilities command line|<FM3_Tools>|EXENAME=?:\OS2\CMD.EXE;STARTUPDIR=?:\;PROGTYPE=WINDOWABLEVIO;PARAMETERS=/K $(1)\SETENV.CMD"
     41  CREATEOBJECT="WPProgram|FM/2 Utilities command line|<FM3_Tools>|EXENAME=*;STARTUPDIR=?:\;PROGTYPE=WINDOWABLEVIO;PARAMETERS=/K $(1)\SETENV.CMD"
    5042  CREATEOBJECT="WPProgram|Global File Viewer|<FM3_Tools>|EXENAME=$(1)\FM2Tools\GLOBAL.EXE;TITLE=Global File Viewer;STARTUPDIR=$(1);OBJECTID=<FM/2_SEEALL>;"
    5143  CREATEOBJECT="WPProgram|Helpfile Viewer|<FM3_Tools>|EXENAME=$(1)\FM2Tools\VIEWINFS.EXE;STARTUPDIR=$(1);TITLE=Helpfile Viewer;OBJECTID=<FM2ViewInf>;"
     
    5850  EXECUTE="$(1)\cfgmgr /INSTALL /UNATTENDED"
    5951  EXECUTE="$(1)\utilsmgr /UNATTENDED"
     52  EXECUTE="$(1)\utils\shadowmgr FM2"
    6053  DEEXECUTE="$(1)\cfgmgr /DEINSTALL /UNATTENDED"
    6154  DEEXECUTE="$(1)\utilsmgr /DELETE /UNATTENDED"
     
    6760The FM/2 base package must be installed to a drive with long filename support!
    6861</PCK>
     62
     63<PCK INDEX=7
     64  PACKAGEID="Netlabs\FM2 Utilities\FM2Utils\1\0\0"
     65  TITLE="FM/2 Utilities"
     66  EXTERNAL="FM2Utils.wpi"
     67  TARGET="$(1)\Utils"
     68  SELECT
     69  CREATEOBJECT="WPFolder|FM/2 Utilities|<FM3_Folder>|OBJECTID=<FM2_Utilities>;"
     70  CREATEOBJECT="WPProgram|Make Object|<FM2_Utilities>|EXENAME=$(7)\makeobj.cmd;PARAMETERS=%*;OBJECTID=<FM2MakeObj>;"
     71  CREATEOBJECT="WPProgram|Image Viewer|<FM2_Utilities>|EXENAME=$(7)\image.exe;PARAMETERS=%*;OBJECTID=<FM2Imageexe>;"
     72  CREATEOBJECT="WPProgram|Reboot w/ Pause|<FM2_Utilities>|EXENAME=$(7)\rebootp.exe;PARAMETERS=%*;OBJECTID=<FM2rebootp>;"
     73  CREATEOBJECT="WPProgram|Iconify|<FM2_Utilities>|EXENAME=$(7)\iconify.exe;PARAMETERS=%*;OBJECTID=<FM2Iconify>;"
     74  CREATEOBJECT="WPProgram|Delete Tree|<FM2_Utilities>|EXENAME=*;PROGTYPE=WINDOWABLEVIO;PARAMETERS=/c ($(7)\deltree.exe [Enter directory to delete:] || pause);OBJECTID=<FM2Deltree>;"
     75  CONFIGSYS="SET PATH=$(7); | ADDRIGHT"
     76  EXECUTE="$(7)\shadowmgr FM2UTILS"
     77>This package contains the FM/2 Utilities, a
     78collection of more than 60  utilities which may
     79be used with or without FM/2. Included are
     80DELTREE, HPFSOPT, RENCASE, MOV, KILL/2,
     81PTREE and many more.
     82</PCK>
     83
     84
     85</HEAD>
     86
     87<BODY>
     88
     89<PAGE INDEX=1 TYPE=README>
     90<NEXTBUTTON TARGET=2>~Next</NEXTBUTTON>
     91<TEXT>NOTE:  A special thanks to Mark Kimes for making this program open source software. Thanks also goes to Steven Levine, Gregg Young, and others who have continued to improve and enhance this great program.</TEXT>
     92<README FORMAT=PLAIN EXTRACTFROMPCK="1">docs\readme</README>
     93</PAGE>
     94
     95<PAGE INDEX=2 TYPE=README>
     96<NEXTBUTTON TARGET="=("UtilsCheck")">~I agree</NEXTBUTTON>
     97<TEXT>FM/2 License: By pressing the "I agree" button, you agree to all terms and conditions of the license agreement below.</TEXT>
     98<README EXTRACTFROMPCK="1">docs\copying</README>
     99</PAGE>
     100
     101
     102<!-- The TYPE=CONTAINER will list the packages which can be installed. -->
     103<PAGE INDEX=3 TYPE=CONTAINER>
     104<NEXTBUTTON TARGET=4>~Next</NEXTBUTTON>
     105<TEXT>Select your installation directory.</TEXT>
     106</PAGE>
     107
     108
     109<PAGE INDEX=4 TYPE=CONFIGURE>
     110<NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
     111<TEXT>Please select/deselect the desired configuration option(s).</TEXT>
     112</PAGE>
     113
     114<PAGE INDEX=5 TYPE=README>
     115<NEXTBUTTON TARGET=6>~Next</NEXTBUTTON>
     116<TEXT>FM/2 Utilities: A short description of each utility is included at the end of the readme below. A special note of thanks to Mark Kimes for making these utilities freely available.</TEXT>
     117<README>    FM/2 Utilities, a utility collection for use with File Manager/2
     118         copyright (c) 1994/95 by M. Kimes (Barebones Software)
     119                          all rights reserved
     120    ================================================================
     121
     122This is a collection of utilities that may prove useful in conjunction
     123with FM/2 (or even without it).
     124
     125All the .EXE utilities provide help if you run them with /? as an
     126argument (hint:  arguments shown in brackets [] are optional, arguments
     127shown in braces <> are required).  The .CMD utilities may be directly
     128inspected using a text editor and are commented as to use and function.
     129It's recommended that you place these utilities into a directory on your
     130PATH (type HELP PATH at a command prompt if you don't know what that
     131means).  If you have FM/2 installed, may I suggest you make a UTILS
     132directory off your FM/2 directory (the FM/2 INSTALL.CMD assumes you
     133will, and will make some program objects for you)?
     134
     135These utilities are standalone, meaning that one doesn't rely on
     136another.  You can therefore delete any you don't want to keep around
     137without affecting the operation of any of the others.
     138
     139If you like the FM/2 Utilities package, you'll love FM/2.  File
     140Manager/2 (FM/2) is a shareware OS/2 2.1+ PM 32-bit
     141file/directory/archive maintenance utility (a sort of super-Drives
     142object, something midway between the Drives objects and a more
     143traditional file manager) with plenty of bells, whistles and utilities,
     144drag and drop, context menus, toolbars and accelerator keys.  FM/2 won a
     1451995 OS/2 Magazine Editor's Choice award -- the only file management
     146software to do so.  If you know how to use OS/2, you already know how to
     147use most of FM/2.  You can easily glean the rest from the extensive
     148online help.  FM/2 is available from ftp.secret.com (/g/os2utl), from
     149Compuserve's OS2SHARE (OS2BVEN) forum (GO OS2SHARE) in library 18, and
     150from finer OS/2 BBSs everywhere.
     151
     152
     153Following is a very brief description of each program in the package:
     154
     155BEEP.EXE
     156    Makes a beep noise.
     157
     158CRC.EXE
     159    Calculates and prints the CRC of a file or files.
     160
     161CVT4OS2.CMD
     162    Converts 4DOS/4OS2 non-standard DESCRIPT.ION files to WPS-standard
     163    .SUBJECT EAs (see comments in program).
     164
     165CVTFBBS.CMD
     166    Converts FILES.BBS file comments to WPS-standard .SUBJECT EAs (see
     167    comments in program).
     168
     169DELTREE.EXE
     170    Deletes a directory and all its subdirectories and files.
     171
     172DRVRLIST.EXE
     173    Lists all mounted drivers.  Use /w switch for a "wide" listing.
     174
     175DRVTYPES.EXE
     176    Lists all drives with information on their types.
     177
     178DSTART.EXE
     179    A START command that will work from DOS VDMs (penalty box).
     180
     181EA.EXE
     182    An extended attribute manipulation program.  Can be used to zap all
     183    the EAs from REXX .CMD files.
     184
     185EJECT.EXE
     186    Eject media from a removable drive.  Notes:  when EJECT, LOCK or
     187    UNLOCK returns an error code of 31, it usually means that function
     188    is not supported for the requested drive.  "The parameter is not
     189    correct" may mean you tried it on a non-existent or fixed drive.
     190    Error 163 is not in the OS/2 message file; it's "uncertain media,"
     191    and usually just repeating the command will "fix" it.
     192
     193FATOPT.EXE*
     194    An OS/2 FAT optimizer -- defragment, condense freespaces, sort file
     195    and directory names, test sectors in system areas, test (and repair
     196    some damaged) clusters, report on drive usage.  If you receive a
     197    "FATOpt can't lock" message from FATOpt, the drive is in use and
     198    FATOpt can't optimize it; try booting from floppies (place
     199    FATOPT.EXE on the floppy together with VIOCALLS.DLL).  If you
     200    receive a "FATOpt ran out of memory" error, add RAM and/or set up a
     201    swapfile on a partition other than the one being optimized (type
     202    HELP SWAPPATH at a command line for more info) and/or try the -p
     203    or -q switches.  Other errors (uncommon) should be self-explanatory,
     204    if distressing.  CHKDSK/F should be run before running FATOpt, and
     205    it's always a good idea to back up before defragging.  FATOpt
     206    errorlevel returns for batch files:  0 = no problems, 1 = user
     207    abort, 2 = out of memory, 3 = bad file (run CHKDSK/F, dammit),
     208    4 = can't open drive, 5 = can't lock drive, 6 = can't fix bad
     209    cluster, 7 = insufficient free space on drive, 8 = unknown error,
     210    9 = bad system area, 10 = error during standard file copy.
     211    BACKUP BEFORE OPTIMIZING.  REMEMBER THE BEST OPTIMIZATION IS
     212    ACCOMPLISHED BY A BACKUP/DELETE/RESTORE.
     213
     214FINDPATH.EXE
     215    List a PATH-style environment variable's directories (or LIBPATH),
     216    or find a file or files in those directories.  Perhaps useful for
     217    tracking down files that appear in more than one directory on the
     218    PATH or LIBPATH.
     219
     220FLUSH.EXE
     221    Flush file system caches and buffers (make system quiescent).
     222
     223FM2PLAY.EXE*
     224    Used by FM/2 to play multimedia files with the "Play Multimedia"
     225    command (requires MMPM/2).
     226
     227HPFSOPT.EXE*
     228    An HPFS optimizer.
     229
     230ICONIFY.EXE
     231    "Iconifies" image files, which is to say that it sets the icon
     232    of image files to be miniature versions of the image files.  A
     233    PM program, but designed to be run in batch mode from a command
     234    line.
     235
     236IMAGE.EXE*
     237    Used by FM/2 to quickly display image files (requires MMPM/2).
     238    Request a context menu for several options.
     239
     240ISTEXT.EXE
     241    Returns ERRORLEVEL 1 if a file appears to be a text (ASCII) file,
     242    0 if not or file is inaccessible.
     243
     244KILL2.EXE
     245    A timed deletion/touch/list utility.
     246
     247KILLPID.EXE
     248    Kill processes by PID or title, or list PIDs of running processes.
     249    See also SWITCHTO.EXE.
     250
     251KEYLOCKS.EXE
     252    Control state of num lock, caps lock, scroll lock.  Note:  PM
     253    program, but still designed to be run from command line.
     254
     255LA.EXE
     256    Lists the contents of archive files, extracts files from archives
     257    using one command without you having to know the archive type or
     258    archiver commands (requires ARCHIVER.BB2 datafile to be on your
     259    PATH or DPATH, copy included in the archive, edit to taste/need).
     260
     261LINES.EXE
     262    Counts lines in text files.
     263
     264LOCK.EXE
     265    Lock a removable drive.
     266
     267MAKEOBJ.CMD
     268    Creates WPS objects for filenames -- program objects for programs,
     269    shadows for everything else -- on the desktop.
     270
     271MKPATH.EXE
     272    Make directories many levels deep with one command.
     273
     274MOV.EXE
     275    A MOVE command that can move between drives and optionally allows
     276    overwriting.
     277
     278MSENSIT.EXE
     279    Set sensitivity of mouse.
     280
     281NO.EXE
     282    Hides file system objects, then runs a command (excludes file system
     283    objects from a command).
     284
     285NOCAD.EXE
     286    Disables/reenables (toggles) CTRL-ALT-DEL.
     287
     288OPEN.EXE
     289    Opens a WPS object or website.
     290
     291PRIORITY.EXE
     292    A launch-with-priority program that lets you set the priority of
     293    other programs when you start them.
     294
     295PTREE.EXE
     296    Displays the tree of a given path, several options.
     297
     298QFORMAT.EXE
     299    Quick format floppies by zapping the root and FATs.  NOTE:  Warp's
     300    FORMAT will do this now, too (/Q switch).
     301
     302QPLAY.EXE
     303    Quiet play plays multimedia files via MMPM/2 without showing itself
     304    (perhaps useful from batch files).
     305
     306REBOOT.EXE
     307    Reboots the system as though you'd pressed CTRL-ALT-DEL.
     308
     309REBOOTP.EXE
     310    Reboots the system as though you'd pressed CTRL-ALT-DEL after
     311    broadcasting a WM_QUIT message to all children of the desktop and
     312    waiting 60 seconds for the applications to save their settings and
     313    quit (note that VIO and DOS applications will pop up their "Are you
     314    sure?" boxes, but you don't have to be there to answer (and
     315    shouldn't be -- use Shutdown instead if you're not automating),
     316    though such apps won't pick up on the hint to shut down).  This is a
     317    PM application, but still designed to be run from command line.
     318
     319REMTAB.EXE
     320    Removes TABs from text files.
     321
     322RENCASE.EXE
     323    Renames files to the same name but all upper, lower or "mixed" case.
     324
     325RESET.EXE
     326    Resets a drive.
     327
     328SAVEDESK.EXE
     329    Saves the Desktop, optionally restarts WPS by killing it and letting
     330    it restart itself.
     331
     332SCOPY.EXE
     333    Copy new files and/or newer versions of existing files.  Primarily
     334    intended for backup and synchronization.
     335
     336SDIR.CMD
     337    Directory listing that shows .SUBJECT EAs.
     338
     339SEEHELP.EXE
     340    For systems where VIEW.EXE will not display .HLP files, this lets
     341    you view help files without starting the program to which they
     342    belong.
     343
     344SMODE.EXE
     345    Set screen modes (columns, rows, resolutions) for VIO/full screen
     346    sessions or reports on available modes.
     347
     348SNAPSHOT.EXE
     349    Creates a "snapshot" file compatible with PMDMatch.
     350
     351SR.EXE
     352    Simple search-and-replace command, optional interactive mode.
     353    Intended to be used non-interactively for many files in a single
     354    pass (otherwise a text editor is more suitable).
     355
     356SRCH.CMD
     357    A search command for OS/2 (finds text in files).
     358
     359STRIP.EXE
     360    Filter that strips specified strings from input.
     361
     362SUBJ.CMD
     363    Show and modify .SUBJECT EAs.
     364
     365STRIPCDS.EXE
     366    A filter that strips ANSI and VT-100 escape codes from stdin and
     367    writes the results to stdout.
     368
     369SWEEP.CMD
     370    A sweep command for OS/2; performs a command in all subdirectories
     371    of the current directory.
     372
     373SWITCHTO.EXE
     374    Switch current or a specified process (by PID or partial title) to
     375    the foreground.
     376
     377TEST.EXE
     378TEST.CMD
     379TESTPM.EXE
     380    Repeat all the arguments it receives; useful for debugging command
     381    lines and figuring out what arguments one program receives from
     382    another.
     383
     384TESTDRV.EXE
     385    Test a drive.  Should be run with a drive other than the one being
     386    tested as the default for best results (saves a logfile listing any
     387    bad sectors found to the default directory).
     388
     389TESTFIND.EXE
     390    Tests an IFS's DosFindFirst/Next implementation for troubleshooting.
     391
     392TESTHAND.EXE
     393    Reports the number and type of inherited file handles.
     394
     395TESTRC.EXE
     396    Runs a program and reports its return code (ERRORLEVEL).
     397
     398TYPERATE.EXE
     399    Sets the typematic rate.
     400
     401UNARJER.CMD
     402    Unarjs any arj file dropped onto it into the same directory where
     403    the arj file resides, then opens a folder for that directory.
     404
     405UNIQUE.EXE
     406    Counts the number of lines, words and unique words in a text file,
     407    gives a breakdown of how many times each unique word was used.
     408
     409UNLOCK.EXE
     410    Unlock a removable drive.
     411
     412UNLZHER.CMD
     413    Unlzhs any lzh file dropped onto it into the same directory where
     414    the lzh file resides, then opens a folder for that directory.
     415
     416UNZIPPER.CMD
     417    Unzips any zip file dropped onto it into the same directory where
     418    the zip file resides, then opens a folder for that directory.
     419
     420WHERE.CMD
     421    A where command for OS/2; finds files on a specified or the default
     422    drive.
     423
     424WIPE.EXE
     425    Wipes then erases files so that their data cannot be recovered.
     426    Meets DOD standards.
     427
     428                                                    * Used by "stock" FM/2.
     429</README>
     430</PAGE>
     431
     432<PAGE INDEX=6 TYPE=README>
     433<NEXTBUTTON TARGET=7>~I agree</NEXTBUTTON>
     434<TEXT>FM/2 Utilities: By pressing the "I agree" button, you agree to all terms and conditions of the license agreement below.</TEXT>
     435<README>Simple license statement:
     436========================
     437These utilities may be freely used by end users.  I retain copyright and
     438reserve all rights.  There is NO warranty expressed or implied.
     439
     440Distribution rights are granted for online (dial-up, Internet, CIS,
     441etc.) services ONLY without prior written permission from author.
     442If you want to distribute for money, you MUST contact me first and
     443make arrangements.
     444
     445
     446Author contact info:
     447===================
     448  Mark Kimes (mkimes@ibm.net)
     449</README>
     450</PAGE>
     451
     452<PAGE INDEX=7 TYPE=CONTAINER>
     453<NEXTBUTTON TARGET=8>~Next</NEXTBUTTON>
     454<TEXT>Many of the programs included within FM/2 Utilities are intended to be run from the command line. If the installation directory is not already on the PATH, then this installation will ensure that your installation directory will be on the PATH after the next reboot (unless you specifiy otherwise on the next page).</TEXT>
     455</PAGE>
     456
     457<PAGE INDEX=8 TYPE=CONFIGURE>
     458<NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
     459<TEXT>Please select/deselect the desired configuration option(s).
     460
     461The CONFIG.SYS modification is the addition of the FM/2 Utilities installation directory to end of the PATH (if it is not already on the PATH), simplifying access to the utiities from the command line.
     462
     463Uncheck "Modify CONFIG.SYS" if you do not want your PATH changed.</TEXT>
     464</PAGE>
     465
     466
     467</BODY>
     468</WARPIN>
     469
     470<!--
     471  CREATEOBJECT="WPProgram|History|<FM3_Docs>|EXENAME=E.EXE;PROGTYPE=PM;PARAMETERS=$(1)\docs\history;OBJECTID=<FM2History>;"
     472  CREATEOBJECT="WPProgram|GNU General Public License|<FM3_Docs>|EXENAME=E.EXE;PROGTYPE=PM;PARAMETERS=$(1)\docs\copying;OBJECTID=<FM3Copying>;"
     473  CREATEOBJECT="WPShadow|History (Shadow)|<FM3_Docs>|SHADOWID=$(1)\docs\history;OBJECTID=<FM2HistoryShadow>;"
     474  CREATEOBJECT="WPProgram|Read Me|<FM3_Docs>|EXENAME=E.EXE;PROGTYPE=PM;PARAMETERS=$(1)\docs\readme;OBJECTID=<FM3Readme>;"
     475  CREATEOBJECT="WPProgram|Customizing^Resources|<FM3_Docs>|EXENAME=E.EXE;PROGTYPE=PM;PARAMETERS=$(1)\docs\customizingresources.txt;OBJECTID=<FM3CustRes>;"
     476  CREATEOBJECT="WPProgram|FM/2 Utilities command line|<FM3_Tools>|EXENAME=?:\OS2\CMD.EXE;STARTUPDIR=?:\;PROGTYPE=WINDOWABLEVIO;PARAMETERS=/K $(1)\SETENV.CMD"
     477  CREATEOBJECT="WPProgram|FM/2 Utils Doc|<FM2_Utilities>|EXENAME=E.EXE;PROGTYPE=PM;PARAMETERS=$(7)\fm2utils.doc;OBJECTID=<FM2UtilsDoc>;"
     478
     479<README EXTRACTFROMPCK="7">fm2utils.doc</README>
     480<WARPIN VERSION 1.0.15>
    69481
    70482<PCK INDEX=3
     
    102514</PCK>
    103515
    104 <PCK INDEX=7
    105   PACKAGEID="Netlabs\FM2 Utilities\FM2Utils\1\0\0"
    106   TITLE="FM/2 Utilities"
    107   EXTERNAL="FM2Utils.wpi"
    108   TARGET="$(1)\Utils"
    109   SELECT
    110   CREATEOBJECT="WPFolder|FM/2 Utilities|<FM3_Folder>|OBJECTID=<FM2_Utilities>;"
    111   CREATEOBJECT="WPProgram|FM/2 Utils Doc|<FM2_Utilities>|EXENAME=E.EXE;PROGTYPE=PM;PARAMETERS=$(7)\fm2utils.doc;OBJECTID=<FM2UtilsDoc>;"
    112   CREATEOBJECT="WPProgram|Make Object|<FM2_Utilities>|EXENAME=$(7)\makeobj.cmd;PARAMETERS=%*;OBJECTID=<FM2MakeObj>;"
    113   CREATEOBJECT="WPProgram|Image Viewer|<FM2_Utilities>|EXENAME=$(7)\image.exe;PARAMETERS=%*;OBJECTID=<FM2Imageexe>;"
    114   CREATEOBJECT="WPProgram|Reboot w/ Pause|<FM2_Utilities>|EXENAME=$(7)\rebootp.exe;PARAMETERS=%*;OBJECTID=<FM2rebootp>;"
    115   CREATEOBJECT="WPProgram|Iconify|<FM2_Utilities>|EXENAME=$(7)\iconify.exe;PARAMETERS=%*;OBJECTID=<FM2Iconify>;"
    116   CREATEOBJECT="WPProgram|Delete Tree|<FM2_Utilities>|EXENAME=*;PROGTYPE=WINDOWABLEVIO;PARAMETERS=/c ($(7)\deltree.exe [Enter directory to delete:] || pause);OBJECTID=<FM2Deltree>;"
    117   CONFIGSYS="SET PATH=$(7); | ADDRIGHT"
    118 >This package contains the FM/2 Utilities, a
    119 collection of more than 60  utilities which may
    120 be used with or without FM/2. Included are
    121 DELTREE, HPFSOPT, RENCASE, MOV, KILL/2,
    122 PTREE and many more.
    123 </PCK>
    124 
    125516<PCK INDEX=10
    126517  PACKAGEID="Netlabs\FM2\Reset FM/2 Customizations\3\5\9\20070331"
     
    138529</PCK>
    139530
    140 </HEAD>
    141 
    142 <BODY>
    143 
    144 <PAGE INDEX=1 TYPE=README>
    145 <NEXTBUTTON TARGET=2>~Next</NEXTBUTTON>
    146 <TEXT>NOTE:  A special thanks to Mark Kimes for making this program open source software. Thanks also goes to Steven Levine, Gregg Young, and others who have continued to improve and enhance this great program.</TEXT>
    147 <README EXTRACTFROMPCK="1">docs\readme</README>
    148 </PAGE>
    149 
    150 <PAGE INDEX=2 TYPE=README>
    151 <NEXTBUTTON TARGET="=("UtilsCheck")">~I agree</NEXTBUTTON>
    152 <TEXT>FM/2 License: By pressing the "I agree" button, you agree to all terms and conditions of the license agreement below.</TEXT>
    153 <README EXTRACTFROMPCK="1">docs\copying</README>
    154 </PAGE>
    155 
    156 
    157 <!-- The TYPE=CONTAINER will list the packages which can be installed. -->
    158 <PAGE INDEX=3 TYPE=CONTAINER>
    159 <NEXTBUTTON TARGET=4>~Next</NEXTBUTTON>
    160 <TEXT>Select your installation directory.</TEXT>
    161 </PAGE>
    162 
    163 
    164 <PAGE INDEX=4 TYPE=CONFIGURE>
    165 <NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
    166 <TEXT>Please select/deselect the desired configuration option(s).</TEXT>
    167 </PAGE>
    168 
    169 <PAGE INDEX=5 TYPE=README>
    170 <NEXTBUTTON TARGET=6>~Next</NEXTBUTTON>
    171 <TEXT>FM/2 Utilities: A short description of each utility is included at the end of the readme below. A special note of thanks to Mark Kimes for making these utilities freely available.</TEXT>
    172 <README>    FM/2 Utilities, a utility collection for use with File Manager/2
    173          copyright (c) 1994/95 by M. Kimes (Barebones Software)
    174                           all rights reserved
    175     ================================================================
    176 
    177 This is a collection of utilities that may prove useful in conjunction
    178 with FM/2 (or even without it).
    179 
    180 All the .EXE utilities provide help if you run them with /? as an
    181 argument (hint:  arguments shown in brackets [] are optional, arguments
    182 shown in braces <> are required).  The .CMD utilities may be directly
    183 inspected using a text editor and are commented as to use and function.
    184 It's recommended that you place these utilities into a directory on your
    185 PATH (type HELP PATH at a command prompt if you don't know what that
    186 means).  If you have FM/2 installed, may I suggest you make a UTILS
    187 directory off your FM/2 directory (the FM/2 INSTALL.CMD assumes you
    188 will, and will make some program objects for you)?
    189 
    190 These utilities are standalone, meaning that one doesn't rely on
    191 another.  You can therefore delete any you don't want to keep around
    192 without affecting the operation of any of the others.
    193 
    194 If you like the FM/2 Utilities package, you'll love FM/2.  File
    195 Manager/2 (FM/2) is a shareware OS/2 2.1+ PM 32-bit
    196 file/directory/archive maintenance utility (a sort of super-Drives
    197 object, something midway between the Drives objects and a more
    198 traditional file manager) with plenty of bells, whistles and utilities,
    199 drag and drop, context menus, toolbars and accelerator keys.  FM/2 won a
    200 1995 OS/2 Magazine Editor's Choice award -- the only file management
    201 software to do so.  If you know how to use OS/2, you already know how to
    202 use most of FM/2.  You can easily glean the rest from the extensive
    203 online help.  FM/2 is available from ftp.secret.com (/g/os2utl), from
    204 Compuserve's OS2SHARE (OS2BVEN) forum (GO OS2SHARE) in library 18, and
    205 from finer OS/2 BBSs everywhere.
    206 
    207 
    208 Following is a very brief description of each program in the package:
    209 
    210 BEEP.EXE
    211     Makes a beep noise.
    212 
    213 CRC.EXE
    214     Calculates and prints the CRC of a file or files.
    215 
    216 CVT4OS2.CMD
    217     Converts 4DOS/4OS2 non-standard DESCRIPT.ION files to WPS-standard
    218     .SUBJECT EAs (see comments in program).
    219 
    220 CVTFBBS.CMD
    221     Converts FILES.BBS file comments to WPS-standard .SUBJECT EAs (see
    222     comments in program).
    223 
    224 DELTREE.EXE
    225     Deletes a directory and all its subdirectories and files.
    226 
    227 DRVRLIST.EXE
    228     Lists all mounted drivers.  Use /w switch for a "wide" listing.
    229 
    230 DRVTYPES.EXE
    231     Lists all drives with information on their types.
    232 
    233 DSTART.EXE
    234     A START command that will work from DOS VDMs (penalty box).
    235 
    236 EA.EXE
    237     An extended attribute manipulation program.  Can be used to zap all
    238     the EAs from REXX .CMD files.
    239 
    240 EJECT.EXE
    241     Eject media from a removable drive.  Notes:  when EJECT, LOCK or
    242     UNLOCK returns an error code of 31, it usually means that function
    243     is not supported for the requested drive.  "The parameter is not
    244     correct" may mean you tried it on a non-existent or fixed drive.
    245     Error 163 is not in the OS/2 message file; it's "uncertain media,"
    246     and usually just repeating the command will "fix" it.
    247 
    248 FATOPT.EXE*
    249     An OS/2 FAT optimizer -- defragment, condense freespaces, sort file
    250     and directory names, test sectors in system areas, test (and repair
    251     some damaged) clusters, report on drive usage.  If you receive a
    252     "FATOpt can't lock" message from FATOpt, the drive is in use and
    253     FATOpt can't optimize it; try booting from floppies (place
    254     FATOPT.EXE on the floppy together with VIOCALLS.DLL).  If you
    255     receive a "FATOpt ran out of memory" error, add RAM and/or set up a
    256     swapfile on a partition other than the one being optimized (type
    257     HELP SWAPPATH at a command line for more info) and/or try the -p
    258     or -q switches.  Other errors (uncommon) should be self-explanatory,
    259     if distressing.  CHKDSK/F should be run before running FATOpt, and
    260     it's always a good idea to back up before defragging.  FATOpt
    261     errorlevel returns for batch files:  0 = no problems, 1 = user
    262     abort, 2 = out of memory, 3 = bad file (run CHKDSK/F, dammit),
    263     4 = can't open drive, 5 = can't lock drive, 6 = can't fix bad
    264     cluster, 7 = insufficient free space on drive, 8 = unknown error,
    265     9 = bad system area, 10 = error during standard file copy.
    266     BACKUP BEFORE OPTIMIZING.  REMEMBER THE BEST OPTIMIZATION IS
    267     ACCOMPLISHED BY A BACKUP/DELETE/RESTORE.
    268 
    269 FINDPATH.EXE
    270     List a PATH-style environment variable's directories (or LIBPATH),
    271     or find a file or files in those directories.  Perhaps useful for
    272     tracking down files that appear in more than one directory on the
    273     PATH or LIBPATH.
    274 
    275 FLUSH.EXE
    276     Flush file system caches and buffers (make system quiescent).
    277 
    278 FM2PLAY.EXE*
    279     Used by FM/2 to play multimedia files with the "Play Multimedia"
    280     command (requires MMPM/2).
    281 
    282 HPFSOPT.EXE*
    283     An HPFS optimizer.
    284 
    285 ICONIFY.EXE
    286     "Iconifies" image files, which is to say that it sets the icon
    287     of image files to be miniature versions of the image files.  A
    288     PM program, but designed to be run in batch mode from a command
    289     line.
    290 
    291 IMAGE.EXE*
    292     Used by FM/2 to quickly display image files (requires MMPM/2).
    293     Request a context menu for several options.
    294 
    295 ISTEXT.EXE
    296     Returns ERRORLEVEL 1 if a file appears to be a text (ASCII) file,
    297     0 if not or file is inaccessible.
    298 
    299 KILL2.EXE
    300     A timed deletion/touch/list utility.
    301 
    302 KILLPID.EXE
    303     Kill processes by PID or title, or list PIDs of running processes.
    304     See also SWITCHTO.EXE.
    305 
    306 KEYLOCKS.EXE
    307     Control state of num lock, caps lock, scroll lock.  Note:  PM
    308     program, but still designed to be run from command line.
    309 
    310 LA.EXE
    311     Lists the contents of archive files, extracts files from archives
    312     using one command without you having to know the archive type or
    313     archiver commands (requires ARCHIVER.BB2 datafile to be on your
    314     PATH or DPATH, copy included in the archive, edit to taste/need).
    315 
    316 LINES.EXE
    317     Counts lines in text files.
    318 
    319 LOCK.EXE
    320     Lock a removable drive.
    321 
    322 MAKEOBJ.CMD
    323     Creates WPS objects for filenames -- program objects for programs,
    324     shadows for everything else -- on the desktop.
    325 
    326 MKPATH.EXE
    327     Make directories many levels deep with one command.
    328 
    329 MOV.EXE
    330     A MOVE command that can move between drives and optionally allows
    331     overwriting.
    332 
    333 MSENSIT.EXE
    334     Set sensitivity of mouse.
    335 
    336 NO.EXE
    337     Hides file system objects, then runs a command (excludes file system
    338     objects from a command).
    339 
    340 NOCAD.EXE
    341     Disables/reenables (toggles) CTRL-ALT-DEL.
    342 
    343 OPEN.EXE
    344     Opens a WPS object or website.
    345 
    346 PRIORITY.EXE
    347     A launch-with-priority program that lets you set the priority of
    348     other programs when you start them.
    349 
    350 PTREE.EXE
    351     Displays the tree of a given path, several options.
    352 
    353 QFORMAT.EXE
    354     Quick format floppies by zapping the root and FATs.  NOTE:  Warp's
    355     FORMAT will do this now, too (/Q switch).
    356 
    357 QPLAY.EXE
    358     Quiet play plays multimedia files via MMPM/2 without showing itself
    359     (perhaps useful from batch files).
    360 
    361 REBOOT.EXE
    362     Reboots the system as though you'd pressed CTRL-ALT-DEL.
    363 
    364 REBOOTP.EXE
    365     Reboots the system as though you'd pressed CTRL-ALT-DEL after
    366     broadcasting a WM_QUIT message to all children of the desktop and
    367     waiting 60 seconds for the applications to save their settings and
    368     quit (note that VIO and DOS applications will pop up their "Are you
    369     sure?" boxes, but you don't have to be there to answer (and
    370     shouldn't be -- use Shutdown instead if you're not automating),
    371     though such apps won't pick up on the hint to shut down).  This is a
    372     PM application, but still designed to be run from command line.
    373 
    374 REMTAB.EXE
    375     Removes TABs from text files.
    376 
    377 RENCASE.EXE
    378     Renames files to the same name but all upper, lower or "mixed" case.
    379 
    380 RESET.EXE
    381     Resets a drive.
    382 
    383 SAVEDESK.EXE
    384     Saves the Desktop, optionally restarts WPS by killing it and letting
    385     it restart itself.
    386 
    387 SCOPY.EXE
    388     Copy new files and/or newer versions of existing files.  Primarily
    389     intended for backup and synchronization.
    390 
    391 SDIR.CMD
    392     Directory listing that shows .SUBJECT EAs.
    393 
    394 SEEHELP.EXE
    395     For systems where VIEW.EXE will not display .HLP files, this lets
    396     you view help files without starting the program to which they
    397     belong.
    398 
    399 SMODE.EXE
    400     Set screen modes (columns, rows, resolutions) for VIO/full screen
    401     sessions or reports on available modes.
    402 
    403 SNAPSHOT.EXE
    404     Creates a "snapshot" file compatible with PMDMatch.
    405 
    406 SR.EXE
    407     Simple search-and-replace command, optional interactive mode.
    408     Intended to be used non-interactively for many files in a single
    409     pass (otherwise a text editor is more suitable).
    410 
    411 SRCH.CMD
    412     A search command for OS/2 (finds text in files).
    413 
    414 STRIP.EXE
    415     Filter that strips specified strings from input.
    416 
    417 SUBJ.CMD
    418     Show and modify .SUBJECT EAs.
    419 
    420 STRIPCDS.EXE
    421     A filter that strips ANSI and VT-100 escape codes from stdin and
    422     writes the results to stdout.
    423 
    424 SWEEP.CMD
    425     A sweep command for OS/2; performs a command in all subdirectories
    426     of the current directory.
    427 
    428 SWITCHTO.EXE
    429     Switch current or a specified process (by PID or partial title) to
    430     the foreground.
    431 
    432 TEST.EXE
    433 TEST.CMD
    434 TESTPM.EXE
    435     Repeat all the arguments it receives; useful for debugging command
    436     lines and figuring out what arguments one program receives from
    437     another.
    438 
    439 TESTDRV.EXE
    440     Test a drive.  Should be run with a drive other than the one being
    441     tested as the default for best results (saves a logfile listing any
    442     bad sectors found to the default directory).
    443 
    444 TESTFIND.EXE
    445     Tests an IFS's DosFindFirst/Next implementation for troubleshooting.
    446 
    447 TESTHAND.EXE
    448     Reports the number and type of inherited file handles.
    449 
    450 TESTRC.EXE
    451     Runs a program and reports its return code (ERRORLEVEL).
    452 
    453 TYPERATE.EXE
    454     Sets the typematic rate.
    455 
    456 UNARJER.CMD
    457     Unarjs any arj file dropped onto it into the same directory where
    458     the arj file resides, then opens a folder for that directory.
    459 
    460 UNIQUE.EXE
    461     Counts the number of lines, words and unique words in a text file,
    462     gives a breakdown of how many times each unique word was used.
    463 
    464 UNLOCK.EXE
    465     Unlock a removable drive.
    466 
    467 UNLZHER.CMD
    468     Unlzhs any lzh file dropped onto it into the same directory where
    469     the lzh file resides, then opens a folder for that directory.
    470 
    471 UNZIPPER.CMD
    472     Unzips any zip file dropped onto it into the same directory where
    473     the zip file resides, then opens a folder for that directory.
    474 
    475 WHERE.CMD
    476     A where command for OS/2; finds files on a specified or the default
    477     drive.
    478 
    479 WIPE.EXE
    480     Wipes then erases files so that their data cannot be recovered.
    481     Meets DOD standards.
    482 
    483                                                     * Used by "stock" FM/2.
    484 </README>
    485 </PAGE>
    486 
    487 <PAGE INDEX=6 TYPE=README>
    488 <NEXTBUTTON TARGET=7>~I agree</NEXTBUTTON>
    489 <TEXT>FM/2 Utilities: By pressing the "I agree" button, you agree to all terms and conditions of the license agreement below.</TEXT>
    490 <README>Simple license statement:
    491 ========================
    492 These utilities may be freely used by end users.  I retain copyright and
    493 reserve all rights.  There is NO warranty expressed or implied.
    494 
    495 Distribution rights are granted for online (dial-up, Internet, CIS,
    496 etc.) services ONLY without prior written permission from author.
    497 If you want to distribute for money, you MUST contact me first and
    498 make arrangements.
    499 
    500 
    501 Author contact info:
    502 ===================
    503   Mark Kimes (mkimes@ibm.net)
    504 </README>
    505 </PAGE>
    506 
    507 <PAGE INDEX=7 TYPE=CONTAINER>
    508 <NEXTBUTTON TARGET=8>~Next</NEXTBUTTON>
    509 <TEXT>Many of the programs included within FM/2 Utilities are intended to be run from the command line. If the installation directory is not already on the PATH, then this installation will ensure that your installation directory will be on the PATH after the next reboot (unless you specifiy otherwise on the next page).</TEXT>
    510 </PAGE>
    511 
    512 <PAGE INDEX=8 TYPE=CONFIGURE>
    513 <NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON>
    514 <TEXT>Please select/deselect the desired configuration option(s).
    515 
    516 The CONFIG.SYS modification is the addition of the FM/2 Utilities installation directory to end of the PATH (if it is not already on the PATH), simplifying access to the utiities from the command line.
    517 
    518 Uncheck "Modify CONFIG.SYS" if you do not want your PATH changed.</TEXT>
    519 </PAGE>
    520 
    521 
    522 </BODY>
    523 </WARPIN>
    524 <!--
    525 <README EXTRACTFROMPCK="7">fm2utils.doc</README>
    526531-->
Note: See TracChangeset for help on using the changeset viewer.