Sorry, I should have made myself clearer, I wasn't expecting anyone to try to solve what appears to be a hardware problem, indeed I've posted a question in two different pocket PC forums and not received any advice that helps.
I have lots of USB drives. They are all formatted FAT32. They all work fine with your library except one which - though it works perfectly when plugged into an ordinary PC - is totally invisible to the iPAQ. As File Explorer can't see it, I'm not surprised that your library can't see it either. The internal light comes on in the drive when plugged in, so it is connected.
I'll have a go with the code you've kindly supplied, but seriously, I think there must be something wrong with the drive, probably in whatever hidden software instructions talk to the machine it is plugged into. A simple check on the PC via My Computer reveals no obvious differences between a working drive and the invisible one, but who knows what is hidden away on those things.
Whilst I would still like to make this particular drive work with the iPAQ (16 GB storage is not to be sniffed at) the prospect of having to buy another one made me realise that if I was going to have to buy another 16 GB of storage, I might as well buy a 16 GB SDHC card instead. That can sit in the iPAQ for my entire trip, is much less likely to get lost, won't need the special cable, may even be faster and use less power. Every cloud has a silver lining :sign0136:
Caravelle