How to batch rename and remove last characters
Solution 1:
If your file names do not contain any periods other than at the end (.doc.pdf), the following will work:
for /f "delims=." %a in ('dir /b *.doc.pdf') do ren "%~a.doc.pdf" "%~a.pdf"
Solution 2:
ren * *. -> will give you 'file.doc'
repeat above command -> will give you 'file'
ren * *.pdf -> will give 'file.pdf'