Showing tag results for scripting techniques

Aug 15, 2005
Post comments count0
Post likes count0

How Can I Dynamically Populate a List Box in an HTA?

ScriptingGuy1

Hey, Scripting Guy! In my HTA, I would like to query a computer for a list of local user accounts, then dynamically create a list box containing those accounts. How can I do that?-- BN Hey, BN. You know, if you’d ever seen the Scripting Guys in … action … you’d think twice about asking us a question about doing things dynamically. But as long as...

Scripting Guy!scripting techniquesWeb pages and HTAs
Aug 11, 2005
Post comments count0
Post likes count0

How Can I Determine the Beginning and Ending Date of the Previous Month?

ScriptingGuy1

Hey, Scripting Guy! Given a specific date, how can I determine the beginning and ending date of the previous month? In other words, given 8/11/2005, I need to get back 7/1/2005 and 7/31/2005.-- PH Hey, PH. You know, this was a tough question for us: after all, as Microsoft employees we’re always looking forward; we never look back. Last month? W...

Scripting Guy!scripting techniquesVBScript
Aug 1, 2005
Post comments count0
Post likes count0

How Can I Search for Two Items in a Text File?

ScriptingGuy1

Hey, Scripting Guy! You’ve shown us how to search a text file for a single word or phrase, but how can I search a text file for two phrases? I need to know if a file contains either Windows 2000 or Windows XP.-- JR Hey, JR. You know, it’s hard enough to get the Scripting Guys to do one thing; getting them to do two things would seem to be well-n...

Scripting Guy!scripting techniquesVBScript
Jul 29, 2005
Post comments count0
Post likes count0

How Can I Tell if a Date Falls within a Specified Time Period?

ScriptingGuy1

Hey, Scripting Guy! How can I tell if a date falls within a specified time period?-- JW Hey, JW. By amazing coincidence on our way to work this morning we heard two different commercials, from two different companies, touting “Christmas in July.” That prompted us to answer your question as soon as we got to the office. After all, if these compan...

Scripting Guy!scripting techniquesVBScript
Jul 28, 2005
Post comments count0
Post likes count0

How Can I Determine if a WMI Property is Writeable?

ScriptingGuy1

Hey, Scripting Guy! We have an application that installs a WMI class named UIDLightInfo. That class includes a property named UIDLightState. How can I tell whether or not I can change the value of this property?-- JC Hey, JC. You know, we once reviewed a scripting course where the authors continually dealt with the question, “How do I know if I ...

Scripting Guy!scripting techniquesVBScript