Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi guys,
i need your help for solving this in .net. if I am uploading an image or document in my project that image or document wants to be saved in my project by creating a unique path with a new folder referred by common name.
Posted

1 solution

C#
string folderName = @"c:\Top-Level Folder";
string pathString = System.IO.Path.Combine(folderName, "SubFolder");
 System.IO.Directory.CreateDirectory(pathString);


Use the above code for creation of folder in C#
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900