Government Security
Network Security Resources

Jump to content


Rar By Cmd

  • Please log in to reply
11 replies to this topic

#1 pepepe



  • Members
  • 16 posts

Posted 14 June 2004 - 12:50 AM

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

#2 G777



  • Members
  • 168 posts

Posted 14 June 2004 - 02:31 AM

this is hardly the right place for this question but what the hell :D

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 ;)

oops sorry just noticed you want to do this in dos and i`ve never actually tried that so i dunno if you can :)
Heavens gates wont hold me, I`ll saw those suckers down
Laughing loud at your locks, When they hit the ground

#3 Guest_OldSkool_*

  • Guests

Posted 14 June 2004 - 03:05 AM

look for unrar.exe and take a look at the commands

#4 pepepe



  • Members
  • 16 posts

Posted 14 June 2004 - 04:09 AM

I have it, but i donīt understand it.

This is what i see on ms-dos


UNRAR 3.11 freeware Copyright Đ 1993-2003 Eugene Roshal

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

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

- 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


#5 FuzZyBeeR



  • Members
  • 246 posts

Posted 14 June 2004 - 06:07 AM

just try

unrar <archive> <path_to_extract\>

example : unrar blaat.rar C:\blaat\

heh sry the aboven wont work indeed :) but the "unrar e blaat.rar" does work fine it extracts the files in current dir

#6 Cetras



  • Members
  • 13 posts

Posted 14 June 2004 - 06:20 AM

Use this one

It will extract files in a sub folder /rar

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 ;)

#7 bah


    Private First Class

  • Members
  • 80 posts

Posted 14 June 2004 - 06:21 AM

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


rar x archivename.rar

will extract what u need including any dirs inside

#8 __m.3__



  • Members
  • 17 posts

Posted 14 June 2004 - 09:19 AM

i think on the winrar homepage is a commandline-tool for packing as well, dosrar or something like that

#9 schnibble



  • Members
  • 116 posts

Posted 14 June 2004 - 10:11 AM

wont somebody trash this?!?
whats next? how can i use dir command to see content of a directory?

#10 mortello


    Staff Sergeant

  • Members
  • 408 posts

Posted 14 June 2004 - 11:20 AM

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...

#11 setthesun


    Sergeant First Class

  • Sergeant Major
  • 574 posts

Posted 15 June 2004 - 01:05 AM

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

CAB is fine also

setthesun me = new setthesun();

#12 canardwc


    Private First Class

  • Members
  • 58 posts

Posted 15 June 2004 - 09:53 AM

Ups i m sorry boys but i think the question was how to rar !! not unrar !!

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.
a) If neither files nor listfiles are specified, then *.* is implied and WinRAR will process all files;
B) 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...


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users