Answers for "how to create a folder in c# code"

C#
1

c# making a folder

string path1 = @"C:temp";
string path2 = Path.Combine(path1, "temp1");

// Create directory temp1 if it doesn't exist
Directory.CreateDirectory(path2);
Posted by: Guest on May-17-2020
0

file.create folder c#

Using System.IO; 

//gets the directory where the program is launched from and adds the foldername
string path = Path.Combine(Environment.CurrentDirectory, "foldername");

//Creates a directory(folder) if it doesen't exist
Directory.CreateDirectory(path);
Posted by: Guest on April-11-2021

Code answers related to "how to create a folder in c# code"

C# Answers by Framework

Browse Popular Code Answers by Language