Sometimes, you may encounter a problem renaming your files. Every time you try to rename a file, your computer may show an error that the file is being used by another person or program.
Although this error is self explanatory, lack of information about the person or program using your files can cause a lot of confusion. In this tutorial, we will find out how to prevent recurrence of this issue and what are other ways to securely rename your files without errors.
Method 1: Close Open Programs
Exit any open programs that you may have. It shall fix file renaming issues if one of the open programs is using your file.
Method 2: Exit Corresponding Process
If you know the specific process locking your file, you may terminate the process using Task Manager. Here’s how:
- Right-click the Taskbar.
- Select Task Manager.
- Click on More details.
- Click on the Details tab.
- Right-click the process locking your files, select End Task.
Method 2: Restart your Computer
Restart your PC to remove the lock on your file. When your PC restarts, only the startup programs and services will be loaded. Keep in mind, if a startup program is using your file, you will continue to encounter the same issue again.
Method 3: Boot into Safe Mode
Safe Mode starts your computer in a basic state with minimal processes and services. It loads only those processes and services required for the smooth functioning of your operating system. Booting your computer into safe mode will prevent your file renaming issue.
- Click on Start, select Settings.
- Click on Update & Security > Recovery.
- Click on Restart Now under the Advanced Startup category.
- Your computer will shut down and restart on its own.
- When you’re prompted to choose an action, click on Troubleshoot.
- Select Advanced Options > Startup Settings.
- Click on the Restart button to restart your computer.
- As soon as your computer restarts, press the F5 key of your keyboard to boot into Safe Mode with Networking.
Method 4: Using Process Explorer
In order to rename your file without encountering the error, you will need to find the underlying program or process using your file.
- Right-click This PC and select Properties.
- Look for your system type (32-bit or 64-bit).
- Download Process Explorer from Microsoft.
- After downloading Process Explorer, run a version corresponding to your system type with elevated access.
- Right-click procexp.exe if you’re using a 32-bit Windows and select Run as administrator.
- Right-click procexp64.exe if you’re using a 64-bit Windows and select Run as administrator.
- Click on the Find menu, select Find a handle or DLL.
- In the Handle or DLL Substring textfield, type name of the file you’re unable to rename. For example: invoice.pdf
- Click on Search.
- The Process Explorer Search dialog box will display the program or processes using the locked file.
- Select the corresponding process and press the Delete key of your keyboard to abruptly end it.
Batch Rename Files
After resolving the error, you may want to batch rename your files. If your files are scattered across multiple drives, folders, sub-folders, a batch renaming tool will be a handy solution.
Easy File Renamer is a popular batch renaming tool that has a beginner-friendly and nicely designed user interface. It makes the file renaming process simple and quicker. EFR comes with dozens of renaming patterns so that you can rename your files in different styles and formats. You don’t have to learn complex commands or worry about accidentally deleting your data using Command Prompt.
- Preferable for both both beginners/ non-tech savvy users and advanced users
- Supports a wide variety of file renaming patterns- for example, new name, remove text, replace text, trim text, swap characters, add prefix/ suffix, add numbering, insert text at specific position, change text case (upper, lower case or title case), swap text, etc.
- Add files from multiple folders for renaming
- Many file renaming patterns to choose from
- Batch rename files from multiple folders, sub-folders with One-Click
- Complimentary subscription to a complimentary subscription to rename Web-based files from cloud services such as Dropbox, OneDrive, Google Drive, etc
- Batch copy and move files
- Edit mp3 file tags with a few clicks
- In-house file previewing
- Download and install Easy File Renamer.
- Click on the System Renamer tab.
- Click on Add Files.
- Select the files you want to rename. You may use Ctrl + A to select all the files in a folder.
- Click on Open.
- Your files will be loaded into a list box based interface.
- Select a file renaming pattern on the left-hand side panel of the application.
- Click on Add Rule to apply your rule.
- You can add multiple patterns of your choice.
- Click on the Rename button to proceed.