is it possible that set volume readonly by using c#?

  • Thread starter Thread starter buffer902i3k
  • Start date Start date
B

buffer902i3k

Guest
hi, i want to set volume readonly by using C#.

PC is made of 1 pysical disk and logicaly divided by C/D drive

1. how can i set readonly only D drive by using c#?

or

2. is it possible to convert below powershell command to c#?

(ex: diskpart -> list volume -> select volume 0 -> attributes volume set readonly)

Continue reading...
 
Back
Top