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.
The FileSystemObject provides a number of methods to copy, move, or delete a file.
Set oFSO = CreateObject ("Scripting.FileSystemObject")
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 ...