Need a batch script that recursively searches the whole C: drive for a specific file by file name and then renames the file
This is what I have so far. It appears to find the file but then it does not rename it.
@echo off
for /r "delims=" %%i in ('dir /s /b /a-d "C:\test.pdf"') do (ren "%%i" test2.pdf)