On 2020-09-23 03:34, ToddAndMargo via perl6-users wrote:
On 2020-09-22 22:55, Shlomi Fish wrote:
Hi Todd!
On Tue, 22 Sep 2020 20:33:47 -0700
ToddAndMargo via perl6-users <perl6-us...@perl.org> wrote:
Hi All,
Anyone write any code to eject a flash drive in Windows?
A duckduckgo search led me to this page:
https://stackoverflow.com/questions/85649/safely-remove-a-usb-drive-using-the-win32-api
Hope that helps!
Many thanks,
-T
Hi Shlomi,
Yes that does help!
My duck duck search came up with
https://stackoverflow.com/questions/3918248/how-to-eject-a-usb-removable-disk-volume-similar-to-the-eject-function-in-win
and
https://stackoverflow.com/questions/3989844/eject-memory-card-from-card-reader-c-sharp/29135645#29135645
which made my head spin.
Thank you!
-T
And there is always letting someone else do it for you:
https://www.uwe-sieber.de/drivetools_e.html
I do have a thing written to check for dependencies
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~