Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Format a Drive from C#

Tags:

c#

I need to format a pen drive from within a C# application.

I've googled around and the only thing I can find is http://msdn.microsoft.com/en-us/library/aa394515(VS.85).aspx

But I need it to work on Win XP, so that solution won't do for me.

Can anyone suggest an alternate method?

like image 516
TZHX Avatar asked May 11 '26 11:05

TZHX


1 Answers

You could try to simply fork (not the linux fork :) ) a new process and run the Windows format command from inside your C# program.

like image 59
Tudor Avatar answered May 14 '26 02:05

Tudor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!