Asked • 07/29/19

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?

1 Expert Answer

By:

Patrick B. answered • 07/30/19

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.