Question: how to check if a file is locked in windows server?
Answer: Open Process Explorer. Running as administrator. Enter the keyboard shortcut Ctrl+F. ...  A search dialog box will open. Type in the name of the locked file or other file of interest. ...  Click the button “Search”. A list will be generated.