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

Hey, Scripting Guy! How can I determine which text has been selected in an HTA?– DO 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…


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

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

1

How Can I Move All the Users from One OU to Another OU?

Hey, Scripting Guy! How can I move all the users from one OU to another OU?– PD Hey, PD. You know, when you work at Microsoft you quickly learn to hate to word “move.” After all, if it wasn’t for the fact that we own the buildings you would think we were trying to skip…

3

How Can I Remove All the Blank Lines from a Text File?

Hey, Scripting Guy! How can I remove all the blank lines from a text file?– RE Hey, RE. You know, back in the year 2002, when the Scripting Guys were still just lowercase scripting guys, we began working on the Microsoft Windows 2000 Scripting Guide. In putting together the book we faced enormous resistance from…

10