Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28456 Discussions

multiple executions from batch without screen halting

Deleted_U_Intel
Employee
369 Views
When attempting to run a model from a batch file multiple times, the batch file (run from a DOS window) halts because when the application completes one execution cycle the screen message "Program Terminated with exit code 0. Exit Window?" appears. How can this be avoided?

John

0 Kudos
3 Replies
jimdempseyatthecove
Honored Contributor III
369 Views

In your batch file where you have

YourProgramNameHere arg1 arg2

Try

START /WAIT YourProgramNameHere arg1 arg2

Use START /? to get options
You also may need to look at

START /WAIT CMD /C YourProgramNameHere arg1 arg2


Jim Dempsey
0 Kudos
anthonyrichards
New Contributor III
369 Views
Start your program with a CALL to a batchfile that starts your program? Make sure you do not specify an exit code using STOP exitcode or CALL EXIT(exitcode) in your program?

0 Kudos
onkelhotte
New Contributor II
369 Views
When attempting to run a model from a batch file multiple times, the batch file (run from a DOS window) halts because when the application completes one execution cycle the screen message "Program Terminated with exit code 0. Exit Window?" appears. How can this be avoided?

John


lret = SetExitQQ (QWin$ExitNoPersist)

avoids the Program Terminated message in a QuickWin application.

Markus
0 Kudos
Reply