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.
2.1m questions
2.1m answers
60 comments
57.0k users