I started the process not with the name of an app but rather with the name of a file supplied by the user so I don't know the name of the app that is used unless I can retrieve it from code.
-Ken
In general "Object reference not set to an Instance of an Object means the following:
Reference type variables store the address of an object (a 32 bit number that represents the actual memory location where the start of the object is stored) When you create a variable for a reference type...
Thanks for the reply,
When I start the process, I do not know the type of the file and therefore do not know the application used to open the file. What is "MyApp" supposed to be?
-Ken
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.