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-07-02 16:39
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Compression and decompression commands of winrar under DOS View 2,887 Replies 5
Original Poster Posted 2008-07-29 14:00 ·  中国 北京 联通
新手上路
Credits 13
Posts 9
Joined 2008-05-15 11:03
18-year member
UID 118723
Gender Male
Status Offline
There is an introduction about the PKZIP decompression and compression commands on this site, but no introduction about WINRAR and others is found. Classmates who have relevant materials, please share them~
Floor 2 Posted 2008-07-29 14:51 ·  中国 上海 虹口区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Floor 3 Posted 2008-07-31 13:33 ·  中国 北京 联通(数字北京大厦IDC机房)
新手上路
Credits 11
Posts 6
Joined 2008-07-31 11:56
17-year member
UID 122472
Gender Male
Status Offline
There is also unrar /?
There are detailed introductions in C:\Program Files\WinRAR\Rar.txt.
Floor 4 Posted 2008-07-31 23:38 ·  中国 浙江 绍兴 电信
初级用户
Credits 29
Posts 15
Joined 2008-07-28 20:24
17-year member
UID 122276
Gender Male
Status Offline
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>rar /?

RAR 3.71 beta 1 Copyright (C) 1993-2007 Alexander Roshal 4 September 2007
Shareware version Type RAR -? for help

Usage: rar <command> -<switch 1> -<switch N> <archive> <file...>
<@listfiles...> <extract path\>

<Commands>
a Add files to archive
c Add archive comment
cf Add file comment
ch Change archive parameters
cw Write archive comment to file
d Delete files from archive
e Extract files to current directory
f Freshen files in archive
i[par]=<str> Find string in archive
k Lock archive
l[t,b] List archive [technical, bare]
m[f] Move to archive [files only]
p Print file to standard output
r Repair archive
rc Rebuild missing volumes
rn Rename archive
rr[N] Add data recovery record
rv[N] Create recovery volumes
s[name|-] Convert archive to self-extracting or vice versa
t Test archive
u Update files in archive
v[t,b] Verbosely list archive [technical, bare]
x Extract files with full path

<Switches>
- Stop switch scanning
ac Clear archive attribute after compression or extraction
ad Append archive name to destination path
ag[format] Generate archive name using current date
ao Add files with archive attribute
ap<path> Append path to archive
as Synchronize archive content
av Add user-defined verification (registered version only)
av- Disable user-defined verification
c- Disable comments display
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
df Delete files after compression
dh Open shared files
ds Disable name sort for solid archive
e[+]<attr> Set file exclude and include attributes
ed Do not add empty directories
en Do not add "end of archive" block
ep Exclude path from names
ep1 Exclude base directory from names
ep2 Expand to full path
ep3 Expand path to full path with drive letter
f Freshen files
hp[password] Encrypt both file data and headers
id[c,d,p,q] Disable messages
ieml[addr] Send archive by E-mail
ierr Send all messages to standard error
ilog[name] Write errors to log file (registered version only)
inul Disable all messages
ioff Turn PC off after operation
isnd Enable sound
k Lock archive
kb Keep broken extracted files
m<0..5> Set compression level (0=store...3=default...5=maximum)
mc<par> Set advanced compression parameters
md<size> Set dictionary size in KB (64,128,256,512,1024,2048,4096 or A-G)
ms[ext;ext] Specify file types to store
mt<threads> Set number of threads
n<file> Include only specified file
n@ Read filenames to include from standard input
n@<list> Include files from specified file list
o+ Overwrite existing files
o- Do not overwrite existing files
oc Set NTFS compression attribute
or Auto rename files
os Save NTFS streams
ow Save or restore file owner and group
p[password] Set password
p- Do not ask for password
r Recurse subdirectories
r0 Recurse subdirectories only for wildcard names
ri<P>[:<S>] Set priority (0=default,1=min...15=max) and sleep time in ms
rr[N] Add data recovery record
rv[N] Create recovery volumes
s[<N>,v[-],e] Create solid archive
s- Disable solid archive
sc<chr>[obj] Specify character set
sfx[name] Create self-extracting archive
st[name] Read data from standard input (stdin)
sl<size> Process files with size less than specified
sm<size> Process files with size more than specified
t Test files after compression
ta<date> Add files modified after <date>, date format YYYYMMDDHHMMSS
tb<date> Add files modified before <date>, date format YYYYMMDDHHMMSS
tk Keep original archive time
tl Set archive time to latest file time
tn<time> Add files newer than <time>
to<time> Add files older than <time>
ts<m,c,a>[N] Save or restore file time (modification, creation, access)
u Update files
v Auto detect volume size or list volumes
v<size>[k,b] Create volumes with size=<size>*1000 [*1024, *1]
vd Clear disk before creating volume
ver[n] File version control
vn Use old style volume naming scheme
vp Pause before each volume
w<path> Specify work directory
x<file> Exclude specified file
x@ Read filenames to exclude from standard input
x@<list> Exclude files from specified file list
y Assume Yes on all queries
z[file] Read archive comment from file

C:\Documents and Settings\Administrator>
Floor 5 Posted 2008-08-01 12:10 ·  中国 上海 电信
新手上路
Credits 11
Posts 4
Joined 2008-07-31 15:32
17-year member
UID 122492
Gender Male
Status Offline
Look at the WinRAR help file, which has very detailed explanations there.
Floor 6 Posted 2008-08-01 12:11 ·  中国 上海 电信
新手上路
Credits 11
Posts 4
Joined 2008-07-31 15:32
17-year member
UID 122492
Gender Male
Status Offline
Forum Jump: