2775Displaying the contents of files on the serverhttp://CoverYourASP.com/ShowFileDescr.aspFirstly, it demonstrates the use of the FileSystemObject, and secondly it shows how powerful regular expressions can be. I learnt all I know about regular expressions from Microsoft's online documentation and a lot of experimentation!ASP > Tips and Tutorials > File ManipulationOct 10, 2006
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.
Following example displays all sub folders in current folder. We will use SubFolders property of FileSystem Object for this source code. First we will find our current path using System.MapPath.
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.
ASP does not allow you to use IO system to modify on files and folders. But with the help of FileSystem object you can delete any file on your server. Do not forget to double check permissions for this operation.
Setting up a simple file downloading system with VBScript and ASP is no sweat. This system can be tested by downloading a classic ASP app
The primary use for a system like this is to allow downloading of any TEXT based file that would normally be served via a client's browser and be unable to be downloaded. This system works great when setting up downloads for files with the following extensions: *.txt, *.htm, *.html or *.asp . This system won't work to serve binary files such as images.
A secondary use is to allow download access to directories outside the public server space or a hidden directory within the website. This system can also be used in conjunction with the fileupload class to let users
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.