title: Create a copy of a file in same location as original
body: <p>The end-user supplies a path, indicating where the original document is.</p>
  
  <pre><code>string DocxFileName = "C:\\WorksArshad\\3.docx";
  </code></pre>
  
  <p>I'd like to create a copy of the document name <code>3.docx</code> as <code>3Version1.docx</code> and store the copy in the same directory as the original.</p>
  
  <p>How do I get the whole path without the file name and extension?</p>
  
  <p>(i.e.) I need to get the <code>"C:\\WorksArshad\\"</code> path alone.</p>