Change attributes of all files and folders in a given directory in VB.net?
In visual Basic (Visual Studio), How do I change attributes of all files and folders in a directory that user choose using FolderBrowserDialog?
Heres my code to take input:
If FolderBrowserDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
RichTextBox1.Clear()
Label1.Text = ""
Dim initialFolder As String = FolderBrowserDialog1.SelectedPath
RichTextBox1.Text = initialFolder
Now how do i use the variable inialFolder to change attribute of all files and folders in the directory/location stored in inialfolder?