|Your site has been a big help for all of my batch files needs but i cannot find anything regarding the above subject. I have around 100 files in 1 folder that has a generic name and all has to be renamed according to its contents and can be found at line 27. I found the blow code but only gets from the first line;|
pushd g:\test\||echo Pushd failed - job terminated&& exit/b
for /f "tokens=*" %%1 in ('dir /b *.txt') do (
set /p inline=<%%1&set inline=!inline:~5,20!
echo %%1 will be renamed !inline!.txt
ren %%1 !inline!.txt
how can i modify this so that it will get it from line 27.
Thank you in advance.