Scripting Blog [archived]

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

How Can I Copy the Folder Structure of a Folder?

(image) Hey, Scripting Guy! How can I copy the folder structure of a folder (that is, a folder and all its subfolders) without copying the files as well?-- AS (image) (image) (image) Hey, AS. If you’re one of the many people who simply can’t get through the day without knowing what the Scripting Guy who writes this column is up to as ...

How Can I Create a Sequential Series of Folders?

(image) Hey, Scripting Guy! How can I prompt a user to enter a starting number and ending number, then create a sequential series of folders based on those two numbers?-- PM (image) (image) (image) Hey, PM. We had some time to kill this afternoon, so we thought we’d see what we could do about answering your question. In fact, if we didn...

How Can I Create a Folder With a Name Based on the Monday and Friday of the Coming Week?

(image) Hey, Scripting Guy! Every Sunday I need to create a folder with a name similar to this: C:\Test\7-2-2007 to 7-6-2007, with the dates representing the Monday and the Friday of the upcoming week. How can I write a script that will create this folder for me?-- R (image) (image) (image) Hey, R. You, from time-to-time people write to ...

How Can I Get a List of All the PDF Files in a Folder and Its Subfolders?

(image) Hey, Scripting Guy! How can I get a list of all the .PDF files (only the file names; I don’t want the file path or file extension) in a folder and its subfolders, and then put that list into a text file?-- PS (image) (image) (image) Hey, PS. You know, PS, this is actually a hard question; far harder and far more complicated than ...