8

I have about 190 Adobe PDF files that contain Cisco CCNA Labs. I have the files in a folder on my desktop called "CCNA Labs". For some reason, I can rename the files without any issues, but as soon as I try to delete any of the files in this directory I get the following error in Windows Explorer

enter image description here

The thing is, I do not have any of these files open in Adobe Acrobat. Acrobat is closed, and the executable is not running when I look at my process viewer. I have checked the permissions on the folder containing the PDF Documents

enter image description here

Anyone have any idea why I keep getting this error in Windows 10 when I try to delete these PDF documents that I can rename but not delete due to the "file is open in another program" error?

21

To find and close the process that has the file open, do this:

  1. Open resource monitor (Windows +R to open Run then type Resmon.exe)
  2. Open the CPU tab in the monitor
  3. Select all processes (not sure if this is needed, you can probably just search for the handle)
  4. Expand "associated handles"
  5. Search for the file you need
  6. Close the process that has the handle

Answer stolen from here https://www.reddit.com/r/AdviceAnimals/comments/2dvbva/the_action_cant_be_completed_because_the_folder/cjtmywc

  • I didn't know this could be done using Windows alone. However, doing this always requires administrative privileges. It is possible to search for handles using Process Explorer or Prcoess Hacker instead. (CTRL+F button combination.) – user477799 Feb 19 '17 at 10:32
  • Just checked and no, you don't need to select all processes in the CPU tab (step 3) – doubleDown Dec 22 '18 at 4:50
8

It turns out that I could not delete the PDFs because they were open - in the file preview window in Windows Explorer! Turn off file previews in Windows Explorer if you run into this issue with PDFs that you cannot delete.

0

I'm no expert, but I have found that the message occurs when I have a mapped folder where the file or folder that I wanted to rename was within the mapped one. I disconnected the mapped folder and was able to rename, delete or move the files normally, then I remapped the same folder. It worked!

protected by Community Dec 25 '17 at 23:09

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.