A code snippet to display the last modified date for any given file dynamically. Every time the file is modified this info is written into the file. The FSO knows just how to read that for you.
For whatever reason, there are times when it would be convenient to know how to delete a folder without having to go to the server to do it. This is just one of the things you can do with the File Scripting Object.
This tutorial helps you understand: Microsoft provides one DLL, scrrun.dll, for both IIS Web server side scripting and IE Web browser client side scripting. scrrun.ddl offers the following classes: Dictionary, FileSystemObject, Drive, Folder, File, TextStream.
Sometimes you need to copy files to another folder. First you should require to use FSO (File System Object.) CopyFile method of FSO is the simplest way to copy the files. Following sample code will copy some files to another folder. .
If you want to copy some foldes to another folder, first create a File System Object. CopyFolder method will help you to copy folder ot another folder.
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
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.
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.
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..
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
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.
Building an upload file mechanism on a Web server can often require using a costly DLL. Tiago Halm's article shows you how to upload a file using only Active Server Page (ASP) code and Internet Explorer. Sample code is provided.
Setting up a simple file downloading system with VBScript and ASP is no sweat. 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. A secondary use is to allow download access to directories outside the public server space or a hidden directory within the website. This tutorial shows you how. Full source code available.
This tutorial shows you how to create a file archive on your site using the built-in File Access Component. You can easily customize how yout page looks. Full source is available for download.
This article describes how to build a very powerful, potentially destructive application using the File System Object. It should never be implemented in a production environment without ensuring that proper security precautions have been taken to maintain the integrity of the data contained on the web server
This tutorial demonstrates how to use the FileSystem object to view the contents of a server directory. It could easily be modified into a navigation or file-download application
2 times | category:
this:1/125records total:19 Start Previous Next Last goto: