Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
| 1: | Which four objects can be obtained only through the FileSystemObject object? |
| A1: | The objects File, Folder, Drive, and TextStream can only be obtained by using methods on the FileSystemObject object. |
| 2: | Why is it better to store a folder name in a Session variable than to store an instance of the Folder object itself? |
| A2: | It is better to store a folder name in a Session variable because an instance of the Folder object needs more resources so that the maximum number of simultaneous users is decreased vastly. |
| 3: | Which collections do you use to obtain all folders and all files in a given Folder object? |
| A3: | You are using a Folders and a Files collection of the given Folder object to obtain all folders and all files.
The Files collection can be obtained by reading the Files property of the Folder object, and in the same way the Folders collection is obtained by reading the SubFolders property of the Folder object. |