The following is quoted from 看雨 at 2003-12-17 21:07:57:
What command can make an ARJ self-extracting file extract directly into the current directory when run, without showing the
continue extraction? prompt
Please see below:
ARJ is powerful, compact, and efficient. It has only one executable file, and uses command parameters and switch parameters on the command line to perform various file compression or restoration functions. Among all compression software, it has the most commands and parameters. As long as you master its usage, other compression software will be easy to use too.
1. Command line format
ARJ archive filename
Here, command parameters are selected according to the table, and switch parameters are also selected according to the table. The difference between switch parameters and commands is that switch parameters are preceded by “-” or “\”.
ARJ command parameter function table
┌──┬───────────────┬──┬───────────────┐
│Name│ Function │Name│ Function │
├──┼───────────────┼──┼───────────────┤
│ A │Add files to archive (with path) │ O │Insert archive file sort order │
├──┼───────────────┼──┼───────────────┤
│ C │Add comments to archive file │ P │Print archive file contents │
├──┼───────────────┼──┼───────────────┤
│ D │Delete files from archive │ R │Delete file paths in archive │
├──┼───────────────┼──┼───────────────┤
│ E │Extract files from archive (without path)│ S │Show files in archive │
├──┼───────────────┼──┼───────────────┤
│ F │Update files in archive │ T │Check archive file integrity │
├──┼───────────────┼──┼───────────────┤
│ I │Check integrity of ARJ.EXE file │ U │Fix archive files │
├──┼───────────────┼──┼───────────────┤
│ J │Add archive to another archive │ V │List archive files (with path) │
├──┼───────────────┼──┼───────────────┤
│ L │List archive file contents │ W │Find string in archive title │
├──┼───────────────┼──┼───────────────┤
│ M │Move files into archive │ X │Extract files from archive (with path)│
├──┼───────────────┼──┼───────────────┤
│ N │Rename files in archive │ │ │
└──┴───────────────┴──┴───────────────┘
ARJ switch parameter function table
┌───┬───┬──────────┬───┬───┬──────────┐
│ Name Available commands Function │ Name Available commands Function │
├───┼───┼──────────┼───┼───┼──────────┤
│A │A.F.U │Allow any file attributes│A1 │A.F.U │All files and directories│
├───┼───┼──────────┼───┼───┼──────────┤
│B │A.F.U │Back up modified files │B1 │A.F.U │Back up and reset archive bit│
├───┼───┼──────────┼───┼───┼──────────┤
│B2 │A.F.U │Only reset archive bit │C │All │Skip time stamp detection│
├───┼───┼──────────┼───┼───┼──────────┤
│D │A.F.U │Delete added files │E │A.F.U │Do not include file paths│
├───┼───┼──────────┼───┼───┼──────────┤
│E1 │A.F.U │Do not include root path │F │ All │Update existing files │
├───┼───┼──────────┼───┼───┼──────────┤
│G │All Use password to compress or extract files I │ All │Do not display process prompts│
├───┼───┼──────────┼───┼───┼──────────┤
│K │U │Keep backup of archive file attributes│Lname │ All │Create file list file NAME│
├───┼───┼──────────┼───┼───┼──────────┤
│M0 │A.F.U │No compression, just store as is │M1 │A.F.U │ Use maximum compression ratio │
│ │ │in the archive │ │ │ file │
├───┼───┼──────────┼───┼───┼──────────┤
│M2 │A.F.U │Use smaller compression ratio and memory│M3 │A.F.U │Fast compression, lower ratio│
│ │ │usage to compress files │ │ │ │
├───┼───┼──────────┼───┼───┼──────────┤
│M4 │A.F.U │Fastest compression, low ratio│N │All │Compress files only │
├───┼───┼──────────┼───┼───┼──────────┤
│O │All │Compress files after 'month day year hour minute second'│OB │All │Compress files before 'month day year hour minute second'│
│ │ │ │ │ │ │
├───┼───┼──────────┼───┼───┼──────────┤
│P │All │Use absolute paths │PI │All │Use path names and subdirectories│
├───┼───┼──────────┼───┼───┼──────────┤
│Q │All │Ask about every file │R │All │Create subdirectories │
├───┼───┼──────────┼───┼───┼──────────┤
│S │U │Set archive time stamp │SI │U Set old archive time stamp
├───┼───┼──────────┼───┼───┼──────────┤
│T0 │A.F.U │Use binary file type │T1 │A.F.U │Use text file type │
├───┼───┼──────────┼───┼───┼──────────┤
│U │All │Fix all files │V │All │Allow multiple volumes │
│ │ │ (new and needing update)│ │ │ │
├───┼───┼──────────┼───┼───┼──────────┤
│VV │All │Bell between volumes │VA │All │Automatically test free space│
├───┼───┼──────────┼───┼───┼──────────┤
│VS │All │Use DOS commands │VW │All │Keep compressed files intact│
├───┼───┼──────────┼───┼───┼──────────┤
│VSdir │All │Use DOS command DIR │V50000│All │Create 500k-byte backup files│
├───┼───┼──────────┼───┼───┼──────────┤
│V360 │All │Create 360k-byte backup files│V720 │All │Create 720k-byte backup files│
├───┼───┼──────────┼───┼───┼──────────┤
│V1200 │All │Create 1.2M-byte backup files│V1440 │All │Create 1.44M-byte backup files
├───┼───┼──────────┼───┼───┼──────────┤
│Wtmp │U │Assign work directory as TMP│X*.EXE│All │Do not include *.EXE files│
├───┼───┼──────────┼───┼───┼──────────┤
Xlnam.lst All Do not include files listed in NAM.LST Y │All Answer yes to all questions during compression
├───┼───┼──────────┼───┼───┼──────────┤
Zarc.cmt │Use ARC.CMT as backup │JA │All │Show ANSI comments │
│ │CE │file comments │ │ │ │
├───┼───┼──────────┼───┼───┼──────────┤
│JC1 │All │Disable row/column check│JD50K │E.X.L.V Ensure disk space is greater than 50K│
├───┼───┼──────────┼───┼───┼──────────┤
│JD1000│E.X.K │Ensure disk space is greater than 1000│JE │U │Create full-function self-extractor│
│ │ │ bytes │ │ │ │
├───┼───┼──────────┼───┼───┼──────────┤
│JE1 │U Create self-extractor, no prompt when extracting│JF │A.F.U.X Use full path │
├───┼───┼──────────┼───┼───┼──────────┤
JH65535│A.F.U │Set Huffman coding buffer,│JH2048│A.F.U │Set Huffman coding buffer,│
│ │ │size 65535 bytes (maximum) │ │size 2048 bytes (minimum)│
│ │ │ │ │ │ │
├───┼───┼──────────┼───┼───┼──────────┤
JLidx.lst A.F.U│Create index file IDX.LST │JK │U │Keep temporary archive when error occurs│
├───┼───┼──────────┤ │ │archive file │
│JM │A.F.U │Set maximum compression ratio│ │ │ │
├───┼───┼──────────┼───┼───┼──────────┤
│JP │L.V │Pause when screen is full│JR │All │Delete bad files from archive│
├───┼───┼──────────┼───┼───┼──────────┤
│JT │L.V │Test temporary archive file│JS.LZH│A.F.U │Store files with .LZH extension without compressing│
├───┼───┼──────────┤ │ │them into the archive (for │
│JV │All │Set long display mode │ │ │speeding things up) │
├───┼───┼──────────┼───┼───┼──────────┤
│JX12000 A.F.U │Start compressing from 12K bytes│JU │All │Use UNIX file path style│
├───┼───┼──────────┼───┼───┼──────────┤
│JZfil │ C │Use FIL.CMT as archive │JV1 │All │Set special long list mode│
│ .cmt│ │comment description ├───┼───┼──────────┤
│ │ │ JNC\X.com A.F.U│Start from BIN\X.COM file │
└───┴───┴──────────┴───┴───┴──────────┘
2. Examples of commonly used compression command formats
⑴C:>ARJ A DDD \TOOL\*.DOC Compress all *.DOC files in the TOOL directory into archive file DDD.ARJ.
⑵C:>ARJ A -E DDD \TOOL\ Compress all files in the TOOL directory (excluding subdirectories under TOOL) into archive file DDD.ARJ.
⑶C:>ARJ A -JE DDD \TOOL\ Compress all files in the TOOL directory into self-extracting file DDD.EXE (after running DDD.EXE, the originally compressed files can be automatically extracted and restored).
⑷C:>ARJ A -JE1 DDD \TOOL\ Create self-extracting file DDD.EXE with path (TOOL); no prompt during self-extraction.
⑸C:>ARJ A -V1440 B

