Chapter 9. Windows Script Host

In this chapter, we will cover the following recipes:

  • Reading a key from the Windows® system registry
  • Writing a key to the Windows® system registry
  • Deleting a key from the Windows® system registry
  • Running a process using the Windows® system shell

Introduction

Windows Script Host (WSH), as the name suggests, is the underlying infrastructure offered by Microsoft Windows® to execute scripts written in a variety of programming (scripting) languages such as VBScript and JavaScript. This infrastructure can be used for a variety of important tasks, such as accessing networks and remote machines, manipulating the registry, and running remote scripts.

This chapter describes a few basic practical uses of WSH that are relevant to ...

Get Advanced UFT 12 for Test Engineers Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.