in reply to Re: system() does not wait for terminal.exe to complete executing on Windows
in thread system() does not wait for terminal.exe to complete executing on Windows

Thanks. Your code snippet helped me :-). Here is what I observed:- I was trying to run a short-cut(to an terminal.exe) with command line parameter in my original code. When I tried your code it behaved the same way. So I tried running the terminal.exe from its install location, and it worked :-). The script executes terminal.exe, waits for it to exit and then runs it second time. Thanks !!!
  • Comment on Re^2: system() does not wait for terminal.exe to complete executing on Windows

Replies are listed 'Best First'.
Re^3: system() does not wait for terminal.exe to complete executing on Windows
by BrowserUk (Patriarch) on Apr 07, 2010 at 23:03 UTC
    Here is what I observed:- I was trying to run a short-cut(to an terminal.exe) with command line parameter in my original code.

    Ah! Yes, shortcuts effectively detach their targets and then return. Which explains the behaviour you got.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.