How to replace the extension of all files in a folder in Windows?

ren *.FROM *.TO

E.g.:

ren *.mov *.mp4

stackoverflow.com/a/9885274