Showing archive results for 2005

Jun 24, 2005
Post comments count0
Post likes count0

How Can I Get the Actual Text of a List Box or Dropdown List Option?

ScriptingGuy1

Hey, Scripting Guy! In my HTA, how can I get the actual text of a list box or dropdown list option?-- MM Hey, MM. You might be familiar with an old Mac Davis song, a song that starts off like this:Oh Lord it's hard to be humble When you're perfect in every way Now, admittedly, the Scripting Guys aren’t perfect in every way. But - all modesty as...

Scripting Guy!scripting techniquesVBScript
Jun 23, 2005
Post comments count0
Post likes count0

How Can I Determine the Date for the Friday in a Given Week?

ScriptingGuy1

Hey, Scripting Guy! Given a date, can a script tell me the date that the Friday for that week occurs?-- DLR Hey, DLR. Too bad you didn’t ask which dates Saturdays, Sundays, and holidays fall on; coincidentally enough, each of the Scripting Guys have memorized - years in advance - all the days that we aren’t required to come to work. When it come...

Scripting Guy!scripting techniquesVBScript
Jun 22, 2005
Post comments count0
Post likes count0

How Can I Compare Two String Values Regardless of Letter Case?

ScriptingGuy1

Hey, Scripting Guy! I have a script that compares two email addresses and tells me whether or not they are the same. Sometimes the email addresses are the same, but the case is different: for example, one address might be example@abc.com and the other might be example@ABC.com. My script always tells me that these are different email addresses. Ho...

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

Hey, Scripting Guy! How Can I Retrieve the Value of an Active Directory Attribute that has a Hyphen in Its Name?

ScriptingGuy1

Hey, Scripting Guy! We have a custom application that adds some attributes to the Active Directory schema. These attributes have hyphens in their names, and I can’t figure out how to retrieve the value of those attributes; any time I try to connect to one I get an error message. Any suggestions?-- TW Hey, TW. You know a lot of people don&rs...

Scripting Guy!VBScriptActive Directory
Jun 20, 2005
Post comments count0
Post likes count0

How Can I Determine if a File Exists and, if It Does, Exit the Script?

ScriptingGuy1

Hey, Scripting Guy! How can I check to see if a particular file exists and, if it does, exit the script?-- TO Hey, TO. There are at least two ways to check for the existence of a file (that’s the real key here; exiting the script is easy). One of these approaches uses the FileSystemObject and the other uses WMI, and we’re going to show you both ...

Scripting Guy!VBScriptstorage