Automatic Cleanup

One cool way to use the script for creating folders is to reuse it and modify it to delete folders. The idea here is that when you use scripts to create folders and then use them to delete folders, you have basically enabled automatic cleanup after your operations are complete.

Deleting a Folder

Deleting a folder requires a connection to FileSystemObject. Once the connection to FileSystemObject is established, you use the DeleteFolder command to delete the folder. This is illustrated in the following ...

Get Microsoft® Windows® Scripting Self-Paced Learning Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.