Showing archive results for February 2006

Feb 14, 2006
Post comments count0
Post likes count0

How Can I Convert a DN to this Format: finance.fabrikam.com/Users?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I convert a DN to this format: finance.fabrikam.com/Users?-- CW Hey, CW. You know, this is a pretty good question; in fact, we should have used it for the Winter Scripting Games. Ah, but, on second thought, maybe it’s a good thing we didn’t use it. Why not? Well, because all the Scripting Games competitors could find ...

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

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

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

How Can I Determine Whether a Computer Has Any USB 2.0 Ports?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Using a script, is there any way to determine whether a computer has any USB 2.0 ports?-- RD Hey, RD. Are you familiar with the movie Freaky Friday, where the mom and the daughter switch bodies (and roles)? Well, we have sort of a Freaky Friday kind of thing going on with this question. After all, in this column the Scripting...

Scripting Guy!VBScripthardware