I would like to know which file is open in Windows from command line. In linux we have command lsof for that purpose. Is there any command in Windows like that?

1

2 Answers

Are you referring to current running processes? That would be: tasklist

If you want to view running processes of the current user:

tasklist /FI "username eq user"

Change user and put the current username.

9

If you want a command line tool, the Handle utility from SysInternals does this. For a GUI tool, check out Process Monitor.

6

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy