copy
File operations with Progressbar
It's based on the late Ed Rauh's code around SHFileOperation Win API and requires his Heap allocation class. It supports wild cards and shows standard Windows progress bar.
| This is sample code. Add error handling and adjust to your requirements as necessary. |
* Copy file to different name llSuccess = FileOpWithProgressbar("H:\TEMP\tord.dbf", "H:\TMP\TEST.dbf", "Copy") * Copy with the same name
Copy, Move, Rename File Preserving Destination Name Case
The CopyFile() and MoveFile() WIN API functions preserve the case of the name for the destination file. Alternatively, WSH can be used.
The source and destination file names should include the directory name in both cases.
Note 1 A Copy operation will not change file name case when destination file already exists (overwritten).
Note 2 The WinApiErrMsg is used to retrieve Windows API error message in case of error.
| This is sample code. Add error handling and adjust to your requirements as necessary. |
Recent comments
12 hours 32 min ago
1 day 19 hours ago
1 day 19 hours ago
2 days 15 hours ago
2 days 22 hours ago
4 days 6 hours ago
4 days 22 hours ago
5 days 11 hours ago
1 week 1 day ago
2 weeks 5 days ago