Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to mount and unmount my SD Card/USB drive with C# code. Any help would be really appreciated.
Posted
Comments
King Fisher 31-Mar-15 13:42pm    
What have you tried? where you stuck ? without any information how can we help?
HaroonShahzad92 31-Mar-15 13:52pm    
I just want the C# code that would mount my USB drive and unmount also
Sergey Alexandrovich Kryukov 31-Mar-15 13:44pm    
On Windows (do you mean Windows applications?), removable drives are auto-mounted; you don't need code to mount them. But you may need to unmount one, by a number of reasons. One way: it can be done using WMI.
—SA
HaroonShahzad92 31-Mar-15 13:50pm    
I think you didn't get my actual point.
Suppose I plugin USB in laptop, that will be automounted. Now I want to unmount that USB from C# code and again mount with C# code.

Can you help now please?
Sergey Alexandrovich Kryukov 31-Mar-15 13:55pm    
To get your actual point understood, you have to make this point. All I could see is that you wanted to mount and unmount it. You did not mentione "again mount" in first place. Why? I understand why unmounting, don't understand why mounting again...
—SA

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900