Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.
Public Function CopyMediaDirectory(ByVal directorySource As String, ByVal directoryDestination As String) As String Implements IM05_PublishedOnlineCourseManager.CopyMediaDirectory Dim source As New DirectoryInfo(Server.MapPath("../" & directorySource)) Dim destination As New DirectoryInfo(Server.MapPath("../" & directoryDestination)) If Not destination.Exists Then destination.Create() End If ' Copy all files. Dim files As FileInfo() = source.GetFiles() For Each file As FileInfo In files file.CopyTo(Path.Combine(destination.FullName, file.Name)) Next ' Process subdirectories. Dim dirs As DirectoryInfo() = source.GetDirectories() For Each dir As DirectoryInfo In dirs ' Get destination directory. Dim destinationDir As String = Path.Combine(destination.FullName, dir.Name) ' Call CopyDirectory() recursively. CopyMediaDirectory(directorySource & "/" & dir.ToString(), destinationDir) Next Return "foldersComplete" End Function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.