This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13091|Reply: 0

[windows] How to find out which process PID a file is occupied

[Copy link]
Posted on 1/19/2017 5:31:37 PM | | | |
C:\Windows\system32>openfiles /?

OPENFILES /parameter [arguments]

Description:
    Allows administrators to list or disconnect open files and folders on the system.

Parameter list:
    /Disconnect breaks the connection of at least one open file.

    /Query displays all files opened locally or from shared folders.

    /Local Enables/Disables the display of locally opened files.

    /?               Show this help message.

Example:
    OPENFILES /Disconnect /?
    OPENFILES /Query /?
    OPENFILES /Local /?

C:\Windows\system32>openfiles /local /?

OPENFILES /Local [ ON | OFF ]

Description:
    Allows system administrators to enable or disable the system global flag "Maintain Object List". The list records
    Local file processing. Changes made to this command-line switch only take effect after the system is restarted.

    Note: Enabling this flag will slow down system performance.

Parameter list:
    /?                     Show this help message.

Example:
    OPENFILES /Local /?
    OPENFILES /Local
    OPENFILES /Local ON
    OPENFILES /Local OFF


At the same time, press and hold "win+R" on the keyboard to bring up the run, or directly click the "Start" --"Run" command in the lower left corner of the system.
At the command prompt, execute the "openfiles /local on" string command (i.e., enter the above string command and press Enter to execute), and then the system will automatically open a global flag.

After restarting the system,


Click "Start" - "Run" input - "cmd" - "openfiles" command to display the list of programs corresponding to the currently opened file, find the specific worker process that occupies the file, and then open the process tab page in the system task manager to end the specific worker that occupies the file.





Previous:Quickly understand C# Advanced Concepts (1) Delegate delegation
Next:WinMTR-v092 Network Test Tool Download
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com