Am a newbie in C#. I would like to Create a Folder with a Specific name into My Documents when my Windows Form load and if the Folder Name already exist it does not do anything.
private void Form1_Load(object sender, EventsArgs e)
{
}
Can anyone help me with the codes?
Special folder enum:
Directory.CreateDirectory(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "MyDirectory"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With