Home

Submit

Source

Feeds

Home » ASP » File Operations ::

ASP File Operations
The File object represents a specified file on the local machine or on a network share. To work with the File object's properties and methods, you need to create an instance of the FileSystemObject object first and then instantiate the File object through the GetFile method. Also you can get a File object reference from the Folder object, by using the Files Collection.
Related Tutorials
ASP General Development
Folder Object
ASP / General Development
The folder object represents a specified file folder on the current machine. We can use the properties and methods of the Folder object to traverse directories on the drive, and to get at all the properties of this or any other folder. To work with the Folder object's properties and methods, you need to create an instance of the FileSystemObject object first and then instantiate the Folder object through the GetFolder method. Also you can get a Folder object reference from the Drive object, by using the RootFolder property.

Site: www.webcheatsheet.com Report - View Tutorial

ASP File Operations
Check the file before to delete
ASP / File Operations
We continue to examine file system object in this sample code. Most common ASP problems are trying to modify a file before checking it exists. Probably you have moved this page to delete it before. So we must check that this file is exist or not.

Site: www.dotnetindex.com Report - View Tutorial

ASP File Operations
Write to a file with ASP and FSO
ASP / File Operations
This tutorial will show you how use the File Scripting Object to both write to and append to a text file. Nothing could be easier.

Site: nuts4asp.com Report - View Tutorial

ASP File Operations
Copying Folders (using File System Object)
ASP / File Operations
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.

Site: www.dotnetindex.com Report - View Tutorial

ASP File Operations
FileSystemObject Object
ASP / File Operations
The FileSystemObject object provides access to the file system on the web server, allowing us to manipulate text files, folders and drives from within our code.

Site: www.webcheatsheet.com Report - View Tutorial

ASP File Operations
Checking Files Exists
ASP / File Operations
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.

Site: www.dotnetindex.com Report - View Tutorial

ASP File Operations
Copying Files using File System Object
ASP / File Operations
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.

Site: www.dotnetindex.com Report - View Tutorial

ASP Counters
Simple Text Counter
ASP / Counters
This example is a simple text based counter that will only show page views, not actual visitors. It uses the File Scripting Object to interact with a text file. It first reads the current number in the file and adds one to it, then displays it as text on the page.

Site: pacosdrivers.com Report - View Tutorial

ASP General Development
TextStream Object
ASP / General Development
The TextStream object provides sequential access to the contents of text files. This allows you to read, write, or append characters or lines to a text file.

Site: www.webcheatsheet.com Report - View Tutorial

ASP Miscellaneous
How to Grab A HTML Page Within an ASP
ASP / Miscellaneous
There is a very cool way to download or grab a file using ServerXMLHTTP class. Using this object you could access and download a remote file out side of your website.

Site: www.dotnetindex.com Report - View Tutorial

ASP Network and Communication
How to Grab A HTML Page Within an ASP
ASP / Network and Communication
There is a very cool way to download or grab a file using ServerXMLHTTP class. Using this object you could access and download a remote file out side of your website.

Site: www.dotnetindex.com Report - View Tutorial

ASP File Operations
Building an ASP File Manager
ASP / File Operations
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.

Site: www.intranetjournal.com Report - View Tutorial

ASP File Operations
Searching Drives, Viewing and Downloading Files
ASP / File Operations
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.

Site: www.asp101.com Report - View Tutorial

ASP Counters
Simple Counter Using Graphics
ASP / Counters
This example is a simple counter using graphics to display the numbers. I call it simple because it will only show page views, not actual visitors. It uses the File Scripting Object to interact with a text file.

Site: pacosdrivers.com Report - View Tutorial

ASP General Development
Drive Object
ASP / General Development
The Drive object represents a physical drive. This drive can exist on your machine, or it can be a drive shared by another machine. To work with the Drive object's properties, you need to create an instance of the FileSystemObject object first and then instantiate the Drive object through the GetDrive method or the Drives property of the FileSystemObject object.

Site: www.webcheatsheet.com Report - View Tutorial

 
Site Search

 
Categories
2D Graphics 3D Graphics Office Applications Databases Desktop Programming Web Development
 
Advertisement