title: How to get installed exe file system path after scheduling in windows scheduler?
body: <p>I have written in my console application a line <code>System.IO.Path.GetFullPath("ApplicationSubDirectory")</code> to get application directory file system path.</p>
  
  <p>I build this application and installed exe in my system. exe has been installed in <code>c://ProgramFiles/AppFolder/</code> directory. When I execute exe then I got valid path like <code>c://ProgramFiles/AppFolder/ApplicationSubDirectory</code>.</p>
  
  <p>But when i scheduled this exe to run dailly basis in windows scheduler. Then I am getting wrong path. This returns me path of directory where windows scheduler is installed like <code>c://Windows/System32/ApplicationSubDirectory</code>. This is wrong path.</p>
  
  <p>Please help me how i get valid path after scheduling exe too.</p>
  
  <p>Thanks a lot.</p>