Windows Script Host Programmer's Reference
Aimed at any system administrator or Windows programmer, Dino Esposito'sWindows Scripting Host Programmer's Referenceprovides a truly excellent guide to getting the most out of the new Windows Scripting Host (WSH) for Windows batch processing. Filled with many short examples and tips on scripting strategy, this handy book provides a really invaluable mix of advice and nuts-and-bolts code examples.This concise how-to provides much more than a reference to WSH objects (though naturally, the book includes reference material on VBScript, JScript, and the WSH object model). Esposito is very skilled at showing off various pieces of WSH while paying attention to real-world scripting tasks. In the interest of practical programming, he includes numerous small examples for common administrative tasks using WSH, such as working with files, the Windows Registry, and automating installation and using dialogs within WSH scripts.Though powerful, WSH doesn't do everything. A standout feature here is the author's custom "component gallery" of extensions to WSH for common tasks through COM objects. (Sample components are included for browsing files, managing processes, and displaying messages to users.) The book's final example, which automates the creation of an invoice in Microsoft Word and then e-mails it, shows off WSH as an effective "glue" that can let different components and applications work together.As this book suggests, WSH is a powerful tool for wiring together Windows components. Armed with this guide to creating effective WSH scripts, any administrator or programmer can be productive with Windows scripting.--Richard DraganTopics covered: Windows Script Host (WSH) overview, installing WSH, batch processing, VBScript and JScript, Windows Script Interfaces, system administration, console and graphical WSH applications, shell support, the WSH object model, running and stopping scripts and programs, COM objects, arguments, accessing the Registry, shortcuts, URLs, files and directories, installation scripts, Script Run-time Library (SRL), shell automation objects, reusability issues (classes, custom COM objects, the Windows Script Component [WSC] wizard, dialog boxes, and user interfaces), and script security.