LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

List Folder does not find WIndows shortcut files

Solved!
Go to solution

Hello,

 

  Why doesn't the "List Folder" vi find the Windows shorcut files? The WIndows short files have a extension of "*.lnk",  I am using Labview 2011 SP1 on a WIndows XP Pro machine, the shorcut files are on a mapped network drive.  I can find the shortcut files if a open a cmd window and use the dir command.

 

Regards,


Kaspar
0 Kudos
Message 1 of 10
(4,048 Views)

It works for me. I am using LV2011 on win7 32bit!


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 10
(4,038 Views)

great, I am glad that it works for you! Are you using a network drive?

Regards,


Kaspar
0 Kudos
Message 3 of 10
(4,021 Views)

Yes, tried it on a network folder as well Smiley Happy


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 4 of 10
(4,018 Views)
Solution
Accepted by topic author Kaspar

One potential problem is that you may be looking in the wrong place. A shortcut to a file shows up in the files list, and a shortcut to a directory shows up in the directories list. However (in at least LV2011) shortcuts to directories that don't exist - like a disconnected network drive - also show up in the files list.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 5 of 10
(4,016 Views)

It seems to work for me as well.  As Mike said, the shortcuts to folders showed up in the folders list.

 

Here are some other thoughts:

Are you using the pattern filter at all?

Are you using the Recursive File List?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 6 of 10
(4,009 Views)

Hello,

 

  Ok thanks for the feedback. I assumed that the shortcut would appear as a file, not a folder. The shortcut does show up in the folder listings. Thanks for everyone input 

Regards,


Kaspar
0 Kudos
Message 7 of 10
(3,999 Views)

If you need to open a file in LabVIEW through a path that includes a folder shortcut, you could use this example.

 

Resolve Shortcut Path.vi

 

 


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

0 Kudos
Message 8 of 10
(3,982 Views)

I need just the opposite.  I need Labview file open functions to not resolve Windows shortcuts.  Every example I have tried does, including the Express File Dialog.  I'd feel a lot safer if my users could not accidentally select a shortcut that might lead to a file I really don't want to clobber.

 

Thanks

0 Kudos
Message 9 of 10
(3,886 Views)

The issue which started this post has been answered.

You will be able to find assistance on the original post that you submitted for your issue on http://forums.ni.com/t5/LabVIEW/Need-File-Dialog-that-does-not-resolve-Windows-shortcuts/m-p/2312892 

Arham H
Applications Engineer
National Instruments
0 Kudos
Message 10 of 10
(3,854 Views)