Chapter 43

Windows Scripting

Microsoft Windows provides a powerful multi-language scripting environment for automating various Windows tasks. For example, FileSystemObject provides access to Windows file system, drives, text streams, etc. Again, Windows Script Host (WSH) provides access to Windows system admin tasks. This chapter discusses how to access and modify the various Windows system files and administrative tasks.

MANAGING FILES

The FileSystemObject provides a number of methods to copy, move, or delete a file.

Set oFSO = CreateObject ("Scripting.FileSystemObject")

Methods

The followings are the various methods to access and modify various Windows files (Fig. 43.1).

Figure 43.1 Managing files

  • GetFile—This method is used to bind to ...

Get Agile Automation and Unified Funtional Testing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.