title: How to find image path in c#?
body: <p>I want to find image path but I didn't.</p>
  
  <p>my image path : C:\Works\Web5.1.0\Src\Works.WebNext\Password\assets\img
  my image name : reset_password.jpg</p>
  
  <p>I tried this : <code>string path2 = Path.GetFullPath("reset_password.jpg");</code> but it's wrong path <code>(output: C:\Windows\System32\inetsrv)</code></p>
  
  <p>and tried this : </p>
  
  <pre><code>string path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase);
  string a = Path.Combine(path, "reset_password.jpg");
  
  output : (C:\Works\Web5.1.0\Src\Works.WebNext\bin )
  </code></pre>
  
  <p>I think, output should be like this : <code>C:\Works\Web5.1.0\Src\Works.WebNext\Password\assets\img</code></p>
  
  <p>one more thing : image path may not be same another computer so I think give a specific path is not right (for example : C:\Works\Web5.1.0\Src\Works.WebNext\Password\assets\img ) </p>
  
  <pre><code>X computer : C:\Works\Web5.1.0\Src\Works.WebNext\Password\assets\img
  Y computer : C:\Works\Web\Src\Works.WebNext\Password\assets\img
  </code></pre>
  
  <p>By the way, I am writing with c#.</p>
  
  <p>How can I do ?
  Any ideas please.</p>