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.
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.
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.
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.
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.
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 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.