I have created a MS Word macro that converts an XML document open in Word to a .doc format.
I have a set of XML documents that I would like to open and convert to MS Word, they are all named differently but still have the same XML file extension.
I have this line of code that I put in a .bat file to open a XML file and run the macro, this works fine.
"C:\Program Files (x86)\Microsoft Office\Office14\winword" C:\Users\wlotzkan\Desktop\CC\*.xml /mSaveAsDoc
Now how can I get the .bat file to open and convert every XML file in the folder to a .doc file? Here is what I have so far....but I cant get it to work.
FORFILES /M *.xml /C "C:\Program Files (x86)\Microsoft Office\Office14\winword" /mSaveAsDoc