coolislandsurf
Member
- Joined
- Mar 28, 2005
- Messages
- 17
- Programming Experience
- Beginner
Hi Everyone,
Is it possible to create a folder using a unc path? If so, how?
Right now, i have a mapped drive to let's say z.
I can create a folder to the mapped drive using:
The above worked fine. However, I tried dim myPath as string = \\ServerName\testingfolder but it did not work.
I appreciate your help.
Kevin
Is it possible to create a folder using a unc path? If so, how?
Right now, i have a mapped drive to let's say z.
I can create a folder to the mapped drive using:
VB.NET:
[size=2][color=#0000ff]Dim[/color][/size][size=2] myPath [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]String[/color][/size][size=2] = "z:\testingfolder"[/size]
[size=2][color=#0000ff]Dim[/color][/size][size=2] di [/size][size=2][color=#0000ff]As[/color][/size][size=2] DirectoryInfo = Directory.CreateDirectory(myPath)[/size]
[size=2]MessageBox.Show("folder created")
[/size]
The above worked fine. However, I tried dim myPath as string = \\ServerName\testingfolder but it did not work.
I appreciate your help.
Kevin