How can I check if directory C:/ contains a folder named MP_Upload, and if it does not exist, create the folder automatically?
C:/
MP_Upload
I am using Visual Studio 2005 C#.
This should help:
using System.IO; ... string path = @"C:MP_Upload"; if(!Directory.Exists(path)) { Directory.CreateDirectory(path); }
1.4m articles
1.4m replys
5 comments
57.0k users