LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

find letter assigned to USB pen drive

Hi to all,
I need to programatically find out the letter assigned to a USB pen drive,
after I plug it (in a Win OS)
I've searched, but I haven't find anything useful.
 
Could you help me, please?
 
Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 6
(3,484 Views)

Hi Vix,

I'm not at all sure there is an easy solution.

If it were just a matter of spotting newly added drives - you might establish a list of existing drive letters on "first run", then check again as needed for newly appeared drive letters - but this would not spot a USB drive that was allready installed at first run, and would probably not be able to differentiate between other removable storage (CDs or floppies) either.

A clumbsy idea I know, but maybe better than nothing (or maybe not).

Mark.

 

0 Kudos
Message 2 of 6
(3,456 Views)

The problem is simplier, I think:

I need to know how I can obtain a list of existing drive letters. Also some informations about which kind of device is every letter would be useful, but it's not essential.

Thanks a lot in advance

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 6
(3,454 Views)

Hi Vix

There are vis by Mr. Borkowski to do that.

Will post as soon as possible. (Will try this afternoon, my local time)

Cheers

Alipio

---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 4 of 6
(3,445 Views)
See this thread for a solution by Altenbach. Then base your decision on size of drive.
 
0 Kudos
Message 5 of 6
(3,438 Views)
Here are the vis
 
Cheers
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
Message 6 of 6
(3,430 Views)