mobster Posted January 16, 2011 Share Posted January 16, 2011 (edited) Hi I am looking for a progress bar that will be working during a single file copy ,I have searched the forum and couldent find any thing for my code here is the code : Local $source = "C:\Users\esason\Desktop\Linux\RH4.4\rh44-yum-client-disk1.vmdk" Local $destanation = "C:\test" copy($source,$destanation) func copy($source ,$destanation ) ProgressOn("Progress Meter", "Increments every second", "0 percent") ;if FileExists($destanation) then ProgressSet(100 , "Done", "Complete") For $i = 10 to 100 step 1 sleep(2000) ProgressSet( $i, $i & " percent") Next FileCopy($source ,$destanation,9) if FileExists($destanation) then ProgressSet(100 , "Done", "Complete") sleep(500) ProgressOff() EndFunc which doesent display the copy proccess accurately Can any one help Thanks Edited January 16, 2011 by mobster Link to comment Share on other sites More sharing options...
somdcomputerguy Posted January 16, 2011 Share Posted January 16, 2011 Maybe this helps? Windows - copy with progress - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
RichardL Posted January 16, 2011 Share Posted January 16, 2011 Is it possible that Windows gives no progress feedback on a single file copy? So how can any copy function show progress? What if you read the size of the source file, fire off the copy as a separate thread or process, then monitor the size of the copied file? Richard. Link to comment Share on other sites More sharing options...
UEZ Posted January 16, 2011 Share Posted January 16, 2011 Maybe this would help -> Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Andreik Posted January 16, 2011 Share Posted January 16, 2011 You can write your own function to read data from source file in chunks and write in destination file. This progress can be shown on a progress bar control even for a single file. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now