Run script after USB device is being plugged-in


Is it possible to auto-run script after usb device is being connected? It is camera, and I want to jump to the DCIM folder or auto copy all files from camera to the pc. Nothing complicated, but I don't know if there is any event available in DOpus for that kind of functionality.


Windows lets you run things when devices are inserted via the AutoPlay settings UI, but I'm not sure how easy it is to get it to run things like a custom batch file or script. It's probably possible but would require editing the registry to point to what you want to run, I think.

There's nothing built in to Opus to run scripts on device insertion or removal.

"USB Safely Remove" has an option for that, global (all devices) or for specific ones.

I use it to auto copy files to my Kindle.