I've got a directory location, how can I create all the directories? e.g. C:MatchUpload will create both Match and the sub-directory Upload if it doesn't exist.
Using C# 3.0
Thanks
Directory.CreateDirectory(@"C:MatchUpload") will sort this all out for you. You don't need to create all the subdirectories! The create directory method creates all directories and sub directories for you.
1.4m articles
1.4m replys
5 comments
57.0k users