title: Console App Get Full Path for Filename in Args
body: <p>So, I have a simple console app which takes one parameter: filename.</p>
  
  <p>Now, when I run it like this:</p>
  
  <pre><code>program.exe "C:\Temp\list.json"
  </code></pre>
  
  <p>It works since I have passed a full file path.</p>
  
  <p>What I want to achieve is next:
  I want to CD into C:\Temp and from there I want to call a file like:</p>
  
  <pre><code>"C:\Program Files\WS\program.exe" list.json
  </code></pre>
  
  <p>Basically, I want to pass in only the file name and from that construct the full file path.</p>
  
  <p>How is this achievable?</p>
  
  <p>I tried finding out if I can get the current directory from Terminal where I am, in my case, it would be C:Temp, but I did not find any answers for that.</p>