Posts

Showing posts from October, 2020

CMD Rename

To rename all files and subfolders within a directory from the command line you'll need to go to the folder location  Press Win+R and type CMD Navigate to the directory you wish to rename the files/folders within Search for " how to use command prompt " if you're unsure List the contents of the directory by typing: Dir /W once there use the following command line where "xPrefix" is the naming prefix: FOR /F "tokens=*" %a in ('dir /b') do REN "%a" "xPrefix %a" This will rename all the files/folders within the directory with the prefix of "xPrefix " I.e. xPrefix filename.xxx xPrefix foldername NB : This will only rename the files and folders at  level the command line is executed from not subfolders/files