Macro to save X_T to SLDPRT.

I am looking for a way to use task scheduler to open up X_T files, and save them out as SLDPRT files in the same folder that the X_T file was opened in.

Has this been done before?

SolidworksApi macros