473,788 Members | 2,705 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 5964
PRR
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");
  4.  
  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);
  9.  
  10.  
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
Frinavale
9,735 Recognized Expert Moderator Expert
@insertAlias
By default, the path to the Opera browser is:

C:\Program Files\Opera\ope ra.exe
Dec 4 '08 #4
Plater
7,872 Recognized Expert Expert
@Frinavale
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
Frinavale
9,735 Recognized Expert Moderator Expert
@Plater
Aha! Good catch Plater :)
Dec 4 '08 #7
markmcgookin
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

7
2215
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);
12
2954
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 process name is the same, but the handle I need to retrive is the one from the final window and not the...
4
2016
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 load the frame, for some reason. We've seen this behavior using this code and the Javascript shell...
3
1978
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 under a specific Windows User Account? Thanks so much! Christopher
43
3178
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 "meta" element. For example, <http://schneegans.de/sv/test-cases/?case=meta-only-encoding> is rendered...
5
1936
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 browsers must be the HTML rather than the PHP, but this is not the case here. I've only been looking...
8
6522
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 this sort of thing? It doesn't even have to use the subprocess module. Don't worry if the code...
1
3428
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 is for it to work in the IE browser or one that I will create
1
1856
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.
0
9656
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
10177
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
9969
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
8995
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...
1
7519
isladogs
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
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
5402
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4074
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 we have to send another system

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.