| << 10.3.1- Don't use the Session Object with the Dictionary Object | Chapter10 | 10.4.1- The FileSystemObject Object and its Object Model >> |
The FileSystemObject Object
When our ASP server is handling requests from its clients, there are two types of pages it can return. As we have seen in this book, we can use the scripting power of ASP to dynamically create pages on-the-fly and send them back to the client. We can also serve static pages that are stored on the web server itself. But up until this point, we, as web application developers, had to know which files were stored in what place on what drive.
With the FileSystemObject object we now can use our code to access the file system of the web server itself. This will allow us to:
- Get and manipulate information about all of the drives in the server. These can be physical drives or mapped drives that the web server is connected to
- Get and manipulate information about all of the folders and sub-folders on a drive
- Get and manipulate information about all of the files inside of a folder
With this information, there is a very broad range of things that we can do with the file system. Aside from setting security information, basically anything that you can do with the file system using Windows Explorer or File Manager can be done using the FileSystemObject object
| << 10.3.1- Don't use the Session Object with the Dictionary Object | Chapter10 | 10.4.1- The FileSystemObject Object and its Object Model >> |

RSS
