locked
Files are used by another program RRS feed

  • General discussion

  • Hi all,

    Sometimes I want to delete or move some files, but the action cannot be completed because another program already uses the files. A dialog box that says that the file is being used by another program appears, is there a way to know what is the program or service that uses it? An example is shown with the image below.

    Thank you!


    Hani Draidi GIS Engineer

    Tuesday, October 21, 2014 8:02 AM

All replies

  • Have a look at Process Explorer (procexp.exe).

    From it's introduction:

    Ever wondered which program has a particular file or directory open? Now you can find out.

    To find out what process is using a specific file follow these steps:

    1. Go to FindFind Handle or DLL.. or simply press <kbd style="margin:0px 0.1em;padding:0.1em 0.6em;border:1px solid rgb(204, 204, 204);font-size:11px;vertical-align:baseline;font-family:Arial, Helvetica, sans-serif;color:#333333;-webkit-box-shadow:rgba(0, 0, 0, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset;box-shadow:rgba(0, 0, 0, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline-block;text-shadow:rgb(255, 255, 255) 0px 1px 0px;line-height:1.4;white-space:nowrap;background:rgb(247, 247, 247);">Ctrl</kbd>+<kbd style="margin:0px 0.1em;padding:0.1em 0.6em;border:1px solid rgb(204, 204, 204);font-size:11px;vertical-align:baseline;font-family:Arial, Helvetica, sans-serif;color:#333333;-webkit-box-shadow:rgba(0, 0, 0, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset;box-shadow:rgba(0, 0, 0, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline-block;text-shadow:rgb(255, 255, 255) 0px 1px 0px;line-height:1.4;white-space:nowrap;background:rgb(247, 247, 247);">F</kbd>.

      enter image description here

    2. Enter the name of the file and press Search.

      enter image description here

    3. Process Explorer will list all processes that have a handle to the file open. Click on an entry to focus the process in the main window.

      enter image description here

    4. Optionally, you can then even close the handle manually through the lower pane (<kbd style="margin:0px 0.1em;padding:0.1em 0.6em;border:1px solid rgb(204, 204, 204);font-size:11px;vertical-align:baseline;font-family:Arial, Helvetica, sans-serif;color:#333333;-webkit-box-shadow:rgba(0, 0, 0, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset;box-shadow:rgba(0, 0, 0, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline-block;text-shadow:rgb(255, 255, 255) 0px 1px 0px;line-height:1.4;white-space:nowrap;background:rgb(247, 247, 247);">Ctrl</kbd>+<kbd style="margin:0px 0.1em;padding:0.1em 0.6em;border:1px solid rgb(204, 204, 204);font-size:11px;vertical-align:baseline;font-family:Arial, Helvetica, sans-serif;color:#333333;-webkit-box-shadow:rgba(0, 0, 0, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset;box-shadow:rgba(0, 0, 0, 0.2) 0px 1px 0px, rgb(255, 255, 255) 0px 0px 0px 2px inset;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;display:inline-block;text-shadow:rgb(255, 255, 255) 0px 1px 0px;line-height:1.4;white-space:nowrap;background:rgb(247, 247, 247);">L</kbd>):

      enter image description here

    http://technet.microsoft.com/en-us/sysinternals/bb896653

    Tuesday, October 21, 2014 11:46 AM
  • Fantastic! Thank you very much Deric

    Hani Draidi GIS Engineer

    Sunday, October 26, 2014 9:25 AM