Problem:
What is the equivalent of the wholock utility available on Linux/UNIX systems with Server Express and Visual COBOL in Windows?
The wholock utility is used on Linux/UNIX systems to report what process has a lock on a file.
Resolution:
The wholock utility is not available in Net Express and Visual COBOL on Windows, but there are equivalent third party tools, such as Process Explorer, Process Monitor, WhoLockMe, etc.
For instance, here are the steps to determine the process that has a lock on a file with Process Explorer, which is a free Microsoft utility:
-
Launch Process Explorer
-
Hit Ctrl F (or select Find a Handle or DLL under the Find menu)
-
Enter the full name or part of the name of the data file
-
Click Search from the Search dialog
It should report the name of the process and its Process ID in the search result.