File Manipulation. Tutorials & Tips. ASP. Scripts from Hot Scripts. Review before you use or buy a script! Let Hot Scripts uncover the best free, open source and commercial hot-scripts File Manipulation scripts for your web site.
File Manipulation
-
List Images or Other Files in a Folder Using ASP+FileSystemObject
This is a simple script that lists the files present in the specified folder (directory). It uses VBScript's FileSystemObject to scan and return list of files in the specified folder that match specified filename extension(s). In addition to file names,... (show more)
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Checking Files Exists
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.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Delete Files Online
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.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Displaying Sub Folders
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.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Copying Files (using File System Object)
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.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Delete Folders Online
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.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Creating Text files on server
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.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Uploading files to the server hard disk using plain ASP
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... (show more)
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Downloading Files with VBScript and ASP
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... (show more)
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Create and write content to a text file using ASP
Tutorial and Code - Create and write content to a text file using ASP
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Displaying last modified date of any file
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.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Counting lines in text files
In this sample ASP code, we will read and count the lines in a text file. This study uses FileSystem Object and readline method.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
ASP File Manipulation
This article shows how easily we can handle file through asp.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Retrieve a file from FTP server without any 3rd party component
This tutorial is aimed to show you how it is possible to retrieve a remote file via ASP and FTP without using a 3rd-party component.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
read a file
This is some sample code for reading a file .
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
create a file
Easy code for creating a file
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
file information
This example displays some useful file examples . Last accessed , last modified and when the file was created
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Copying Folders (using File System Object)
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.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Write to a file with ASP and FSO.
This tutorial will show you how use the File Scripting Object to both write to and append to a text file.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Delete a folder with ASP
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.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose