This article illustrates some great uses of the File System Object. It shows how to choose a drive to search, and then builds a listbox of all the folders on that drive. Choose a folder and it builds a listbox of all the files in that folder. Choose a File and it will display it in the browser or prompt you to save the file to your hard drive.
The author writes "ASP has the ability to write .html or any other text based documents directly to a web server (You need to write the text output to a directory that has write authority). This enables the instantaneous publication of user input without the need for uploading files from a PC." This example code shows how to write text based documents to a server using ASP.
Article on accessing drives, folders and files with ASP; iterating though drives, folders and files collections, reading content of a file and more. Also provides detailed listing of all properties and methods of FileSystemObject, Drive, Folder, File and TextStream objects.
This example code demonstrates how to link and display text files within a single document in ASP. Using the title of the text files as hyperlinks, when clicked the file name, the full contents of the document will be displayed. Very useful for making copybooks and file layouts available online.
Often you will need to display the contents of a file on your server. This article shows you what regular expressions to use to successfully display HTML, including automatically making any hyperlinks live.
The author writes "A CSV (Comma Separated Values file sometimes referred to as a flat file) is essentially a text file that has a comma delimiter between the table values and a unique line for each observation. While this is usually a means by which data is transferred from one database to another by itself can be used as input to an asp document." This example will show how to take virtually any CSV file and write it to an html table using ASP.
This short example will allow you to dynamically create "static" html documents from an Access data on your web server using Active Server Pages. Basically after reading the contents of the db, instead of writing output to the browser it is written to the server.
Initially developed to index ASP pages for a search capability, this article gives you a generic function to walk through your sub-folders using the FileSystemObject. Also discusses recursion and passing functions as parameters.