This should help:
using System.IO;
...
string path = @"C:\MP_Upload";
if(!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
More Related Contents:
- Can I automatically increment the file build version when using Visual Studio?
- Visual Studio – Resx File default ‘internal’ to ‘public’
- Project builds but can’t publish
- Setting the datasource for a Local Report – .NET & Report Viewer
- How to find the reason for a failed Build without any error or warning
- How do i split a String into multiple values?
- IIS Express Immediately shutting-down running site after stopping web application
- How to use C# 6 with Web Site project type?
- How to add config transformations for a custom config file in Visual Studio?
- Read a Registry Key
- Scientific Calculator in C# [closed]
- Can I specify a custom location to “search for views” in ASP.NET MVC?
- Has an event handler already been added?
- How to dynamically create ASP.net controls within dynamically created ASP.net controls
- GridView Hide Column by code
- IdentityServer4 Role Based Authorization for Web API with ASP.NET Core Identity
- Why does Visual Studio Type a Newly Minted Array as Nullable?
- How to create trial version of .NET software? [closed]
- How to show a image in database in the image control of Asp.net?
- Can I have an optional parameter for an ASP.NET SOAP web service
- A potentially dangerous Request.Form value was detected from the client
- DataTable does not contain definition for AsEnumerable
- Overloading getter and setter causes a stack overflow in C# [duplicate]
- .NET Framework 3.5 and TLS 1.2
- IIS app pool recycle + quartz scheduling
- How to convert DataTable to class Object?
- call async method without await #2
- How to set the value of a textbox textmode=date ASP.NET C#
- Find a control in a webform
- How to get the first five character of a String