title: AccessDeniedException while trying to copy a file into the startup folder of windows
body: <p>The title of this question explains it all. I tried to copy my jar into the startup folder, when I start it the first time. After that I want to create a start.bat to start the jar every startup of windows.</p>
  
  <p>My question is, how can I bypass this security measure and give this jar the necessary rights?</p>
  
  <pre><code>try {
      Files.move(Paths.get(f.getPath()), Paths.get(Constants.startupDirectory.getPath()), StandardCopyOption.REPLACE_EXISTING);
      FileUtils.writeStringToFile(Constants.startupDirectory, "start.bat", Constants.startCode);
  } catch (AccessDeniedException e) {
      e.printStackTrace();
  } catch (IOException e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>The error appears at line 3. What can I do?</p>