Delete a file being used by another program




















In the menu that appears, select Lock File. To unlock, right-click the file and select Unlock File. When your account has administrator permissions, you can delete that stubborn file.

To delete a file simply type Del followed by the name of your file along with its extension in quotes. Your file will be immediately deleted. Once again if you file is not located in the users directory or within any of its sub-directories you would need to start the command prompt as an administrator. Type the rm command, a space, and then the name of the file you want to delete.

You can pass more than one filename to rm. Doing so deletes all of the specified files. To remove a directory that is not empty, use the rm command with the -r option for recursive deletion. Be very careful with this command, because using the rm -r command will delete not only everything in the named directory, but also everything in its subdirectories. Once the file is located, right-click on it and choose properties and remove uncheck all the attributes of the file or folder.

Make a note of the file location. Open a Command Prompt Window. To navigate to the file directory of your file in use, enter cd [directory path you copied] and hit Enter.

Before we can proceed to force delete the file in use, we have to temporarily kill the File Explorer process. This will cause your Taskbar, wallpaper, and open folders to disappear. But don't worry, you can restart File Explorer again and get everything back. Return to the Command Prompt.

Enter this command to delete the file, replacing everything between the quotes with your actual file name:. This should restore your desktop to its usual appearance. Sometimes, the file in use remains locked, even though it shouldn't be. If trying to delete it through the Command Prompt didn't work or if that task is too daunting, use one of these tools. Microsoft's Process Explorer is a more powerful File Explorer.

It doesn't just list all running processes, it can also show you which process took your file hostage. You can't close the process from the search window, but you can use Process Explorer or Windows Task Manager to close the offending application.

Unlocker used to add itself to the Windows context menu, meaning you could right-click the file in use and unlock it via the context menu. However, you'll now need to do a little more work in Windows 10 to get Unlocker working. In Windows 10, launch Unlocker, browse for the file, select the file, and click OK. Unlocker will look and if found remove locking handles. Even if it does not find a handle, you can use Unlocker to Delete, Rename, or Move the file.

This error message occurs when the folder or files in the folder are currently used by Windows or another program running. To successfully delete this file, try following the steps. Try waiting a few moments and then deleting the file again. Although it isn't typical, sometimes a program may encounter an issue, which makes it slower to close.

Then, name the notepad by the same title including the extension name of the AVI file you want to remove and replace the file. At this time, you will find that the file size becomes 0 KB, so now you can erase it with Delete order. Way 2: Create a new folder in the same directory of the AVI file and restart the computer.

After reboot, select the new folder, press Ctrl key and the AVI file at the same time. Then execute Delete.

Way 3: Change the extension name of the AVI file into any other invalid document type, and carry out Delete. Way 4: Start the media player which played the AVI file, open another file in it, and delete the file which you would like to omit. This article was helpful. Before you continue to delete a file in use by another program with the professional methods, you can try these simple operations: Close all the programs or restart the computer.

Run the antivirus software to check whether there is a virus on your computer.



0コメント

  • 1000 / 1000