Results 1 to 3 of 3
  1. #1
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727

    Create folders

    All, using Access 2016. I have about 800 folders to create on a shared drive for audit purposes. The list is in an excel spreadsheet. I was thinking I could import the list to an access table n use code to create the folders. can anyone suggest code to create folders on a shared drive from a table?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    usasge: MakeDir "\\server\folder\new folder"

    Code:
    Public Sub MakeDir(ByVal pvDir)
    Dim FSO
    Set FSO = CreateObject("Scripting.FileSystemObject")
    If Not FSO.FolderExists(pvDir) Then FSO.CreateFolder pvDir     'MkDir pvDir
    
    
    Set FSO = Nothing
    End Sub

  3. #3
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    Thanks so much!!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 05-24-2016, 04:54 PM
  2. List Folders
    By LonghronJ in forum Modules
    Replies: 4
    Last Post: 02-15-2016, 08:37 AM
  3. Create folders in a specific directory
    By Gina Maylone in forum Access
    Replies: 1
    Last Post: 01-14-2015, 11:53 AM
  4. Create Windows Folder Regime (Many Sub Folders)
    By MSDeveloper in forum Code Repository
    Replies: 1
    Last Post: 10-14-2012, 01:43 PM
  5. Import from various folders
    By Statique in forum Import/Export Data
    Replies: 2
    Last Post: 07-02-2009, 06:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums