0
How can Eject pen drive?
Who can help me to write c# code to Eject a pendrive.
3 RĂ©ponses
0
https://social.msdn.microsoft.com/Forums/vstudio/en-US/22790e90-d923-4069-a32c-caaf96f7d0f6/whats-eject-usb-drive-api-?forum=csharpgeneral
This is the way to eject usb drive. It's working correctly.
+ 3
Sampath Tharanga
Please attach the code so someone can help you in getting error solved.
This link maybe helpful in your task.
https://stackoverflow.com/questions/7704599/eject-usb-device-via-c-sharp
0
DishaAhuja yeah ofcourse. I'm find some codes every where. But couldn't find somethingđđđ
Removable drive detecting code section here. Now I want to eject this drive. Who can help me to develop this one đđđ
using System.IO;
foreach(DriveInfo drive in DriveInfo.GetDrives())
{
if(drive.DriveType == DriveType.Removable )
{
// Now here selected only removable drive
}
}