Implemented in version 2.0
source, destination [, overwrite]
This method lets us copy one or more folders, and all contents, from one location ( the source) to another (destination). Wildcards can be used within the
string, providing it is the last component in the path, to enable the copying of multiple files, but cannot be used in the
string. Note that if the
contain wildcards, it is automatically assumed that the
is an existing folder and any matching folders are copied to it.
parameter is a Boolean.
allows the overwriting of existing files in the destination, providing that the permissions on the destination allow it ( if the destination is set as read-only, the
method will fail). An overwrite setting of
prevents existing files in the destination from being overwritten.
It is recommended that you use the
method when copying or moving a folder - if a
folder doesn't exist you'll get an error.
If filesys.FolderExists("c:\sourcefolder\website") Then
filesys.CopyFolder "c:\sourcefolder\website", "c:\destfolder\"
Copyright 1999-2004 by Infinite Software Solutions, Inc. All rights reserved.