Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I Randomly Assign a Picture From the My Pictures Folder as the Computer Wallpaper?

(image) Hey, Scripting Guy! I saw your column on randomly assigning a picture to use as the wallpaper on a computer. I’d like to do the same thing, except that, instead of picking from a predefined list of pictures, I’d like to randomly assign a picture from the user’s My Pictures folder. How do I do that?-- JJ(image) (image) (image...

Hey, Scripting Guy! How Can I Remove a Value From the Path Environment Variable?

(image) Hey, Scripting Guy! How can I remove a value from the Path environment variable?-- MG(image) (image) (image) Hey, MG. You know, today is Wednesday, November 7th, the day before the Scripting Guys head for Barcelona and Tech IT Forum. Even as we speak, Scripting Guy Jean Ross is running around frantically, trying to tie up all the ...

Hey, Scripting Guy! How Can I Tell if a Computer is Bluetooth-Enabled?

(image) Hey, Scripting Guy! How can I tell if a computer is Bluetooth-enabled?-- RR(image) (image) (image) Hey, RR. You know, any time the Scripting Guys get asked something like this, one question immediately pops into our minds: “So where did the name Bluetooth come from anyway?” As it turns out, the Bluetooth “personal area ...

How Can I Move Files Off a User’s Desktop and Into Specified Folders?

(image) Hey, Scripting Guy! For various reasons, we don’t want our users storing “loose” files on their desktop. How can I write a script that will take all the files on the user’s desktop and, based on the file extension, move those files to the appropriate desktop folder? For example, if I have a file with a .doc file extension I...

How Can I Use Windows PowerShell to Retrieve Environment Variables and Special Folder Paths?

(image) Hey, Scripting Guy! How can I use Windows PowerShell to retrieve the value of environment variables and the path to a special folder?-- SB (image) (image) (image) Hey, SB. Well, it’s Thursday, which means that the Scripting Guy who writes this column is currently in Walla Walla, WA, which, as Daffy Duck fans all know, is the home...