Know which process locked a file
Due to ICON issue, I need to unlock .pq file and want to ensure that it is not locked by any other process. SysInternals tool (Process Explorer) is really helpful to find which processes are having lock on the file
- Download process explorer from Microsoft Site and run application
- Click ‘Find’ menu and choose ‘Find Handle or DLL’
- Type the file name. In my case, it was icon_531.pq and click Search button
- Search results will show the process, process id and application path having handle on the file