2760Copying Files (using File System Object)http://www.dotnetindex.com/read.asp?articleID=58Sometimes 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.ASP > Tips and Tutorials > File ManipulationOct 10, 2006
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.
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.
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.
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.
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.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.