0

I have a python script which has to be executed everytime using command line. What i want to try out is as soon as the windows detects a new USB device has plugged in with a specific vendor id and product id , i want to run the script , basically to automate the process on usb plug in

ask_lot
  • 11
  • 3
  • Your question is too broad. But I guess you will need either something that checks permanently the usb ports states, or verify if windows has a trigger when something is plugged. – Itération 122442 Jun 07 '23 at 09:09

1 Answers1

0

Not the full answer but guess this will help you. I suggest you to use C# to run relevant python script by using a library like IronPython. You can use devicechange from winAPI with C# as well.

Axen_Rangs
  • 261
  • 7
  • 19