Changeset 268 for trunk/dll/ipf/arclist.ipf
- Timestamp:
- Dec 8, 2005, 7:15:10 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/dll/ipf/arclist.ipf (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/ipf/arclist.ipf
r108 r268 15 15 :i1 id=aboutArchiveListing.Archive Container 16 16 Archive Container windows presents you with a list of an archive's 17 contents. The menus available here present you with commands which you17 contents. The menus available here present you with commands which you 18 18 can perform on selected files and the archive as a whole, as well as the 19 usual configuration of the window's appearance. You get here by double-19 usual configuration of the window's appearance. You get here by double- 20 20 clicking an archive file in an FM/2 Directory Container window. 21 21 :p. … … 25 25 Besides the container showing the archive contents and a couple of 26 26 informational fields above that, there's an entry field at the bottom of 27 the window that shows the current :hp1.extract directory:ehp1.. This is28 the directory in which any extracted files will be placed. (Extraction27 the window that shows the current :hp1.extract directory:ehp1.. This is 28 the directory in which any extracted files will be placed. (Extraction 29 29 refers to copying files from the archive onto your disk as normal 30 30 files.) To change the extract directory, enter a new directory into the … … 35 35 You can drag files onto the Archive Container's listing to add them to 36 36 the archive, and you can drag files from the archive to an FM/2 37 directory window. OS/2's drag and drop "rendering" mechanism would make37 directory window. OS/2's drag and drop "rendering" mechanism would make 38 38 this painfully slow for any other application's window, as each file is 39 39 processed individually (imagine extracting each file in an archive by 40 40 typing a separate command line for each to get an idea how slow it would 41 be). The menu extract items allowoptimizing extraction so that only41 be). The menu extract items allows optimizing extraction so that only 42 42 one "pass" needs to be done (note that :hp1.Files->Extract:ehp1. must 43 43 also deal with the OS/2 command line length restriction of 1024 bytes, … … 47 47 around it. 48 48 :p. 49 You can get a popupmenu in the container by pressing B2.49 You can get a context menu in the container by pressing B2. 50 50 :p. 51 51 Following is a discussion of the pull-down menus: … … 54 54 :p. 55 55 :hp1.View:ehp1. causes FM/2 to extract the file(s) to a temporary 56 directory and display it/them. If, for some reason, the files don't56 directory and display it/them. If, for some reason, the files don't 57 57 appear when you attempt to view them, try :hp1.Test:ehp1.ing the archive. 58 58 :p. 59 59 :hp1.Edit:ehp1. works as above but the file(s) are loaded into the 60 configured editor instead of being viewed. File(s) can then be61 :hp1.Refreshed:ehp1. back into the archive. :hp2.Note&colon.:ehp2.60 configured editor instead of being viewed. File(s) can then be 61 :hp1.Refreshed:ehp1. back into the archive. :hp2.Note&colon.:ehp2. 62 62 Do not attempt to Refresh files that were stored with pathnames. 63 63 The pathname will either be lost or an additional file without … … 76 76 :p. 77 77 :hp1.Exec:ehp1. causes FM/2 to extract all selected files to a temporary 78 directory and then runs the cursored file. If you pick this from a78 directory and then runs the cursored file. If you pick this from a 79 79 popup menu, that would be the file under the mouse pointer when you 80 requested the popup. This allows you to select DLLs, help files, data80 requested the popup. This allows you to select DLLs, help files, data 81 81 files, etc. required to get the application to run correctly as well as 82 82 the executable file. 83 83 :p. 84 :hp1.Print:ehp1. causes FM/2 to extract and print selected files. This84 :hp1.Print:ehp1. causes FM/2 to extract and print selected files. This 85 85 uses the FM/2 printing method, not the OS/2 printer objects (see 86 86 Config->Printer in an FM/2 main window's pulldown menu). … … 91 91 :p. 92 92 :hp1.Virus Scan:ehp1. causes FM/2 to extract the selected files and then 93 run the configured virus checker. See the :hp1.:link reftype=hd93 run the configured virus checker. See the :hp1.:link reftype=hd 94 94 res=92200.internal Settings notebook's Files/Dirs page:elink.:ehp1.. 95 95 :p. 96 96 :hp1.Extract All:ehp1. extracts all files from the archive to the 97 extract directory. :hp1.Extract All &. Exit:ehp1. does the97 extract directory. :hp1.Extract All &. Exit:ehp1. does the 98 98 same thing but closes the archive listing window after starting the 99 99 extraction. … … 104 104 directory). :hp1.Extract All w/ Dirs &. Exit:ehp1. does the same 105 105 thing but closes the archive listing window after starting the 106 extraction. (:hp2.Note:ehp2. that if all you want to do to an archive106 extraction. (:hp2.Note:ehp2. that if all you want to do to an archive 107 107 is extract from it, you can do so without ever opening a contents box; 108 108 just pull up a context menu on the archive in an FM/2 main window and 109 select :hp1.Extract:ehp1.. This is the fastest and most efficient109 select :hp1.Extract:ehp1.. This is the fastest and most efficient 110 110 method of extracting files from an archive.) 111 111 :p. … … 121 121 :hp2.Archivers:ehp2. are programs that create files composed of 122 122 (usually) compressed data that represents, and allows recreation of, 123 normal (uncompressed) files. These archiver programs are widely used to124 create archive files for downloading from BBSs, information services and123 normal (uncompressed) files. These archiver programs are widely used to 124 create archive files for downloading from 125 125 the Internet, and to extract from those archive files once downloaded. 126 126 They're also used to create archives locally for backup purposes, as the … … 148 148 :pt.&period.ARC 149 149 :pd.Arc 150 :pt.&period.TAR 151 :pd.Tar 150 152 :eparml. 151 153 :p. … … 153 155 where the * will be a number indicating the version of the program. 154 156 These are self-extracting archives (archives that extract themselves 155 when you run the .EXE) so you don't get a chicken-or-egg scenario. You156 can find them on BBSs, information services and the Internet-- in other157 when you run the .EXE) so you don't get a chicken-or-egg scenario. You 158 can find them on the Internet (Hobbes) -- in other 157 159 words, you can find them the same places where archive files are most 158 often used.160 often found. 159 161 :p. 160 FM/2 can work with DOS archivers, but they aren't supported. If you162 FM/2 can work with DOS archivers, but they aren't supported. If you 161 163 decide you want to use your DOS archivers rather than OS/2 native 162 164 archive programs, you'll have to figure it out on your own (see … … 164 166 the ARCHIVER.BB2 datafile that came with FM/2). 165 167 166 :h2 res=94200 name=PANEL_AD_FRAME.Editing Archiver Details167 :i1 id=aboutEditArc.Editing Archiver Details168 :p.169 This dialog box, which you can reach from the Config menu, allows you to170 edit the details of an :link reftype=hd res=10015.archiver:elink.. Entry171 boxes are present for all the twenty one fields represented in172 ARCHIVER.BB2 (the text file that contains control information about your173 archivers which FM/2 uses to interface with the archivers). It's174 probably easier for most people to edit ARCHIVER.BB2 directly with a175 text editor.176 :p.177 :hp1.NOTE&colon.:ehp1. The simplest method to ensure that your archivers178 work properly with FM/2 is to make sure they're in a directory named in179 your PATH= statement, and check the names of the files to make sure they180 match what's on your system (i.e. UNZIP.EXE in both ARCHIVER.BB2 and on181 your hard disk, not UNZIP.EXE in one and UNZIP32.EXE in another).182 :p.183 In the event that you attempt to list an archive and FM/2 feels you've184 probably bungled the entry in ARCHIVER.BB2, you'll be given an185 opportunity to use this dialog to fix the entry. In this case, you'll186 see the listbox at the right of the dialog filled with the listing of187 the archive that your archiver made. You can highlight a line and click188 the << button next to the Start List or End List fields to move the line189 to that entry field (these are the most common mistakes, and FM/2 cannot190 find any files if the Start List string is wrong). You can double-click191 on a listbox line to have FM/2 "parse" it into the Fld# text boxes for192 you, to make it easier to judge field positions for sizes, dates, and193 filenames. The filename field in particular is extremely important. If194 it's too high, FM/2 finds no files. If it's "in range" but wrong, FM/2 gets195 the wrong fields for filenames.196 :p.197 You may still need to refer to your archiver's documentation, or run it198 to get the help on its command syntax. FM/2 can't do everything for you,199 but it holds your hand as best it can.200 :p.201 Refer to the ARCHIVER.BB2 file that came with FM/2 for additional202 information and an example.203 :p.204 When you've completed editing the archiver's details, click Okay. FM/2205 will ask you if you want to rewrite ARCHIVER.BB2 (be sure you save the206 original copy for its complete notes; FM/2 will back it up one version to207 ARCHIVER.BAK). If you don't rewrite ARCHIVER.BB2, changes are good only208 for the current session (handy for testing).209 :p.210 You can also get to this dialog box from Select Files' Config submenu.211 :p.212 See also&colon.213 :p.214 :link reftype=hd res=94300.Archiver Details Fields:elink.215 216 :h3 res=94300 name=PANEL_ARCFLDS.Archiver Details Fields217 :i1 id=aboutArcFlds.Archiver Details Fields218 :p.219 :hp2.ID:ehp2. This field contains an ID for the archiver; something for220 human consumption. It's a good idea to include the version number of the221 archiver for reference. An example might be "LHArc 2.11".222 :p.223 :hp2.Add:ehp2. This field should contain the command that creates224 and adds files to an archive. An example might be "PKZIP.EXE -a" (NOTE:225 This example assumes the file is on your PATH (see PATH= in CONFIG.SYS).226 If it's not, you'd need to give a full pathname, like227 "C&colon.\UTILS\PKZIP.EXE -a".) Note that commands should include the228 extension so that FM/2 can check them without guessing. Above this229 field is a button labeled "See." If clicked, the program named in this230 field will be run (you'll be given the opportunity to add arguments to231 the command line) in another window. This lets you check command syntax232 and archiver version, as well as assuring that FM/2 can find your archiver233 executables.234 :p.235 :hp2.Move:ehp2. This field should contain the command that moves files236 to the archive (adds then deletes the file). An example might be237 "ARC.EXE mwn".238 :p.239 :hp2.Extension:ehp2. This field contains the extension normally240 associated with files created by this archiver. An example might be241 "ZOO" for files created by the Zoo archiver.242 :p.243 :hp2.Extract:ehp2. This field contains the command that extracts files244 from the archive. This command should not delete the files from the245 archive when it extracts them, and *must* be present for FM/2 to show you246 a member of the archive (commands other than Extract and List may be247 left blank if necessary). An example might be "PKUNZIP.EXE -o". Note248 the "-o" option given; this tells PKUNZIP to automatically overwrite any249 existing files (FM/2 will check to see if any of the files exist and warn250 you if so). It's important to always include your archiver's "don't251 stop for user input" option; some things occur as detached processes and252 you can't interact with them; the program would be hung, which is253 uncool. Above this field is a button labeled "See." If clicked, the254 program named in this field will be run (you'll be given the opportunity255 to add arguments to the command line) in another window. This lets you256 check command syntax and archiver version.257 :p.258 :hp2.Extract w/Dirs:ehp2. This field contains the command that extracts259 files from the archive and places them into directories embedded in the260 archive. An example might be "LH.EXE x /o /s".261 :p.262 :hp2.Signature:ehp2. This field contains the signature for the archive263 type. There is usually a byte or few in a particular place in any264 archive that indicates that it is, indeed, an archive of that type. FM/2265 uses these signatures to "sniff out" which archiver is used to266 manipulate the archive. Since these signatures sometimes contain267 characters which are "unprintable," you can use \x<hexnum> to represent268 any "strange" characters. A side effect of this is that two backslashes269 are required to represent a single backslash ("\\" == "\"). See270 :link reftype=hd res=99500.C-style encoding:elink. for more information.271 :p.272 To determine what an archiver's signature is, either ask the archiver's273 author or check several different archives of the type for one or more274 bytes present in each at the same location, usually near the beginning275 of the file.276 :p.277 This field must be entered and valid for FM/2 to detect this type of278 archive (see also Sig(nature) Pos(ition)).279 :p.280 :hp2.List:ehp2. This field contains the command to list the archive's281 contents. This command *must* be present and correct for FM/2 to work282 properly with this type of archive. An example might be "ZOO.EXE v".283 :p.284 :hp2.Test:ehp2. This field contains the command to test the archive's285 integrity. An example might be "PKUNZIP.EXE -t".286 :p.287 :hp2.Add with paths:ehp2. This field contains the command to add files288 to the archiver with their paths (i.e. \FM3\FM3.EXE instead of just289 FM3.EXE). This can be omitted if the archiver doesn't support the290 command. An example might be "ZIP.EXE" (Zip defaults to adding paths).291 :p.292 :hp2.Move with paths:ehp2. As above, but moves the files instead of293 just adding them. An example might be "PKZIP -m -P".294 :p.295 :hp2.Add and recurse:ehp2. Adds files to the archive, with paths, and296 recurses into subdirectories. An example might be "LH a /s".297 :p.298 :hp2.Delete:ehp2. This field contains the command to delete files from299 the archive. An example might be "LH.EXE /o /d".300 :p.301 :hp2.Sig(nature) Pos(ition):ehp2. This field contains a number302 indicating how many bytes into the file the signature is located. If303 this number is negative, FM/2 looks from the end of the file instead of304 the beginning.305 :p.306 :hp2.F(ile)Name Pos(ition):ehp2. This field tells FM/2 which field on307 the line of an archive listing is the file name.308 Archive listing fields are numbered from 0.309 The file name position item consists of 4 subfields separated by commas.310 All subfields must be present and correct for FM/2 to get the right311 file names from the archive listing.312 The first is the field number.313 The second is a flag which is set to 1 to indicate that the file314 name is the last field on the line.315 This allows unquoted archive member names to contain spaces316 The third is a flag which is set to 1 to indicate that the file name starts317 at the second character of the field.318 This allows files that are surrounded by unusual bracketing characters.319 The fourth is a flag which is set to 1 to indicate the the file name320 stands alone at the first field in the listing line and321 the file details are on the next line.322 :p.323 To understand what "field on the line of an archive listing" means,324 think of a text line as being broken up into tokens, or words, separated325 by spaces. These tokens, or words, are fields. Therefore,326 :p.327 I like Ike.328 :p.329 contains three fields. Field 0 is "I", field 1 is "like", and field 3330 is "Ike." Think of it like this&colon.331 .br332 :xmp.333 +--------------------+334 | 0 | 1 | 2 | Field Numbers335 +------+------+------+336 | I | like | Ike | Field Contents337 +------+------+------+338 :exmp.339 :p.340 :hp2.OldS(i)z(e) Pos(ition):ehp2. This field tells FM/2 which field on341 the line of an archive listing is the old (uncompressed) size of the342 file. If this isn't available or you don't care about it, you can enter343 a -1 to disable detection of this field entirely.344 :p.345 :hp2.NewS(i)z(e) Pos(ition):ehp2. This field tells FM/2 which field on346 the line of an archive listing is the new (compressed) size of the file.347 If this isn't available or you don't care about it, you can enter a -1348 to disable detection of this field entirely.349 :p.350 :hp2.Date Pos(ition):ehp2. This field tells FM/2 which field on351 the line of an archive listing is where the time/datestring is. If this352 isn't available or you don't care about it, you can enter a -1 to353 disable detection of this field entirely. You can optionally follow this354 number with a comma and another number that indicates the type of the355 date from any of the formats in the following list&colon.356 .br357 :xmp.358 1. 02-08-96 23&colon.55&colon.32359 2. 8 Feb 96 23&colon.55&colon.32360 3. 8 Feb 96 11&colon.55p361 4. 96-02-08 23&colon.55&colon.32362 :exmp.363 :p.364 :hp2.NumDateF(ie)lds:ehp2. This field tells FM/2 how many fields comprise365 the time/datestring.366 :p.367 :hp2.Start-of-list:ehp2. The line that comes just before the list of368 files in the archiver listing (see example below). You can use the369 :hp2.<<:ehp2. button to insert a selected line directly from the listbox370 into this field.371 :p.372 :hp2.End-of-list:ehp2. The line that comes just after the list of373 files in the archiver listing (see example below). You can use the374 :hp2.<<:ehp2. button to insert a selected line directly from the listbox375 into this field.376 :p.377 Here's an example of an ARC listing (5.12mpl, command "ARC l"; you may378 need to widen the help windows for this to look right...):379 :p.380 :xmp.381 Name Length Date382 ============ ======== ========= <--this line is start-of-list383 MAKEFILE 374 28 Nov 89384 QSORT.C 14279 29 Nov 89385 QSORT.EXE 24629 29 Nov 89386 STUFF.H 371 29 Nov 89387 ==== ======== <--this line is end-of-list388 Total 4 39653389 :exmp.390 :p.391 Note the filename is in position 0, old length in position 1, and the392 date starts in position 2, with 3 parts, and there's no new length393 field (so it'd be -1). Compare that to the archiver entry for394 ARC 5.12mpl in the "stock" ARCHIVER.BB2 and you should get a feel for395 what all those fields mean.396 168 397 169 :h2 res=98300 name=PANEL_ARCERR.Archive Errors 398 170 :i1 id=aboutArchiveErrors.Archive Errors 399 171 Sometimes FM/2 can't get information from the archiver about an archive. 400 There are a couple of reasons this could happen&colon. The information172 There are a couple of reasons this could happen&colon. The information 401 173 in ARCHIVER.BB2 may be incorrect for the archive type, or the archive may 402 be damaged. Possibly the file "smelled" like an archive but wasn't.174 be damaged. Possibly the file "smelled" like an archive but wasn't. 403 175 Perhaps you selected :hp1.View->As archive:ehp1. on a file that wasn't 404 176 actually an archive. 405 177 :p. 406 When this happens, this dialog appears. You'll be given as much178 When this happens, this dialog appears. You'll be given as much 407 179 information as possible, including the text of what the archiver had to 408 180 say about the archive when it was asked to list its contents, presented 409 in an MLE, and allowed four choices&colon. :link reftype=hd181 in an MLE, and allowed four choices&colon. :link reftype=hd 410 182 res=94200.Edit the archiver details:elink., Test the archive (if you 411 183 have told FM/2 how to test archives with this archiver in ARCHIVER.BB2), 412 184 View the archive, or Cancel the whole thing. 413 185 :p. 414 Generally speaking, first Test the archive. If the archive is okay or186 Generally speaking, first Test the archive. If the archive is okay or 415 187 if the test won't run at all, the problem is most likely in your archive 416 information record in ARCHIVER.BB2. You can View the archive to assure188 information record in ARCHIVER.BB2. You can View the archive to assure 417 189 yourself that it is, in fact, an archive, and perhaps hunt down the 418 190 signature so you can add it to ARCHIVER.BB2 if it's not a listed archive
Note:
See TracChangeset
for help on using the changeset viewer.
