Snippet: CopyProgress
Posted
#1
(In Topic #806)
Regular

You will need ‘rsync’ installed if you don’t have it. (or just change to something else in the class and update the parsing)
You will need a ProgressBar and a TextLabel also if used as is.
It's not as smooth as I'd like but good enough for my needs.
I’m not good at ‘Class’ objects but tried my hand at it. (Thanks stevedee)
I want to see if I can get this to run in the background and found Cogier’s TaskExample and will attempt it later.
Haven’t done much error checking as it’s just a snippet.
<IMG src="https://i.postimg.cc/hjDVpz8b/Copy-Progress.png">
</IMG>Code (gambas)
Usage Example:
Code (gambas)
- ' Gambas class file
- CopyFile.Source = txbSource.Text
- CopyFile.Destination = txbDestination.Text
- CopyFile.StatusTXL = txlCopyStatus
- CopyFile.Progress = pgbCopyFile
- CopyFile.Run
1 guest and 0 members have just viewed this.





