title: Bat file for Mount/Dismount and delete ISO file
body: <p>I'm trying to make a batch-file, which will dismount an ISO file, then delete it. After this it will use the 'cdbxpcmd' command in order to create a new ISO image with the previous same name, and mount it.</p>
  <p>For this reason, I've created the following bat script.</p>
  <pre class="lang-sh prettyprint-override"><code>@echo off
  powershell -Command &quot;&amp; {dismount-diskimage -Imagepath &quot;C:\juliard\dance.iso}&quot;
  del C:\juliard\dance.iso
  cd /d &quot;C:\program files\cdburnerxp&quot;
  cdbxpcmd.exe --burn-data -folder:D:\ -iso:C:\juliard\dance.iso -format:iso
  powershell -Command &quot;&amp; {mount-diskimage -Imagepath &quot;C:\juliard\dance.iso}&quot;
  </code></pre>
  <p>Sadly, it keeps on getting stuck on the creation of the ISO step. It seems that it takes ages and after this and you need to <Kbd>Ctrl</Kbd> + <Kbd>C</Kbd> in order to continue.</p>
  <ol>
  <li>Can you point me to the wrong commands or if I need to add/remove anything?</li>
  <li>Do you know any other way, of mounting/dismounting an ISO without calling the PowerShell?</li>
  </ol>