SHFileOp - VB program that demonstrates using SHFileOperation
Copyright (c) 1997 SoftCircuits Programming (R)
Redistributed by Permission.

Starting with Windows 95, the Windows API provides the SHFileOperation
function. This function provides many options for copying, moving,
renaming and deleting files. For lengthy operations, a dialog box is
displayed that indicates the current operation and progress. This is
exactly the same progress dialog box displayed by the Windows Explorer
because the Windows Explorer also calls SHFileOperation.

The CSHFileOp class encapsulates SHFileOperation making it much
easier to use. Not only does it provide much easier access to the many
options but performs some special work so that SHFILEOPSTRUCT can be
fully exploited by VB. Most available options are implemented as class
properties and methods. For example, set the AllowUndo property to
True to cause deleted files to be sent to the Recycle Bin. View the
comments within the source code for information about these options.
Refer to the Windows API documentation for additional information.

After specifying the source and destination files and setting any
options you want, call the CopyFiles, MoveFiles, DeleteFiles or
RenameFiles methods to perform the operation. Each of these methods
returns True if all operations completely successfully, or False if
there was an error or the user canceled an operation. (Note: You do
not normally need to display error information because Windows will
notify the user of any tasks that could not be completed.)

This program may be distributed on the condition that it is
distributed in full and unchanged, and that no fee is charged for
such distribution with the exception of reasonable shipping and media
charged. In addition, the code in this program may be incorporated
into your own programs and the resulting programs may be distributed
without payment of royalties.

This example program was provided by:
 SoftCircuits Programming
 http://www.softcircuits.com
 P.O. Box 16262
 Irvine, CA 92623
