Create a Folder using network path

Suppose there is a machine called "Sun" in my intranet and there is a folder "\\sun\Project\Document".

In VB6, how can I create a subfolder under this folder without the need to map any network drive?
slgalAsked:
Who is Participating?
 
DJM042098Connect With a Mentor Commented:
Private Sub Command1_Click()

    MkDir ("\\sun\Project\Document\newfolder")

End Sub

0
 
InteqamCommented:
0
 
slgalAuthor Commented:
Finally, I find that both MkDir or CreateFolder create folder using network.
I cannot do that previously just because of my silly mistake, as follow:

mkdir("\\sun\Project\Document\Testing")

It generates error because \\sun\Project\Document\ does not exist! :~~
0
All Courses

From novice to tech pro — start learning today.