source: trunk/dll/ipf/archive.ipf@ 1330

Last change on this file since 1330 was 1306, checked in by Gregg Young, 17 years ago

Added option to use subdirectory based on the archive name for extraction from the arc container; it is set in the notebook and separate from the extract dialog setting; includes help file update, comments and cleanup (Ticket 22)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.7 KB
Line 
1.***********************************************************************
2.*
3.* $Id: archive.ipf 1306 2008-11-30 19:23:56Z gyoung $
4.*
5.* Archiver Usage
6.*
7.* Copyright (c) 1993-98 M. Kimes
8.* Copyright (c) 2006 Steven H.Levine
9.*
10.* 05 Jan 07 GKY Update extract dialog help
11.*
12.***********************************************************************
13.*
14
15:h2 res=91000 name=PANEL_EXTRACT.Extract from archives
16:i1 id=aboutExtract.Extract from archives
17:artwork name='..\..\bitmaps\extract.bmp' align=center.
18:p.
19To extract from an archive, select the archive(s), then select
20:hp1.Extract:ehp1. from a context menu.
21:p.
22FM/2 presents you with a dialog that allows you to select the method of
23extraction. :hp1.Normal:ehp1., the default, will extract all the files in the archive
24to the extract directory without any paths which may be present in the archive.
25This can create a problem if the archive contains files of the same name in
26different paths (i.e. the last of theses files extracted will over write the
27ones extracted earlier). :hp1.With Paths:ehp1. will extract the archive including the
28any directories in the archive structure. This can be made the default by checking the
29:hp1.Always Paths:ehp1. box. Regardless of which method is the default you may
30select the other option on a one time basis without changing the default for future archives.
31If you only wish to extract certain files you can select masks (i.e *.txt) for the files
32you wish to extract. The command line box allows you to change or add extraction options.
33See the help files for your archiver (e.g. zip.exe) for more information.
34You can select the extraction directory (the directory to which the files will be extracted.
35The default is the current directory or you can set a specific directory as the default on
36the Archiver page of the Setting Notebook. You can set the :hp1.Filename as extract path :ehp1.
37to have FM/2 create an extract path based on the archive name.The path is made as a subdirectory
38to the directory the archive is in. You can use the :hp1.Walk:ehp1. button
39find the directory you wish to extract to or you can type a path directly into the listbox.
40If the path you type in doesn't exist FM/2 will offer to create it for you.
41You can also drag file system objects onto the Extract Directory entryfield
42to set the extraction directory.
43:p.
44If you check the :hp1.Remember...:ehp1. checkbox, this dialog will
45remember some of its settings for the next time you use it. Uncheck
46it and it'll forget them and use the defaults.
47:p.
48Click :hp1.Okay:ehp1. to begin extracting from the archive, or
49:hp1.Cancel:ehp1. if you change your mind.
50:p.
51You can also extract files from the archive in the :link reftype=hd
52res=90200.Archive Container:elink. window using that window's menus;
53double-click an archive file in an FM/2 main window to view the
54archive listing.
55:p.
56Notes&colon.
57:p.
58I have a copy of ARC.EXE here that's 'broken' in that it won't extract
59files unless given a DOS filemask (for instance, to extract all files
60you need to enter *.* (not *) in the masks field). FM/2 normally gives
61:hp2."*":ehp2. as the argument when you want to extract
62everything, which most other archiver in the world understand.
63:p.
64The ZIP/UNZIP programs are case sensitive even though OS/2 itself is
65not, so, for example, trying to extract "*.PKT" when the file inside the
66archive is "01234567.pkt" will fail to extract the file -- you'd have to
67use "*.pkt". If in doubt, use both or use the -C command line switch to
68force UNZIP to ignore case.
69:p.
70I'm told there's a bug in some versions of 4OS2 that can cause
71a call to an archiver to fail if the archiver has an extension (i.e.
72UNZIP works, UNZIP.EXE doesn't). If things fail for no apparent reason
73and you're using 4OS2 you might keep it in mind.
74
75:h2 res=90300 name=PANEL_ARCHIVE.Build an archive
76:i1 id=aboutArchive.Build an archive
77:artwork name='..\..\bitmaps\archive.bmp' align=center.
78:p.
79To build an archive, select some files, then select :hp1.Archive:ehp1.
80from a context menu. You can add files to an existing archive by
81link-dragging them onto the archive object, or dragging them onto an
82:hp1.:link reftype=hd res=90200.Archive Container:elink.:ehp1. window.
83:p.
84FM/2 will ask you for the type of the archive by presenting you with a
85listbox from which to pick an archiver.
86After that, another dialog appears to let you modify how the archive that
87will be created. Additional masks may be entered (remember that some versions
88of ZIP and UNZIP programs are case sensitive), the archiver command line
89tweaked, and so forth. Click :hp1.Okay:ehp1. to create the archive, or
90:hp1.Cancel:ehp1. if you change your mind.
91:p.
92Note that the archive name may be an existing archive, in which case
93it's modified by adding the new files. If some of the files are
94already in the archive, they're replaced.
Note: See TracBrowser for help on using the repository browser.