luni, 25 august 2014

Creates directory C# example

Creates directory  in the specified path.

Example:

  

string dir = @"c:\dir1";
try
{
            if (!Directory.Exists(dir))
       {
              DirectoryInfo di = Directory.CreateDirectory(dir);
       }

catch (Exception ex) 
{
       MessageBox.Show(ex.ToString());

finally {}

Niciun comentariu:

Trimiteți un comentariu