Skip to content

Uses Windows Restart Manager APIs to find processes locking one or multiple files.

License

Notifications You must be signed in to change notification settings

modulexcite/LockCheck

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LockCheck

Uses Windows Restart Manager APIs to find processes locking one or multiple files.

The code is CodeAnalysis clean (using Microsoft recommended rules) and has been tested on Windows 7 and Windows 10 (both x64). It is actually meant to be included in a library or such, but for quick tests a "Main" method is provied.

Example:

  • Open/create a file "C:\temp\foo.xlsx" in Microsoft Excel - you can use any other application that actually locks a file, of course.

  • Run the following command:

     LockCheck.exe c:\temp\foo.xlsx
    
  • The ouput should be like

      Process ID        : 1296
      Process Start Time: Saturday, 24th October 2015 16:17:58
      Application Type  : MainWindow
      Application Status: Running
      Application Name  : Microsoft Excel
      TS Session ID     : 1
    

About

Uses Windows Restart Manager APIs to find processes locking one or multiple files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%