8

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

3 Answers 3

7

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

2
  • +1 As usual, Alan, your "insider" knowledge is indispensable. Commented Aug 25, 2011 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
    Commented Aug 26, 2011 at 0:38
1

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

http://www.codeproject.com/KB/system/usbeject.aspx

Could be a good place to start.

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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