"come creare una cartella con c#" Code Answer's

You're definitely familiar with the best coding language C# that developers use to develop their projects and they get all their queries like "come creare una cartella con c#" answered properly. Developers are finding an appropriate answer about come creare una cartella con c# related to the C# coding language. By visiting this online portal developers get answers concerning C# codes question like come creare una cartella con c#. Enter your desired code related query in the search bar and get every piece of information about C# code related question on come creare una cartella con c#. 

come creare una cartella con c#

By Handsome HoopoeHandsome Hoopoe on Sep 17, 2020
using System;
using System.IO;

class Test
{
    public static void Main()
    {
        // Specify the directory you want to manipulate.
        string path = @"c:\MyDir";

        try
        {
            // Determine whether the directory exists.
            if (Directory.Exists(path))
            {
                Console.WriteLine("That path exists already.");
                return;
            }

            // Try to create the directory.
            DirectoryInfo di = Directory.CreateDirectory(path);
            Console.WriteLine("The directory was created successfully at {0}.", Directory.GetCreationTime(path));

            // Delete the directory.
            di.Delete();
            Console.WriteLine("The directory was deleted successfully.");
        }
        catch (Exception e)
        {
            Console.WriteLine("The process failed: {0}", e.ToString());
        }
        finally {}
    }
}

Source: docs.microsoft.com

Add Comment

0

All those coders who are working on the C# based application and are stuck on come creare una cartella con c# can get a collection of related answers to their query. Programmers need to enter their query on come creare una cartella con c# related to C# code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about come creare una cartella con c# for the programmers working on C# code while coding their module. Coders are also allowed to rectify already present answers of come creare una cartella con c# while working on the C# language code. Developers can add up suggestions if they deem fit any other answer relating to "come creare una cartella con c#". Visit this developer's friendly online web community, CodeProZone, and get your queries like come creare una cartella con c# resolved professionally and stay updated to the latest C# updates. 

C# answers related to "come creare una cartella con c#"

View All C# queries

C# queries related to "come creare una cartella con c#"

Browse Other Code Languages

CodeProZone