source: trunk/dll/ipf/FM2util.ipf@ 1036

Last change on this file since 1036 was 422, checked in by root, 19 years ago

Add

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 12.8 KB
Line 
1:h2 res=100090 id='PANEL_FM2UTIL'.
2FM&slash.2 Utilities
3
4These Utilities are not part of the current open source version of FM2. They are necessary for
5some functions in FM2. They are avalable on Hobbes (http&colon.//hobbes.nmsu.edu/pub/os2/util/browser/fm2utils.zip)
6as freeware under the following licence&colon.
7:p.
8They are copyright &lpar.c&rpar. 1994&slash.95 by M&per. Kimes &lpar.Barebones Software&rpar. all rights reserved
9
10These utilities may be freely used by end users&per. M. Kimes' retains copyright and reserves all rights&per. There is NO warranty expressed or implied&per.
11:p.Distribution rights are granted for online &lpar.dial&endash.up&comma.
12Internet&comma. CIS&comma. etc&per.&rpar. services ONLY without prior written permission from author&per.
13If you want to distribute for money&comma. you MUST contact me first and make arrangements&per.
14
15:p.This collection of utilities may prove useful in conjunction with FM&slash.2 &lpar. as it provides
16some of its functionality such as HPFS and Fat optimization&rpar.
17:p.All the &per.EXE utilities provide help if you run them followed by &slash.?
18&lpar.hint&colon. arguments shown in brackets &lbracket.&rbracket. are
19optional&comma. arguments shown in braces &lt.&gt. are required&rpar.&per.
20:p.
21The &per.CMD utilities may be directly inspected using a text editor and are commented
22as to use and function&per.
23.br
24It&apos.s recommended that you place these utilities into a directory on your
25PATH &lpar.type HELP PATH at a command prompt if you don&apos.t know what that
26means&rpar.&per. If you have FM&slash.2 installed&comma. may I suggest you make
27a UTILS directory off your FM&slash.2 directory &lpar.the FM&slash.2 INSTALL&per.CMD
28assumes you the utilities will be in that location&comma. and will make some program objects for you&rpar.?
29:p.These utilities are standalone&comma. meaning that one doesn&apos.t rely on
30another&per. You can therefore delete any you don&apos.t want to keep around
31without affecting the operation of any of the others&per. Files followed by an asterisk
32are used by FM2 to provide some of its base functionality.
33:p.
34Following is a very brief description of each program in the package&colon.
35:p.BEEP&per.EXE
36.br
37 Makes a beep noise&per.
38:p.CRC&per.EXE
39.br
40 Calculates and prints the CRC of a file or files&per.
41:p.CVT4OS2&per.CMD
42.br
43 Converts 4DOS&slash.4OS2 non&endash.standard DESCRIPT&per.ION files to
44WPS&endash.standard &per.SUBJECT EAs &lpar.see comments in program&rpar.&per.
45:p.CVTFBBS&per.CMD
46.br
47 Converts FILES&per.BBS file comments to WPS&endash.standard &per.SUBJECT EAs
48&lpar.see comments in program&rpar.&per.
49:p.DELTREE&per.EXE
50.br
51 Deletes a directory and all its subdirectories and files&per.
52:p.DRVRLIST&per.EXE
53.br
54 Lists all mounted drivers&per. Use &slash.w switch for a "wide" listing&per.
55:p.DRVTYPES&per.EXE
56.br
57 Lists all drives with information on their types&per.
58:p.DSTART&per.EXE
59.br
60 A START command that will work from DOS VDMs &lpar.penalty box&rpar.&per.
61:p.EA&per.EXE
62.br
63 An extended attribute manipulation program&per. Can be used to zap all the EAs from REXX &per.CMD files&per.
64:p.EJECT&per.EXE
65.br
66 Eject media from a removable drive&per. Notes&colon. when EJECT&comma.
67LOCK or UNLOCK returns an error code of 31&comma. it usually means that function
68is not supported for the requested drive&per. "The parameter is not correct" may mean
69you tried it on a non&endash.existent or fixed drive&per. Error 163 is not in the OS&slash.2
70message file&semi. it&apos.s "uncertain media&comma."and usually just repeating the command
71will "fix" it&per.
72:p.FATOPT&per.EXE&asterisk.
73.br
74 An OS&slash.2 FAT optimizer &endash.&endash. defragment&comma. condense
75freespaces&comma. sort file and directory names&comma. test sectors in system areas&comma. test
76&lpar.and repair some damaged&rpar. clusters&comma. report on drive usage&per. If you
77receive a "FATOpt can&apos.t lock" message from FATOpt&comma. the drive is in use and
78FATOpt can&apos.t optimize it&semi. try booting from floppies &lpar.place
79FATOPT&per.EXE on the floppy together with VIOCALLS&per.DLL&rpar.&per. If you
80receive a "FATOpt ran out of memory" error&comma. add RAM and&slash.or set
81up a swapfile on a partition other than the one being optimized &lpar.type
82HELP SWAPPATH at a command line for more info&rpar. and&slash.or try the
83&endash.p or &endash.q switches&per. Other errors &lpar.uncommon&rpar. should be
84self&endash.explanatory&comma. if distressing&per. CHKDSK&slash.F should be run before running
85FATOpt&comma. and it&apos.s always a good idea to back up before defragging&per. FATOpt
86errorlevel returns for batch files&colon. 0 &eq. no problems&comma. 1 &eq.
87user abort&comma. 2 &eq. out of memory&comma. 3 &eq. bad file &lpar.run
88CHKDSK&slash.F&comma. dammit&rpar.&comma. 4 &eq. can&apos.t open drive&comma. 5 &eq. can&apos.t lock drive&comma. 6
89&eq. can&apos.t fix bad cluster&comma. 7 &eq. insufficient free space on drive&comma. 8 &eq. unknown
90error&comma. 9 &eq. bad system area&comma. 10 &eq. error during standard file copy&per.
91.br
92.br
93 :color fc=default bc=red.WARNING&colon. BACKUP BEFORE OPTIMIZING&per.
94.ce REMEMBER THE BEST OPTIMIZATION IS ACCOMPLISHED BY A BACKUP&slash.DELETE&slash.RESTORE&per.
95:color fc=default bc=default.
96:p.FINDPATH&per.EXE
97.br
98 List a PATH&endash.style environment variable&apos.s directories &lpar.or
99LIBPATH&rpar.&comma. or find a file or files in those directories&per. Perhaps useful for
100tracking down files that appear in more than one directory on the PATH or LIBPATH&per.
101:p.FLUSH&per.EXE
102.br
103 Flush file system caches and buffers &lpar.make system quiescent&rpar.&per.
104:p.FM2PLAY&per.EXE&asterisk.
105.br
106 Used by FM&slash.2 to play multimedia files with the "Play Multimedia"
107command &lpar.requires MMPM&slash.2&rpar.&per.
108:p.HPFSOPT&per.EXE&asterisk.
109.br
110 An HPFS optimizer&per.
111:p.ICONIFY&per.EXE
112.br
113 "Iconifies" image files&comma. which is to say that it sets the icon
114of image files to be miniature versions of the image files&per. A
115PM program&comma. but designed to be run in batch mode from a command line&per.
116:p.IMAGE&per.EXE&asterisk.
117.br
118 Used by FM&slash.2 to quickly display image files &lpar.requires
119MMPM&slash.2&rpar.&per. Request a context menu for several options&per.
120:p.ISTEXT&per.EXE
121.br
122 Returns ERRORLEVEL 1 if a file appears to be a text &lpar.ASCII&rpar.
123file&comma. 0 if not or file is inaccessible&per.
124:p.KILL2&per.EXE
125.br
126 A timed deletion&slash.touch&slash.list utility&per.
127:p.KILLPID&per.EXE
128.br
129 Kill processes by PID or title&comma. or list PIDs of running processes&per.
130.br
131 See also SWITCHTO&per.EXE&per.
132:p.KEYLOCKS&per.EXE
133.br
134 Control state of num lock&comma. caps lock&comma. scroll lock&per.
135Note&colon. PM program&comma. but still designed to be run from command line&per.
136:p.LA&per.EXE
137.br
138 Lists the contents of archive files&comma. extracts files from archives
139using one command without you having to know the archive type or
140archiver commands &lpar.requires ARCHIVER&per.BB2 datafile to be on your
141PATH or DPATH&comma. copy included in the archive&comma. edit to taste&slash.need&rpar.&per.
142:p.LINES&per.EXE
143.br
144 Counts lines in text files&per.
145:p.LOCK&per.EXE
146.br
147 Lock a removable drive&per.
148:p.MAKEOBJ&per.CMD
149.br
150 Creates WPS objects for filenames &endash.&endash. program objects for
151programs&comma. shadows for everything else &endash.&endash. on the desktop&per.
152:p.MKPATH&per.EXE
153.br
154 Make directories many levels deep with one command&per.
155:p.MOV&per.EXE
156.br
157 A MOVE command that can move between drives and optionally allows overwriting&per.
158:p.MSENSIT&per.EXE
159.br
160 Set sensitivity of mouse&per.
161:p.NO&per.EXE
162.br
163 Hides file system objects&comma. then runs a command &lpar.excludes file
164system objects from a command&rpar.&per.
165:p.NOCAD&per.EXE
166.br
167 Disables&slash.reenables &lpar.toggles&rpar. CTRL&endash.ALT&endash.DEL&per.
168:p.OPEN&per.EXE
169.br
170 Opens a WPS object or website&per.
171:p.PRIORITY&per.EXE
172.br
173 A launch&endash.with&endash.priority program that lets you set the priority
174of other programs when you start them&per.
175:p.PTREE&per.EXE
176.br
177 Displays the tree of a given path&comma. several options&per.
178:p.QFORMAT&per.EXE
179.br
180 Quick format floppies by zapping the root and FATs&per. NOTE&colon.
181Warp&apos.s FORMAT will do this now&comma. too &lpar.&slash.Q switch&rpar.&per.
182:p.QPLAY&per.EXE
183.br
184 Quiet play plays multimedia files via MMPM&slash.2 without showing itself
185&lpar.perhaps useful from batch files&rpar.&per.
186:p.REBOOT&per.EXE
187.br
188 Reboots the system as though you&apos.d pressed CTRL&endash.ALT&endash.DEL&per.
189:p.REBOOTP&per.EXE
190.br
191 Reboots the system as though you&apos.d pressed CTRL&endash.ALT&endash.DEL
192after broadcasting a WM&us.QUIT message to all children of the desktop and
193waiting 60 seconds for the applications to save their settings and
194quit &lpar.note that VIO and DOS applications will pop up their "Are you
195sure?" boxes&comma. but you don&apos.t have to be there to answer &lpar.and
196shouldn&apos.t be &endash.&endash. use Shutdown instead if you&apos.re not
197automating&rpar.&comma. though such apps won&apos.t pick up on the hint to shut down&rpar.&per.
198This is a PM application&comma. but still designed to be run from command line&per.
199:p.REMTAB&per.EXE
200.br
201 Removes TABs from text files&per.
202:p.RENCASE&per.EXE
203.br
204 Renames files to the same name but all upper&comma. lower or "mixed" case&per.
205:p.RESET&per.EXE
206.br
207 Resets a drive&per.
208:p.SAVEDESK&per.EXE
209.br
210 Saves the Desktop&comma. optionally restarts WPS by killing it and letting it restart itself&per.
211:p.SCOPY&per.EXE
212.br
213 Copy new files and&slash.or newer versions of existing files&per. Primarily
214intended for backup and synchronization&per.
215:p.SDIR&per.CMD
216.br
217 Directory listing that shows &per.SUBJECT EAs&per.
218:p.SEEHELP&per.EXE
219.br
220 For systems where VIEW&per.EXE will not display &per.HLP files&comma. this
221lets you view help files without starting the program to which they belong&per.
222:p.SMODE&per.EXE
223.br
224 Set screen modes &lpar.columns&comma. rows&comma. resolutions&rpar. for
225VIO&slash.full screen sessions or reports on available modes&per.
226:p.SNAPSHOT&per.EXE
227.br
228 Creates a "snapshot" file compatible with PMDMatch&per.
229:p.SR&per.EXE
230.br
231 Simple search&endash.and&endash.replace command&comma. optional interactive
232mode&per. Intended to be used non&endash.interactively for many files in a single
233pass &lpar.otherwise a text editor is more suitable&rpar.&per.
234:p.SRCH&per.CMD
235.br
236 A search command for OS&slash.2 &lpar.finds text in files&rpar.&per.
237:p.STRIP&per.EXE
238.br
239 Filter that strips specified strings from input&per.
240:p.SUBJ&per.CMD
241.br
242 Show and modify &per.SUBJECT EAs&per.
243:p.STRIPCDS&per.EXE
244.br
245 A filter that strips ANSI and VT&endash.100 escape codes from stdin and
246writes the results to stdout&per.
247:p.SWEEP&per.CMD
248.br
249 A sweep command for OS&slash.2&semi. performs a command in all
250subdirectories of the current directory&per.
251:p.SWITCHTO&per.EXE
252.br
253 Switch current or a specified process &lpar.by PID or partial title&rpar. to
254the foreground&per.
255:p.TEST&per.EXE
256.br
257TEST&per.CMD
258.br
259TESTPM&per.EXE
260.br
261 Repeat all the arguments it receives&semi. useful for debugging command
262lines and figuring out what arguments one program receives from another&per.
263:p.TESTDRV&per.EXE
264.br
265 Test a drive&per. Should be run with a drive other than the one being
266tested as the default for best results &lpar.saves a logfile listing any
267bad sectors found to the default directory&rpar.&per.
268:p.TESTFIND&per.EXE
269.br
270 Tests an IFS&apos.s DosFindFirst&slash.Next implementation for troubleshooting&per.
271:p.TESTHAND&per.EXE
272.br
273 Reports the number and type of inherited file handles&per.
274:p.TESTRC&per.EXE
275.br
276 Runs a program and reports its return code &lpar.ERRORLEVEL&rpar.&per.
277:p.TYPERATE&per.EXE
278.br
279 Sets the typematic rate&per.
280:p.UNARJER&per.CMD
281.br
282 Unarjs any arj file dropped onto it into the same directory where
283the arj file resides&comma. then opens a folder for that directory&per.
284:p.UNIQUE&per.EXE
285.br
286 Counts the number of lines&comma. words and unique words in a text
287file&comma. gives a breakdown of how many times each unique word was used&per.
288:p.UNLOCK&per.EXE
289.br
290 Unlock a removable drive&per.
291:p.UNLZHER&per.CMD
292.br
293 Unlzhs any lzh file dropped onto it into the same directory where
294the lzh file resides&comma. then opens a folder for that directory&per.
295:p.UNZIPPER&per.CMD
296.br
297 Unzips any zip file dropped onto it into the same directory where
298the zip file resides&comma. then opens a folder for that directory&per.
299:p.WHERE&per.CMD
300.br
301 A where command for OS&slash.2&semi. finds files on a specified or the
302default drive&per.
303:p.WIPE&per.EXE
304.br
305 Wipes then erases files so that their data cannot be recovered&per.
306Meets DOD standards&per.
307
308:p. This section is adapted from the FM2utilities readme (fm2utils.doc) written by M. Kimes
309
310
Note: See TracBrowser for help on using the repository browser.