Showing tag results for scripting techniques

Jun 30, 2005
Post comments count0
Post likes count0

How Can I Add a Line to the Top of a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I add a line to the top of a text file?-- FT Hey, FT. You know, at one point in his career Sir Arthur Conan Doyle actually killed off Sherlock Holmes, figuring he’d written everything anyone could ever write about the master detective. Public outcry soon made him change his mind, and in short order he brought Sherlock...

Scripting Guy!scripting techniquesVBScript
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 17, 2005
Post comments count0
Post likes count0

How Can I Show Users a Dialog Box That Only Lets Them Select Folders?

ScriptingGuy1

Hey, Scripting Guy! In previous columns you’ve shown us how to present users with a dialog box that enables them to select files. Is there any way to show them a dialog box that only lets users select folders?-- LP Hey, LP. You know, you’ve come to the right place: the Scripting Guys have just what the doctor ordered. Actually, we have the Brows...

Scripting Guy!scripting techniquesVBScript