Windows – How to know which file is open in Windows from command line

command linewindows

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?

Best Answer

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.