From: André Meyer on
Hello together,

I want to write a program in Visual Basic 6 (NOT visualbasic.net), which
runs resident in the background and executes some commands as soon as it
detects a new USB-Drive.

How can I
- monitor windows to detect if a USB-Drive has been connected
- determine the drive-letter of that USB-drive

Can somebody tell be, where I find such code to modify it for my purpose?

I hope you understand my question - English is not my native language :(


Thanks in advance,
Andr�

From: BeastFish on
Here's a starting point...
http://www.vbnet.mvps.org/index.html?code/shell/shchangenotify.htm




"Andr� Meyer" <it-service(a)kath-kirche-luebeck.de> wrote in message
news:484033DB.6050708(a)kath-kirche-luebeck.de...
> Hello together,
>
> I want to write a program in Visual Basic 6 (NOT visualbasic.net), which
> runs resident in the background and executes some commands as soon as it
> detects a new USB-Drive.
>
> How can I
> - monitor windows to detect if a USB-Drive has been connected
> - determine the drive-letter of that USB-drive
>
> Can somebody tell be, where I find such code to modify it for my purpose?
>
> I hope you understand my question - English is not my native language :(
>
>
> Thanks in advance,
> Andr�
>

 | 
Pages: 1
Prev: XML & CDATA
Next: send value in dialog box..