Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programmatically Detect Logoff Versus Startup

Status
Not open for further replies.

Pleonasm

Technical User
May 20, 2004
121
CA
Consider the situation of a VBScript (Windows XP) that is scheduled to run at logoff and at startup.

How can you programmatically determine within a VBScript that the PC is in the process of (A) a logoff/shutdown or (B) a startup operation? In other words, how can a script identify the condition or state (logoff, shutdown, startup) under which it has been invoked?

Thank you for your assistance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top