Macro for Changing assembly configs

I need a macro that will open all the files in a folder oneat a time, activate all the configurations, delete a design tabl ifthere is one, save and close. Does anyone have one or somesuggestions on how it should be written?SolidworksApi macros