dc

dc

  • NA
  • 663
  • 0

C# changing directory paths

Sep 8 2012 10:43 PM
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?

Answers (2)