GAM Posted October 31, 2008 Share Posted October 31, 2008 Hi. How can I know the status of a file copy. I mean I would like to whether the file is copied or the file is being copied? Help please. Neil Link to comment Share on other sites More sharing options...
LizardLord Posted October 31, 2008 Share Posted October 31, 2008 Hi. How can I know the status of a file copy. I mean I would like to whether the file is copied or the file is being copied? Help please.It seems to be possible to get status by having a constantly looping script monitor the file size of the original file, and then compare it to the origin file.An example of how you would get the progress bar to show this would be:$ProgressBar = GUICtrlCreateProgress(DIMENSIONSGOEHERE)$OldFilesize = FileGetSize(INSERTORIGINFILEPATHHERE)While 1$NewFileSize = FileGetSize(INSERTDESTINATIONFILEPATHHERE)$PercentDone = $NewFileSize / $OldFileSize * 100GUIctrlSetData(CONTROLID,$PercentDone)If $PercentDone = 100 thenExitloopendifwendNot sure if this is what you mean, but it may not work and may need a little modifying, as I am very drowsy at the moment. you may have to stick calls to functions needed to run while copying in the While Loop.IMPORTANT, READ THE SCRIPT AND MODIFY AS NEEDED, DO NOT COPY AND PASTE IT WILL NOT WORK Link to comment Share on other sites More sharing options...
LizardLord Posted October 31, 2008 Share Posted October 31, 2008 ... script monitor the file size of the original file, and then compare it to the origin file.... Sorry, I Meant to Put:"script monitor the file size of the Destination file, and then compare it to the origin file" Link to comment Share on other sites More sharing options...
Valuater Posted October 31, 2008 Share Posted October 31, 2008 Autoit Wrappers is your friend....http://www.autoitscript.com/forum/index.ph...st&p=186198there are a lot more scriptlets to help you there!!!8) Link to comment Share on other sites More sharing options...
rasim Posted October 31, 2008 Share Posted October 31, 2008 Search rulez Copy +Progress 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