Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Create a Custom Dialog Box?

Hey, Scripting Guy! How can I create a custom dialog box that presents the user with two options, and then runs the appropriate subroutine based on the option they chose?-- AM Hey, AM. Well, today is another day, which is good; after all, yesterday was anything but a banner day here in the scripting world, at least not when it comes to ...

How Can I Create a Shortcut That Opens Internet Explorer With the Address Bar Hidden?

Hey, Scripting Guy! How can I create a shortcut that opens Internet Explorer with the address bar hidden?-- WA Hey, WA. You know, any time a science fiction writer starts to run low on ideas he or she writes a story in which someone goes to bed and then wakes up in the morning to find that the world has completely changed overnight. Why? ...

How Can I Clear the List of URLs That Appear in the Internet Explorer Address Bar?

Hey, Scripting Guy! How can I clear the list of URLs that appear in the Internet Explorer address bar?-- GA Hey, GA. You know, if you’ve ever pondered the question, “What is it that makes the Scripting Guys different from other Microsoft employees?” well, we can save you some time and trouble by just giving you the answer: the ...

How Can I Write Output to the Screen that Overwrites Whatever is Currently on the Screen?

Hey, Scripting Guy! How can I write output to the screen that overwrites whatever is currently on the screen?-- KM Hey, KM. If you specifically need to write your output to the command window, well, then we don’t have an answer for you: although we played around with a few things, we never found an easy, straightforward way to overwrite ...

How Can I Re-Launch Internet Explorer if No Other Instances are Running?

Hey, Scripting Guy! How can I re-launch Internet Explorer if no other instances are running?-- MT Hey, MT. Thanks for the question. You know, nowadays everyone picks on poor little Internet Explorer (even though the vast majority of Windows users still use Internet Explorer). But now we have a question from someone who wants to make sure ...