Results 1 to 3 of 3

Thread: [RESOLVED] Check network directory and make network directory

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Craiova, Romania
    Posts
    140

    Resolved [RESOLVED] Check network directory and make network directory

    How can I check if network directory exist and if not make it something like this


    Code:
    Dim exists As Boolean
    
    Dim fso As FileSystemObject
    Set fso = New FileSystemObject
    
    networkPath="\\NAS\Conta\Date\eFactura\35182401"
    exists = fso.FolderExists(networkPath)
    
    If Not exists Then
        fso.CreateFolder (networkPath)
    End If
    ... but i don't want to use FileSystemObject.
    Last edited by cliv; Apr 1st, 2024 at 03:42 AM.

  2. #2
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    7,667

    Re: Check network directory and make network directory

    AFAIK the normal PathFileExists and SHCreateDirectoryEx APIs should work.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2006
    Location
    Craiova, Romania
    Posts
    140

    Re: Check network directory and make network directory

    Quote Originally Posted by fafalone View Post
    SHCreateDirectoryEx APIs should work.
    ... yes you are right

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width