Create Directory in a shared newtok directory

  • Thread starter Thread starter Paul Bromley
  • Start date Start date
P

Paul Bromley

How can I create a directory within a shared ntwork directory??

sServerName - is the Server name

"\Docs" - is the shared directory

"\Others" - is the directory to create.

The following does not work, although I can through code open and copy files
from "\Docs"

Directory.CreateDirectory(sServerName & "\Docs" & "\Others")

Best wishes

Paul Bromley
 
Imports System.IO

Directory.CreateDirectory(\\Myserver\c$\deleteme\abcedf)

Where:

Myserver = is the shared network resource
deleteme = is a shared directory (a shared directory in the server...)
abcdef = is the shared directory you are trying to create


Yonas
 
Yonas,


Many thanks!

Directory.CreateDirectory("\\" & sServerName & "\Docs" & "\Others")

Above worked fine for me!

Best wishes

Paul Bromley
 
Back
Top