Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

At my company we have stores that run some old DOS software.

Before Windows 7 you could run these programs in full-screen and now you cannot.

I know there are work-arounds to get in full-screen (e.g. DOSBox, rolling back video drivers). However both of these solutions have been shown to cause problems.

As an alternative we we want to disable the close button on the command prompt window which loads this DOS program.

Reason being, the program has it's own method of closing which worked well with full-screen but now without it users are clicking the close button and a close like this messes with our data.

How can I disable the close button.

Any help is appreciated, thanks

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You could re-invent the wheel and create your own wrapper to launch your program, using something like AutoIt, or your favorite programming language.

Or you could use Uwe Sieber's ConsoleNoClose program to do just that: disable the Close (X) button on a command prompt window. When you launch the program it stays resident and disables the button on any open command prompt as it gets the focus.

Tested on Windows 7 Professional 32-bit.

Hope that helps!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.