Private Sub BackupButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BackupButton.Click With FolderBrowserDialog1 .Description = "Select Backup Location:" .RootFolder = Environment.SpecialFolder.Desktop .SelectedPath = Environment.SpecialFolder.Desktop If .ShowDialog = Windows.Forms.DialogResult.OK Then Try destPath = .SelectedPath Catch ex As Exception End Try ElseIf (.ShowDialog = DialogResult.Cancel) Then Return End If End With sourcePath = Application.StartupPath & "\SavedFiles\" 'If Not Directory.Exists(sourcePath) Then 'MsgBox("Source folder does not exist") 'Return 'End If CopyDir.CopyAll(New DirectoryInfo(sourcePath), New DirectoryInfo(destPath + "\SavedFiles\")) End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)