Scripting Blog [archived]

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

How Can I Move Files Based on Their File Extension?

(image) Hey, Scripting Guy! I have a folder with a bunch of files in it. I need to move all those files; the only problem is that the files need to be moved to different folders depending on their file extensions. For example, I want all the .log files to go here, all the .bak files to go there, etc. How can I do that using a script?-- SH(...

How Can I Create a Folder on the Start Menu?

(image) Hey, Scripting Guy! How can I create a folder on the Start menu? I want the folder to be named the same as the %username% environment variable.-- SB(image) (image) (image) Hey, SB. As we are wont to do, we’re going to break this question down into subtasks. We’ll explain how to do each of these subtasks, then at the end put the...