Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi All,

I have a web application hosted on IIS in one system and its connected to other system on LAN

I access the application (hosted with IIS) from within the LAN by just typing the IP address of the system on which IIS is installed as:

HTML
"http://IPAddress:Portnumber"


I want to create a exe that access the above url and open on a browser so the users need not have to type the url every time

Regards
Posted
Updated 19-Jun-13 1:36am
v2

Create a shortcut to the web address and distribute that.
Sending an EXE is overkill, and the advantage of the short cut is that it will open in their default browser.

When you are creating the shortcut, instead of browsing to an application you put in the web address you want to browse to.
 
Share this answer
 
Comments
surya24 19-Jun-13 7:45am    
How do i create a shortcut???
Pheonyx 19-Jun-13 7:54am    
Really?! you are asking that! I'm concerned!
Did you Google it before asking?
So Let Me Google That For You[^]


This can even achieved by a batch file, creating an application and going through all the bells and whistles of compiling isn't necessary...
<br />
@echo off<br />
start http://ipaddress:port<br />
 
Share this answer
 
Create C# console application. Refer below mention code for opening browser with your url in console application exe

class Program
    {
        static void Main(string[] args)
        {
            System.Diagnostics.Process.Start("http://IPAddress:Portnumber");
        }

      
    }
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900