Sunday 3 June 2018

windows - How to batch rename and remove last characters

In Windows XP, I'm trying to figure out how to batch rename and remove the last characters of filenames.


Example of removing last 4 characters before file extenstion: file.doc.pdf --> file.pdf


I could do:


ren *.pdf *.
ren *.doc *.pdf

Though this wouldn't work well if there are already other PDFs in the folder.


Not sure if the FOR command is needed here.

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...