473,573 Members | 4,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# starting Opera process

3 New Member
I want to start in C# a process of Opera web browser with a given URL.
I'm using Windows Mobile 5 and Opera 9.5 Beta
Ive tried the following code (working of Internet Explorer)
Expand|Select|Wrap|Line Numbers
  1. System.Diagnostics.Process proc = new System.Diagnostics.Process();
  2. proc.StartInfo.FileName = "iexplore";
  3. proc.StartInfo.Arguments = "http://www.google.com";
  4. proc.Start();
I've tried to change "iexplore" in "opera" or "opera.exe" but no success at all.
Can you please give me a hand?
Dec 4 '08 #1
7 5932
750 Recognized Expert Contributor
Expand|Select|Wrap|Line Numbers
  1. Process.Start("firefox.exe", "http://www.google.com");
  2. //or specify path
  3. //Process.Start(@"C:\Program Files\Mozilla Firefox\firefox.exe", "http://www.google.com");
  5. //OR 
  6. ProcessStartInfo ind = new ProcessStartInfo("firefox.exe", "http://www.google.com");
  7. //ProcessStartInfo ind = new ProcessStartInfo(@"C:\Program Files\Mozilla Firefox\firefox.exe", "http://www.google.com");
  8.   Process.Start(ind);
Dec 4 '08 #2
Curtis Rutland
3,256 Recognized Expert Specialist
The method you are using is correct, but the file names your are using seem to be wrong.

You're going to have to find the path and name of the executable file and use the full path and name.
Dec 4 '08 #3
9,735 Recognized Expert Moderator Expert
By default, the path to the Opera browser is:

C:\Program Files\Opera\ope ra.exe
Dec 4 '08 #4
7,872 Recognized Expert Expert
So then on a mobile device it would probably be
\Program Files\Opera\ope ra.exe
Dec 4 '08 #5
Curtis Rutland
3,256 Recognized Expert Specialist
Moved to Mobile Development.
Dec 4 '08 #6
9,735 Recognized Expert Moderator Expert
Aha! Good catch Plater :)
Dec 4 '08 #7
648 Recognized Expert Contributor
I wondered where this post came from, just realised you moved it. Did the above solution of kicking off the \Program Files\Opera\Ope ra.exe work?
Dec 4 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

by: barry womb | last post by:
Hello- I've created a page and have a table with a no repeating background. Works in all but Opera. Any ideas? Here's the style sheet: ..tdnavbg { background-color: #000000; background-image: url(images/nav_bg.gif);
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am starting is that it has a welcome window first which gets displayed and then the real windows after a while,in other words it means that the...
by: Howard Jess | last post by:
In a javascript-heavy page, an iframe is created to hold information from a secondary server CGI process, and the resulting data (in the iframe) is used to rewrite some content in the main page. To do this transparently, the iframe is created with style="display: none". This scheme works great in IE and Mozilla; but Opera apparently doesn't...
by: Christopher | last post by:
One of our ASP.NET Pages is starting a new Process using the Process object. When the process starts, it is started under the ASPNET User. We tried editing the web.config file and the machine.config to operate under other user accounts but our dynamically started process still starts under ASPNET. How do you programatically start a process...
by: Christoph Schneegans | last post by:
Hi! Okay, so positions on "text/html" XHTML are totally contradicting. Anyway! I hope there's more consensus about "application/xml" XHTML. I've recently learned that Opera 9.0b2 does not only evaluate HTTP header, BOM and XML declaration to determine the character encoding of an XHTML document sent as "application/xml", but also the...
by: Marri | last post by:
I'm working on a fairly simple website, built in PHP, to allow members to post their old items for sale. I've been beta testing it for two weeks, and everything has worked perfectly so far- but then one of my beta testers came to tell me it's not working properly in Opera. I know many people here have said that problems in PHP with different...
by: cypher543 | last post by:
This has been driving me insane for the last hour or so. I have search everywhere, and nothing works. I am trying to use the subprocess module to run a program and get its output line by line. But, it always waits for the process to terminate and then return the output all at once. Can someone please show me some code that actually works for...
by: kevin.a.sweeney | last post by:
I would like to open an application from a hyperlink on a webpage. 1. the webpage is located on my local machine. 2. the application is located on my local machine. 3. the application will run on my local machine. In other words... The WEB is really not involved. What I have so far works with a Netscape Browser but what I really need...
by: ropo | last post by:
I have a .NET 2.0 app that at one point starts an old MFC App through System.Diagnostics.Process.Start from a model form/ I then wait for it to finish by calling StartedProcess.WaitForExit(); Problem is: When I close the MFC app if there is an window behind my .NET app it will come to the front leaving my .NET app at the back.
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...
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...
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. ...
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...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
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...
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...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
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.