How do I know which file is open in Windows from command line?

Solution 1:

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