Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 15248, TSHFileOp (SHFileOperation)

by Brad Prendergast Email: Anonymous


TSHFileOp is a TComponent that is a wrapper for the SHFileOperation function used to copy, move, rename, or delete (recycle-bin) a file system object.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 5.0  to 9.0 1092 downloads
Copyright: Open Source or other


Size: 13,446 bytes
Updated on Sat, 06 Aug 2005 10:22:03 GMT
Originally uploaded on Wed, 27 Sep 2000 03:14:48 GMT
SHA1 Hash: D6A9CF68AE34B147E7B67114FDDC5F8B43E8B481
MD5 Hash: 41885ECEEB2F16E7D8CDE56D85488AC2

    Explore the files in this upload

Description
Component
Description: TSHFileOp is a TComponent that is a wrapper for the SHFileOperation function used to copy, move, rename, or delete (with recycle-bin support) a file system object. (Note: It is recommened that you reference SHFileOperation and SHFileOpStruct in the Delphi help files for additional information)


Properties -
HWNDHandle: HWND - Window handle to display information about the status of the operation.
Action: TSHFileAction - Action to perform (faCopy, faDelete, faMove, faRename)
Destination: String - Destination directory of the Action (faCopy, faMove)
FileList: TStringList - List of files to for use with the Action
SHOptions: TSHFileOPOptions - Flags that control the file operation (ofAllowUndo, ofConfirmMouse, ofFilesOnly, ofNoConfirmation, ofNoConfirmMKDir, ofRenameOnCollision, ofSilent, ofSimpleProgress)
Title: String - Tfor a progress dialog box (Note: Only used if SHOptions includes ofSimpleProgress)


Methods -
function Execute: Boolean - Performs the action with the property values specified. Returns a True if errors result, or if the user aborted before complete.


Typical use sequence -
Specify the Action
Specify SHOptions
Load the FileList with the complete path of the desired files
Specify the destination directory (copy, move)
Specify progress box title
Set HWNDHandle
Execute

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04