title: Starting application on start-up, using the wrong path to load
body: <p>I am using registry key to set my application to load on Windows Startup(after a user login).
  My Code:</p>
  
  <pre><code>RegistryKey RegKey = Registry.LocalMachine;
  RegKey = RegKey.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);
  RegKey.SetValue("AppName", "\"" + @"C:\Users\Name\Desktop" + "\"");
  RegKey.Close();
  </code></pre>
  
  <p>So with this code, my application load at startup, however the working directory is </p>
  
  <blockquote>
    <p>C:\Windows\System32</p>
  </blockquote>
  
  <p>Does anyone know why ?</p>
  
  <p>This does not work for me because that program needs couple of files within the same directory as that one to operate. If the program loaded on my chosen directory("C:\Users\Name\Desktop") then the problem would not exist.</p>
  
  <p>Anyone has any suggestion for this ?</p>