Question create folder structure?

lave024

New member
Joined
Aug 5, 2010
Messages
1
Programming Experience
Beginner
I need a way to automatically create the project folder structure accross multiple drives and set the permissions up properly.
Something like Robocopy; to copy from a Template directory that has all the correct permissions set.

This is what I have:

Private Sub btnCreate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCreate.Click
Try
Directory.CreateDirectory(Path(".") & "\" & txtProject.Text)

'Creating a directory by specifying a path in the TextBox, of the form C:\BDL\
'Instead of using a TextBox you can directly type the location of the directory like this
'Directory.CreateDirectory("T:\BDL\")
Catch ex As Exception
End Try
MsgBox("Directory " & txtProject.Text & " Created")
End Sub

-I want to make sure that user puts only numbers
-the file does not exists

how do i do that????
Thank you
 
Last edited:
Back
Top