title: Prevent JMeter from creating run log file when opening a test on Windows
body: <p>I have followed the instructions from <a href="https://stackoverflow.com/a/53955919/5012320">this StackOverflow answer</a> which causes JMeter to be opened when double clicking on a .jmx file in Windows.</p>
  <p>The problem is that when I open a .jmx file by double clicking on the file it automatically creates a JMeter log file (and names it <code>[name_of_jmx_file].log</code>, regardless of if you do anything with the test. The file is also not removed once you close JMeter, so I have to manually delete it each time.</p>
  <p>This appears to be caused by the <code>-j</code> param in the following line from the default <code>jmeter-t.cmd</code> file:</p>
  <pre><code>call &quot;%~dp0&quot;jmeter -j &quot;%~n1.log&quot; -t &quot;%~nx1&quot; %2 %3 %4 %5 %6 %7 %8 %9
  </code></pre>
  <p>Simply removing <code>-j &quot;%~n1.log&quot;</code> doesn't  prevent the creation of the logfile as JMeter still creates the file and just defaults the name of the file to <code>jmeter.log</code>.</p>