The scope of this code sample is focusing how to find and display of any file's last modified date & time. Probably, you've used to see some pages on web, written at bottom of page last modified date. Now we will create a simple code to do this.
FreeVersion: n/a Platform(s): windows Updated: Mon Jun 25 2007
In VBScript language there is no any function for Input/Output on hard disk. But you may use FileSystem Object to create and edit files on server. This is an indirect technics to create any file on server.
FreeVersion: n/a Platform(s): n/a Updated: Sun Jan 7 2007
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.
Following active server pages code delete a file. Example uses FileSystem object to delete the file. Do not forget to double check permissions for this operation.
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.
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.
Version: 1 Platform(s): WinNT/2000/2003 Updated: Sun Jan 25 2004
If you want to check a file exists, you may use this code. First we are starting script creating a copy of File System Object. FSO has many useful methods. One of them is 'FileExists' that we will use it now.
Version: 1 Platform(s): WinNT/2000/2003 Updated: Sun Jan 25 2004
If you want to copy some foldes to another folder, first create a File System Object. CopyFolder method will help you to copy folder to another folder.
Version: 1 Platform(s): WinNT/2000/2003 Updated: Sun Jan 25 2004
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.
Version: n/a Platform(s): n/a Updated: Mon Aug 5 2002
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.
Step-by-step tutorial on how to upload files (images, etc) from the client browser to the server hard disk using plain ASP pages. Complete application source code is available for download including the code to upload and display uploaded files to the user in an eary to use and understand manner.
Version: n/a Platform(s): n/a Updated: Mon Jun 17 2002