Showing tag results for scripting techniques

Feb 13, 2006
Post comments count0
Post likes count0

How Can I Determine When a Removable Drive Gets Connected?

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
Post comments count0
Post likes count0

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

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
Feb 9, 2006
Post comments count0
Post likes count0

How Can I Count the Number of Times a Word Appears in a Log File?

ScriptingGuy1

Hey, Scripting Guy! How can I count the number of times the word Failure appears in a log file? There’s one catch, though: the log file simply writes its events one after another, creating one big, giant line of text.-- FS Hey, FS. According to the rest of your email, your log file looks something like this:Failure 2/7/2006 8:25 AM Failure 2/7/2...

Scripting Guy!scripting techniquesVBScript
Feb 7, 2006
Post comments count0
Post likes count0

How Can I Determine the Drive Letter for the Drive My Script is Currently Running On?

ScriptingGuy1

Hey, Scripting Guy! I have a script that runs off a CD and copies a bunch of files to a computer. However, in order to copy the files I need to know the complete file path, including the drive letter. How can I determine the drive letter for the drive my script is currently running on?-- RKG Hey, RKG. You know, about a year or so ago one of the ...

Scripting Guy!scripting techniquesVBScript
Jan 30, 2006
Post comments count0
Post likes count0

How Can I Find the Date of the Oldest Event in an Event Log?

ScriptingGuy1

Hey, Scripting Guy! How can I find the date of the oldest event in an event log?-- JL Hey, JL. You know, you just had to make a reference to “old” in your question, didn’t you? Just today one of the Scripting Guys received a letter from the American Association of Retired Persons (AARP). Although the letter acknowledged that this Scripting Guy w...

Scripting Guy!scripting techniquesVBScript