Scripting Blog [archived]

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

How Can I Get the Names of 10 Randomly-Selected Files in a Folder?

(image) Hey, Scripting Guy! How can I get the names of 10 randomly-selected files in a folder? I need to do that so I can test and verify our backup and restore policies.-- CS(image) (image) (image) Hey, CS. You know, if you’re interested in things that are random, haphazard, arbitrary, or downright chaotic, well, you came to the right ...

How Can I Search For (and Reformat) Highlighted Text in a Word Document?

(image) Hey, Scripting Guy! How can I find text in a Word document that has been highlighted in a particular color (say, turquoise), and then both remove the highlight and change the font color of that text to something else (say, blue)? I’d be extremely chuffed if you can solve this one!-- KB(image) (image) (image) Hey, KB! Blimey! You ...