Hello Guest it is May 15, 2021, 08:42:35 PM

Author Topic: Remove USB button  (Read 246 times)

0 Members and 1 Guest 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.