how to find a process's open files, i.e. what files does each process have open?
Hi everyone,
Does any one know how to find out what files a process has open? for example if I have microsoft word open and it has a .doc file open, can I find what file is open by evaluating the Process object in c#? if not is there a better way to find out this info?
Basically I want to write an app that will show what windows programs i have open and allow me to close it, I also want to be able to reopen it from within my app and have the program open up the file(s) that it had open when i closed it.
Can anyone help with this?
thanks