Export jpg from each cdr file in a folder

Hi all!

Is there a way to open each file in a folder, do some stuff , export a jpg from each file and close the file?

The problem where I'm stuck is the browsing part for each file in a folder and opening it.

I'm using Corel Draw X6.

Thanks a lot in advance