Give the path to the inserted USB key to a script
Posted
by Xavier Nodet
on Super User
See other posts from Super User
or by Xavier Nodet
Published on 2009-07-31T07:28:58Z
Indexed on
2010/06/06
13:12 UTC
Read the original article
Hit count: 315
I'd like to run a given Perl script whenever I connect my camera to my PC, so that this script will download all the photos on it. But as the drive letter for the camera may change depending on what's already connected, I need to pass this drive letter as an argument to the script. Is this doable?
Thanks.
PS: if this is not possible, an answer to this other question would be very helpful.
© Super User or respective owner