Atunci când se lucrează pe Microsoft Windows, de câte ori ați văzut un mesaj spune că fișierul special pe care încercați să îl ștergeți este deja în uz, și că programul utilizând fișierul trebuie să fie oprit înainte ca Windows să vă permite să eliminați fișierul de pe PC ?
Enervant!! Nu-i aşa?
Ei bine, nu mai.
Aici sunt cele trei moduri de geniu pe care le puteți utiliza pentru a forța șterge un fișier care este în uz și Windows nu vă permite să-l eliminați în mod normal.
Această metodă funcționează cele mai multe ori. Tot ce trebuie să faceți este, forța termina programul care utilizează fișierul. Presupunând că știi deja ce program utilizează fișierul pe care doriți să îl eliminați, acesta este modul în care ștergeți fișierul:
Notă: Windows 7 este folosit aici ca un PC de referință.
Force terminating a process shuts down the entire program and you may lose any unsaved data that any other file that relies on the program may have. It is advisable to save all your work progress before proceeding.
1. On your desktop screen, right-click the taskbar.
2. From the context menu that appears, click Start Task Manager.
3. In the Task Manager box, if not already there, go to the Processes tab.
4. From the displayed list of running processes, right-click the one that you know is using the file that you want to delete.
5. From the context menu, click End Process or End Process Tree. (End process tree is clicked here.)
6. On the confirmation box that pops up, click the End process tree button from the bottom.
7. Once the process has been forcefully terminated, you can easily remove the file as it is no longer used until the process starts running again.
Note: In some cases you need to be quick in deleting the file after force terminating the process. This is because some processes are stubborn and even if you terminate them forcefully, they restart automatically after a few seconds.
This method requires you to open Command Prompt on your Windows PC. For the files used by some local processes (the processes that can be started and closed by a standard – non-administrator user account), opening Command Prompt on a standard user account would suffice. However if the file is used by any system process, the elevated Command Prompt must be initialized. An elevated Command Prompt is the command window that has all the administrator rights and all the administrative tasks can be performed via commands in its interface.
This is what you need to do:
Note: A Windows 7 PC is used in this example.
1. On your Windows PC, locate the folder that contains the file in use that you want to delete. (Do not enter into the folder.)
2. Shift + right-click the folder.
3. From the advanced context menu that appears, click Open command window here or press the W key on the keyboard.
Note: This method does not allow you to open an elevated command window.
Note: To start elevated Command Prompt, click the Start button, type CMD in the search box at the bottom of the Start menu, right-click CMD from the suggested programs’ list, click Run as administrator from the context menu, and on the User Account Control confirmation box, type the password for the admin account (or click Yes if Windows doesn’t ask you for the password) to provide your consent to continue. After the elevated command window opens up, you must use the DOS commands like CD and DIR to locate the directory where the file you want to delete is placed and to check the presence of the file respectively.
4. In the command window, type the DEL /F
Note: In the above command,
WARNING!! – A file deleted using the DEL command does not move it to the Recycle Bin but deletes it permanently. Use the DEL command with caution.
5. Once the file is deleted, you can close Command Prompt by clicking the Close button from the top-right corner of the window or by typing EXIT in the command window and pressing Enter.
Even though you can use any of the two methods described above to remove a file that is in use, a third-party tool such as Unlocker makes your task extremely simple. The best part is, Unlocker is a freeware and is absolutely free to download and use. This is how Unlocker works:
Note: A Windows 7 computer is used for reference.
1. Log on to your Windows PC.
2. Ensure that it is connected to the Internet.
3. Open any web browser of your choice and open your preferred search engine. (Google, Yahoo!, Bing, etc.)
4. Using the search engine, search for Unlocker.
5. Once found, download Unlocker’s installable file and install the program using the normal installation method, or get its portable version.
Note: Unlocker is installed on this reference PC.
6. After this, locate the file that you want to delete but is in use.
7. Right-click the file.
8. From the context menu that is displayed, click Unlocker.
9. On the User Account Control confirmation box, click Yes to provide your consent to continue launching the program.
10. On the displayed interface, from the available list of files in use, click to select the one that you want to unlock.
11. From the bottom of the interface, click Unlock to unlock the file while leaving the corresponding application open. Alternatively you can also click the Kill Process button to force terminate the running process that is responsible for engaging the file.
12. Once the file is unlocked, you can right-click the file and click Delete from the context menu.
13. Click Yes on the Delete File confirmation box when/if displayed.
Even if the file has been forcefully unlocked using any of the methods, it is moved to the Recycle Bin when deleted (except for when deleted using command line). That being said, restoring the file from the Recycle Bin is simple. This is what you need to do.
1. On your Windows desktop screen, double-click the Recycle Bin’s icon.
2. Once inside the Recycle Bin, right-click the file that you want to restore.
3. From the context menu, click Restore.
Note: If a file has been deleted permanently (e.g. when removed with the DEL command), you need an efficient file recovery software such as Wondershare Data Recovery to recover the file back.
Although the above mentioned tricks work almost every time, you must take utmost care while deleting any file that is in use. Deleting a wrong file may cause consequences like permanent or temporary system failure or data loss. To avoid this, before force deleting your files, make sure you have thoroughly verified the following:
It is very annoying to see the message with "the file cannot be deleted" when you try to get rid of the files you don't need anymore. In some cases, there are simple circumstances to avoid this issue. ...
This page introduce the best deleted file recovery software from Wondershare Data Recovery. ...
This page offer the top 10 undeleted freeware to help you recover lost files,Wondershare Data Recovery offer the specific tutorial for you. ...
This page offer the best solution to undeleted NTFS files,recover deleted NTFS files. ...
This article provides the easiest solution to have files that are older than X days deleted automatically or even manually. But this action, since it is performed in bulk can save quite a lot of time. ...
When you download many file from the internet, more often than not downloads come in with duplicated file. How to delete duplicated files on windows pc or mac? ...