Hi,
If I open a specific program, using the following:
then I can access the pid for that process using myProcess.id, and use it to manipulate the process.
If however I just specify a file or URL I want to open:
Then although the file / URL is handled by the default application and opens perfectly, I do not get a pid returned.
Is there any way around this, such that I can use the ddefault progam but still get a pid, or am I stuck with explicitly stating the program to use each time?
Cheers
If I open a specific program, using the following:
Code:
Dim myProcess As System.Diagnostics.Process = System.Diagnostics.Process.Start("calc.exe")
then I can access the pid for that process using myProcess.id, and use it to manipulate the process.
If however I just specify a file or URL I want to open:
Code:
Dim myProcess As System.Diagnostics.Process = System.Diagnostics.Process.Start("someDoc.doc")
Then although the file / URL is handled by the default application and opens perfectly, I do not get a pid returned.
Is there any way around this, such that I can use the ddefault progam but still get a pid, or am I stuck with explicitly stating the program to use each time?
Cheers