folder browser dialog copy
Please help,
ive started a simple project to copy a folder from one place to another, so far i have; one folderbrowserdialog to select the source folder, and another folderbrwoserdialog to select the destination folder, i have no idea on the code to copy from one variable location to another.
" Private Sub BrowseFoldersButton_Click2(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BrowseSourceButton.Click
Dim theFolderBrowser As New FolderBrowserDialog
theFolderBrowser.Description = "Please Select The Folder Which You Would Like Backed Up."
theFolderBrowser.ShowNewFolderButton = True
theFolderBrowser.RootFolder = System.Environment.SpecialFolder.Desktop
theFolderBrowser.SelectedPath = My.Computer.FileSystem.SpecialDirectories.Desktop
If theFolderBrowser.ShowDialog = Windows.Forms.DialogResult.OK Then
Me.FolderChoiceTextBoxSource.Text = theFolderBrowser.SelectedPath
End If
End Sub"
would it simply be something like
"Shell (CMD xcopy "Me.FolderChoiceTextBoxSource.Text" "Me.FolderChoiceTextBoxDestination.Text" /s)
Regards Fibrewire
Please help,
ive started a simple project to copy a folder from one place to another, so far i have; one folderbrowserdialog to select the source folder, and another folderbrwoserdialog to select the destination folder, i have no idea on the code to copy from one variable location to another.
" Private Sub BrowseFoldersButton_Click2(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BrowseSourceButton.Click
Dim theFolderBrowser As New FolderBrowserDialog
theFolderBrowser.Description = "Please Select The Folder Which You Would Like Backed Up."
theFolderBrowser.ShowNewFolderButton = True
theFolderBrowser.RootFolder = System.Environment.SpecialFolder.Desktop
theFolderBrowser.SelectedPath = My.Computer.FileSystem.SpecialDirectories.Desktop
If theFolderBrowser.ShowDialog = Windows.Forms.DialogResult.OK Then
Me.FolderChoiceTextBoxSource.Text = theFolderBrowser.SelectedPath
End If
End Sub"
would it simply be something like
"Shell (CMD xcopy "Me.FolderChoiceTextBoxSource.Text" "Me.FolderChoiceTextBoxDestination.Text" /s)
Regards Fibrewire