Is there a way do get a list of open files for a process using WMIC?
Yes, there are sysinternals like
HANDLE.EXE that can do this, but you have to get a copy, but more importantly if you are scripting with it and want to distribute the script, you would have to distribute the utility too. That may involve licensing problems.
But WMIC is pretty much already distributed.
HANDLE.EXE may be querying WMI information under the hood, but I don't know. Certainly the
Win32_Process class seems involved somehow. If so, WMIC should be able to get at it too. How? Or is
HANDLE.EXE accessing other things than WMI information?