Why re-invent the wheel? This app will do what you'd like MultiDoc Converter is a Freeware to convert multiple documents between Word, OpenOffice, PDF and many more (multidoc-converter.com) I'd put the .docx files in one folder and have the converted .doc files placed in a new folder. Once the process is finished delete the folder that contains the .docx files.