Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Change the “Copy Music to This Location Folder” in Windows Media Player?

Hey, Scripting Guy! How can I change the Copy music to this location folder in Windows Media Player?-- BD Hey, BD. You know, a lot of people think that the reason we Scripting Guys don’t do very much work is because we’re just plain lazy. Those people are right. However, what we tell our bosses is this: it’s hard for us to do any work...

How Can I Display the Vertical and Horizontal Sizes of a .JPG File?

Hey, Scripting Guy! How can I display the vertical and horizontal resolutions of a .JPG file?-- ST Hey, ST. This is a very commonly-asked question, and for the longest time we had no answer for it: nothing built into the operating system seemed capable of returning this information, and even Dsofile, a COM object released by the Microsoft ...

How Can I Play a Sound From Within a Script?

Hey, Scripting Guy! I have a script that pops up a message box to alert users to a problem. Is there any way I can play a sound at the same time the message box appears?-- TL Hey, TL. You guys do this on purpose, don’t you; you love to ask questions where there isn’t a clear-cut answer. This is yet another case of that: you can search ...