LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to distinguish between network drive and local drive

Solved!
Go to solution
Hi I have a File Dialog, and i'm looking for a way to determine drive type, network or local. Currently i'm using the stupid - Path to string->what is the first letter->is it C or D - way. thanx
0 Kudos
Message 1 of 4
(2,844 Views)
Solution
Accepted by sebastiant

Hi,

 

I do not think there is an LabView function, that does this. You will have to call a Kernell32 function.

 

Function

 

Here is the code. It worked for me. LV2010sp1 win7 32b.

 

The example is saved as 8.0 vi

Message 2 of 4
(2,833 Views)
that did the trick thanx!
0 Kudos
Message 3 of 4
(2,816 Views)

If you are about to use that function call in some serious program, please proceed some testing before. I assembled the calling parameters via trial@error technique.

0 Kudos
Message 4 of 4
(2,810 Views)