Showing results for events and monitoring - Scripting Blog [archived]

Apr 26, 2007
0
0

How Can I Start a Process and Then Log the User Off When That Process Ends?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I write a script that starts a process, waits until that process ends, and then logs the user off the computer?-- AG Hey, AG. You know, the Scripting Guy who writes this column is never one to brag, mainly because he never has much of anything to brag about. In addition tot that, however, he is a humble and modest sor...

Scripting Guy!scripting techniquesVBScript
Dec 8, 2006
0
0

How Can I Start a Process and Then Wait For the Process to End Before Terminating the Script?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I start a process and then wait until that process quits before terminating the script?-- FG Hey, FG. Before we answer your question, the Scripting Guy who writes this column has a confession to make: he’s the one who ruined Christmas for everyone. Not that he meant to, mind you, but that doesn’t matter; all that matter...

Scripting Guy!scripting techniquesVBScript
Oct 4, 2006
0
0

How Can I Monitor for the Creation of Different Processes?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I use one script to monitor for the creation of four or five different processes?-- BC Hey, BC. You know, it’s too bad you didn’t ask how you could monitor four or five TV shows at the same time. Had you done that we would have had the perfect answer for you: get yourself a teenaged son. Although the Scripting Dad is ...

Scripting Guy!scripting techniquesVBScript
Feb 13, 2006
0
0

How Can I Determine When a Removable Drive Gets Connected?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I determine when a USB flash drive gets connected?-- PS Hey, PS. OK, we admit it: the Scripting Guys are lazy. (Especially on a Friday, which is the day when we have to write our Monday column.) There might be a way to monitor specifically for the insertion of a USB flash drive; however, we couldn’t find one, at least...

Scripting Guy!scripting techniquesVBScript
Feb 10, 2006
0
0

How Can I Log the Start Time and the End Time of the Screensaver?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I log the start time and the end time of the screensaver?-- JS Hey, JS. You know, one of the Scripting Guys (hey, who said “It must be Greg”?) is old enough to remember the days when screensavers first came out. Back then a script like this would have been meaningless: after all, once a screensaver started everyone wa...

Scripting Guy!scripting techniquesVBScript