![]() The embedded option can be configured to operate by default. In the example, if outerarchive.zip contains a single embedded archive (it may also contain non-archive files), PKZIP extracts the files from the embedded archive instead of extracting the embedded archive itself, and does not prompt. Pkzipc -extract -embedded=zip outerarchive.zip You must specify the type of the outer, container archive for which you want to extract files from embedded archives. The embedded option can be used with extract to tell PKZIP to omit the prompt and just go ahead and extract the files contained in any lone archive file embedded in an archive of the specified type. For example, if PKZIP is extracting the contents of outerarchive.zip, and outerarchive.zip contains innerarchive.zip, PKZIP asks you whether you want to extract the files in innerarchive.zip or just innerarchive.zip itself. If PKZIP encounters a lone embedded archive file in another archive whose contents PKZIP is extracting, PKZIP prompts you whether you would like to extract the contents of the embedded archive or just the archive itself. Such contained archives are said to be embedded in the archive that contains them. For example, a ZIP file can contain other ZIP archives, or a GZIP archive might contain a TAR archive. Pkzipc -extract=freshen test.zip Extracting from an Archive Embedded in an Archive embeddedĪn archive can contain other archive files. It does not add any files to the directory that are not already there in an earlier version. Pkzipc -extract=update test.zip Extracting Only Newer Versions of Files extract=freshenįreshen extracts only files that are newer versions of files that already exist in the target extract directory. Archive files that are older versions of files already in the directory are not extracted. Update extracts to the target extract directory only files that are not already in the directory or are newer versions of files that are already there. Pkzipc -extract=all test.zip Extracting Newer Versions of Existing Files and New Files extract=update The override applies only to this instance of the command it does not reset the default you have defined. This command does the same thing as the first example but also overrides any changed default setting. The following example explicitly specifies the sub-option. In this example, all files in the archive are extracted into the current directory.īy default, extract uses the all sub-option you do not need to specify this sub-option unless you have changed the default for extract to some other sub-option. ![]() To extract all files from an archive file, type pkzipc -extract and the name of your archive file, as shown below: Only files that are more recent versions of-that is, have the same names as-files that are already in the extract directory (the freshen sub-option)Įxtracting All Files from an Archive extract=all.Files that are not in the target extract directory plus files that are more recent versions of files that are in the extract directory (the update sub-option).All files in an archive (the all sub-option).PKZIP provides several ways to choose which files to extract. If the directory into which you extract the files contains files that have the same name as those being extracted, you have to decide if you want to overwrite those files. You can select files to extract and exclude files you do not need now. You don't have to extract all the files included in a. ![]() See this page for information on configuring default sub-option values for commands and options. This behavior is set with the all sub-option of the extract command. For example, the default behavior for the extract command is to unzip or uncompress all files in an archive. This is the sub-option value that is used if none is explicitly specified on the command line. Default Values for Commands and OptionsĬommands and options that have sub-options generally have a default value. ![]() These options give you various ways to choose what files to extract and where to extract them to and help you manage every aspect of extracting files. This chapter describes the options PKZIP offers for extracting files from archives. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |