Scripting Blog

A place to learn about PowerShell and share stories of automation

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 them. For example, in the past couple ...

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, in turn, has pretty much left the ...

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 Hot Dog-Eating ...

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 concocted theories that completely...

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. After all, tomorrow is one of the biggest and best of all ...