|
|
Thus, we have created several scripts, starting with the simplest example that can be used for demonstration purposes only, and proceeding further to create a small but useful one. The strongest point of WSH is its simplicity and the ease with which it can be used. Of course, there are certain limitations (for example, the RegRead, RegWrite, and RegDelete methods discussed earlier in this chapter provide no direct way of checking if the registry keys or values which you are going to create, delete, or modify already exist). For this purpose, you'll need to write a special application using any of the development environments available to you (such as Visual Basic, Visual C++, or Delphi).
Note | The topic of registry programming is one of the most interesting but rather difficult. To those of you who are interested in the topic, I'd like to recommend the following two books: "Windows NT Registry Guide" by Weiying Chen and Wayne Berry (Addison-Wesley Pub. Co., ISBN 0201694735) and "Visual Basic Programmer's Guide to Windows Registry" by Don Kiely and Zane Thomas (Marbry Software, Incorporated, ISBN 1890422266). As I already emphasized, nearly each chapter of this book deserves to be enhanced and developed into a separate volume. This topic, however, is the first candidate! |
On the other hand, a Windows script is simply a text file that you can create with any text editor you feel comfortable with—just be sure to save your script file with a WSH-compatible script extensions (JS, VBS, or WSF). At the same time, the capabilities of WSH are rather powerful, and if you master it, you'll certainly be able to provide a quick and efficient solution within a matter of minutes.
|
|