[DllImport("kernel32.dll")]
static extern bool CreateDirectory(string lpPathName,
IntPtr lpSecurityAttributes);
None.
This is a alternitive to the Directory.CreateDirectory() method provided by the .NET Framework. The advantage of using the DllImport is that the running assembly does not require access to the root directory structure. The disadvantage is that it will only create the end most directory where as the method provided by .NET will create the entire folder structure. However you 'could' create a recursive function to do this...
Please add some!
string path = "c:\\test\\mydir";
CreateDirectory(path, IntPtr.Zero);
[DllImport("msvcrt.dll", SetLastError=true)]
static extern int _mkdir(string path);