|
Answer» Hi, Is there a command which say " wait the end of the action ... to continue "? thanksWhat OS do you have? And what action are you waiting for?
You can use call which will pass control to a secondary process and then resume executing from the NEXT sequential instruction when control is passed back. The start command has a /wait switch which might be useful. Choice has a timer which could be USED, but execution resumes when time has elapsed and is not dependent on another process.
The above commands are dependent on your OS.
Hope this helps. I have Microsoft WINDOWS XP 2002. I would like to LAUNCH Qchecker after the opening of catia. But after this opening I've to close the window to continue!
thanks for your helpAn alternative would be to write a script. There is a sleep method whereby you could launch catia, wait x amount of time (in miliseconds) and then launch Qchecker.
You could also use a script to query that catia actually started and then start up Qchecker.
Hope this helps. Hi Thanks for your help
How can I write a query script for this exemple or a sleep script? When given a choice, always pick simple:
Code: [Select] Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "drive:\path\catia.exe" ' <== CHG WScript.Sleep 20000 ' 20 sec WshShell.Run "drive:\path\qchecker.exe" ' <== CHG WScript.Quit
I guessed at the excutable names. Change the drive, path and program names accordingly. Do not remove the QUOTES. Any necessary parameters must be inside the quotes.
The sleep period is 20 seconds. Change to whatever. Remember the units are milliseconds.
Save the file with a VBS extension. You can run from the RUN box or the command line. Be sure you include the extension so the Windows Script Host kicks in.
Ex. myscript.vbs
Hope this helps.
|