Search This Blog

Monday, July 5, 2010

Can a DOS cmd file execution step through sequence without completing a java process?

Programmer Question

Does DOS execute processes in sequence only if the previous step has completed and released all file/process locks?



Suppose I have the following cmd file (mybatchfile.cmd)



echo. |TIME
java myjar.jar
echo. |TIME


and I pipe the results to a log file.



Can I be 100% confident (on windows) that my java process has completed and released all file/process locks when the second echo timestamp has occurred?



Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails