I am trying to convert a number of doc files into docx files and I get the solution:
for %F in (*.doc) do "C:\\Program Files\\Microsoft Office\\Office12\