title: What does the code mean? (Deleting files and sub folders in a folder with a batch file)
body: <pre><code>del /s /q "C\:test\*.*"
  for /d %%p in (C:\test\*.*) do rmdir "%%p" /s /q
  </code></pre>
  
  <p>This is a code I have which deletes files and sub folders in a folder. And it works, but I do not get what each of the command works. So my question is, what does the second line mean? Like, what is the <code>%%p</code> part, and what is the rmdir <code>"%%p"</code> part?</p>
  
  <p>This is a batch file.</p>