Scripting Blog [archived]

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

How Can I Create a File of a Specified Size?

(image) Hey, Scripting Guy! How can I create a file of a specified size using a script?-- RE (image) (image) (image) Hey, RE. Well, it’s day 2 of the Walla Walla Invitational Baseball tournament, but at the moment the Scripting Guy who writes this column isn’t thinking about baseball; instead, he’s getting ready to head out to the ...

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 Remap Network Drives So They Use an IP Address Rather Than a Computer Name?

(image) Hey, Scripting Guy! How can I remap network drives so they point to the IP address of the remote computer rather than the computer name?-- YM (image) (image) (image) Hey, YM. You know, yesterday we started off this column by saying, “Never mind,” referring to the fact that, in a previous article, the Scripting Guy who writes ...

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