title: Linker Tools Error LNK1168, cannot open filename.exe for writing
body: <p>There is one thing driving me crazy whenever I compile a cpp program:</p>
  
  <p><strong>Linker Tools Error LNK1168, cannot open filname.exe for writing</strong></p>
  
  <p>This error occurs everyday.</p>
  
  <p>I was able to realize that this problem occurred because the exe file was not finished even after I stop my debugging.</p>
  
  <p>What I tried to solve this problem:</p>
  
  <ol>
  <li><p>On task manager, I tried to end the process ( which is in my case, Samsung2.exe ) but however I click that, there is no response.</p></li>
  <li><p>the below paragraph is from </p></li>
  </ol>
  
  <blockquote>
    <p><a href="https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk1168?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DEN-US%26k%3Dk(LNK1168)%26rd%3Dtrue" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk1168?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DEN-US%26k%3Dk(LNK1168)%26rd%3Dtrue</a></p>
  </blockquote>
  
  <p>"""
  If your executable can’t be overwritten by the build process, it may be locked by File Explorer. If the Application Experience service has been disabled, File Explorer may hold on to an executable file handle lock for an extended time. To fix this issue, run services.msc and then open the Properties dialog box for the Application Experience service. Change the Startup type from Disabled to Manual.
  """</p>
  
  <p>There is no Application Experience service (on windows 10 )</p>
  
  <ol start="3">
  <li>I downloaded 'Process Explorer' and tried to kill my process. </li>
  </ol>
  
  <p>but only error message pops up ( " <strong>access is denied</strong> " ) </p>
  
  <p><a href="https://i.stack.imgur.com/nsRBu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nsRBu.png" alt="enter image description here"></a></p>
  
  <p>It is shortening my life. Can you help me?</p>
  
  <p>FYI, I'm using Visual Studio 2017 and Windows 10(64 bits)</p>