Friday, January 31, 2014

WinRAR : RAR versus ZIP

WinRAR is able to create archives in two different formats: RAR and ZIP. Here is a comparison of these formats:

ZIP archives

The main advantage of ZIP format is its popularity. For example, most archives on Internet are ZIP archives. So if you are going to send an archive to somebody, but you are not sure that your addressee has WinRAR to extract the archive contents, it might be a good idea to use the ZIP format. Though, you may also send a self-extracting archive. Such archives are slightly larger, but can be extracted without external programs.

Another ZIP advantage is speed. ZIP archives are usually created faster than RAR.

RAR archives

Typically RAR format provides better compression than ZIP, especially in the solid mode. WinRAR multi-volume archives in RAR format allow more functions like self-extracting volumes.

RAR format has also a few important features missing in ZIP, such as the recovery record allowing to reconstruct damaged data and locking important archives to prevent their accidental modification.

Both RAR and ZIP formats are able to handle files of practically unlimited size (up to 8,589,934,591 GB).

Tutorial archiving files from the command line with WinRAR

The common command line syntax for archiving files is:

WinRAR A [ -switches ] <Archive> [ Files ] [ @File lists ]

For example, if you wish add the file LETTER.TXT to the archive LETTERS.RAR, type:

WinRAR A LETTERS.RAR LETTER.TXT

If an archive extension is not specified, WinRAR will use the default archive format selected in the default compression profile, but you may override it by specifying either .RAR or .ZIP extension.

The next example: add all *.WAV files to the solid RAR archive Songs:

WinRAR A -S Songs.RAR *.WAV

It is also possible to list the files to be archived in a file, rather than listing them in the command line. In this case the name of text file, containing the list of files to be archived, must be given in the command line. This is indicated by placing the symbol @ before this file name. Thus, you can create a file Binaries, containing the strings *.exe and *.com and execute the command:

WinRAR A TOOLS.ZIP @Binaries

to add all files with .EXE and .COM extensions from the current folder to ZIP archive TOOLS.

Window containing statistics is displayed during the archiving process. If you wish to break archiving, click on "Cancel" button in the command window. You may press "Background" button in this window to minimize WinRAR to the tray. If archiving is completed without problems, WinRAR terminates. Diagnostic message window is displayed in case of error.

See Command-line interface for detailed descriptions of commands and switches.

How to archiving files from the WinRAR shell

First, you need to run WinRAR. Double-click or press Enter on the WinRAR icon. You can also start it from the Windows "Start menu": enter "Programs" then "WinRAR" and then run the "WinRAR" item.

When WinRAR is running, it displays a list of files and folders in the current folder. You need to go to the folder, which contains files to archive. You may use Ctrl+D, the disks list below the toolbar or click on the small disk icon in the bottom left corner, to change the current disk. Press BS, Ctrl+PgUp, small "Up" button below the toolbar or double-click on the folder named ".." to go to the parent folder. Press Enter, Ctrl+PgDn or double-click on any other folder to enter that folder. Ctrl+\ will set the root disk or archive folder as the current folder.

When you have entered the folder with the desired files, select the files and folders, which you are going to archive. This may be achieved by using Shift + arrow keys or the mouse as in Windows Explorer and other Windows programs. It is also possible, in WinRAR, to select files using Space or Ins keys. "Gray +" and "Gray -" keys on the numeric keypad allow the selection of groups of files using file masks.

Having selected one or more files, click on the Add button at the top of the WinRAR window, press Alt+A or select the "Add files to archive" command in the Commands menu. Enter the destination archive name in the dialog box which appears or simply accept the default name. You may select, in this dialog, the format of the new archive ( RAR or ZIP), compression level, volume size and other archiving parameters. This dialog described in details in Archive name and parameters dialog topic. Click on the OK button when you are ready to create the archive.

