Contents - Index - Previous - Next


OnPrepareNextDisk Event 

 

Applies to

TVCLZip component

 

Declaration

property OnPrepareNextDisk: TPrepareNextDisk = procedure(Sender: TObject; DiskNum: Integer); of object;

 

 

Description

When creating a spanned zip file across removable media, this event is triggered directly after the OnGetNextDisk Event has been processed and just before the zipping process is continued.  This gives you a chance, from this event, to prepare the diskette in any way you wish. This is a good place to put code to format the disk, delete files from the disk, or even add special files if you wish.  After this event is done, the zipping process will continue with that part of the spanned zip file.  DiskNum is the number of the disk that you are working with.  The first disk in the spanned set would be number 1.  

 

Please note that before calling this event, VCLZip will already have deleted any zip files on the disk that match the name of the zip file being created, so you don't have to worry about using this event to do that youself.  

 

See Also:

  

OnGetNextDisk Event