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 ...

How Can I Delete the Files in the Temporary Internet Files Folder?

(image) Hey, Scripting Guy! Is there a way to delete all the files in the Temporary Internet Files folder using a script?-- KR(image) (image) (image) Hey, AK. You know, prompted by your question one of the Scripting Guys (who shall remain nameless) thought to himself, “Hmmm, I wonder what’s in my Temporary Internet Files folder?” ...

How Can I Make Selections from a Form When Using a Script?

(image) Hey, Scripting Guy! I’d like to have a form with four radio buttons on it, each button representing a different computer. You choose a radio button, click another button, and then a script runs against the computer you selected. How do I do that?-- CW(image) (image) (image) Hey, CW. If we’re talking strictly VBScript and ...