How to remove USB drive using C#

doc picture doc · Jul 28, 2009 · Viewed 7.8k times · Source

I'm trying to write an application to remove USB Drives, but i can't find a way to do it. There's a .NET class to do this or it's possible using the Win32 API? All advises are welcome, thanks for the help.

Answer

David Menard picture David Menard · Jul 28, 2009

Heres a link to what your looking for:

Eject USB disks using C#

Explains how to do it, and come with source code, enjoy!