..
The method of the FileSystemObject object MoveFile move one or more specified files from one folder to another. MoveFile The method requires two parameters:
Dim fs
'I create a FileSystemObject instance dell'offetto
Set fs = Server.CreateObject ("Scripting.FileSystemObject")
'Shift to the new folder the file page.html
fs.MoveFile "c: \ www \ site \ page.html", "c: \ www \ New if \ page.html"
'I cleaned
Set fs = Nothing
NOTE: It 'can use the method in question also rename a file .
| |
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 €. |