Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

USBPlugEvent

Attach a command to execute on insert or remove of a specific USB device. For example: shutdown your computer when you remove your mouse.

Usage: USBPlugEvent.exe [-l] [-d] [-i] [-r] "device_id" "cmd_to_launch"

Example: USBPlugEvent.exe -r "USB\VID_056D&PID_C07E\4687336F3936" "msg %username% the specified device was removed"

Options:

-l List all currently connected USB devices.
-d Listen to Inserted/Removed USB devices.
-i Launch the command on insert only.
-r Launch the command on remove only.

About

Attach a command to execute on insert or remove of a specific USB device. For example: shutdown your computer when you remove your mouse.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages