I am trying to rename a file with two variables in a batch file. I have file with name foo_hello.txt
and I want to rename it to foo_20_hello_50.txt
.
20 and 50 are two different #define in the same header file.
I was successful in renaming it with one variable.
for /f "tokens=3" %%i in ('FINDSTR /C:"Place" ..\header.h') do ren foo_hello.txt foo_hello_%%i.txt
but I am not sure how to add the other variable in the filename.