📄 arc521.doc
字号:
ARC File Archive Utility Version 5.20 (C)COPYRIGHT 1985,86 by System Enhancement Associates, Inc. ALL RIGHTS RESERVEDThis document describes version 5.20 of the ARC fileutility, which was created by System EnhancementAssociates, Inc. in October of 1986. TABLE OF CONTENTSSection PageIntroduction .................................... 1Using ARC ....................................... 3ARC commands .................................... 5 Adding files ................................ 5 Extracting files ............................ 7 Deleting files .............................. 8 Listing archive entries ..................... 8 Running files ............................... 10 Printing files .............................. 11 Testing an archive .......................... 11 Converting an archive ....................... 12ARC options ..................................... 13 Suppressing compression ..................... 13 Backup retention ............................ 14 Message suppression ......................... 15 Encryption/Decryption ....................... 17RAMdisk support ................................. 18MARC ............................................ 19ARCE ............................................ 20Version numbers ................................. 21Common questions and answers .................... 22Maintenance contracts ........................... 24Revision history ................................ 25 Changes in version 3 ........................ 25 Changes in version 4 ........................ 25 Changes in version 4.1 ...................... 26 Changes in version 4.3 ...................... 26 Changes in version 4.4 ...................... 27 Changes in version 4.5 ...................... 27 Changes in version 5.0 ...................... 28 Changes in version 5.1 ...................... 29 Changes in version 5.2 ...................... 30Program history and credits ..................... 31Bulletin boards ................................. 33Site licenses ................................... 34 INTRODUCTIONARC is the copyrighted property of System EnhancementAssociates, Inc. You are granted a limited license touse ARC, and to copy it and distribute it, providedthat the following conditions are met:1) No fee may be charged for such copying and distribution.2) ARC may ONLY be distributed in its original, unmodified state.3) ARC may *not* be distributed, in whole or in part, as part of any commercial product or service without the express written permission of System Enhancement Associates.Contributions for the use of this program will beappreciated, and should be sent to: System Enhancement Associates, Inc. 21 New Street, Wayne NJ 07470You may not use this product in a commercialenvironment or a governmental organization withoutpaying a license fee of $35. Site licenses andcommercial distribution licenses are available. Aprogram disk and printed documentation are availablefor $50. See the order form enclosed with this manualfor more details.ARC is user supported software. This means that youmay copy it freely and give the copies away to anyoneyou wish, at no cost. They are in turn requested tosend in a contribution if they decide to use it.The user supported software concept (often referred toas "shareware") is an attempt to provide software at lowcost. The cost of offering a new product byconventional means is staggering, and hence dissuadesmany independent authors and small companies fromdeveloping and promoting their ideas. User supportedsoftware is an attempt to develop a new marketingchannel, where products can be introduced at low cost.ARC Page 1If user supported software works, then everyone willbenefit. The user will benefit by receiving qualityproducts at low cost, and by being able to "testdrive" software thoroughly before purchasing it. Theauthor benefits by being able to enter the commercialsoftware arena without first needing large sources ofventure capital.But it can only work with your support. We're notjust talking about ARC here, but about all usersupported software. If you obtain a user supportedprogram from a friend or colleague, and are stillusing it after a couple of weeks, then it is obviouslyworth something to you, and a contribution should besent.And now, back to ARC:ARC is used to create and maintain file archives. Anarchive is a group of files collected together intoone file in such a way that the individual files maybe recovered intact.ARC is different from other archive and libraryutilities in that it automatically compresses thefiles being archived, so that the resulting archivetakes up a minimum amount of space.When ARC is used to add a file to an archive itanalyzes the file to determine which of three storagemethods will result in the greatest savings. Thesethree methods are:1) No compression; the file is stored as is.2) Repeated-character compression; repeated sequences of the same byte value are collapsed into a three- byte code sequence.3) Dynamic Lempel-Zev compression; the file is stored as a series of variable size bit codes which represent character strings, and which are created "on the fly".Note that since one of the three methods involves nocompression at all, the resulting archive entry willnever be larger than the original file.ARC Page 2 USING ARCARC is invoked with a command of the following format: ARC <x> <arcname> [<template> . . .]Where: <x> is an ARC command letter (see below), in either upper or lower case. <arcname> is the name of the archive to act on, with or without an extension. If no extension is supplied, then ".ARC" is assumed. The archive name may include path and drive specifiers. <template> is one or more file name templates. The "wildcard" characters "*" and "?" may be used. A file name template may include a path or drive specifier, though it isn't always meaningful.If ARC is invoked with no arguments (by typing "ARC",and pressing "enter"), then a brief command summary isdisplayed.Following is a brief summary of the available ARCcommands: a = add files to archive m = move files to archive u = update files in archive f = freshen files in archive d = delete files from archive x,e = extract files from archive r = run files from archive p = copy files from archive to standard output l = list files in archive v = verbose listing of files in archive t = test archive integrity c = convert entry to new packing methodARC Page 3Following is a brief summary of the available ARCoptions, which may alter how a command works: b = retain backup copy of archive s = suppress compression (store only) w = suppress warning messages n = suppress notes and comments o = overwrite existing files when extracting g = encode or decode archive entryARC Page 4 ARC COMMANDSThis section describes each of the commands. ARC willaccept any one command at a time. If no commands aregiven, then a brief command list is displayed.ADDING FILESFiles are added to an archive using the "A" (Add), "M"(Move), "U" (Update), or "F" (Freshen) commands. Addalways adds the file. Move differs from Add in thatthe source file is deleted once it has been added tothe archive.Update differs from Add in that the file is only addedif it is not already in the archive, or if it is newerthat the corresponding entry in the archive.Freshen is similar to Update, except that new filesare not added to the archive; only files already inthe archive are updated.For example, if you wish to add a file named"TEST.DAT" to an archive named "MY.ARC", you would usea command of the form: ARC a my test.datIf you wanted to add all files with a ".C" extension,and all files named "STUFF" to an archive named"JUNK.ARC", you could type: ARC a junk *.c stuff.*If you wanted to move all files in your currentdirectory into an archive named "SUM.ARC", you coulduse a command of the form: ARC m sum *.*If you have an archive named "TEXT.ARC", and youwanted to add to it all of your files with anextension of ".TXT" which have been created or changedsince they were last archived, then you would type: ARC u text *.txtARC Page 5If you have a bunch of files in your currentdirectory, with backup copies being stored in anarchive named "SAFE.ARC", then if you wanted to makesure that every file in the archive is the latestversion of that file, you would type: ARC f safeA word about Update and Freshen: These are similar inthat they look at the date and time of last change onthe file, and only add it if the file has been changedsince it was last archived. They differ in thatUpdate will add new files, while Freshen will not.In other words, Update looks for the files on disk,and adds them if they are new or have changed, whileFreshen looks in the archive, and tries to update thefiles which are already there.Archive entries are always maintained in alphabeticorder. Archive entries may not have duplicate names.If you add a file to an archive that already containsa file by that name, then the existing entry in thearchive is replaced. Also, the archive itself and itsbackup will not be added.You may also add a file which is in a directory otherthan your current directory. For example, it isperfectly legal to type: ARC a junk c:\dustbin\stuff.txtYou cannot add two files with the same name. In otherwords, if you have a file named "C:\DUSTBIN\STUFF.TXT"and another file named "C:\BUCKET\STUFF.TXT", thentyping: arc a junk c:\dustbin\*.* c:\bucket\*.*will not work.ARC does not save the path name. In other words, ifyou specify a drive and/or path when adding a file,only the actual file name is stored in the archive.ARC Page 6ARC will never add an archive to itself, nor will itadd the temporary copy or a backup copy of thearchive.An interesting note: It has been brought to ourattention that BASIC programs compress to a smallersize when they are *not* tokenized. If you are moreconcerned with space than speed, you may wish toconvert your BASIC programs to ASCII form beforeadding them to an archive. Your BASIC manual shouldgive instructions on how to do this.EXTRACTING FILESArchive entries are extracted with the "E" (Extract)and "X" (eXtract) commands. For example, if you hadan archive named "JUNK.ARC", and you wanted all filesin it with an extension of ".TXT" or ".DOC" to berecreated on your disk, you could type: ARC x junk *.txt *.docIf you wanted to extract all of the files in anarchive named "JUNK.ARC", you could simply type: ARC x junkWhatever method of file compression was used instoring the files is reversed, and uncompressed copiesare created in the current directory.You can also specify a path name, in which case thedecompressed copy is placed in the specifieddirectory. For example, if you had an archive named"JUNK.ARC", and you wanted all files in it with anextension of ".TXT" to be placed in the directory"C:\WASTE\LAND", then you could type: ARC x junk c:\waste\land\*.txtIf you wanted to put the file "TRASH.TXT" on your A:drive, and the file "LITTER.TXT" on your B: drive, youcould type: ARC x junk a:trash.txt b:litter.txtARC Page 7If you give more than one path for a file, then onlythe first one is used. For example, if you typed: ARC x junk a:trash.txt b:trash.txtthen TRASH.TXT will be placed on your A: drive.DELETING FILESArchive entries are deleted with the "D" (Delete)command. For example, if you had an archive named"JUNK.ARC", and you wished to delete all entries in itwith a filename extension of ".C", you could type: ARC d junk *.cLISTING ARCHIVE ENTRIESYou can obtain a list of the contents of an archive byusing the "L" (List) command or the "V" (Verbose list)command. For example, to see what is in an archivenamed "JUNK.ARC", you could type: ARC l junkIf you are only interested in files with an extensionof ".DOC", then you could type:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -