URAR for DBPro
~~~~~~~~~~~~~~
by WLGfx 2011

PLEASE NOTE that this will only work with RAR files upto version 2.90
which can be found here: http://www.oldapps.com/winrar.php

As usual copy the .dll file into the compiler/plugins-user folder and
copy the .ini file into the editor/keywords folder in your DBPro
installation.

The commands:
~~~~~~~~~~~~~

memblockID = RAR FILE TO MEMBLOCK( rarfile$, filename$, password$ )

returns 0 if failed or ID of memblock

You can do whatever you like with the memblock once the file has been
extracted to it. If no memblocks are left for use then this command
will fail. If the RAR file does not have a password then leave this
string parameter blank.


success = RAR FILE TO FILE( rarfile$, filename$, password$ )

returns 0 if failed, SIZE_OF_FILE if successful

If successful then the file will reside on the disk in the current
directory using the same file name as given. The program can then 
access it and delete it as soon as it has been finished with.


More:
~~~~~

From WinRar 2.90 create your archive and add you media to it. You can
use the menu options to further encrypt your media by adding a
password to the archive. Most of these steps should be farely obvious
to those who are used to archiving.

When using these commands from DBPro the speed will depend on two
things, the size of the RAR file and the size of the file being
extracted. Most operations will be done using the extract to file
function so you will have to manually delete the file as soon as you
are finished with it.

NB: Something I will check up on is extracting images from a memblock.
    I think DBPro has its own image format.

EULA:

As the use of creating RAR files is not licence free this utility does
carry RAR EULA. Apart from anything else it is free, free, free...

