title: How to get a file full path in c# with Path.GetFullPath
body: <p>I am trying to get the <strong>full path</strong> a file by its <strong>name</strong> only. 
  I have tried to use : </p>
  
  <pre><code>string fullPath = Path.GetFullPath("excelTest");
  </code></pre>
  
  <p>but it returns me an incorrect path (something with my project path).</p>
  
  <p>I have read somewhere here a comment which says to do the following:</p>
  
  <pre><code>        var dir = Environment.SpecialFolder.ProgramFilesX86;
          var path = Path.Combine(dir.ToString(), "excelTest.csv");
  </code></pre>
  
  <p>but I do not know where the file is saved , therefore I do not know its environment.</p>
  
  <p>can someone help me how to get the full path of a file only by its name?</p>