Jump to content

progress bar


mobster
 Share

Recommended Posts

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 :x

Edited by mobster
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...