Run URL in EXE..

Discussion in 'HTML & Website Design' started by krush, Oct 31, 2007.

  1. #1
    Does anyone know how I can run a web URL in an EXE file?

    :confused:
     
    krush, Oct 31, 2007 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hu?

    You want to have an application open a url in the users default web browser? What programming language are you using?
     
    AstarothSolutions, Oct 31, 2007 IP
  3. krush

    krush Peon

    Messages:
    359
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hey,

    Just want an .EXE file that will open then in the window show the contents from a URL that I specify.

    Obviously this means the .EXE file will only run properly when the user is online.
     
    krush, Oct 31, 2007 IP
  4. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #4
    With VB.Net just create a new project with a blank form. Add the following code
    
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            System.Diagnostics.Process.Start("http://www.AstarothSolutions.com")
            Me.Close()
    End Sub
    
    Code (VB.Net):
    The compile it into your EXE
     
    AstarothSolutions, Oct 31, 2007 IP
  5. krush

    krush Peon

    Messages:
    359
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for that.

    Will I need to download any software? Is the software free?
     
    krush, Oct 31, 2007 IP
  6. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You can download Visual Basic Express 2005 which is free of charge.
     
    AstarothSolutions, Oct 31, 2007 IP
  7. krush

    krush Peon

    Messages:
    359
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Downloading now, thanks!
     
    krush, Oct 31, 2007 IP
  8. krush

    krush Peon

    Messages:
    359
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    That method doesn't work exactly correct. It creates an EXE, that when run loads Firefox with the URL.

    Any other solutions?
     
    krush, Nov 1, 2007 IP
  9. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Ok, so you actually want to open the URL in your application rather than in the browser? Are you wanting to allow people to browse from that page (ie are you making it a complete web browser or simply able to display a single page?)

    http://www.codeproject.com/books/0764549146_8.asp has the code for a complete web browser (in C#) but you can easily cut back parts if you dont want people to be able to browse etc
     
    AstarothSolutions, Nov 1, 2007 IP
  10. krush

    krush Peon

    Messages:
    359
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Just want an EXE that shows a website in a window so that they think it's an application.

    Just a simple single page.

    There is some software that does it but its all shareware.

    The complete browser is a bit over board!!

    Thanks for the help though!
     
    krush, Nov 1, 2007 IP
  11. jonimontana

    jonimontana Well-Known Member

    Messages:
    262
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #11
    oh...
    easy... get visual basic 6 and put this code.

    Webbrowser1.Navigate("http://...")
     
    jonimontana, Nov 1, 2007 IP