Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create directrory structure on Network

Status
Not open for further replies.

redeemasp

Programmer
Jun 1, 2004
63
GB
Hi there

I've wrote a piece of code that creates directory structure on a network.

I've tested this on my local drive and it creates the folder fine.

When I can the path to the network path, I keep getting an 'could not find the path' error. I've check my acces rights to the network and they are full control.

Any ideas?

Regards

Lee
 
Post an example of your code and where it errors as without it we have nothing to go on.

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
here you go. A simple directory creation:

Dim selection As String = ddlProjectlist.SelectedItem.Text()
Dim folderchoice As String

Select Case (selection)
Case 11111
folderchoice = "Contractual"
Case 11112
folderchoice = "Research materials"
End Select

'System.IO.Directory.CreateDirectory("\\islington\Data\Test\CG\" & folderchoice)
System.IO.Directory.CreateDirectory("\\islington\data\Test\CG\" & folderchoice)
'Create folder
 
If it's failing on the CreateDirectory method then it is one of two problems:

1) The path doesn't exist
2) You don't have the correct permissions

You can eliminate problem one by pasting "\\islington\Data\Test\CG\" into the address bar in windows explorer and see what the results are. If this works then it's problem 2. When you say "I've check my acces rights to the network and they are full control", what do you mean by "my access rights" i.e. what user account are you referring to?

----------------------------------------------------------------------

Need help finding an answer?

Try the search facilty ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top