Skip to content

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

License

Notifications You must be signed in to change notification settings

initmaster/USBPlugEvent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages