Changing all files' extensions in a folder with one command on Windows
问题 How can I use the Windows command line to change the extensions of thousands of files to *****.jpg ? 回答1: You can use ren (as in rename ): ren *.XXX *.YYY And of course, switch XXX and YYY for the appropriate extensions. It will change from XXX to YYY. If you want to change all extensions, just use the wildcard again: ren *.* *.YYY One way to make this work recursively is with the FOR command. It can be used with the /R option to recursively apply a command to matching files. For example: for