Bulk change JavaScript Extensions (.js) to TypeScript Extension (.ts) recursively


I was working on an upgrade project which required to convert JavaScript/ jQuery to TypeScript files from all the folders & sub folders.

Here is the command to rename all .js files to .ts files :

for /R %x in (*.js) do ren "%x" *.ts

Comments