PACKER for Dbase and  Paradox. 
(c)1997 Jose Alfredo Garca Guirado

Introduction:

PACKER is a utility to compact Dbase or Paradox data bases. You
can execute it inside your program with the Windows API function
WINEXEC. The data for PACKER are entered in inline parameter form.

In the pack, you can find the source code of ExecAndWait function
that encapsulates the WinExec function, in order to simplify the
PACKER.EXE use. The sintaxis of the function is:  

Function ExecAndWait(Comand:string):word;

This function may be used to call PACKER.EXE inside a delphi 1.00
program.

It is posible call PACKER.EXE inside other program application.

The program TSTPACK.EXE is for PACKER.EXE test purposes.

Pack PACKER10.ZIP contents:

- PACKER.EXE   Executable program to pack paradox and dbase tables.
               You can run inside your application.

- TSTPACK.EXE  Executable program to test PACKER.EXE. You can pack
               paradox and dbase tables with it.

- EXECWAIT.PAS Source code of the unit ExecWait. This unit 
               contents a function ExecAndWait to call PACKER.EXE
               inside the source code of your delphi application


- PACKERI.TXT   This file

- REGISTER.TXT Register Form.
 
TSTPACK Use:

  This program is a small test application with PACKER.EXE.
  But you  can pack tables with it.

  - Unzip the PAKER.ZIP pack alone in a directory.
  
  - If you want, create an item group with TSTPACK and run it, or 
    double click it in the file manager.

  - Enter the path and the filename with extension of your table
    and then click the pack button.

PACKER.EXE Use:

  - Unzip the PAKER.ZIP pack alone in a directory.

  - Copy PACKER.EXE in the directory within you are developing
    your application. 

  - If you plan to use the ExecWait unit, copy the unit in the 
    directory in which you are developing your application.  

  - Put the name of the unit in your Uses clause. (EXECWAIT).

  - In your code, before calling PACKER, be sure that all Ttable
    component, that is conected with the Table you want to
    pack, are closed (TTable.Close).

  - The bases to pack must have the following extensions:
    .dbf (dbase), .db or none (paradox).

  - PACKER.EXE needs two line parameters:
  
    PACKER <path> <filename>

   <path>    :  complete database path
                (TTable.Databasename property)  
                    
   <filename>: database name with extension
               (TTable.Tablename property)
                     
  - Call PACKER.EXE using the EXECAndWait function: 
    ...
    Comand:= 'PACKER '+path+' '+filename;
    if ExecAndWait(Comand) then....;
    ...

Note: Remember to close all the TTable components connected with
      the table to pack.

Errors Messages:

  There are three errors on parameters:
  - 'Missing parameter';
  - 'Path not found';
  - 'Filename not found';

  The program processes the dbi error messages too. You can see
  a message in a dbi error procedure. The ExecAndWait function
  return a status code. If this code is 32 or greater the
  execution was good. This windows return code refers only to
  the EXECAndWAIT function, if there are errors in your parameters
  or dbi you only know them by the displayed messages.

  If the table is used by other user, you cannot pack it, and a
  message is displayed. You can select Try again (this is only
  efective in a net enviromment or with other application
  run at the same time) or Cancel the Pack procedure.

  If you have the above message and you  are not in a net
  enviromment or with other application run at the same time,
  please see your code, some TTable component is Open and point
  to the table.
  

SHAREWARE Distribution notice:

You can distribute free and without cost the SHAREWARE and
UNREGISTER packer.zip of this utility pack software. The only
condition is that you don't modify or eliminate any file.
This version is only for evalution purpose. Other use is illegal.  

REGISTER Version.

There are two form to REGISTER:

1   - fee $21.00. You will receive the REGISTER version of
      PACKER.EXE and the REGISTER version of TSTPACK.EXE.

2   - fee $39.00. You will receive the REGISTER version of
      PACKER.EXE, the source code of PACKER.PAS and the source
      code of TSTPACK.PAS.
        
REGISTER TIPs:

For REGISTER PACKER10.ZIP see register.txt file or go to:

  http://www.shareit.com/programs/100154.htm  ($21.00 fee)

  http://www.shareit.com/programs/100155.htm  ($39.00 fee)
 

  You can pay with eurocheck, credit card and others form. contact
  www.shareit.com for pay conditions. See register.txt file
 
How you can recieve the REGISTER Version?

After received the fee. I 'll send you via e-mail the packer10.zip
file with the program REGISTER version. If you have get it by mail,
send $6.00 dollars more for certified postal pack. I live in
Argentina, you know where it is?

REGISTER LICENCE

The REGISTER version of TSTPACK.EXE is for personal use only. You
cannot copy it for other persons.

The licence owner can use PACKER.EXE as part of his personally
developed application and distribute it with his applications.

You can only distribute PACKER.EXE as part of any application
developed by the licence owner.

The source code is copyrighted. All rights are reserved by the
author. You can use and modify it only for your personal
development and studies. It prohibited his reproduction for
commercial purpose. If you reproduce it for other purpose,
you must put the copyright notice.
(c) 1997 Jose Alfredo Garcia
 
Disclaimer:

This SOFTWARE is provided on an "as is" basis.  The author 
disclaims liability for direct,indirect or incidental damages 
arising from the use of this software, including but not limited
to the interruption of service, loss of  business or potential 
profits, legal actions or other consequential damages even if the
author has been advised of the possibility of such damages.

Author notes

You can find the author to report bugs or other comments at

Jose Alfredo Garca Guirado
e-mail jgarcia@pinos.com
fax-(541)7732765
Tel-(541)7781937


