You can use the Solidworks Task scheduler to do that if you have the liscense. Use the export files option. If you don't have the option then you will have to use a macro.
I don't do this type of work, so I just skim through the threads that discuss it, but I am quite sure that macros like Chris suggested do exist already. Try searching the forums with "export DXF macro" or something like that.