Scripting Blog [archived]

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

Can I Use a Script to Determine the Size of a Folder on a Remote Computer?

(image) Hey, Scripting Guy! Can I use a script to determine the size of a folder on a remote computer?-- SS(image) (image) (image) Hey, SS. Boy, you’d think you’d be able to do that, wouldn’t you? Especially if you’ve glanced through the WMI class Win32_Directory and noticed the property FileSize. Based on that, you might think...

Can I Use a Script to Rename All the Files in a Folder?

(image) Hey, Scripting Guy! Can I use a script to rename all the files in a directory and include a "pl-" prefix plus the original file name?-- JP(image) (image) (image) Hey, JP. It’s interesting how many people need to do something similar: they need to rename all the files in a given folder, either by appending the date, changing the ...

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