Work with logical drive

  • Thread starter Thread starter Bun Him Dara
  • Start date Start date
B

Bun Him Dara

Hi,

Does anyone know if c# can mount and unmount drive? if it does please
provide some sample code or if it not do you know any other way to work in
this situation?

Thank you,
Dara
 
One way this could be accomplished is to execute a batch file via C# using
the System.Diagnostics.Process class. You could also dynamically create the
batch file to be executed if you did not know what drive needed to be
mounted/unmounted. At this point you would then execute the batch file via
the Process class.

Good luck!
 
Back
Top