..


Sponsored Links

CopyFolder

The method CopyFolder copies one or more folders from one place to another. This method accepts three parameters:

  • source - the cartalla or folders to copy (wildcards can be used);
  • destination - the destination path where to copy the folders;
  • overwrite - is an optional parameter, is expressed with a Boolean value that specifies whether a folder exists in the destination path can be overridden or not. True allows the folder to be overwritten, False prevents you from overwriting. The default is True
Example:





 Dim fs







 'I create an instance of the FileSystemObject







 Set fs = Server.CreateObject ("Scripting.FileSystemObject")









 'I copy all the folders on my site in the backup folder







 fs.CopyFolder "c: \ www \ mysite \ *", "c: \ backup \"









 'I cleaned







 Set fs = nothing



To copy all the folders, note the use of the asterisk (wildcard).

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