I used to have a small tool i created in VB.net to enable/disable my Ethernet.
Right now i am trying to recreate it in C# but i cannot seem to figure out how to get the command to work.
The following gives a error, probably because i am clueless with C#.
private void btnDisabled_Click(object sender, EventArgs e)
{
Process.Start("CMD", "netsh interface set interface "Ethernet" DISABLED");
}
Which is supposed to enter netsh interface set interface "Ethernet" DISABLED in command prompt.
I clearly have the entire code wrong, but i cant find out how it should be.
Anybody got any advice?
Thanks