Filename and automating print button

I am trying to setup script files to run and convert lots of files from htm to pdf. Unfortunately I have a problem with the autosave on certain pc's that I login to. (works on the other ones) Title or document filename come up with more than the pathname. I just want it to keep the same name but change the .htm with .pdf

Windows 7 pdfcreator 1.4.1

I am also trying to remove the need to press okay at the print option (pdfcreator is set to the default) so it does it automatically.

Maybe a little marco with AutoHotkey can help you....