473,791 Members | 2,853 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\iexplo re.exe";
string strArguments = "http://www.google.com/";

Process ExternalURL = new Process();
ExternalURL.Sta rtInfo.FileName = @strFilename;
ExternalURL.Sta rtInfo.Argument s = strArguments;
ExternalURL.Sta rtInfo.WindowSt yle = ProcessWindowSt yle.Normal;
ExternalURL.Sta rtInfo.UseShell Execute = true;
ExternalURL.Sta rt();
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 1278
Hi,

Try to set UseShellExecute to "false"

OR

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

--
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********@hot mail.com> wrote in message
news:Xn******** *************** ***********@207 .46.248.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\iexplo re.exe";
string strArguments = "http://www.google.com/";

Process ExternalURL = new Process();
ExternalURL.Sta rtInfo.FileName = @strFilename;
ExternalURL.Sta rtInfo.Argument s = strArguments;
ExternalURL.Sta rtInfo.WindowSt yle = ProcessWindowSt yle.Normal;
ExternalURL.Sta rtInfo.UseShell Execute = true;
ExternalURL.Sta rt();
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.c om> wrote
in news:er******** ******@TK2MSFTN GP14.phx.gbl:
Hi,

Try to set UseShellExecute to "false"

OR

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


Hi!

Thanks for your answer,

but if i use "iexplore.e xe" 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.e xe" and false for UseShellExecute i get "File Not
Found" Exception and it won't work either.
You should EITHER use "iexplore.e xe" (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********@hot mail.com> wrote in message
news:Xn******** *************** ***********@207 .46.248.16... "Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.c om> wrote
in news:er******** ******@TK2MSFTN GP14.phx.gbl:
Hi,

Try to set UseShellExecute to "false"

OR

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


Hi!

Thanks for your answer,

but if i use "iexplore.e xe" 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
4199
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 the log: 1 4:31:10 PM BlockedConfigAp:1340 IRP_MJ_CREATE A: DASD SUCCESS Attributes: Any Options: Open 2 4:31:11 PM BlockedConfigAp:1340 IRP_MJ_DEVICE_CONTROL A: DASD INVALID DEVICE REQUEST IOCTL: 0x560000 3 4:31:11 PM BlockedConfigAp:1340...
0
997
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 calls process B and waits it to finish. B opens a connection, update the data, closes the connection and exits.
2
12064
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 parameters? Could you give me the code lines with this example? Thanks for your answer.
7
6865
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 some proccess on local machine and do something. This works perfect on the machine (XP) where I have been developing this app!
1
2170
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 total), user controls and straight html content. I am very strict about only using server-side controls when absolutely necessary. I have output caching turned on every page and user control; we do not hit any databases; a couple of pages use...
3
1403
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 pages process fine (by spinning globe and 100% status bar. But then there is a dead wait time while it must be processing the request.redirect. Server 2003 IIS 6.0 Framework 1.1.4322.573
0
2190
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 command button in the application. So the code goes something like this: psiBat = New ProcessStartInfo(arrRun.Item(0)(1)) psiBat.WindowStyle = ProcessWindowStyle.Hidden
2
1098
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 = "c:\test.txt" myProcess = Process.Start(sInfo) ----------- works fine, opens in notepad, myProcess has processdata in it. However, if I try to open an excel file, the file opens in excel, but Process.Start returns Nothing to myProcess. sinfo.FileName...
5
11407
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 script, which uses the time.sleep() to sleep for a specified amount of time. This (the use of time.sleep()) seems to have the side effect of the output not being added to the RichTextBox until the process has finished, which it won't do as the...
0
9669
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10426
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10207
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9993
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6776
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3713
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.