FrameWork para Trabalhar com Arquivos .RAR?

2 respostas
fredferrao

Galera to precisando descompactar arquivos .rar, alguem conhece algum framework pra isso?? ou alguma outra maneira de se fazer isso??

Se não existir framework, alguem sabe se teria como chamar o WinRar pelo programa java passando como parametro o caminho onde os arquivos devem ser descompactados!!!

vlw!!

2 Respostas

T

No help do próprio WinRar existe uma página “Command Line Syntax”. Como você pagou pelo produto deve ter o arquivo de help dele, não?

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&gt;

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 that contain 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: winrar 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.

fredferrao

vlw!!!

Criado 12 de maio de 2006
Ultima resposta 12 de mai. de 2006
Respostas 2
Participantes 2