- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
John
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - irenejohn@aol.com
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
John
lret = SetExitQQ (QWin$ExitNoPersist)
avoids the Program Terminated message in a QuickWin application.
Markus
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page