Here is a non-destructive solution that will merely write a file called renfiles.bat.txt
and you can examine it in Notepad to see if it is doing what you want, before renaming it to a batch file and launching it to do the renaming.
It depends on the exact text being typed where you see it in the batch file, and the space after Movies
as well as the space before watch
is included in the change.
Change the c:\base\folder
to the path where all your folders and file are.
This uses a helper batch file called repl.bat
- download from: https://www.dropbox.com/s/qidqwztmetbvklt/repl.bat
Place repl.bat
in the same folder as the batch file or in a folder that is on the path.
@echo off
cd /d "c:\base\folder"
dir /b /s /a-d |repl ".*\\MOVIES (.*) watch now(.*)" "ren \q$&\q \q$1$2\q" ai >renfiles.bat.txt