Search found 3 matches
- 31 Jul 2013 15:56
- Forum: DOS Batch Forum
- Topic: How to exit CMD windows after calling external .exe in Batch
- Replies: 8
- Views: 11194
Re: How to exit CMD windows after calling external .exe in B
It's surely not a perfect solution, but solve my problem. Fortunately, I only run one genm.exe at a time. So I can run it, and pause the main process for a little bit time to make sure genm.exe is finished, and then terminate the genm.exe process. Then move on for next cycle of running genm.exe. Tha...
- 31 Jul 2013 13:51
- Forum: DOS Batch Forum
- Topic: How to exit CMD windows after calling external .exe in Batch
- Replies: 8
- Views: 11194
Re: How to exit CMD windows after calling external .exe in B
Thank you very much, aGerman. Your code doesn't solve the problem and the CMD window remains. The genm.exe is wrote in Fortran by others and I can do nothing about it. I wrote another batch file called killtask.bat to kill the genm.exe task every time I finish running it. @echo off taskkill /F /IM g...
- 31 Jul 2013 10:48
- Forum: DOS Batch Forum
- Topic: How to exit CMD windows after calling external .exe in Batch
- Replies: 8
- Views: 11194
How to exit CMD windows after calling external .exe in Batch
I wrote a batch file (cal.bat) to use an external .exe file (genm.exe), so that I can run this batch file as many times as I want in MATLAB. The problem is the CMD windows doesn't close automatically after each run. It asks "Press <Enter> or <Space> to Exit" at the end of running genm.exe....