I have found that I can execute any file with the following code:
Dim oProcStart As New ProcessStartInfo
oProcStart.FileName = "C:\SomeFileOfUnknownType"
Process.Start(oProcStart)
Of course, the program that runs will be the program that is associated with the extension of the file.
At some latter point, I would like to request that the file that is opened be closed (the process be gracefully terminated).
How can I stop an external process that I have started?
-Ken
Dim oProcStart As New ProcessStartInfo
oProcStart.FileName = "C:\SomeFileOfUnknownType"
Process.Start(oProcStart)
Of course, the program that runs will be the program that is associated with the extension of the file.
At some latter point, I would like to request that the file that is opened be closed (the process be gracefully terminated).
How can I stop an external process that I have started?
-Ken