How to

create directory

Published: 13. December 2008 | Updated: 13. December 2008
License: Microsoft Public License (MS-PL)
Categories: File system » Directories
Tags: C# File System
Was this snippet helpful for you? YESYES / NONO

Create directory using C#

Import namespaces

using System.IO;

Code

DirectoryInfo dir = Directory.CreateDirectory(@"C:\Test\");
Send us feedback about this snippet »



Related Snippets: