Kalle said:
Thanks again Karl, but I still can't read the .URL extension, the
GetLink is empty.
Any idea about what to do?
When "stuff" like this happens, about all one can suggest is that you step
through the code, line by line, using the F8 key. Examine each variable at
each step of the way, to determine where things are breaking down. I tested
what I suggested before posting. That method works. The most likely
explanation for your failure is a invalid or poorly-constructed filename.
One test might be to:
* put a breakpoint in the GetLink routine,
* Clipboard.SetText UrlFile,
* Open a command window,
* enter "Dir <Alt-Space, E, P><Enter>"
If you get an empty listing, you got your cause. You could also do a
File-Open in Notepad, and paste the full filename passed to GetLink into
that dialog, to verify you've got it right. Again, if it doesn't open in
Notepad, you need to re-examine how you're deriving the filename.
Later... Karl
--
Working without a .NET?
http://classicvb.org/