Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Avisos
Important Update: Community Platform Migration​. Learn more​>
29657 Discusiones

multiple executions from batch without screen halting

Deleted_U_Intel
Empleados
2.386 Vistas
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 Respuestas
jimdempseyatthecove
Colaborador Distinguido III
2.386 Vistas

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
anthonyrichards
Nuevo Colaborador III
2.386 Vistas
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?

onkelhotte
Nuevo Colaborador II
2.386 Vistas
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
Responder