LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read .url files

I want to read my Favorites (Documents&Settings/User/Favorites) with LabView (Win2K, LV7.0). I can select an .url-file with the standard file dialog. But when I try to read the file (Read lines from file), an error pops up: "Error 1 An input parameter is invalid". After inserting a probe I got the error: instead of the filename of my favorite the file dialog outputs the internet address. How to avoid this behaviour?
Example: one of my favorites is www.Heise.de, the file I want to read is "heise newsticker.url". I select the file with the file dialog, but get as output "www.heise.de/newsticker". Why this?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 1 of 3
(2,832 Views)
The attached piece of code works for me. If you're using the same approach and still getting the URL itself rather than the path/filename, the immediate difference is that I've got LV6.1 running on NT4 so in your case it may be either LV7 or Win2k attempting to be *cough* helpful!
0 Kudos
Message 2 of 3
(2,832 Views)
Thanks, anchovie.
It seems to be a problem of LV7 and W2k.
I attached an image presenting the result of your vi,
when selecting the file "BDW.url". The path of the file is ok, but the filename is replaced by the actual url "http://www.bdw.de".
Just look at the image...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(2,832 Views)