Actually, after long consideration, I suppose not. I could look for it every time, if it is not too long a process. I need the data on the drive available at the very start of the login process so if I could find it, it would be alright. Any idea how to find a thumb drive? | [reply] |
Any idea how to find a thumb drive?
You could try putting a file of certain name on the drive
and search for that in the root of every drive.
Else, you could just find the last valid drive letter,
and you have some chance that it is the usb device.
Or else you could just find the drive with the smallest
capacity (excuding floppies), but that may fail to work
later if usb devices get cheaper.
| [reply] |
| [reply] |
Sorry for the late responce--
Give the drive a Label "USBDrive" then...
use Win32::AdminMisc;
%Info = Win32::AdminMisc::GetVolume($drive);
print "Drive label is $Info{Volume}\n";
Cycle through all the attached drives and then you will be able to find the drive you are looking for.
See the doc for complete info:
http://www.roth.net/perl/adminmisc/ | [reply] [d/l] |
I installed the ppd and then ran this code. Perl whined about no GetVolume and I could not find it either. I have version 2003.07.14
Thanks!
| [reply] |