Chapter 12. Working with the File System
IN THIS CHAPTER
Manipulating files and folders is one of the most common things an administrative script needs to do. Windows provides the script-friendly FileSystemObject to make it easy for administrative scripts to access the file system on your computer.
You'd be surprised how often you might need to access a computer's file system from within an administrative script. For example, a script that adds new users to the domain might need to read those names from a script, or might need to write out new passwords into a file. A script designed to query TCP/IP addresses from workstation computers will need to write that information somewhere-why not a text file? File system access is almost a prerequisite for any number of useful scripts, even ones that don't have a basic goal of manipulating files or folders. Fortunately, the Windows scripting library includes the FileSystemObject, or FSO, which provides easy access to the drives, files, and folders on your computer.
|