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 test automation. It is not intended to be an exhaustive tutorial or a replacement for Microsoft documentation on the topic.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset