[DllImport("kernel32.dll")]
static extern bool CreateDirectory(string lpPathName,
IntPtr lpSecurityAttributes);
None.
This is a alternitive to the Directory.CreateDirectory() method provided by .NET
The advantage of using the DllImport is that the running assembly does not require access to the root of the directory structure.
Please add some!
string path = "c:\\test\\mydir";
CreateDirectory(path, IntPtr.Zero);
[DllImport("msvcrt.dll", SetLastError=true)]
static extern int _mkdir(string path);