cannot delete a folder as it is taken by svchost....


  1. Posts : 33
    windows 10 pro
       #1

    cannot delete a folder as it is taken by svchost....


    Cannot delete a folder [ The Action Can't be Completed Because the Folder or a File in it is Open ] resmon identified it is taken by svchost.exe (LocalService –p ) PID = 9876
    As the folder is nothing but a storage for other folders with ttf fonts , I don´t see the reason to be in use by svchost. Any suggestion on what’s going on around here ? Thanks.

    PS.: by the way on the resource monitor after having clicked end process once I won´t be able to do it again for the other folders because end process menu no longer works


    Windows 10 PRO
    1709
    16299.125


      My Computer


  2. Posts : 42,983
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2
      My Computers


  3. Posts : 33
    windows 10 pro
    Thread Starter
       #3

    Nope!
    Installed LockHunter ran it to unlock the folder and :
    "Cannot unlock the file because some processes are still locking..try to unlock the file again ... The process is the damn svchost.exe (Service : FontCache ) and System PID: 4.
    I´ve never seen a ttf font folder do that.
      My Computer


  4. Posts : 42,983
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    Thank you for your reply.

    Those programs allow you to specify that the folder be deleted on restart.

    I particularly like Emco Unlockit in that respect.

    Otherwise boot to a command prompt and do it from there.

    There are other threads about deleting locked folders if you care to search tenforums.

    Or you can boot from a live boot disk and then delete it.
      My Computers


  5. Posts : 33
    windows 10 pro
    Thread Starter
       #5

    Yeah I thought to boot on safe mode and then move the folder.
    But still there is no explanation about what happened to a ttf font folder to behave in such weird way.
    Thank you for your answer
      My Computer


  6. Posts : 5,330
    Windows 11 Pro 64-bit
       #6

    Disable and stop Windows Font Cache Service from Services console.
      My Computer


  7. Posts : 42,983
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #7

    Ron Wolpa said:
    Yeah I thought to boot on safe mode and then move the folder.
    But still there is no explanation about what happened to a ttf font folder to behave in such weird way.
    Thank you for your answer
    Thank you for your reply.

    No, that's completely unrelated to what I said. Do you notice I highighted
    restart? I.e. use the program to have the file deleted when your PC restarts.

    Look... here's the option it offers:
    cannot delete a folder as it is taken by svchost....-untitled.png

    Do you see where I've highlighted restart?
      My Computers


  8. Posts : 33
    windows 10 pro
    Thread Starter
       #8

    Yes thanks ! But I don´t want to delete the folder , I intend to move the folder into another location.
      My Computer


  9. Posts : 42,983
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #9

    Then may I ask why your first post doesn't mention that?? The title says 'delete'.

    You can freely move the folder if you
    - boot to a command prompt
    - boot from a live boot disk

    or see
    Download EMCO MoveOnBoot - MajorGeeks
    free
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:17.
Find Us




Windows 10 Forums