How to rename a file in case of error. F2 shortcut key on Windows (+ mass rename all files at once // in order)

New name

User Question

Salvation.

Tell me how to rename multiple files, if when trying to do so an error occurs (allegedly not enough rights). I am a single PC user, how is this possible? ..

Salvation.

Well, depending on the files … without a specific screen with an error and filenames – it is not always possible to answer such questions.

Nevertheless, in this note I have decided to collect several of them. cases of possible “development of events” (combining all typical questions at once).

*

The content of the article

Many file renaming options

General case (shortcut key)

So…

The most obvious and easiest way to rename a file in Windows is to do double mouse click and enter a new name (if that doesn’t work, try restarting your PC and repeat the process).

Additionally, you can:

  1. select the file and press the shortcut key F2 (on laptops can be: Fn+F2Where Ctrl+Fn+F2);
  2. hurry right mouse button by file – select from the menu “Rename”and enter a new name.
Renaming methods

Renaming methods

*

If an error occurs

A lot here depends on what the error is… 👀 Most often there are questions with an attempt to rename system files (and it is better not to “touch” them), or if you yourself logged into the OS not under administrator.. .

A few tips below should help you…

*

📌 Use a file unblocker

There is a small utility (LockHunter // link to the official file. website), which can help unlock the file (for example, if an error occurs when trying to rename or delete it).

Its use is very simple – just right-click on the “problem” file and select one of the following actions from the menu:

  • Unlock Computing – unlock the file;
  • Delete it – delete a file;
  • Other – other actions with the file: for example, renaming, moving, etc. ;
  • exit — close the utility.
Screenshot of LockHunter

Screenshot of LockHunter

*

📌 Using the command line

The command line can help with explorer crashes, when working with “problem” files, to automate routine processes via BAT files, etc. (of course, using it like this continuously isn’t very practical!).

*

How to rename the files it contains:

  1. first you need to run 📌command prompt as administrator;
  2. then open the folder in explorer that contains the “problem” file (the one that can’t be renamed in the usual way);
  3. at the top of the explorer, copy the file path (in my case: C:\Fraps);
  4. on the command line enter: rename C:\Fraps\ocomp.txt new_name.txt and press enter (or C:\Fraps\ocomp.txt – the file path and its old name, new_name.txt is the new file name).
Example Command Line - Rename

Example Command Line – Rename

Besidesdirectories can be renamed in the same way 👇 – the rename command is quite handy and “not fancy”.

The directory is renamed the same way

The directory is renamed the same way

A few more examples:

  1. rename C:\folder\1.txt 1.doc – instead of a file 1.txt will be new 1.doc (i.e. you can also change the extension!);
  2. rename C:\folder\*.txt *.bat – in the folder directory, change the extension of all text files to bat.

*

📌 With LiveCD

If you need to rename a system file or if you don’t have admin rights, I recommend getting a 📌LiveCD flash drive. For such cases – this is the plus!

After booting from it, you can do whatever you want with any file on the disk (just be careful, because you can easily rename system files too!).

What programs are on the disc

What programs are on the disk “Sagittarius …”

*

Bulk rename all files in a folder (in order: 1, 2, 3)

When using Windows 10/11 – mass file renaming is performed max. simple and fast:

  1. you need first enter the file and select multiple required files;
  2. then press the key F2 (or RMB and select the option “Rename”);
  3. enter the name for one of the files and click Enter – here all selected files will be renamed in order. See example below. 👇 By the way, if you press TONGUE – you can manually define a name for each of the selected files.
Bulk rename files in a folder (Windows 11)

Bulk rename files in a folder (Windows 11)

Another option is to use file commanders (personally I would recommend 📌Total Commader – a good helper when something “doesn’t work” with explorer…).

It is also not difficult to accomplish the task under discussion:

  • first need open desired directory and highlight files;
  • then go to the section “Rename files/batches” (or press the combination CTRL+M);
  • then enter the mask for the new filenames and confirm the operation (see some screenshots below to understand what it is and where to click 😉).
Bulk Rename - Total Commander

Bulk Rename – Total Commander

File name mask

File name mask

*

Other ways are welcome in the comments below…

That’s all for now, good luck!

👋

make a donation

dzen-ya

Useful software:

  • video montage
  • Video montage

  • Excellent software to create your first videos (all steps are step by step!).
    The video will make even a beginner!

  • optimization utility
  • computing accelerator

  • A program for cleaning Windows from “garbage” (deletes temporary files, speeds up the system, optimizes the registry).

Other entries: