The VBScript Network and Systems Administrator's Cafe:



May 2, 2009  6:19 PM

Using the VBScript datediff function to determine the age of a file by the last modified and the last accessed time

Posted by: Jerry Lees
Disk space, disk utilities, file access, file modified, modification date, System Administration, VBScipt, VBScript Functions

I recently needed a way to tell if a file had been accessed or modified recently, something that has always been a question when you're out of space on a server and can't just add more space to it. What do you delete??? The Old files are the obvious answer... except if people are using...

March 10, 2009  2:01 AM

Writing scripts that use speech with the Windows Speech API

Posted by: Jerry Lees
Office Agent, SAPI.SpVoice, Sound, Speech API, undocumented windows, VBScipt, VBScript Objects

I've been looking for ways to make a script speak the information it needs to relay to the user just for fun and, unfortunately the only scripts I could find out there were extremely elaborate onces that use the Microsoft Office Agents. While they fit the bill they were annoying and required...

February 20, 2009  3:53 PM

Using the IIS ADSI object to retrieve the anonymous user password for a server via VBScript

Posted by: Jerry Lees
iis, System Administration, Systems Administration, Toolkit, VBScipt, VBScript, VBScript Functions, working with objects

I recently had to change the anonymous user account for a change request for a site in IIS, but unfortunately the change did not work and we had to roll it back. However, I didn’t have and wouldn’t have known the account’s password since IIS and windows changes it periodically. So, out...

February 13, 2009  6:40 PM

Creating a unique GUID for use in your VBScripts

Posted by: Jerry Lees
GUID, Scriptlet.TypeLib, VBScipt

Today I answered a question in the ITKE unanswered questions for Word VBA on how to be certain a filename was unique across several users using it. The answer I gave answered the question, but I knew there was a way to create GUID's within VBScript but couldn't recall how. GUID's are cryptic to...

February 10, 2009  6:11 PM

Easily compare dates from with in VBScript

Posted by: Jerry Lees
date, Date Comparison, DATEDIFF, Dates, VBScipt, VBScript Functions

On occasion you need to compare two dates in your scripts, this can be a real challenge when you approach the date as if it were a string and/or compare the date parts to one another. Then finding the difference can be a whole other set of challenges if your dates span several months, days, or...

December 29, 2008  3:21 PM

Using special characters in VBScript strings

Posted by: Jerry Lees
ASCII, Special Characters, string, String manipulation, strings, VBScipt, working with variables

I just realized I've been using Visual Basic String constants in my scripts with little to no explanation. We'll rectify that situation right now! ;-) When dealing with strings in VBScript, you occasionally need to add formatting characters to a string, so that when it is displayed on the screen...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: