China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-29 14:21
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Question about ARJ compression commands View 1,356 Replies 4
Original Poster Posted 2003-12-17 00:00 ·  中国 广东 阳江 江城区 电信
初级用户
Credits 107
Posts 2
Joined 2003-12-03 00:00
22-year member
UID 13748
Gender Female
Status Offline
What command can make an ARJ self-extracting file extract directly into the current directory when run, without showing the
continue extraction? prompt
Floor 2 Posted 2004-02-04 00:00 ·  中国 江西 南昌 电信
初级用户
Credits 193
Posts 25
Joined 2004-02-03 00:00
22-year member
UID 16634
Gender Male
Status Offline
Use arj a XXX -je1 d:/*.* (compress all files on drive d: into a self-extracting file)
Floor 3 Posted 2004-02-04 00:00 ·  中国 辽宁 沈阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
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 BDD \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 ADD 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.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 4 Posted 2004-02-06 00:00 ·  中国 江西 南昌 电信
初级用户
Credits 193
Posts 25
Joined 2004-02-03 00:00
22-year member
UID 16634
Gender Male
Status Offline
Sorry! It should be: use arj(space)a (space)-je1(space) xxx(space)d :/*.*
(compress all files on drive d: into a self-extracting file, with the arj program on drive c) xxx is the compressed filename
Floor 5 Posted 2005-12-16 17:01 ·  中国 湖北 武汉 电信
初级用户
Credits 97
Posts 32
Joined 2005-12-03 19:43
20-year member
UID 46432
Gender Male
Status Offline
Note, for arj2.8x,
“⑶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.)”
should be changed to:
ARJ a -va -je a:archive *.* (Create a multiple volume self-extractor: )
otherwise all the self-extracted files will be empty files
Forum Jump: