Showing 51 - 60 of 60 results for “hta”

Clear filters

Scripting Blog [archived]

Hey, Scripting Guy! How Can I Load a Drop-Down List From a Text File?

Hey, Scripting Guy! I have a text file that has a list of different store numbers and I would like to be able to populate a drop down list of an HTA.-- MH Hi MH, The basic task of reading data from a text file and using it to populate a drop-down list is pretty straightforward. Below is the code for an HTML Application (HTA) that does just ...

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (03/20/09)

Troubleshooting an Active Directory HTA   Hey, Scripting Guy! I have created an HTML Application (HTA) to prompt a support person for their administrative ID and password and a computer name that they wish to delete from Active Directory. The script uses the alternate credentials to find the computer object alright, but does not use the ...

How Can I Limit the Number of Characters That Can Be Typed Into a Textarea?

Hey, Scripting Guy! We have an HTA used for data entry. Included in that HTA is a text area where people can enter a maximum of 256 characters. I need to do two things: 1) limit the number of characters people can enter in the field to 256 (I can’t for the life of me figure out how to do that); and, 2) as people type, show them the number ...

How Can I Determine the ADsPath for the Logged-On User?

Hey, Scripting Guy! In my HTA, how can I determine the ADsPath for the logged-on user?-- AC Hey, AC. You know, when you work at Microsoft people automatically assume that you spend your days in an ivory tower, totally removed from the day-to-day activities and needs of system administrators. To be honest, that isn’t true: our tower is ...

Hey, Scripting Guy! How Can I Search Multiple OUs in Active Directory?

Hey, Scripting Guy! I have an HTA that searches Active Directory for user accounts and then displays those user names. We have 10 OUs in Active Directory, but I only want to retrieve the users from three of those OUs. How do I do that?-- DP Hey, DP. Here’s a little secret for you: it’s very easy to tell when a writer is getting lazy and...

Hey, Scripting Guy! How Can I Change the Background Color of a Text Box?

Hey, Scripting Guy! I have an HTA that we use for data entry. On this form, some of the fields are mandatory and some of them are optional. I’d like to indicate the mandatory fields by making those text boxes a different color than the text boxes used for the optional fields. How do I do that?-- IU Hey, IU. You know, for a large number of...

How Can I Dynamically Show Available Drive Letters in a List Box?

Hey, Scripting Guy! I’m using an HTA as a drive-mapping application. I’d like to be clever about this and have the available drive letters appear in a list box. How can I dynamically show all the drive letters available on a computer?-- JT Hey, JT. You know, just the other day the Scripting Guy who writes this column was lamenting a ...

How Can I Ensure That a User Enters Only Allowed Characters in a Text Box?

Hey, Scripting Guy! I have an HTA which includes a text box where the user must enter a part number. Part numbers must consist of a certain set of characters; how can I determine if a user entered an invalid character in the part number text box?-- RR Hey, RR. You know, with one exception, no one has ever accused the Scripting Guy who ...