title: How to clear contents of file with batch script
body: <p>I have a self-hosted local website (on W10) with a little chat application. The chat history is saved to a <code>log.html</code> file, and i want to clear it out with a batch script.<br>
  I know that on the Ubuntu Shell, it is as simple as <code>&gt; log.html</code> but on Windows, that doesn't work.<br> 
  I also found <code>nul &gt; log.html</code>, but it says <strong>access denied</strong><br>
  I also don't want to use a powershell script as i have to change executing rules and it takes nearly a minute.<br><br>So, my question is:<br>
  <strong>Is there a way that i can empty <code>log.html</code> with a batch script that doesn't stay open for longer than 20 seconds?</strong>
  <br>
  Or, I don't mind if there is a way to use something <em>php-related</em> to clear it daily. I'm using IIS on Windows 10v1803 if that helps.</p>