title: Batch script to delete files/folder even open by user in share
body: <p>Can somebody guide me to delete folder/files in remote machine even when it's open by other user in share with write access.</p>
  
  <p>I am getting error as </p>
  
  <p>\remote\Destination\NEWFOL~2 - The process cannot access the file because it is being used by another process.</p>
  
  <p>I am using psfile command from sysinternals but the session is again created before deletion.. I can see the session is closed.. immediately after close another session is created</p>