Chapter 6. Working with the File System

Before You Begin

To work through the material presented in this chapter, you need to be familiar with the following concepts from earlier chapters:

  • Using the For Each...Next construction

  • Applying Select Case constructions

  • Adopting constants

  • Implementing intrinsic VBScript properties such as VbTab and Now

  • Employing If...Then...Else

After completing this chapter, you will be able to:

  • Create an instance of the FileSystemObject object

  • Obtain a listing of files in a folder

  • Create files

  • Verify the existence of a file

  • Obtain a listing of the properties associated with a file

  • Read and write file attributes

Creating the File System Object

To talk to the file system, the script needs to make a connection to it so that it can read ...

Get Microsoft® VBScript Step by Step 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.