title: C# Automatically Detecting the computer name/ file path
body: <p>I am making a program to distribute to people. Currently I'm using:</p>
  
  <pre><code>bitmap.Save("C:/My OVMK Photos//OpenVMK" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".jpg", ImageFormat.Jpeg);
  </code></pre>
  
  <p>I want to make it to auto detect their computer file path to desktop so it will save to the folder on the desktop.</p>
  
  <p>I'm looking to use This code:</p>
  
  <pre><code>string filePath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
  filePath =filePath +@"\Error Log\";
  string extension = ".log";
  if (!Directory.Exists(filePath))
  {
  Directory.CreateDirectory(filePath);
  }
  </code></pre>
  
  <p>How would I implement that?</p>