471,573 Members | 1,367 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,573 software developers and data experts.

C# starting Opera process

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 5720
750 Expert 512MB
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 Expert 2GB
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 Expert Mod 8TB
By default, the path to the Opera browser is:

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

Post your reply

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

Similar topics

7 posts views Thread by barry womb | last post: by
4 posts views Thread by Howard Jess | last post: by
43 posts views Thread by Christoph Schneegans | last post: by
5 posts views Thread by Marri | last post: by
8 posts views Thread by cypher543 | last post: by
1 post views Thread by kevin.a.sweeney | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

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.