Scripting Blog

A place to learn about PowerShell and share stories of automation

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 ...

Hey, Scripting Guy! How Can I Tell If a Computer Has a SmartCard Reader Attached?

Hey, Scripting Guy! How can I tell if a computer has a SmartCard reader attached?-- TE Hey, TE. Um, we hate to be rude, TE, but we’re closed today; we only answer questions Monday through Friday. We’d be happy to help you out, but you’re going to have to come back on – what’s that? It is Monday? Wow. Guess that explains why the ...

Hey, Scripting Guy! How Can I Set the Date and Time on a Computer?

Hey, Scripting Guy! How can I set the date and time on a computer?-- KM Hey, KM. Well, it’s true: today is the last day of TechEd IT Forum. That also means that, for the Scripting Guys, the party is over: tomorrow morning they hop on a plane and head back for home. And, needless to say, back to the real world: jobs, car payments, ...

Hey, Scripting Guy! How Can I Create a Self-Updating Text Box in an HTA?

Hey, Scripting Guy! I have an HTA with three text boxes. In box 1 you enter a first name; in box 2 you enter a last name. I’d like box 3 to automatically update itself based on what you type in the other text boxes. For example, if you type Ken in box 1 then box 3 shows Ken. If you then type Myer in box 2 box 3 shows Ken Myer. How do I do ...

Hey, Scripting Guy! How Can I Run a Script Any Time Office Outlook is Started?

Hey, Scripting Guy! How can I run a script any time Outlook is started?-- AT Hey, AT. Today is Wednesday, and Wednesday is a busy day here at TechEd IT Forum. For one thing, this afternoon the Scripting Guys will be making a guest appearance at the TechNet Magazine booth. What will they be doing there? Well, that’s a good question; just ...

Feedback usabilla icon