473,511 Members | 12,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Process for IE opens not under Win2K

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
Nov 16 '05 #1
3 1262
Hi,

Try to set UseShellExecute to "false"

OR

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

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

"Matthias Kwiedor" <cr********@hotmail.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
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


Nov 16 '05 #2
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in news:er**************@TK2MSFTNGP14.phx.gbl:
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
Nov 16 '05 #3
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"

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

"Matthias Kwiedor" <cr********@hotmail.com> wrote in message
news:Xn**********************************@207.46.2 48.16... "Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in news:er**************@TK2MSFTNGP14.phx.gbl:
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


Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
4156
by: Ken Varn | last post by:
Everytime I call Process.GetCurrentProcess() the system goes out to the floppy drive. Why does this happen. I decided to use FileMon to get a log of what is happening when this occurs. Here is...
0
984
by: rami | last post by:
Hi I'm using ADO.Net and Access 2002. I have two processes written in vc++ .net, lets call them for, example A and B. A opens a connection, do something and closes the connection. Then A...
2
12034
by: adish11 | last post by:
I'm using Web Application and want to execute an MSDOS executable with some parameters like this example: software.exe -i -x How do I use System.Diagnostic.Process to execute this .exe with...
7
6842
by: Denis Brkljacic | last post by:
Hi, I have made some simple ASP.NET (C#) application, that somewhere uses this command: Process aProcesses = Process.GetProcesses(Environment.MachineName); This command purpose is to find...
1
2157
by: Cy Huckaba | last post by:
We are running our company website on a win2k server running .NET framework 1.0 and IIS 5. The pages consist of mostly static content built from a combination of custom controls (dll is only 148k...
3
1385
by: Marc Castrechini | last post by:
Forgive me on the lack of specifics but I am not a "server" guy. We just rolled our code out to a 2003 Server from Win2k Server and for some reason our pages are painfully slow. It appears the...
0
2164
by: WATYF | last post by:
This is my problem... I have some code that starts a Process and returns it to a variable... (prcBat) At any time while that process is running... I want to be able to Kill it by pressing a...
2
1088
by: | last post by:
I created a simple test app to start another app and get the process info (to see if it has exited). Heres my code: Dim sinfo As New ProcessStartInfo, myProcess As Process sinfo.FileName =...
5
11387
by: Mikko Nylén | last post by:
Hi!, I'm trying to read the output of an process as it gets executed and append the output to a RichTextBox. However, I have a little problem: the process I'm trying to execute is a Python...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.