Scripting Blog [archived]

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

How Can I Rename a File Every Day, Using the Current Date as Part of the File Name?

(image) Hey, Scripting Guy! I have a file that has the name BackupFile-06122007.txt, where the 06122007 represents yesterday’s date (June 12, 2007). Each morning I would like to run a script that changes the name of that file so that it uses today’s date: BackupFile-06132007.txt. How can I do that?-- GZ (image) (image) (image) Hey, GZ...

How Can I Put the File Name in the Footer of a Microsoft Word Document?

(image) Hey, Scripting Guy! I’ve seen Word documents where the file name appears in the footer. Except that this file name is dynamic: if the name of the document changes then the footer changes, too. How can I add that kind of a footer using a script?-- ZK (image) (image) (image) Hey, ZK. You know, it’s always tough to come back to ...