..


Sponsored Links

MoveFile

The method of the FileSystemObject object MoveFile move one or more specified files from one folder to another. MoveFile The method requires two parameters:

  • source - the file or files you want to move. Wildcards can be used.
  • destination - the destination folder;
Here's an example:





 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 .

In the same category ...
E-Learning
ASP (Advanced) ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €.
ASP Zero (Ebook) ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €.
ASP and Access (Ebook) ASP and Access (Ebook)
Managing a MS Access database with ASP. At only 29 €.
Sponsored Links