..
The CopyFile method copies one or more files from one place to another. This method accepts three parameters:
Dim fs
'I create the FileSystemObject
Set fs = Server.CreateObject ("Scripting.FileSystemObject")
'I copy the file page.html to a backup folder hypothetical
fs.CopyFile "c: \ www \ mysite \ page.html", "c: \ backup \ page.html"
'I cleaned
Set fs = nothing
In our example, the third parameter (overwrite) was omitted.
| |
ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €. |
| |
ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €. |
| |
ASP and Access (Ebook)
Managing a MS Access database with ASP. At only 29 €. |