Change the path of the command in the shortcut If you are running an MS-DOS command or program in Windows, try opening an MS-DOS prompt and executing the command or program from within MS-DOS.
Unfortunately, there is no setting in Windows for disabling the auto-closure of the MS-DOS windows.