Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to emulate insertion and removal of SD cards to write tests. What is the best way/tool to implement it in .NET?

share|improve this question
up vote 7 down vote accepted

You can write one on Windows with DSF, but I don't think there's a sample for SD cards at this time.

share|improve this answer
+1 As usual, Alan, your "insider" knowledge is indispensable. – TristaanOgre Aug 25 '11 at 20:19
I do my best. As an aside, I wrote a chapter about DSF for Dorothy Graham's upcoming book on automation case studies. Hopefully out sometime this fall...or winter... – Alan Aug 26 '11 at 0:38

Sadly I don't know how to do this myself, but I found this:

Could be a good place to start.

share|improve this answer

You can use the devcon command line utility to disable/enable the SD card, not very elegant but will be the fastest way.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.