Y
Y
YouHim2013-05-26 16:34:21
Automation
YouHim, 2013-05-26 16:34:21

How to execute a task when a specific USB device is connected?

The task was to perform a certain set of actions when connecting a USB modem. The VBS action script itself already exists, but it’s impossible to embed modem connection tracking into it (I’m a teapot). I found many similar examples for flash drives on the net, but all my attempts to remake them for a modem were unsuccessful. Now I use a bunch of USB Safely Remove + my script, but I want to do everything in one so as not to use third-party utilities. I would be grateful for an example of a VBS script that monitors the connection / disconnection of a specific USB device.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Turnaviotov, 2013-05-26
@foxmuldercp

hang up your daemon that monitors usb ports, vendor id + label of the connected volume?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question