During the archiving process, a window will be displayed showing operation statistics. If you wish to break the archiving process, click on the Cancel button in the command window. You may press the "Background" button in this window to minimize WinRAR to the tray. When archiving is completed, the command window disappears and the newly created archive becomes the currently selected file.

It is also possible to add files, to an existing RAR archive, using drag-and-drop. Select the desired archive in the WinRAR window and press Enter (or double click) on its name. RAR will read the archive and display its contents. You may now add files to the archive by simply dragging them from another program and dropping to WinRAR.

WinRAR Quick start: extracting files from the command line

Common command line syntax to extract files with full paths:

WinRAR X [ -switches ] <Archive> [ Files ] [ @File lists ] [ Destination folder\ ]

To extract files, ignoring paths:

WinRAR E [ -switches ] <Archive> [ Files ] [ @File lists ] [ Destination folder\ ]

For example if you wish extract the file LETTER.TXT to the current folder from the archive LETTERS.RAR, use the following command:

WinRAR X LETTERS.RAR LETTER.TXT

Archive extension is optional and may be omitted.

The next command extracts all *.WAV files from the archive Songs to the folder Audio:

WinRAR X Songs *.WAV Audio\

It is also possible to list the files to be extracted in a file, rather than listing them in the command line. In this case the name of text file, containing the list of files to be extracted, must be given in the command line. This is indicated by placing the symbol @ before this file name. Thus, you can create a file Binaries, containing the strings *.exe and *.com and execute the command:

WinRAR X TOOLS @Binaries

to extract all files with EXE and COM extensions from the archive TOOLS to the current folder.

Window containing statistics is displayed during the extraction process. If you wish to break extraction, click on "Cancel" button in the command window. You may press "Background" button in this window to minimize WinRAR to the tray. If extraction is completed without problems, WinRAR terminates. Diagnostic message window is displayed in case of error.

See Command-line interface for detailed commands and switches description.

WinRAR Command line syntax

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 specifying the function to be performed by WinRAR. See the list of WinRAR commands here.
Switch Switches are used to define a specific type of operation, compression strength, type of archive, etc. See the list of WinRAR switches here.
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\misc

and then run:

winrar a backup @backup.lst

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

 

Notes

a) If neither files nor listfiles are specified, then *.* is implied and WinRAR will process all files;

b) If archive extension is not specified when creating an archive, WinRAR will use the default archive format selected in the default compression profile, but you may override it by specifying either .rar or .zip extension.

If no archive extension is specified when extracting, WinRAR assumes .rar, so * means all archives with .rar extension. If you need to process all archives without extension, use *. mask. *.* mask selects all files. You can use wildcards in archive name in most operations, such as extraction, test and many others, but wildcards are not allowed when archiving and deleting.

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;

g) If any component of command line contains spaces, enclose it to quotes.

Examples

  1. add the folder "c:\latest data" to archive Info.rar

WinRAR a Info.rar "c:\latest data"

  1. unpack the archive Info.rar to folder d:\data

WinRAR x Info.rar d:\data\

Learn more Option Dialogs in IDM

In Options dialog you may edit all IDM settings. Dialog has nine tabs:

  • General
  • File Types
  • Connection
  • Save To
  • Downloads
  • Proxy
  • Site logins
  • Dial-Up
  • Sounds

General tab

General tab can be used to change IDM System integration options: automatic startup, integration options into browsers, URL clipboard monitoring. IDM integrates into Internet Explorer, Opera, Mozilla , Netscape, and many other popular browsers by default.

image

IDM supports basic and advanced browser integration types. For basic browser integration you can check what type of integration is used for a browser by selecting the browser and clicking on details button. In basic browser integration you can add a browser by using "Add Browser..." button. IDM determines the version of the browser and will integrate into it.

IDM has a special module (IEMonitor.exe) for click monitoring in IE-based browsers (MSN Explorer, Avant, MyIE, some versions of AOL etc.) that runs separately from the main process of IDM. This module can be turned on/off using "Run module for click monitoring for IE-based browsers" checkbox.

