Click here to Skip to main content
14,774,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need a way to automatically create the project folder structure across multiple drives and set the permissions for them 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
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
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
Updated 5-Aug-10 9:19am
Sandeep Mewara 5-Aug-10 14:20pm
Use PRE tags to format code part. It makes the question readable.
Further, last part saying 'file does not exists' is not clear. Use Improve Question to update if something missing.

The documentation[^] provides all what you need. Do you have specific question?
what do you put, so the user can only enter numbers, the folder name should be a number.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900