Results 1 to 2 of 2

Thread: [2005] Check and create folder.

  1. #1

    Thread Starter
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    [2005] Check and create folder.

    I'd like to check to see if a specific directory exists, and, if it doesn't exist, create it. What's the easiest way to do this? Also, what's the easiest way to check if a file exists? Thanks.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] Check and create folder.

    The System.IO namspace has all the I/O related classes, like File and Directory, which are the ones of interest in this case. The My.Computer.FileSystem object in VB 2005 also has methods that will be of use.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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