Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I repeatedly check size of file being created by another progr

Status
Not open for further replies.

dba2

Programmer
May 23, 2002
16
GB
I have written a program which includes the use of a progress bar representing the growing size of a file created by another program (which I have not written) called via CreateProcess().
Within my program I have created a loop that exists for the duration of the CreateProcess thread in which I repeatedly check the size of the file produced, using CreateFile() and GetFileSize() and use that to update the progress bar.

This works perfectly with OS W2K but fails with ME as follows:

If I check the building of the file using Explorer with F5 as a refresh, the file is not updated until the file is fully created. If I right click and check Properties repeatedly I can see the increase in file size. I assume from this that there is a way of checking the file growth, by some method in my program, but do not know how.

Any suggestions please?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top