Click here to Skip to main content
15,921,212 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
How to create a folder dynamically in C#?
Posted

1 solution

Add this line at the top of your code file:
C#
using System.IO;

Then you can use this code to create a folder:
C#
Directory.CreateDirectory("path here");

https://msdn.microsoft.com/en-us/library/54a0at6s%28v=vs.110%29.aspx[^]
 
Share this answer
 
Comments
Maciej Los 26-Apr-15 11:35am    
+5

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