S
SQACSharp
Hi,
I'm trying to get the complete path of all .exe returned by
Process.GetProcesses()
The problem is the "theprocess.MainModule.FileName"...sometime for
some process it return stange invalid path like this : \??\c:
\blablabla\myexe.exe
Is there any other way to get the correct path (without the \??\)
Here is the code :
//...
using System.Diagnostics;
//...
Process[] processlist = Process.GetProcesses();
foreach (Process theprocess in processlist)
{
MessageBox.Show(theprocess.MainModule.FileName);
}
Thanks!
I'm trying to get the complete path of all .exe returned by
Process.GetProcesses()
The problem is the "theprocess.MainModule.FileName"...sometime for
some process it return stange invalid path like this : \??\c:
\blablabla\myexe.exe
Is there any other way to get the correct path (without the \??\)
Here is the code :
//...
using System.Diagnostics;
//...
Process[] processlist = Process.GetProcesses();
foreach (Process theprocess in processlist)
{
MessageBox.Show(theprocess.MainModule.FileName);
}
Thanks!