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

Apr 4, 2005
Post comments count0
Post likes count0

How Can I Monitor for Different Types of Events With Just One Script?

ScriptingGuy1
ScriptingGuy1

  Hey, Scripting Guy! Is there any way to monitor a folder for file creations and deletions, all with just one script? -- HA Hey, HA. By the way, thanks for the question: you temporarily saved us from answering a different question, one that was proving a bit difficult thanks to some surprising differences between Windows XP Service Pack 1 a...

Scripting Guy!scripting techniquesVBScript
Mar 21, 2005
Post comments count0
Post likes count1

How Can I Be Notified Any Time a Network Cable Gets Unplugged?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is there a way I can be notified any time a network cable gets unplugged on a computer?-- DD Hey, DD. A lot of people, when growing up, had a grandmother or an aunt or someone somewhere who had a house with a big attic, an attic overflowing with stuff. Admittedly, most of the time you had no idea what you were looking at when...

Scripting Guy!scripting techniquesVBScript
Oct 11, 2004
Post comments count0
Post likes count0

How Can I Automatically Run a Script Any Time a File is Added to a Folder?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Is it possible to have a script automatically run any time a file is added to a specific folder?-- MB Hey, WM. Yes, this is possible, thanks to the magic of WMI events, which allow you to write a script to monitor for something of interest (like a file being added to a folder) and then take some action any time an event like ...

Scripting Guy!scripting techniquesVBScript
Sep 3, 2004
Post comments count0
Post likes count0

How Can I Be Notified Any Time a Service Goes Down?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I be notified any time a service goes down?-- RN Hey, RN. As usual, there are a couple different ways you can do this, but perhaps the simplest approach is to create a script that monitors WMI events. We don’t have time to do a detailed explanation of WMI events in this column, but the basic idea is that you can ask WMI...

Scripting Guy!scripting techniquesVBScript