IDM can show its Download panel on a web-player in a browser when IDM detects a multimedia request from the web-player

image

The advanced browser integation can be used to integrate IDM into any application that uses FTP, or HTTP protocols. If you find any problems with advanced browser integration, you may turn it off and use basic browser integration.

If you need to integrate IDM into a new browser, or any application that use HTTP and FTP download protocols, please check  "Detect New Applications" box. Then when you run this application, and try to download a file that has a file type from IDM list of automatically started downloads, IDM will take over the download from this application and add the application to the list of browsers.

image

Keys button let you select different keyboard keys to force or prevent downloading with IDM. When you press on the Keys button, "Using special keys" dialog will appear. You may select a combination of one or more keys suitable for your web browser. Note that Opera and OLD Mozilla based browsers can be integrated with IDM using plugins. This integration type does not support special keys to prevent or force downloading with IDM from these browsers.If you want to prevent or force downloading with IDM by pressing special keys, you should use "Advanced browser integration".

image

File Types tab

File Types tab can be used to change the list of file types that will be taken over from a browser and downloaded by IDM.

image

You can prevent IDM from downloading from specified sites. If you don't want IDM to take over all downloads from a particular site, you may add it to "don't start downloading" list. You may use asterisk to match any number of characters. For example *.tonec.com will match ftp.tonec.com, www.tonec.com, www.games.tonec.com, and etc.

You can also prevent IDM from downloading from specified web-addresses. You can add/remove web addresses in "The list of addresses exceptions" dialog that appears when you press on "Edit list..." button.

Connection tab

In connection tab you must select the speed of your Internet connection. That is necessary for the optimal use of your bandwidth. Try to avoid setting "Max Connection Number" to values greater than four. Large number of connections (file segments) can deteriorate file transfer performance and may result in higher resource usage on the server you are downloading from. This may lead to some limits or other protective measures from local system administrators. On the other side, larger number of connections can increase the speed very significantly if you have a cable modem or a highly utilized (shared) Internet connection.

You can set individual numbers of connections (numbers of threads to download) for the servers in Exceptions table. You may need it for the servers that limit the number of connections from the same client. This is also useful for ftp servers that limit the number of connections to 1 or 2.

If you want to set download quotas on the usage of your Internet connection, you should set IDM Download Limits. It's useful for links that have some kind of fair access policy (like Direcway, Direct PC, Hughes, etc.). Let's say you set 40MB/hour or not more than 150MB every 4 hours, and IDM will download the maximum it can, and then resume automatically at a later time. This way you can download large files at the maximum possible speed.

image

Save To tab

Save To defines the default "save to" directory for a selected category. You can also change this directory by picking Properties item in the right click menu of a selected category in the main IDM window. Downloaded file will be saved to the default directory of an appropriate category. But you can change the directory to save the file before downloading in Download File Info dialog. If "Remember last save path" box is checked and you have changed the directory in Download File Info dialog, then the default "save to" directory will change for all subsequent downloads in this category.

image

Temporary Directory defines the path where all temporary files should be stored. You may need to change this directory only if default location doesn't have enough free disc space.

Downloads tab

In Dialogs group box you can control how IDM dialogs are displayed. Select "Don't show" item in Download progress list box, if you don't want to see "Download Progress" dialog at all. If you don't like to see "Download Progress" dialog appearing in front of all other windows, select "Show minimized". You can disable "Download Complete" dialog using "Show download complete dialog" box.

image

Internet Download Manager also supports the silent mode when all clicked files are automatically saved to the default directory. If you don't want to see start, progress and download complete dialogs, you may disable them. Just uncheck "Show start download dialog", "Show download complete dialog" and select "Don't show" item in Download progress list box.

Internet Download Manager is optimized for speed and it starts to download a file while showing "Download File Info" dialog. Thus while you are thinking about where to place a file after downloading on "Download File Info" dialog, the file may be downloaded partially or completely. If you use IDM scheduler and want to download the file later, or just want to add it to the queue, you may not need to start downloading the file on this dialog. In this case you should uncheck "Start download immediately while showing Download File Info dialog" box.

