General information
Category:
Windows API functions
Title:
Wait for cmd window to finish
Hi
I am sure I have seen an answer to this problem before.
I am kicking of a command window which is running a bat file, the bat file is using ISQL to run some SQL, and write the results to a file.
I need the program to wait until the command window has been closed by the exit command in the bat file.
Does any one know of an API , or a wrapper function to do this..
I this I could get the handle of the window when I first open it, and then loop until the handle is no longer there ?
Thanks for your help in advance.
Regards
Steven Bowskill
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only