Aside from building a script? No.
I’m actually surprised nobody has replied to this, it’s not that hard to write a script to do this. In fact, I just so happen to have one. I know this board likes to change code formatting, so I put it here ~> http://www.semitekie.com/viewtopic.php?p=6#6