Process for IE opens not under Win2K

  • Thread starter Thread starter Matthias Kwiedor
  • Start date Start date
M

Matthias Kwiedor

Hello!

I wan't to open a Internet Explorer from C#. For this i read the Registry
Settings (to check the default Browser - won't do this just without that)

string strFilename = "c:\Program Files\Internet Explorer\iexplore.exe";
string strArguments = "http://www.google.com/";

Process ExternalURL = new Process();
ExternalURL.StartInfo.FileName = @strFilename;
ExternalURL.StartInfo.Arguments = strArguments;
ExternalURL.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
ExternalURL.StartInfo.UseShellExecute = true;
ExternalURL.Start();


This works with XP fine, but Win2K starts the iexplore.exe, which i can
find at the task manager, but won't show it and even doesn't display them
in task manager as application, neither shows it in the taskbar!

Maybe someone can help me out of this.

Thank you




Matthias
 
Hi,

Try to set UseShellExecute to "false"

OR

Do not specify the full path to the browser, just use "iexplore.exe"
 
Hi,

Try to set UseShellExecute to "false"

OR

Do not specify the full path to the browser, just use "iexplore.exe"

Hi!

Thanks for your answer,

but if i use "iexplore.exe" and false for UseShellExecute i get "File Not
Found" Exception and it won't work either.


Regards



Matthias
 
Matthias,
but if i use "iexplore.exe" and false for UseShellExecute i get "File Not
Found" Exception and it won't work either.

You should EITHER use "iexplore.exe" (without full path) OR set
UseShellExecute to "false"
 
Back
Top