Vince,
If you are executing that DO command from the command line, there aren't many workarounds. But if you are doing it from within a batch script, you can save your dirhistory to a file prior to executing the command and then restore it afterwards.
Of course, you could do that from the command line too. It's just more of a PITA.