Split part file macro

Anyone have a macro to save configurations out as seperate solidworks part files (.sldprt) with the config name?  I have a .exe to do it and it works great but when I save the configs out I need to add a prefix to the config name the exe does not allow for renaming.

If someone is feeling real nice maybe they can add saving as different file types i.e. .step .x_t .sat to the macro.

Thanks

SolidworksApi macros