helpcenter.gsx.com Open in urlscan Pro
104.16.53.111  Public Scan

URL: https://helpcenter.gsx.com/hc/en-us/articles/115015880627-how-to-identify-which-windows-process-is-locking-a-file-or-folder
Submission: On October 04 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

Welcome to the GSX Help Center
Sign in www.gsx.com | log in | register






 1. GSX HELP CENTER
 2. GSX GIZMO

Last update: Thursday at 05:02. Author: GSX Support (Yann) .



HOW TO IDENTIFY WHICH WINDOWS PROCESS IS LOCKING A FILE OR FOLDER

While attempting to delete, move, or rename a file or folder you get a Windows
warning message; the Operating System refuses to complete the operation.

This article helps identifying the process that currently has a handle on the
file or folder you are attempting a maintenance operation on.

Sysinternals Process Explorer | Windows



SYMPTOMS

When trying to delete, move, or rename a file you get a Windows system warning
message:

 * "Cannot delete file: Access is denied".
 * "There has been a sharing violation".
 * "The source or destination file may be in use".
 * "The file is in use by another program or user".
 * "Make sure the disk is not full or write-protected and that the file is not
   currently in use".


HOW TO SOLVE THE ISSUE

One of the easiest ways to handle locked files or folders is to use Microsoft
Sysinternals Process Explorer. 


IDENTIFY WHAT PROGRAM IS USING A FILE

Using Process Explorer there is a simple way to find the program:

 1. Open Process Explorer
    * Running as administrator.
 2. On the toolbar, find the gunsight icon on the right.
 3. Drag the icon and drop it on the open file or folder that is locked.
 4. The executable that is using the file will be highlighted in the Process
    Explorer main display list.


IDENTIFY WHICH HANDLE OR DLL IS USING A FILE

 1. Open Process Explorer
    * Running as administrator.
 2. Enter the keyboard shortcut Ctrl+F.
    * Alternatively, click the “Find” menu and select “Find a Handle or DLL”.
 3. A search dialog box will open.
 4. Type in the name of the locked file or other file of interest.
    * Partial names are usually sufficient.
 5. Click the button “Search”.
 6. A list will be generated.
    * There may be a number of entries.


RELEASE THE LOCK ON THE FILE OR FOLDER

To release the lock on the file you are attempting the maintenance operation on,
you will need to kill the appropriate process. An individual program or handle
in the list provided by Process Explorer can be killed by:

 1. Selecting the process/handle/program entry.
    
 2. Pressing the delete key.

Proceed with care when deleting handles as this may generate erratic behavior
and instabilities may occur.


DOWNLOADS

You can download Sysinternals Process Explorer here.





WAS THIS ARTICLE HELPFUL?


302 out of 873 found this helpful





RELATED ARTICLES

 * How to identify the Cipher used by an HTTPS Connection
 * How to Generate a Self-Signed Certificate and Private Key using OpenSSL
 * How To Restart Windows Services Using Task Scheduler
 * How to Check What Version of .NET Framework 4 is Installed on Your Computer
 * How to Clean Folder Contents when a Filename or File Path is to long






NOT FINDING WHAT YOU ARE LOOKING FOR?


HAVE MORE QUESTIONS? SUBMIT A REQUEST


     

GSX Solutions© 2020 | Legal | License Agreement | Privacy Policy