That's right what they try to execute, this is a program that basically sets the active section to 1 click, saving time and the ability to use the cmd hint, etc.
I looked at the System.Management namespace but couldn't figure out how to use it :(
So, I resorted to using CMD, I have a module application written in C #, and basically I want to run "DISKPART", which then starts diskpart in the cmd window, then I want to ask it to "Select drive 0", and then "select partition 1" and then "active".
Doing this in CMD on your own works fine, but it turned out to be inconvenient with the application :( What I managed to do was run DiskPart in one window using Process.Start, and then open it to open a new window and run the following code snippet, but since the new the window did not start diskpart cmd, it does not work> :(
Any suggestions?
Thanks!
Ash
source share