Jump to content

Need someone to describe me how rar files works


Wollf
 Share

Recommended Posts

yes sorry i forgot to tell i have winrar and i dont exacly know how to rar files. i have made a dragand drop window where you can put defferent files and it will they path and i can run program with the value @GUI_DRAGFILE now how exactly i can make a file from there .rar?

Link to comment
Share on other sites

  • 2 weeks later...

Oh my bad.

How bout you try something (actually a few things)?

Try work out what files are needed by winrar to run.

Search the forums for your answer.

Cheers,

Brett

Ugh I'm felling nice.

#612710

http://www.autoitscript.com/forum/index.ph...8&hl=WinRar

Only took 30 seconds of searching

Edited by BrettF
Link to comment
Share on other sites

i tried to rar something but i don exactly know how this command works so i need if anyone has time to describe me how this works since with examples it isnt very easy to understand and help file doesnt give many thing about that command

i moved winrar folder at scriptdir too

#include <Process.au3>
_RunDOS ('"'&@scriptDir & '\WinRAR\Rar.exe" a '&'"'&@scriptDir & '\1.rar" ' & '"'& @scriptDir & '\01.txt"')
Link to comment
Share on other sites

example:

RunWait('"' & @scriptDir & '\WinRAR\Rar.exe" a "' & @scriptDir & '\1.rar" "' & @scriptDir & '\01.txt"', @Scriptdir & '\WinRAR', @SW_HIDE)

Rar /?

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

<Commands>

a Add files to archive

c Add archive comment

cf Add files comment

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 archives

k Lock archive

l[t,b] List archive [technical, bare]

m[f] Move to archive [files only]

p Print file to stdout

r Repair archive

rc Reconstruct missing volumes

rn Rename archived files

rr[N] Add data recovery record

rv[N] Create recovery volumes

s[name|-] Convert archive to or from SFX

t Test archive files

u Update files in archive

v[t,b] Verbosely list archive [technical,bare]

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

ag[format] Generate archive name using the current date

ao Add files with Archive attribute set

ap<path> Set path inside archive

as Synchronize archive contents

av Put authenticity verification (registered versions only)

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

df Delete files after archiving

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 put 'end of archive' block

ep Exclude paths from names

ep1 Exclude base directory from names

ep2 Expand paths to full

ep3 Expand paths to full including the 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 email

ierr Send all messages to stderr

ilog[name] Log errors to file (registered versions only)

inul Disable all messages

ioff Turn PC off after completing an operation

isnd Enable sound

k Lock archive

kb Keep broken extracted files

m<0..5> Set compression level (0-store...3-default...5-maximal)

mc<par> Set advanced compression parameters

md<size> Dictionary size in KB (64,128,256,512,1024,2048,4096 or A-G)

ms[ext;ext] Specify file types to store

n<file> Include only specified file

n@ Read file names to include from stdin

n@<list> Include files in specified list file

o+ Overwrite existing files

o- Do not overwrite existing files

oc Set NTFS Compressed attribute

os Save NTFS streams

ow Save or restore file owner and group

p[password] Set password

p- Do not query password

r Recurse subdirectories

r0 Recurse subdirectories for wildcard names only

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 archiving

sfx[name] Create SFX archive

si[name] Read data from standard input (stdin)

t Test files after archiving

ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format

tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format

tk Keep original archive time

tl Set archive time to latest file

tn<time> Process files newer than <time>

to<time> Process files older than <time>

ts<m,c,a>[N] Save or restore file time (modification, creation, access)

u Update files

v Create volumes with size autodetection or list all volumes

v<size>[k,b] Create volumes with size=<size>*1000 [*1024, *1]

vd Erase disk contents before creating volume

ver[n] File version control

vn Use the old style volume naming scheme

vp Pause before each volume

w<path> Assign work directory

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

z<file> Read archive comment from file

Edited by Varian
Link to comment
Share on other sites

  • 3 weeks later...

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

RunWait('"' & @scriptDir & '\WinRAR\Rar.exe" a "' & @scriptDir & '\1.rar" "', @Scriptdir & '\rardirectory', @SW_HIDE)

some questions

whats the '"' at start,

also where we put those " or ' and why

the @scriptDir & '\WinRAR\Rar.exe" is for the use to rar the file

a is for add

"' & @scriptDir & '\1.rar" "' that is the file we want to rar

@Scriptdir & '\rardirectory' is where to put the file after it is rar?

do i need always need #include <Process.au3>

i tried use that but it didnt worked well

#include <Process.au3>
RunWait('"' & @scriptDir & '\WinRAR\Rar.exe" a "' & @scriptDir & '\1.txt" "', @Scriptdir & '\rardirectory', @SW_HIDE)
Edited by Wollf
Link to comment
Share on other sites

But isn't it

-<Command>

See the '-'?

Try that.

Cheers,

Brett

EDIT:

The rest of your question can be answered by SEARCHING for it. Something so far you have failed to do. Still.

Edited by BrettF
Link to comment
Share on other sites

But isn't it

-<Command>

See the '-'?

Try that.

Cheers,

Brett

EDIT:

The rest of your question can be answered by SEARCHING for it. Something so far you have failed to do. Still.

with search i mostly find examples that doesnt really say to me anything since they are more complicated, but couldnt found any place topic that says how exactly rar works with any example

also what command i use to rar files?

i mean command here '"'

Edited by Wollf
Link to comment
Share on other sites

IMHO - You need to analyze what you want to do, look at the WinRAR help - specifically command line usage. Familiarize yourself with using WinRAR from the Console (DOS Prompt) and then come back with questions.

with search i mostly find examples that doesnt really say to me anything since they are more complicated, but couldnt found any place topic that says how exactly rar works with any example

also what command i use to rar files?

i mean command here '"'

Link to comment
Share on other sites

Don't take this the wrong way, but we have tried over and over to point you where you need to go. The RAR helpfile which is text base is not hard to understand. The links that have provided to you are also not hard to understand. I'm not calling you stupid by any means, but your repeating request to have it explained to you strongly suggest you do not have the brain power to understand basic computer concepts. If we are incorrect in this assumption, then put some effort forth, try to wrap your mind around this basic stuff and prove us wrong. If you wine and complain that I'm being harsh, then you will be validating our assumptions about you being not able to understand simple computer concepts.

I would really like for you to prove us wrong. I suspect you have more ability than you think. In saying that, review and do the following:

I strongly suggest you EXPERIMENT with everything you have been shown. Try things. If it doesn't work, TRY AGAIN. Then TRY AGAIN. Start simple, and and add one thing to see what happens. This is what most of us do when we learn new computer stuff and not quite get it right away.

Try will you?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...