Answers for "c# net framework create dir"

C#
3

how to create directory folder in c#

string subPath ="ImagesPath"; // Your code goes here

bool exists = System.IO.Directory.Exists(Server.MapPath(subPath));

if(!exists)
    System.IO.Directory.CreateDirectory(Server.MapPath(subPath));
Posted by: Guest on July-15-2021
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

Code answers related to "c# net framework create dir"

C# Answers by Framework

Browse Popular Code Answers by Language