中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-19 10:09
47,814 topics / 349,908 posts / today 0 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » Compression and decompression commands of winrar under DOS
Printable Version  2,924 / 5
Floor1 ruanjiaoxia Posted 2008-07-29 14:00
新手上路 Posts 9 Credits 13
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~
Floor2 DOSforever Posted 2008-07-29 14:51
金牌会员 Posts 2,239 Credits 4,639
Floor3 rexly Posted 2008-07-31 13:33
新手上路 Posts 6 Credits 11
There is also unrar /?
There are detailed introductions in C:\Program Files\WinRAR\Rar.txt.
Floor4 xjxxdnmwj Posted 2008-07-31 23:38
初级用户 Posts 15 Credits 29
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>
Floor5 kkk4god Posted 2008-08-01 12:10
新手上路 Posts 4 Credits 11
Look at the WinRAR help file, which has very detailed explanations there.
Floor6 kkk4god Posted 2008-08-01 12:11
新手上路 Posts 4 Credits 11
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023