Prevent close on MS-DOS prompt.

Hewlett-packard Compaq presario cq61-420...
March 20, 2010 at 03:54:24
Specs: Windows Vista Home Premium SP1
Hello. I'm having a bit of a problem with this: I've made a program called Terminator, a sort of process-killer/last-resort/file-analyser. My problem is: when people use the program, I don't want it to be quit half-way through analysis or deletion. Any methods to stop the Terminator being terminated?

See More: Prevent close on MS-DOS prompt.

Report •

March 20, 2010 at 04:10:19
How is it quitting?
What stage does it get to when it dissapears.
Give us the lines of code to the part that it quits you may have some Code wrong.
Some symbols will automatically close the batch file.

Post the code of the whole part which it closes in. then we can get back to you.

Need help? Just ask. :)

Report •

March 20, 2010 at 04:16:31
Oh, you misunderstand me. I mean I need to disable the close button. (not End Task, just the close button)

Report •

March 20, 2010 at 04:50:55
I doubt that it will happen without accessing the windows api or using a utility that does.

It may be possible to embed a vbs in the batch script to do it, but I can't help with that because I don't really do vbs.

I wrote a tiny c++ program(I suppose it's basically plain c) a while ago for exactly this, but because of a bug in xp I didn't take it any further than disabling the close button.

See response #3

I can't guarantee it will work in vista, but it should.

Report •

Related Solutions

March 21, 2010 at 05:18:08
It does work in Vista. Thank you! :D

Report •

March 21, 2010 at 05:53:25
No problem! I'm glade could help ;). I could probably write something slightly more robust(if needed), but couldn't test it properly(xp home is all I've got M$ windows wise)....

Report •

Ask Question