Note. On a computer running Windows 7, all of the following was performed.
I am trying to programmatically create shortcuts on the Internet.
These are text files with the extension .url.
Here is the content of the one I created earlier.
[InternetShortcut]
URL = HTTP://stackoverflow.com/
Therefore, I can successfully create this by calling System.IO.File.WriteAllText (). Check the shortcut and it works great, but here is the problem, try and change it! By this I mean that I have code that tries to change the URL. I delete the previous file and create a new one (with the same name) but with a different url and it doesn’t work?
Even try to do it in a notebook. Cratea a.url in a notebook with the content above. Follow the shortcut and confirm that it works.
Open the .url file in notepad and change the URL from "http://stackoverlfow.com" to "http://www.google.com", save it and view the properties of the file. You will find the following:
- On the "Web document" the URL-address says /qaru.site / ... .
- On the Details tab, the URL says http://www.google.com
- Double-click on it and it will go to the location of the "web document".
Something seems to be caching. Save a copy with a different name, i.e. Ctrl + c ctrl + v, and the copied internet short cut has both tabs showing http://www.google.com .
Windows 7. XP, .
URL-, , , .
URL-. IE firefox, ,
- ? ?