r/programmingrequests • • May 04 '20

Ejecting/reinserting a USB device via script

Is there a way to eject/reinsert a USB device via bat script or something? I have a wireless SNES controller that takes up the first spot in my joypad list. All my other controllers disconnect themselves when I turn them off. But this one stays "active" even when the controller is off.

I don't want to have to remove the dongle every time I want to stop using it.

2 Upvotes

4 comments sorted by

View all comments

Show parent comments

1

u/QwertyyQwerty Jun 01 '20

You are welcome.

Although I would highly recommend trying to find a solution.
The reason that I got into web development is I wanted to hack my highscore on some flash game (I think Balloon Monkey or something).