In a C# 2010 desktop application, I need to create a dynamic directory paths based upon the names of some documents I obtain from a web service. Basically if the name of the file type in an xml file is called 'Customer Inventory", I need to place these documents in a folder one level lower than the rest of the documents. Basically most files will end up in a path that looks like: C:\temp\customers.
However the files that are marked in the xml file called "Customer Inventory", need to end up in a file directory path that looks like the following: C:\temp\customers\Customer Inventory.
Thus can you tell me how I can create the correct directory paths I need to work with?
C# changing directory paths
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 8, 2012, 9:06 PM EDT
if you want to know how to create directories use
Directory.CreateDirectory()
Check this is correct answer if it helped.
dcRank #2,247 · 627 reputationPosted Sep 9, 2012, 10:57 AM EDT
Otherwise I want to place the rest of the files I receive from the web service in the following location:C:\temp\customers