How Can I Read the Individual Lines in a Multi-Line Text Box in a HTA?

Hey, Scripting Guy! In an HTA, how can I read the individual lines in a multi-line text box?— KM Hey, KM. You know, to be perfectly honest the Scripting Guy who writes this column has always had a grudging admiration for people who do totally ridiculous things and yet somehow manage to get away with… Read more

How Can I Change the Text for the Marquee Screen Saver?

Hey, Scripting Guy! How can I change the text for the Marquee screen saver?— SJ Hey, SJ. Greetings from the frozen wasteland formerly known as Redmond, WA. On Monday night a freak November snowstorm hit the Seattle area. However, instead of leaving behind snow it left behind an inch or so of ice; ice which,… Read more

How Can I Rename a Folder?

Hey, Scripting Guy! How can I add a suffix to a folder name? For example, I’d like to rename the folder C:\January to C:\January_2006.— NB Hey, NB. You know, back in July the Scripting Guy who writes this column happened to wander through the living room while the Scripting Son was watching the world-famous Nathan’s… Read more

How Can I Position the Cursor in a Specific Text Box Each Time I Start an HTA?

Hey, Scripting Guy! How can I position the cursor in a specific text box each time I start an HTA?— BM Hey, BM. You know, if the Scripting Guy who writes this column has any regrets in life it’s that he didn’t become a Theoretical Physicist Guy. Why? Well, among other things, theoretical physicists have… Read more

How Can I Locate a Value in a Text File and Then Parse the Line of Text Where the Value Was Found?

Hey, Scripting Guy! How can I open a CSV file, locate a value in column 1, then store the value in column 2 in a variable?— THvdH Hey, HvdH. We have to be honest with you, it’s a little difficult for the Scripting Guy who writes this column to stay focused on his work today…. Read more

How Can I Add a Function to a Windows PowerShell Script?

Hey, Scripting Guy! How can I add a function to a Windows PowerShell script?— TT Hey, TT. You know, we’re going to do something a little unusual today: we aren’t going to mention the fact that the University of Washington defeated Washington State University in the annual Apple Cup football game. Granted, that’s the kind… Read more

How Can I Add a User to a Group If I Don’t Know the Distinguished Name of That User?

Hey, Scripting Guy! How can I add a user to an Active Directory group if I don’t know the distinguished name of that user?— VO Hey, VO. You know, if we wanted to take the easy way out here we’d just tell you, “Sorry, but if you don’t know the distinguished name of the user… Read more

How Can I Delete All the .BAK Files in a Folder That Are More Than 7 Days Old?

Hey, Scripting Guy! How can I delete all the .BAK files in a folder that are more than 7 days old?— KT Hey, KT. You know, on his way to work this morning the Scripting Guy who writes this column heard an advertisement for a local seafood restaurant. Now, this Scripting Guy doesn’t like seafood,… Read more

How Can I Create a New Registry Key?

Hey, Scripting Guy! How can I create a new registry key?— DL Hey, DL. First of all, for those of you who get all your news from the Hey, Scripting Guy! column (as if there was any other source for news and information?) we are happy to report that the University of Washington men’s basketball… Read more

How Can I Add a Total Row to an Excel Spreadsheet?

Hey, Scripting Guy! How can I add a bunch of rows to an Excel spreadsheet and then stick a total row at the bottom?— MW Hey, MW. Could we ask you a favor: is there any chance that you could write back later with this question? As you may or may not know, the University… Read more