|
-
Apr 7th, 2003, 09:38 AM
#1
Thread Starter
Hyperactive Member
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)

-
Apr 7th, 2003, 10:00 AM
#2
Thread Starter
Hyperactive Member
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)

-
Apr 7th, 2003, 10:02 AM
#3
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|