scampercat

scampercat

  • NA
  • 189
  • 0

C# 2008 dynamic path

Sep 1 2012 12:37 PM
Since I am new to working with C# 2008 desktop application, I have the following questions to ask since I need place files in a directory path that looks like D://app1/test/mm-dd-yyyy/customer number/type of document being worked on:

1. How would you code the month-date-year format (mm-dd-yyyy) part of the path?
2. The path of the path that stays the same is D://app1/test/. The dynamic part of the path is mm-dd-yyyy/customer number/type of document being worked on.

Thus can you tell me how to code the static part of the path and setup the dynamic part of the path so that I can place files in the dymanic part of the path?

3. Once I have the new path location, can you tell me how to place files in the new directory path location?

Answers (3)