bat file that close all running application if monitor turn

March 27, 2012 at 06:10:49
Specs: Windows 7
bat file that close all running application if monitor turn off

See More: bat file that close all running application if monitor turn

Report •

#1
March 27, 2012 at 08:26:00
How are we supposed to write a script given the information you provided? C'mon...

What monitor are you talking about?
Need more detail on what applications to close.
Tell us exactly what you're trying to do.

Tony


Report •

#2
March 27, 2012 at 08:34:55
for example Tony I run microsoft office(or any application).Once i turn off my monitor all running application on my desktop will automatically close.Do you think it is posible in bat file?

Report •

#3
March 27, 2012 at 08:42:51
I do not believe there is a way to check the status of your monitor.

You could however just logoff after your session is idle for a certain amount of time.

http://social.technet.microsoft.com...


Report •

Related Solutions

#4
March 27, 2012 at 09:51:24
Not only is it not possible with batch, but there's no reliable way for a program to know, either. The idle timeout tonysathre mentions would be your best bet.

How To Ask Questions The Smart Way


Report •

#5
March 27, 2012 at 23:52:38
It sounds obvious that a program can't get this information, but it can in Windows Vista and above. Have a look at http://msdn.microsoft.com/en-us/lib... . I suspect that other OSs provide similar APIs.

But you'r not going to be able to do this in batch alone.


Report •

#6
March 28, 2012 at 03:39:57
Sadly, that API only tells you if Windows wants the monitor powered off. It does not know if the user pressed the power button on the monitor, sometimes.

How To Ask Questions The Smart Way


Report •

Ask Question