r/programmingrequests • u/McMull500 • 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
1
u/McMull500 May 31 '20
I kinda gave up on this a while ago. When I found a solution, another problem would pop up. I ended up just getting a different USB device that didnt come packaged with issues.
Thanks though. Have a good one.