How to open a specific link(s) with Internet Explorer through C Sharp?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Hodan
    New Member
    • Feb 2011
    • 8

    #1

    How to open a specific link(s) with Internet Explorer through C Sharp?

    Currently, what I have is
    Code:
                Process internet = new Process();
                internet.StartInfo.FileName = @"C:\Program Files\Internet Explorer\iexplore.exe";
                internet.StartInfo.Arguments = "";
                internet.Start();
    and I need it to open a specific link or links, in new windows. I have the ideology of anything is possible if you put your mind to it, but this one is just killing me.

    What I am trying to do, if it helps, is a program that reads a text file with links, and opens the links in Internet Explorer.
  • Samuel Jones
    New Member
    • Jan 2011
    • 48

    #2
    Your code above will not work on a 64bit System that doesn't have 64bit Internet Explorer. The code that worked for me is the following. It will open in the system default if you take out 'iexplore.exe'.

    Code:
    System.Diagnostics.Process.Start("iexplore.exe", "http://bytes.com/")

    Comment

    Working...