O'Reilly logo

Agile Automation and Unified Funtional Testing by Rajeev Gupta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required