Extracting gzip file

Discuss RoboTask here
Post Reply
cybercity
Posts: 2
Joined: Mon Sep 15, 2008 10:48 pm

Extracting gzip file

Post 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??
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Extracting gzip file

Post 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".
cybercity
Posts: 2
Joined: Mon Sep 15, 2008 10:48 pm

Extracting gzip file

Post 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.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Extracting gzip file

Post 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
Post Reply