Efficiently change a single file extension in Windows

What is the simplest way of changing a file extension (without messing around with folder view options)?

Oftentimes I have to quickly change the extension of a single file on a Windows PC. I don't like to turn on the option to show file extensions, change the extension, and then turn the option back off. If I forget to turn off the option, the client will not understand how his computer works; this method also involves a lot of clicking. What is the fastest way to change a file extension?

Update
For completness, here the fastest way I have figured out until now:

  • Right click in the folder while holding down the Shift key.
  • Select Open command window here from the menu.
  • Use dir to list the currrent file name with its extension.
  • Enter rename [filename].[oldExtension] [filename].[newExtension].

Solution 1:

You could try cmdHere (Power Toys) and then using move filename.jpg filename.jpeg. Or you could Press F2 for rename (If it works with disabled extensions!).

But you should enable extensions anyway. As i would think it is a security risk to have them disabled. An attacker could send you an file like "Really Important Filename".exe With an standard icon included in the .exe making it look like an Word, Excel or Text Document. You might then click it unaware of the .exe file format. THIS is an EVIL feature of Windows.

Solution 2:

I would recommend using the command-prompt as well, but with either of two different methods.

    • Open a command-prompt (I like to set the shortcut in Start->Accessories to have a hotkey like Ctrl+Alt+P to make it quick and easy, though Start->Run->cmd.exe works just as well)
    • Type ren "
    • Drag-and-drop the file in question to the command-prompt window
    • type " " (there’s a space between the quotes)
    • Drag-and-drop the file again
    • Press Backspace and change the extension as desired
    • type "
    • Press Enter
    • Close command-prompt

It looks like a lot, but it is actually not and takes about three or so seconds to do (editing the extension is the most time consuming part).

  1. (supposed to be 2, markdown limitation)
    • Install a program like Kai Li’us CmdOpen (I prefer this to the older Microsoft PowerToys one because it supports elevated prompts and has the source available)
    • Open a command-prompt in the folder where the file in question is contained (right-click on the window where the file is located and press ‘A’ or select Open command prompt
    • Press Tab a few times until the desired filename is displayed
    • Press Space
    • Press Tab again until the filename is displayed again
    • Edit extension
    • Press Enter

This method is also pretty quick, but if there are a lot of files in the folder, using method one is faster.