This should help:
using System.IO;
...
string path = @"C:\MP_Upload";
if(!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
Related Contents:
- Can I automatically increment the file build version when using Visual Studio?
- How do i split a String into multiple values?
- 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 use C# 6 with Web Site project type?
- how to put and use two flags(insert and update flags) on a single button to perform two operations in asp.net with C#
- ASP.NET Identity’s default Password Hasher – How does it work and is it secure?
- How to get the connection String from a database
- Keeping ASP.NET Session Open / Alive
- Failed to serialize the response in Web API with Json
- What is the difference between Debug and Release in Visual Studio?
- Plus sign in query string
- ITextSharp insert text to an existing pdf
- How to Get IP Address?
- Convert JSON String to JSON Object c#
- Can I get more than 1000 records from a DirectorySearcher?
- Add Items to Columns in a WPF ListView
- Is String.Contains() faster than String.IndexOf()?
- Debugging automatic properties
- Clearing Page Cache in ASP.NET
- How to send HTML-formatted email? [duplicate]
- .NET Core 2.2 Can’t be Selected In Visual Studio Build Framework
- Send HTML email via C# with SmtpClient
- IdentityServer4 Role Based Authorization for Web API with ASP.NET Core Identity
- Force download of a file on web server – ASP .NET C#
- Overloading getter and setter causes a stack overflow in C# [duplicate]
- When should I use Async Controllers in ASP.NET MVC?
- Why does Visual Studio Type a Newly Minted Array as Nullable?
- How can I embed an application manifest into an application using VS2008?
- Get POST data in C#/ASP.NET
- @Html.HiddenFor does not work on Lists in ASP.NET MVC
- ASP.NET Web Application Message Box
- How to make LINQ execute a (SQL) LIKE range search
- How can I export a GridView.DataSource to a datatable or dataset?
- How to implement full row selecting in GridView without select button?
- Assign format of DateTime with data annotations?
- Calling async methods from non-async code
- “The LINQ expression node type ‘Invoke’ is not supported in LINQ to Entities” – stumped!
- Generate C# project using CMake
- how to find control in edit item template?
- Is current request being made over SSL with Azure deployment
- asp.net dynamically button with event handler
- How do you bind an Enum to a DropDownList control in ASP.NET?
- Why is Asp.Net Identity IdentityDbContext a Black-Box?
- Windows Authentication and add Authorization Roles through database – MVC asp.net
- Reset scroll position after Async postback – ASP.NET
- How can I get the baseurl of site?
- Why do we need a private constructor?
- Font awesome inside asp button