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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top