Sorry, I forgot to post that DOSLib (which can also be downloaded at:
http://www.en.na.mcneel.com/doslib.htm ) is required for a lot of my functions. I am working on removing the dependency for this, but it is convenient.
The routine that I posted shouldn't be using Recover, I just had one set of stubborn files that I needed it for, but should be remarked out now, I will be doing something in the UI for that later.
To use the routine, you need to remark out anything you don't need in the c:rtools_bsr routine, there are a lot of powerful things going on there, but some are company specific of course.
Step by step instructions once you have done that:
Type rtools to open the palette
Make sure you only have one open drawing
Click on the cleanup tab
Select the folder that you have the files in that you want to cleanup
Select the folder that you want to copy the files to once you are done
Click Clean Now
Everything should be done automatically from this point, please note that the rtools_bsr routine does the following:
Converts all xrefs from overlay to attach
Changes all xref paths to relative
Changes the drawing from color based plotting to style based plotting (you may wish to remark out this line)
Changes all items to bylayer for color and plot style
Changes all layers to color 8 and to plot with a shaded plot style (again you may wish to modify this line)
Completely Purges the drawing
There are a few other items as well, but this is the basic overview of what it does as I have it setup now.