Prevent DOS Window from closing after executing Batch File
Posted on 2006-04-27
I am still supporting several Clipper Applications that I wrote ten years ago. The development environment is stricly DOS; I have to work with the compilers and linkers in a DOS window. This requires execution of a fairly sophisicated DOS Batch file (50+ lines of DOS commands) that are designed to setup up the DOS environment so that I can work with the compiler and linker in a particular directory. I created a shortcut to execute the batch file, but after it executes, the window closes. In Windows 98, the window automatically stayed open unless you "checked" the "Close on Exit" box in the properties of the shortcut. But in XP there is no such box. Adding "cmd" to the end of the batch file doesn't work. I coplied the W98 shortcut over to the XP machine, but although the shortcut opens the DOS session (and leaves it open), it won't execute the specified Batch File. Any suggestions?