Sometimes Internet servers erroneously change file modification time with every download request. In this case IDM scheduler starts downloading such files from the scratch. To avoid it and to resume downloads correctly, you will need to check "Ignore file modification time changes when resuming a download" box.

If you would like to run antiviral software on download completion, you should type or browse the complete path to the executable file (see picture). If IDM knows about necessary parameters for a given executable file name, it will set them automatically. Otherwise you will have to set them manually in "Command line parameters" according to antiviral software documentation. If no parameters are set, IDM will execute antiviral software appending the complete path to a downloaded file.

Proxy tab

Proxy/Firewall tab can be used to make settings for your proxy servers. Find button can be used to copy proxy settings from Internet Explorer or Netscape Communicator. "Use FTP in PASV" option means that passive mode of FTP protocol will be used. You should turn this option on of you are behind a firewall or a proxy server. You can also specify login information if your proxy server demands authorization.

You may type Internet addresses where IDM won't use proxy servers. You may use asterisk to match any number of characters. For example *.tonec.com will match ftp.tonec.com, www.tonec.com, www.games.tonec.com, and etc.

image

Site Logins tab

Site Logins tab (available only in registered version) is used for making a list of login information for the sites that demand authorization. You can add different login information for different directories of the same web site. Click on New button to add new URL and Username/Password information.

image

Dial Up tab

If standard Windows Dial-Up service is used, IDM can edit phone book records for your connections. In list box you can select a connection to use with IDM. If your computer is connected to the Internet, IDM shows this connection by default. Otherwise IDM shows the last used connection. If you run IDM for the first time, IDM selects first record from your phone book.

image

After selecting connection, you can change username and password. You can save username and password in phone book by clicking on Apply button. Check Save Password box if you don't want to enter password every time you start IDM. You can also set the number of redials (0 - endlessly) and time interval between them. Click on OK button to save changes or on Cancel to discard them.

Sounds tab

IDM can play different sounds for different download events. On this tab you can select sound files and set events.

image

Tip: You can use standard Windows sounds stored in windows/media folder to play on events. To set a sound, select an event, click on Browse button, find a file to play and then check the event in the checkbox. You can test selected sound by using Play button.

How to integrate IDM into IE right click menu

1. Download a specific link or all links in the selected text from an html page.

If you right click on a link in Internet Explorer, you will see "Download with IDM" menu item. Just pick this item to start downloading the link with IDM. You may also select a text in Internet Explorer, and pick "Download with IDM" to add all links in the selected text to IDM.

image

This way of downloading files is useful if IDM couldn't take over the download automatically.

2. Download several files from an html page.

You can download several files from an html page. IDM can import all or selected downloads linked to a web page to the main download list. Just click with right mouse button on the web page and select "Download All Links with IDM" in popup menu. See below.

image

After picking Download All Links with IDM menu item on any place of the page, IDM displays a dialog to import downloads from this page. See below.

image

At the same time IDM starts checking all downloads to find out file sizes and types. You may wait until IDM finishes, and shows its final results. 

Then check the boxes for the files that you need to download with IDM. You can use Hide HTML files checkbox to filter html pages, and Check All, Uncheck All buttons to check all, or uncheck all downloads. See below.

image

You can select a download and press on edit button to change download location, description, save path, file name, and other attributes.

Having selected and edited downloads, click on OK button to add them to the main download list of Internet Download Manager. IDM also adds these downloads to the download queue. You can start downloads by selecting them, and by clicking on resume button, or you can start all downloads by picking "Downloads->Start Queue" menu item.

image

If you had other files in the queue, you can move imported downloads to the top of the queue. Click on Scheduler button, select necessary downloads using Ctrl or Shift keys with mouse clicks, and move selected downloads up using up arrow button.