VBScript » Folder » Copy

Version: 3.0

Syntax:
object.Copy destination[, overwrite]
overwrite
The overwrite parameter is a Boolean value - True allows existing folders with the same name as destination to be overwritten while False (the default) does not.

Copies the specified folder from one location to another.

Note that after copying a folder to a new location the Folder object still relates to the original folder.

Examples

Code:
<%
dim filesys, demofolder
set filesys = CreateObject ("Scripting.FileSystemObject")
set demofolder = filesys.GetFolder("c:\projects\")
demofolder.Copy("c:\work\")
%>