title: Restore default working dir if bat file is terminated abruptly
body: <p>I have a scenario where during execution of a batch file, it navigates to a different folder (say to "../asdf"); and at the end of execution it will set the current working dir as the same folder from where the user called the .bat file.</p>
  
  <p>But if the user terminates the batch processing before it is complete, the cmd show the current working dir (say "../asdf").</p>
  
  <p>But in my case, I need to restore the working dir to the default/predefined one. Is it possible?</p>
  
  <ul>
  <li>Batch file is written by me, so I can modify it.</li>
  <li>CMD is opened through a desktop shortcut to CMD, which I have control of; so properties like working dir or passing args to CMD etc can be done there.</li>
  </ul>