move
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 llSuccess = FileOpWithProgressbar("H:\TEMP\tord.dbf", "H:\TMP\", "Copy") * Copy all dbf's
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
1 week 4 days ago
1 week 4 days ago
1 week 6 days ago
2 weeks 14 hours ago
2 weeks 1 day ago
2 weeks 4 days ago
3 weeks 4 days ago
3 weeks 5 days ago
3 weeks 6 days ago
4 weeks 3 days ago