How to see if a file is written to diks from other process?
Hello!I wonder if any one got a soloution for this problem.
I dynamically write a couple of Word-files to disk with WordApi.exe from a Servlet. It looks something like:
BatchWordProcessing bwp = new BatchWordProcessing();
for(int i = 0; i < x; i++)
{
bwp.createNewDocumentFromTemplate(templateName);
bwp.typeTextAtBookmark("bookmarkname", "A string");
bwp.saveDocumentAs(newfilename);
}
bwp.quitApplication();
bwp.exec();
The BatchWordProcessing is calling the WordApi.exe for the filesaveing_process.
The Servlet has almost always executed to its end before the WordApi.exe is done.
What I need to know is some waiting-process until all files is written to the disk. Cause at the end I would like to zip all the files and present a link to the zip-file with all the files written by WordApi.exe.
So if any one got some idea how to solve this.
Best regards
Fredrik
