Search and Replace file names
Posted: Fri Feb 11, 2005 4:31 pm
Good Day,
I have 71 files named 1.bat, 2.bat 3.bat and so on. I then created 71 new files for testing purposes and named them 1Test.bat, 2Test.bat, 3Test.bat and so on.
Now that my testing is done I want to do a batch rename from 1Test.bat to 1.bat and so on for the 71 files.
When I do the search for the *Test.bat files the program finds them no problem. But when I get the confirmation message to replace I click Ok to rename it says everything was fine but it did not overwrite the old file.
Here is my search and replace string (use regular expressions is on):
(\w)Test.bat
and replace with
$1.bat
I did a test and if I delete the original file (1.bat) it renames 1Test.bat just fine.
What am I doing wrong?
I have 71 files named 1.bat, 2.bat 3.bat and so on. I then created 71 new files for testing purposes and named them 1Test.bat, 2Test.bat, 3Test.bat and so on.
Now that my testing is done I want to do a batch rename from 1Test.bat to 1.bat and so on for the 71 files.
When I do the search for the *Test.bat files the program finds them no problem. But when I get the confirmation message to replace I click Ok to rename it says everything was fine but it did not overwrite the old file.
Here is my search and replace string (use regular expressions is on):
(\w)Test.bat
and replace with
$1.bat
I did a test and if I delete the original file (1.bat) it renames 1Test.bat just fine.
What am I doing wrong?