Trunkles Posted August 7, 2015 Share Posted August 7, 2015 I'm going to write a little programme that lives in the system tray and, when I plug my camera in to a USB port, it detects it and copies the files off. Copying the files off and dealing with them is trivial, no problem doing that. The issue is...How the hell do I detect the camera?Your help would be much appreciated. Thanks,Simon. Link to comment Share on other sites More sharing options...
jvds Posted August 7, 2015 Share Posted August 7, 2015 there is a udf some where in the form, that detect when you plug in an usb stick, so you could use that udf and then look for a certain folder to detect if it is your camera, cameras usually have folders with specific names where the photos or videos are stored, so i would suggest you could do it that way Link to comment Share on other sites More sharing options...
hydranix Posted August 7, 2015 Share Posted August 7, 2015 I believe I accomplished something similar to this with WMI. I'll dig through my old scripts and if I find it I'll post it as an example. Link to comment Share on other sites More sharing options...
Trunkles Posted August 8, 2015 Author Share Posted August 8, 2015 Jvds - I wondered if there was a UDF, gawd knows which one though. Hydranix - Thanks, that'd be handy. Link to comment Share on other sites More sharing options...
jvds Posted August 8, 2015 Share Posted August 8, 2015 (edited) I think it was this one, post 6, but seems to not workhttps://www.autoitscript.com/forum/topic/42402-detecting-usb-drive-insertion/EDIT:actually it does work but you have to write the name of the removable drive in $MyDrive = "SCSD TOOLS"it is exactly what you need, hence the name will make it respond only when your camera is pluged in =) Edited August 8, 2015 by jvds EDIT Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now