There are two screens(two applications). one is DOS screen, the other is Windows. Dos screen get generated when the some function get called in Windows screen. Then the computer will continue the function in the DOS screen. When the DOS application get finished, it needs to switch to Windows screen again. I could press to Ctrl + C to go back to Windows but I want the DOS screen could automatically shut off when the application in DOS screen get finished.
So is anyone knows how to code to switch DOS screen to Windows screen with press anykey?
Thanks