TuMiM Posted April 18, 2005 Posted April 18, 2005 I have a little program that runs an xcopy command when pressed. I want to make some sort of a status for the user to see while the xcopy is running. How can i do this? RunWait(@ComSpec & " /c " & 'xcopy t:\complete\*.* U:\ /S/E/Y/D>c:\MiaST1.txt',"c:\", @SW_HIDE) Also, once the command is finished it creates a listview with the results. If the users presses the buton again it will display the old results and the new results. How do i clear the listview everytime the button is pressed? Thanks
Wb-FreeKill Posted April 18, 2005 Posted April 18, 2005 I want to make some sort of a status for the user to see while the xcopy is running. How can i do this?Could get the size of the file, before copying, and when copying, get the size of the file that is being coypied... and use some sort of math function to calculate how many % of the file has been transferred.. Then its easy to make a process
buzz44 Posted April 18, 2005 Posted April 18, 2005 The above wont work , I tried to when i was making a BackUp Script and it just moves the file as a whole, at least on the files I was testing on. Ig the file is a folder than which contains many file, it does the files in groups, or at least not at once, so I suppose you could get the size of the Dir and compare it to the original. qq
TuMiM Posted April 18, 2005 Author Posted April 18, 2005 I don't necessariyl need a status bar. I would be fine with a message that says "copy in progress" until the xcopy is done and then have it say "copy complete"
Wb-FreeKill Posted April 18, 2005 Posted April 18, 2005 I once did the progress thing when downloading from the internet, that works just fine..
buzz44 Posted April 18, 2005 Posted April 18, 2005 If you don't want a progress bar then you can just check if the file exists FileExists(). But if what WB-FreeKill is true then that wont work because before the whole file has copied it will already exist, the size will just grow. But then again, you could just get the size of the original file and compare it to the copied one . qq
Woocash[ACN] Posted April 18, 2005 Posted April 18, 2005 maybe run it as an external program and wait till process is active? regards,Woocash[ACN]
phillip123adams Posted April 18, 2005 Posted April 18, 2005 I don't necessariyl need a status bar. I would be fine with a message that says "copy in progress" until the xcopy is done and then have it say "copy complete"<{POST_SNAPBACK}>You could put a SplashTextOn() before the RunWait, and a SplashOff() after the RunWait. Phillip
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