Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Delete All Files Older Than a Specified Date?

(image) Hey, Scripting Guy! I’d like to have a script that can search my computer for all files older than a certain date, and then automatically delete those files. Can I do that?-- GM(image) (image) (image) Hey, GM. Can you write a script that will search for and delete all the old files on your computer? You bet. Should you write a ...

How Can I Play a Sound From Within a Script?

(image) 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(image) (image) (image) 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 ...