save drawing as jpg and rename

I have 50 or so drawings I need a macro to rename (drop a prefix and add a different prefix to drawing file name) and save as a jpg.  I assume the macro would run through a folder where the drawings are placed.  Possibly task manager could keep running the macro?

Im not sure where to start.  Or maybe someone has something I can modify.

Thanks for any help.

SolidworksApi macros