Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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"

Posted

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

Posted

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

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
×
×
  • Create New...