File Name
-
We can get all processes running in system by calling: Process.GetProcesses(); For each process, how to get the name of the file, that was executed to start this process? thank you very much in advance
For each
Process
object in the collection returned byProcess.GetProcesses()
, use the MainModule property. A process module represents a.dll or .exe file that is loaded into a particular process. The MainModule property lets you view information about the executable used to start the process, including the module name, file name, and module memory details.SkyWalker
-
For each
Process
object in the collection returned byProcess.GetProcesses()
, use the MainModule property. A process module represents a.dll or .exe file that is loaded into a particular process. The MainModule property lets you view information about the executable used to start the process, including the module name, file name, and module memory details.SkyWalker