Results 1 to 3 of 3

Thread: Checking for the existance of a directory? [RESOLVED]

  1. #1

    Thread Starter
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346

    Checking for the existance of a directory? [RESOLVED]

    How can i check to see if a directory exists and if it doesnt to create it? I am able to accomplish this with a file, thats pretty simple, its the directory i cant figure out.

    Thanks!
    Last edited by kleptos; Apr 7th, 2003 at 10:02 AM.
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


  2. #2

    Thread Starter
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346

    Checking for the existance of a directory? [1/2 RESOLVED]

    For some reason, i overlooked the simple System.IO.Directory.Exists() method.

    Ok, good, now i know how to check for a directory, now i just need to know how to create one.
    Thanks!
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


  3. #3

    Thread Starter
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346

    Checking for the existance of a directory? [RESOLVED]

    Ok, i guess i spoke too soon. Sorry about the waste of a post..
    Code:
    System.IO.Directory.CretaeDirectory(string directory);
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


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