Version

CopyDirectory(String,String,ConfirmMethod,ConfirmMethod) Method

Copies a directory.
Syntax
'Declaration
 
Public Overloads Shared Sub CopyDirectory( _
   ByVal from As String, _
   ByVal to As String, _
   ByVal confirmMethod As ConfirmMethod, _
   ByVal confirmReadOnly As ConfirmMethod _
) 
public static void CopyDirectory( 
   string from,
   string to,
   ConfirmMethod confirmMethod,
   ConfirmMethod confirmReadOnly
)

Parameters

from
Source directory to copy.
to
Destination directory to copy to.
confirmMethod
Method to be called if directory exists. If the method returns False copying is aborted.
confirmReadOnly
Method to be called if file is read only.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also