Click here to Skip to main content
16,013,322 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I don't know if this is the right forum to ask this question. I just try my luck here. I'm using code generator for my localhost system. I've learned that we can use notepad to create shortcut for particular site. I tried to use that trick and create shortcut for my localhost system so that i don't need to generate the localhost using the code generator but it's not firing. When I click the shortcut icon it says "connection refused". It only fires when i generate the file first using code generator. I can't find correct tutorial for iis express regarding this matter. Hope you guys can help me. Thanks.
Posted
Comments
Sergey Alexandrovich Kryukov 26-Jan-16 22:56pm    
This is a right forum, but the question is quite unclear. What you call "shortcut", per your explanation, is a text file. I'm not sure what is it. *.url file? Anything else? Could you show a sample of its content? Are you sure your HTTP server is running and serving up your site when you use this shortcut? For example, if you use an address line with some Web browser manually, does your URI show appropriate page?
—SA
RodzGold 26-Jan-16 23:37pm    
In notepad i have this code something like @echo on
start http://localhost:56090/Login.aspx and save it as filename.bat file. I right click the file and create shortcut in desktop. So when I double click the shortcut,a a new window of browser is open with the site address http://localhost:56090/Login.aspx which is the address of my localhost. But it does not display anything. It says "connection refused". My goal is to have a shortcut icon for my localhost system without generating the code generator. Thanks.

1 solution

Your problem is not a "shortcut". Your problem is that your HTTP server is not properly set up to serve up your site, if it is even running at all. For this matter, refer to IIS documentation.

As to the shortcut, a batch file can work, but it's a bit silly. Rather, it could be a file names as someName.url; the simplest content sample could be, for example,
txt
[InternetShortcut]
URL=http://codeproject.com


See, for example, URL File Format — Fmtz File Formats Information and Specifications[^].

—SA
 
Share this answer
 
v3

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