Wednesday, 21 August 2013

Process.Start opens multiple instances

Process.Start opens multiple instances

I have the following code:
Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86)
+ "\\Internet Explorer\\iexplore.exe", "http:\\\\someurl.com");
It runs fine, but opens two instances of IE (Needless to say, I'm
expecting one). Is there something obvious I'm missing here, or is it a
more detailed issue? I'm using Visual C# 2010 Express if that matters, and
.NET 4 Client Profile.

No comments:

Post a Comment