Home > Computers > Change the Extentsion on Multiple Files

Change the Extentsion on Multiple Files

I was sent 40 attachments the other day. When I tried to open them I would get an error that said, “Adobe Reader could not open ‘filename.pdf’ because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn’t correctly decoded).”

Thinking maybe its not really a PDF I open the file in Notepad & see this:

JFIF…well that’s the JPEG File Interchange Format; i.e. it’s a JPEG not a PDF.

I change the extension from .pdf to .jpg & it opens right up. Of cource I’ve got 40 of these & really don’t feel like manually changing each one. So, to change the extension on multiple files, copy all of them to an empty folder (e.g. C:\Rename). Open a command prompt and browse to that folder. Type ren *.pdf *.jpg then press enter.

Now all the files will have the correct extension.

Advertisements
  1. May 18, 2012 at 8:16 am

    Good post, Patrick, Is the type of a file typically encoded at the top of a file, or did you just get lucky in this case? Does Windows have a command that can identify a file type, similar to the file command in Linux?
    http://en.wikipedia.org/wiki/File_(command)

  2. patrickhoban
    May 18, 2012 at 8:39 am

    Nothing built in but there is a really good program called TrID. http://mark0.net/soft-trid-e.html

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: