PDA

View Full Version : How to detect log on or log off state from the script. (W2K)



stangor
05-03-2003, 02:22 PM
I would like to find a way to detect log off or log on state of the Windows (NT, 2000 and XP system) system.

Description:

I have a way to execute a file when system logged off. However, I want to execute this file only when system logged on. Therefore, I need a hint: what should I check from my script in order to detect system log on/log off state. May be from registry?

Your help will be appreciated.