Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

detecting a file has finished copying (using xcopy)

807605Jun 26 2007 — edited Jun 27 2007
Hi I have a unique problem here. My program writes a batch file, which in turn uses xcopy to copy particular files to remote machines. In addition, the remote machines will run the files which are copied.

Now my question is how am I able to find out (on the cilent side) my file has finished coping using the xcopy. Use file exists or find the length (size) of the file?

Heres a snippet of the pseudo code:
Server
if (send button is press)
open batch file for writing commands
xcopy ..\test.exe
xcopy ..\test2.exe
end if


Cilent:
if(xcopy is finished)
execute test.exe
execute test2.exe
end if
Many thanks

Message was edited by:
Zsefv
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2007
Added on Jun 26 2007
9 comments
1,215 views