📄 arc521.doc
字号:
ARC l junk *.docARC prints a short listing of an archive's contentslike this: Name Length Date ============ ======== ========= ALPHA.TXT 6784 16 May 85 BRAVO.TXT 2432 16 May 85 COCO.TXT 256 16 May 85 ==== ======== Total 3 9472"Name" is simply the name of the file.ARC Page 8"Length" is the unpacked file length. In other words,it is the number of bytes of disk space which the filewould take up if it were extracted."Date" is the date on which the file had last beenmodified, as of the time when it was added to thearchive."Total" is pretty obvious, I think.ARC prints a verbose listing of an archive's contentslike this:Name Length Stowage SF Size now Date Time CRC============ ======== ======== ==== ======== ========= ====== ====ALPHA.TXT 6784 Crunched 35% 4413 16 May 85 11:53a 8708BRAVO.TXT 2432 Crunched 41% 1438 16 May 85 11:53a 5BD6COCO.TXT 256 Packed 5% 244 16 May 85 11:53a 3AFB ==== ======== ==== ========Total 3 9472 27% 6095"Name", "Length", and "Date" are the same as for ashort listing."Stowage" is the compression method used. Thefollowing compression methods are currently known: -- No compression. Packed Runs of repeated byte values are collapsed. Crunched Lempel-Zev compression technique employed. Squeezed Huffman encoding compression technique, as employed by an earlier version of ARC."SF" is the stowage factor. In other words, it is thepercentage of the file length which was saved bycompression. The total stowage factor is the stowagefactor for the archive as a whole, not countingarchive overhead."Size now" is the number of bytes the file isoccupying while in the archive.ARC Page 9"Time" is the time of last modification, and isassociated with the date of last modification."CRC" is the CRC check value which has been storedwith the file. Another CRC value will be calculatedwhen the file is extracted or tested to ensure dataintegrity. There is no especially good reason fordisplaying this value.RUNNING FILESArchive entries may be run without being extracted byuse of the "R" (Run) command. For example, if you hadan archive named "JUNK.ARC" which contained a filenamed "LEMON.COM", which you wished to run, you couldtype: ARC r junk lemonYou can run any file from an archive which has anextension of ".COM", ".EXE", ".BAT", or ".BAS". Youdo not have to specify the extension, but all matchingfiles are run if you do not. In other words, if youhad an archive named "JUNK.ARC" which contained thefiles "LEMON.COM", "LEMON.EXE", and "LEMON.BAS", andyou typed: ARC r junk lemonThen all three programs will be run. You can avoidthis by specifying an extension in this case.You can give arguments to the program you are runningby appending them to the command line. For example,if you have an archive named "JUNK.ARC" which containsa program named "LEMON.COM", and you wanted to run itgiving it the argument "JUICE", you would type: ARC r junk lemon juiceYou will need a fair amount of memory to run a programfrom an archive. It probably cannot be done with lessthan 256k.ARC Page 10In practice, the file to be run is extracted, run, andthen deleted. In other words, the above example isequivalent to: ARC x junk lemon.com lemon juice erase lemon.comIf you have an archive which contains a program thatyou will be running often, then you should probablyextract the program from the archive and use itnormally.PRINTING FILESArchive entries may be examined with the "P" (Print)command. This works the same as the Extract command,except that the files are not created on disk.Instead, the contents of the files are written tostandard output. For example, if you wanted to seethe contents of every ".TXT" file in an archive named"JUNK.ARC", but didn't want them saved on disk, youcould type: ARC p junk *.txtIf you wanted them to be printed on your printerinstead of on your screen, you could type: ARC p junk *.txt >prnTESTING AN ARCHIVEThe integrity of an archive may be tested by use ofthe "T" (Test) command. This checks to make sure thatall of the file headers are properly placed, and thatall of the files are in good shape.This can be very useful for critical archives, wheredata integrity must be assured. When an archive istested, all of the entries in the archive are unpacked(without saving them anywhere) so that a CRC checkvalue may be calculated and compared with the recordedCRC value.ARC Page 11For example, if you just received an archive named"JUNK.ARC" over a phone line, and you want to makesure that you received it properly, you could type: ARC t junkIt defeats the purpose of the T command to combine itwith N or W.CONVERTING AN ARCHIVEThe "C" (Convert) command is used to convert anarchive entry to take advantage of newer compressiontechniques. This is occasionally desirable when a newversion of ARC is released. Please refer to therevision history section for details on when newcompression methods were implemented.For example, if you had an archive named "JUNK.ARC",and you wanted to make sure that all files with anextension of ".DOC" were encoded using the very latestmethods, you could type: ARC c junk *.docOr if you wanted to convert every file in the archive,you could type: ARC c junkARC Page 12 ARC OPTIONSThis section describes the options which are availableto modify how ARC works. Any of these options can becombined with any of the commands, though the resultmay not always be something you'd want to do.SUPPRESSING COMPRESSIONThe "S" (Suppress compression) option can be combinedwith any command that updates archive entries. Theseinclude Add, Move, Update, Freshen, and Convert. Theeffect of the S option is to prevent any compressiontechniques from being employed. This is intended toallow you to add a few files at a time to an archivequickly, and then later convert the archive tocompress everything at once.For example, over the course of a day you might giveeach of the following commands: ARC as junk *.txt ARC as junk *.mac ARC as junk *.docAt the end of the day, when you have finished addingthings to the archive, you could have all of thearchive entries compressed at once by typing: ARC c junkYou could also decompress the archive by typing: ARC cs junkthough I can't imagine why you'd want to.ARC Page 13BACKUP RETENTIONWhen ARC changes an archive (during an Add, Move,Update, Freshen, Delete, or Convert) it creates a newarchive with the same name, but with an extension of".$$$". For example, if you add a file to an archivenamed STUFF.ARC, then ARC will create a new archivenamed STUFF.$$$. ARC will read from your existingarchive and write out the new archive with any changesto the ".$$$" copy.Normally when ARC is finished it deletes the originaland renames the new archive to the original name (ie.STUFF.ARC goes away, and STUFF.$$$ becomes the newSTUFF.ARC). Among other things, this means that ifanything goes wrong and ARC is unable to finish, thenyour original archive will still be intact.In some circumstances you may wish to retain theoriginal version of the archive as a backup copy. Youcan do this easily by using the Backup option. Addthe letter "B" to your command, and ARC will renameyour original archive to have an extension of ".BAK"instead of deleting it.In other words, if you wanted to add "WASTE.TXT" to anarchive named "JUNK.ARC", but wanted to keep a backupcopy, then you would type: ARC ab junk waste.txtYour original archive would become "JUNK.BAK", while"JUNK.ARC" would contain the new "WASTE.TXT" file.If you keep a backup of an archive which already has abackup, then the older backup copy is deleted.ARC Page 14MESSAGE SUPPRESSIONARC prints three types of messages: warnings,comments, and errors.Warnings are messages about suspected errorconditions, such as when a file to be extractedalready exists, or when an extracted file fails theCRC error check. Warnings may be suppressed by use ofthe "W" (Warn) command. You should use this commandsparingly. In fact, you should probably not use thiscommand at all.Comments (or notes) are informative messages, such asnaming each file as it is added to the archive.Comments and notes may be suppressed by use of the "N"(Note) command.Errors are actual system problems, such as running outof disk space. You cannot suppress errors.For example, suppose you extracted all files with anextension of ".BAS" from an archive named "JUNK.ARC"Then, after making some changes which you decide notto keep, you decide that you want to extract them allagain, but you don't want to be asked to confirm everyone. In this case, you could type: ARC xw junk *.basOr, if you are going to add a hundred files with anextension of ".MSG" to an archive named "TRASH.ARC",and you don't want ARC to list them as it adds them,you could type: ARC an trash *.msgOr, if you want to extract the entire contents of anarchive named "JUNK.ARC", and you don't want to hearanything, then type: ARC xnw junkA special case is provided when extracting files froman archive. One of the various warnings that canoccur is when a file being extracted already exists ondisk. Normally, ARC will stop and ask you if you wantto overwrite the file. This can be suppressed withthe "W" command, but that will also suppress anyARC Page 15warnings about other things, like failed CRC checksand such.The "O" (Overwrite) option suppresses *only* the warningthat the file already exists. For example, in ourearlier case of extracting all the ".BAS" files from"JUNK.ARC", a much safer way to do it is to type: ARC xo junk *.BASARC Page 16ENCRYPTION/DECRYPTIONArchive entries may be encrypted and decrypted byusing the "G" (Garble) option. The Garble optiontakes the remainder of the command string as thepassword to use, so it must be the *last* option.For example, if you wanted to add a file named"WASTE.TXT" to an archive named "JUNK.ARC", and youwanted to encrypt it using the password "DEBRIS", thenyou would type: ARC agdebris junk waste.txtLater on, when you want to extract it again, you wouldtype: ARC xgdebris junk waste.txtThe password you supply is used to encrypt (ordecrypt) the archive entry by performing an exclusiveOR between each byte of the packed data and each byteof the password. The password can be any length, andeach of its bytes is used in rotation. The passwordis converted to uppercase before it is used, so it is*not* case sensitive. Since the encryption is performedon the packed data, it has no effect on stowagefactors.This is not a particularly sophisticated means ofencryption, and it is theoretically possible to crack.Still, since it is performed on the packed data, theresult should be quite sufficient for casual use.You can, if you wish, use different passwords fordifferent files in an archive, but we advise againstit. If you are going to encrypt an archive, wesuggest you use the same password for every file, andgive the password whenever you do anything at all withthe archive. It is possible to list the entries in anencrypted archive using the "L" and "V" commandswithout giving the password, but nothing else willwork properly.We advise that you use this option sparingly, if atall. If you should forget or mistype your password,it is highly unlikely that you will ever recover yourdata.ARC Page 17 RAMDISK SUPPORTIf you have a RAMdisk, or other high-speed storage,then you can speed up ARC somewhat by telling it toput its temporary files on the RAMdisk. You do this
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -