Hi Edward:
Adagio's Retrieve function in Ledger has the same ability to select a different source folder.
But it sounds like the batches were already posted in Company A (damaged). Is that correct? If they were already posted you'll need to: (1) Unpost the batches in Company A, (2) Export the batches and then (3) import them into the Company B's Ledger.