Hello Guest it is March 28, 2024, 06:25:31 PM

Author Topic: Remove USB button  (Read 678 times)

0 Members and 2 Guests are viewing this topic.

Offline sx3

*
  •  41 41
    • View Profile
Remove USB button
« on: December 09, 2019, 09:22:41 AM »
Hi guys,

Is it possible to setup a physical button to safely remove a USB stick?
Would be neat to have one next to the USB port, instead of going through task bar on windows.
Re: Remove USB button
« Reply #1 on: December 10, 2019, 08:58:20 AM »
I know you can use a Mach 4 API to run a windows script file. I guess you could script the eject USB function into a windows script and then map the Mach 4 LUA script to call the windows script when the button is pressed.

It might be more effort than it is worth. The remove USB button doesn't do anything more than check if the drive is in use. As long as you aren't writing to it, removing the USB without ejecting wont cause problems.