DD \TOOL\ Back up all files in the TOOL directory to 1.44MB disks in drive B (for compressing onto multiple floppy disks).
⑹C:>ARJ A -JM DDD \TOO\ Compress files with the maximum compression ratio
⑺C:>ARJ A -M4 DDD \TOOL\ Use the fastest compression speed.
⑻C:>ARJ A -GP123 DDD \TOOL\ Use password “P123” to encrypt the compressed files.
⑼C:>ARJ L DDD Show the files in archive DDD.ARJ.
⑽C:>ARJ A -VVWAS A

DD D:\TOO\ Compress and back up all directories and files under the TOOL subdirectory on drive D into multi-floppy archive DDD on drive A, ring the bell when changing disks, automatically test disk space, keep each file in the archive intact, and allow DOS commands to be entered between disk changes (use EXIT to return to ARJ). After compression, the filenames on each disk are DDD.ARJ, DDD.A01, DDD.A02... in order.
⑾C:>ARJ V DDD Show the files in archive DDD.ARJ with paths.
⑿C:>ARJ E DDD Extract archive file DDD.ARJ without paths (all files extracted into one directory)
⒀C:>ARJ X DDD Extract archive file DDD.ARJ with paths
⒁C:>ARJ J DDD1 DDD2.ARJ Add compressed file DDD2.ARJ into another compressed file DDD1.ARJ.