Start solidworks in the background and perform a save-as pdf...help!

Hello,

Is it possible to create an exe which will launch solidworks as a background process, load the dwg file from a destination dir and perform a save-as pdf  to a specified destination dir and then close solidworks.

I wanted to run this from the command prompt ...something like

run_sldwrks_pdf.exe -i c:\dwgdir\dwg001.slddrw -o c:\pdfDir\dwg001.pdf

where i= input dwgfile location. open the drawing file from this location (c:\dwgdir\dwg001.slddrw)

o=location to store the pdf file to(c:\pdfDir\dwg001.pdf)

Is this possible...can somebody help me out here

Sincerely appreciate all the help.

Regards,

Renni

SolidworksApi macros