Is there a type of file that contains a single URL?


  1. Posts : 20
    Windows 7 Ultimate x64
       #1

    Is there a type of file that contains a single URL?


    Is there a way of getting a URL put into a text file and changing the extension so it acts as a link to a web browser? If I recall, Internet Explorer used to store URLs in individual files, but I don't know if this is still the case. Can you help me?
      My Computer


  2. Posts : 2,468
    Windows 7 Ultimate x64
       #2

    It still works that way up to this day. Each favorite is in fact a separate file and those are just plain text files with the .url extension. When launching them on their own, they open the default browser with the address indicated within them.
    Their content is trivial to understand:

    Code:
    [InternetShortcut]
    URL=http://www.google.com
    Just that suffices. They must be named with a .url extension for them to work, doable with notepad.
      My Computer


  3. Posts : 10,485
    W7 Pro SP1 64bit
       #3

    Foebane said:
    Is there a way of getting a URL put into a text file and changing the extension so it acts as a link to a web browser? If I recall, Internet Explorer used to store URLs in individual files, but I don't know if this is still the case. Can you help me?
    Could you tell us more about what you are trying to do?

    If you have IE's favorites bar showing, then dragging/dropping URLs to that bar will create a URL shortcut that is a bit more complex than the two lines Alejandro85 mentioned. (Not that you need the extra stuff.) If you drag/drop a URL to your Desktop (or other folder), that should create an even more complex text file. Those text files have an extension of website. Unfortunately, those shortcuts might not work well with other browsers.
      My Computer


  4. Posts : 20
    Windows 7 Ultimate x64
    Thread Starter
       #4

    I just found out about the URL thing myself, Alejandro85 - thanks.
      My Computer


  5. Posts : 543
    Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
       #5

    I just keep a word document with hyperlinks for things that I want to share or access later. Creating a hyperlink is really easy and you can hide the url and have it display as text you choose. You can create the hyperlink in an email also.
    Windows 10 for Dummies

    That is a hyperlink. Hold down ctrl and click on the Windows for Dummies text and it will open the link in your browser.
      My Computer


  6. Posts : 6,285
    Windows 10 Pro X64
       #6

    I find the easiest way to create a link to a network location is to right click on the Desktop or in the folder you want it in then
    select New shortcut.

    Paste or type the URL then click Next. Type in the name you want for the shortcut then click Finish.

    That's all there is to it.
      My Computer


  7. Posts : 543
    Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
       #7

    Hey Ztruker, I am pretty sure he wants a line of text to be clickable to link directly, not a folder or desktop shortcut. That won't work if you send it to someone in an email, in a document or as an attachment. The reason that won't work is that the shortcut is a reference to a location on the computer where it was created.
    That is why I use
    hyperlinks.

    click on the word hyperlink above here.
      My Computer


  8. Posts : 6,285
    Windows 10 Pro X64
       #8

    Foebane said:
    Is there a way of getting a URL put into a text file and changing the extension so it acts as a link to a web browser? If I recall, Internet Explorer used to store URLs in individual files, but I don't know if this is still the case. Can you help me?
    Can you explain more exactly what you mean? We're answering questions you may not be asking.
      My Computer


  9. Posts : 2,774
    Windows 7 Professional 64-bit
       #9

    I like this idea!

    [InternetShortcut]
    URL=http://www.google.com

    saved as a template that metapad, notepad, wordpad can edit and save with a new name, extension with .url
    That file should be able to travel and be used by anyone anywhere.
    I think the earlier poster who posted the two-line answered the OP's question.
      My Computer


  10. Posts : 10,485
    W7 Pro SP1 64bit
       #10

    RolandJS said:
    I like this idea!

    [InternetShortcut]
    URL=http://www.google.com

    saved as a template that metapad, notepad, wordpad can edit and save with a new name, extension with .url
    That file should be able to travel and be used by anyone anywhere.
    I think the earlier poster who posted the two-line answered the OP's question.
    If you used IE (which the OP does), then the files created by saving a favorite the normal way can "travel and be used by anyone anywhere". I'm still wondering what the OP is doing.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:17.
Find Us