Showing archive results for 2006

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

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

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

How Can I Assign a New Home Drive to a User Who Doesn’t Have One?

ScriptingGuy1

  Hey, Scripting Guy! How can I check to see if a user has a home drive and home directory set and, if they don’t, assign them a new one?-- AM Hey, AM. No, no excuses: the Seahawks had plenty of opportunities to win the Super Bowl yesterday, but they failed to take advantage of it. At times it seemed like they were playing not to lose instea...

Scripting Guy!VBScriptActive Directory