Skip to content
Advertisement

Renaming txt files with numbers as filenames in cmd

i have files and This names the files example :

JavaScript

I want Rename all of them to file names with numbers like:

JavaScript

system windows or linux

Advertisement

Answer

Just save this code into a name.bat file in your folder and run the command

JavaScript

Here in order to avoid conflicts first the files are named as ‘.new’ extenstion and later it is converted back to ‘.txt’ files.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement