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 ...

Get Agile Automation and Unified Funtional Testing 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.