2
Answers

C# changing directory paths

dc

dc

12y
1.1k
1
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)