convert to dwg

I would like to be able to process all files in a folder and have them converted to dwg

i recorded this macro but was not sure how to get it to automatically process all the files

any help would be appricated

SolidworksApi macros