C
Chris Lewis
Hi,
I want my app to respond to attachment of a memory card (SD) and/or a
particular type of USB device to a client PC. Both devices have on them the
same file/directory structure - i.e. a directory structure recognisable to
my application.
What I would like to do is have my .NET Windows Form app start automatically
(if it is not already running) when either device is attached to the
machine, and have the files pre-selected in an explorer-like window for the
user to take further action with. Adobe Elements does this, for example,
when I attach my Compact Flash card to my PC - it seems to use a Windows
Service called 'Adobe Active File Monitor' that runs constantly in the
background.
Any ideas how to do this, or better still any code out there that already
does this? I don't think the .NET FileSystemWatcher will work for removable
devices, so I suspect that a bespoke polling component is needed. If so, how
is it best to detect the presence or otherwise of removable drives?
Thanks,
Chris
I want my app to respond to attachment of a memory card (SD) and/or a
particular type of USB device to a client PC. Both devices have on them the
same file/directory structure - i.e. a directory structure recognisable to
my application.
What I would like to do is have my .NET Windows Form app start automatically
(if it is not already running) when either device is attached to the
machine, and have the files pre-selected in an explorer-like window for the
user to take further action with. Adobe Elements does this, for example,
when I attach my Compact Flash card to my PC - it seems to use a Windows
Service called 'Adobe Active File Monitor' that runs constantly in the
background.
Any ideas how to do this, or better still any code out there that already
does this? I don't think the .NET FileSystemWatcher will work for removable
devices, so I suspect that a bespoke polling component is needed. If so, how
is it best to detect the presence or otherwise of removable drives?
Thanks,
Chris