Private Sub btnDirectory_Click(sender As Object, e As EventArgs) Handles btnDirectory.Click Dim objFolderDlg As System.Windows.Forms.FolderBrowserDialog objFolderDlg = New System.Windows.Forms.FolderBrowserDialog objFolderDlg.SelectedPath = "C:\Test" If objFolderDlg.ShowDialog() = DialogResult.OK Then 'this part still does not work, unable to execute all the dos commands. Shell("cmd /c CD{objFolderDlg.SelectedPath} dir /B >C:\Users\%USERNAME%\list\Directory_List.txt", vbHide) MessageBox.Show(objFolderDlg.SelectedPath) End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)