Full Version: Rar By Cmd
pepepe
I want to know how can I add a movie for example to rar archives by command line in sizes of 15MB and view a comment when you open the rar to avoid leeching. Thanks
G777
this is hardly the right place for this question but what the hell biggrin.gif

make a file called comment.txt, put your comment in this file and put it in c drive root or wherever you want,

highlight the movie you want to compress and right click + add to archive (winrar)

enter filename and check the boxes marked: delete after archiving, create solid archive and put recovery record

in the box marked split to volumes, bytes enter 15000000 (equates to 14.3mb)

click on the advanced tab and check the box for old style volume names

click on comment tab and enter the path to your comment.txt file (c:\comment.txt)

click ok and you`re done wink.gif

EDIT:
oops sorry just noticed you want to do this in dos and i`ve never actually tried that so i dunno if you can smile.gif
OldSkool
look for unrar.exe and take a look at the commands
pepepe
I have it, but i donīt understand it.
http://bulba.at.kz/UnRARTool.exe

This is what i see on ms-dos

C:\Unrar>unrar.exe

UNRAR 3.11 freeware Copyright Đ 1993-2003 Eugene Roshal

Usage: unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>

<Commands>
e Extract files to current directory
l[t] List archive [technical]
p Print file to stdout
t Test archive files
v[t] Verbosely list archive [technical]
x Extract files with full path

<Switches>
- Stop switches scanning
ac Clear Archive attribute after compression or extraction
ad Append archive name to destination path
ap<path> Set path inside archive
av- Disable authenticity verification check
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
dh Open shared files
ep Exclude paths from names
f Freshen files
idp Disable percentage display
ierr Send all messages to stderr
inul Disable all messages
ioff Turn PC off after completing an operation
kb Keep broken extracted files
o+ Overwrite existing files
o- Do not overwrite existing files
ow Save or restore file owner and group
p[password] Set password
p- Do not query password
r Recurse subdirectories
ri<P>[:<S>] Set priority (0-default,1-min..15-max) and sleep time in ms
ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format
tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format
tn<time> Process files newer than <time>
to<time> Process files older than <time>
u Update files
v Create volumes with size autodetection or list all volumes
ver[n] File version control
vp Pause before each volume
x<file> Exclude specified file
x@ Read file names to exclude from stdin
x@<list> Exclude files in specified list file
y Assume Yes on all queries

C:\Unrar>
FuzZyBeeR
just try

unrar <archive> <path_to_extract\>

example : unrar blaat.rar C:\blaat\



heh sry the aboven wont work indeed smile.gif but the "unrar e blaat.rar" does work fine it extracts the files in current dir
Cetras
Use this one

It will extract files in a sub folder /rar

CODE
Warning: No DPMI-server FPU support

RAR 3.20    Copyright (c) 1993-2003 Eugene Roshal    15 May 2003
Shareware version         Type RAR -? for help

Usage:     rar <command> -<switch 1> -<switch N> <archive> <files...>
              <@listfiles...> <path_to_extract\>



Then use this command :

rar32 a -v15000 c:\archive.rar c:\file.avi

a = Add to Archive
-v = Switch

It will make archives of 15 Mo with the form : archive.part1.rar

Enjoy wink.gif
bah
If u use rar.exe under cmd prompt

RAR 3.00 Copyright © 1993-2002 Eugene Roshal 14 May 2002
Shareware version Type RAR -? for help

x Extract files with full path

simply

rar x archivename.rar

will extract what u need including any dirs inside
__m.3__
i think on the winrar homepage is a commandline-tool for packing as well, dosrar or something like that
schnibble
wont somebody trash this?!?
whats next? how can i use dir command to see content of a directory?
mortello
QUOTE (schnibble @ Jun 14 2004, 06:11 PM)
wont somebody trash this?!?
whats next? how can i use dir command to see content of a directory?

Well, for once, that question is pretty interesting, I didn't know how to use it in dos (and probably lots of us didn't know)

And since winrar is a legal software (that you got to buy) I don't see why this should be trashed....or should we trash every post about how to use a certain tool ?

Oh well...
setthesun
Is there any builtin command line tool in windows 2003, XP for compressing files ?

CAB is fine also
canardwc
Ups i m sorry boys but i think the question was how to rar !! not unrar !!

QUOTE
It is possible to perform WinRAR commands from the command line. Common command line syntax is described below:

  WinRAR  <command> -<switch1> -<switchN> <archive> <files...> <@listfiles...> <path_to_extract\>

command Character combination denoted function to be performed by WinRAR
switch Switches used to define a specific type of operation, compression strength, type of archive, etc.
archive The name of the archive to process.
Files The name(s) of files to be processed.
Listfiles Listfiles are plain text files contained names of files to process. File names should start at the first column. It is possible to put comments to the listfile after // characters. For example, you may create backup.lst containing the following strings:    c:\work\doc\*.txt //backup text documents    c:\work\image\*.bmp //backup pictures    c:\work\miscand then run:      rar a backup @backup.lstYou may specify both usual file names and list files in the same command line.
Path_to_extract Used only with commands e and x, indicating the folder in which to place extracted files. If this folder does not exist, it will be created.
Notes
a) If neither files nor listfiles are specified, then *.* is implied and WinRAR will process all files;
cool.gif If archive extension is not specified, WinRAR will use the default archive format selected in the default compression profile, but you may override it specifying either .RAR or .ZIP extension;
c) switches entered on the command line override the same configuration settings;
d) for commands c, e, s, t, rr, k and x wildcards may be used in the archive name. Thus it is possible to process more than one archive with a single command. Moreover, if you specify -r switch with these commands, they will search for archives in subfolders;

e) some commands and switches are applicable only to RAR archives, some both to RAR and ZIP and some to all archive formats. This is dependent upon the functionality provided by the archive format;
f) commands and switches are not case sensitive, you may write them both in upper and in lower case.


Hum should i say RTFM ?? it is in winrar help...

Bye
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.