6

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

6

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!

0

I have used Uwe Sieber's 'Close Window' from his Windows Tools section.
From Windows Tools Page - CloseWindow V0.1 - closing windows
To download direct - Uwe Sieber's ConsoleNoClose
It works quite well! Just start it with the perameter "/1" in the batch file.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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