Scripting Blog [archived]

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

How Can I Remove All the Black-and-White Printers on a Computer?

(image) Hey, Scripting Guy! On a Windows XP computer, how can I remove all the black-and-white printers, leaving only color printers?-- JL(image) (image) (image) Hey, JL. You know, in one classic episode of the Simpsons, Bart, in the throes of a sugar high, joins the Junior Campers. The next morning, realizing what he has done, he vows to ...

How Can I Determine Which Text has been Selected in an HTA?

(image) Hey, Scripting Guy! How can I determine which text has been selected in an HTA?-- DO(image) (image) (image) Hey, DO. You know, most people think that writing the Hey, Scripting Guy! column every day is one of the most glamorous and exciting jobs in the world. And it probably would be if it wasn’t for the fact that the Scripting ...

How Can I Purge a Print Queue on a Print Server?

(image) Hey, Scripting Guy! How can I purge a print queue on a print server? I need to do this on both Windows 2000 and Windows Server 2003.-- KD(image) (image) (image) Hey, KD. And hey: no fair! Lots of times we take the easy way out in this column: we provide an answer that works only on Windows XP or Windows Server 2003, and then say...