Hey guys,
Here's my boggle (Demolition Man...GREAT flick):
We have code that creates an xml document, saves it on the server, then does a shell call to a java app that grabs that saved xml file and generates a pdf.
Problem is that of timing: the xml file isn't getting saved fast enough, and as a result the java app is trying to grab it before its saved to teh directory.
What we'd like to do is force the file to be saved BEFORE the line of code that calls the shell command is fired (which would ensure that the file is available).
Any thoughts on how we could do this? We were hoping there would be some sort of DoEvents solution, but it doesn't look like this would be feasable.
Thanks,
D'Arcy
Here's my boggle (Demolition Man...GREAT flick):
We have code that creates an xml document, saves it on the server, then does a shell call to a java app that grabs that saved xml file and generates a pdf.
Problem is that of timing: the xml file isn't getting saved fast enough, and as a result the java app is trying to grab it before its saved to teh directory.
What we'd like to do is force the file to be saved BEFORE the line of code that calls the shell command is fired (which would ensure that the file is available).
Any thoughts on how we could do this? We were hoping there would be some sort of DoEvents solution, but it doesn't look like this would be feasable.
Thanks,
D'Arcy