Summary

In this chapter, you examined working with folders. You began by examining the importance of FileSystemObject to give you a handle to talk to the file system. After you established the handle, you learned to use the CreateFolder method to create folders. To delete folders, you simply use the DeleteFolder method. Errors can be avoided by calling the FolderExists method prior to either deleting a folder or creating a folder.

Get Microsoft® Windows® Scripting Self-Paced Learning Guide 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.