Page 1 of 1

Extracting gzip file

Posted: Tue Sep 16, 2008 4:13 am
by cybercity
I'm am evaluating Robotask and wanted to automate downloading and unzipping gzip files. However, the extract displays an error that it is not a valid zip file. Does the process not support unzipping gzip archives??

Extracting gzip file

Posted: Tue Sep 16, 2008 8:33 am
by Oleg
RoboTask supports only ZIP archives directly.
In order to pack or unpack files of another formats you have to use third party programs, like as "7-zip".

Extracting gzip file

Posted: Tue Sep 16, 2008 10:19 am
by cybercity
I currently use Winrar. Can you give me an example on how I execute this using Robotask without any manual intervention? I have a few clicks to tell it to unpack and what folder to extract to. Can Robotask automate this for me? Thanks.

Extracting gzip file

Posted: Tue Sep 16, 2008 11:19 am
by Oleg
WinRAR have the command-line mode as most archivers.
When you use command-line mode you do not need to do interactive actions.
I recommend you to read the help file of WinRar topic "Command line mode", because WinRar have very many commands and keys

For example:
In order to extract all files from archive use
winrar x myfile.rar

in order to extract by mask
winrar x myfile.rar *.doc

etc.

In RoboTask you can use "Run program/Open document" action
Put into "Program or Document file name" field:
winrar.exe or winrar

Put the rest of command line into "Paramaters" field
x myfile.rar *.doc