+ Reply to Thread
Results 1 to 3 of 3

Check if folder exists, if not create it

Hybrid View

  1. #1
    Registered User
    Join Date
    12-17-2008
    Location
    edinburgh, uk
    Posts
    46

    Check if folder exists, if not create it

    Hi Guys,
    I need to check if a folder exists and if not then create it...

    not sure how to go about this
    Last edited by mattmac; 01-28-2009 at 10:17 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Check if folder exists, if not create it

    Check the LEN of the Dir and if 0 use MkDir.

    For more info there's a good guide here: http://www.techonthenet.com/excel/formulas/mkdir.php

    Note importance of directory structure... ie each folder in the path must exist... you can't create a sub folder in another folder if the parent folder doesn't exist either.

  3. #3
    Registered User
    Join Date
    12-17-2008
    Location
    edinburgh, uk
    Posts
    46

    Re: Check if folder exists, if not create it

    thats a nice simple guide

    cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1