title: How to get server.Mappath in console application c#
body: <p>How to use server.MapPath in the console application using c#. I tried the below code but I am not  getting my pdf file. Kindly suggest in this.</p>
  
  <pre><code> string[] pdf_file = System.IO.Directory.GetFiles(@"C:\Folder\" + fileName);
  </code></pre>