3

How do I open Windows settings like the ones below from code in C#? I'm not trying to manipulate them, but to just open them for the user.

Sorry, I don't even know the right keywords for this question.

enter image description here

enter image description here

(Screenshots are in German.)

Edit: (in addition to the answers)

  • Search in C:\Windows\System32\ for *.cpl or *.msc. A few interesting ones:
    • firewall.cpl
    • hdwwiz.cpl
Bitterblue
  • 13,162
  • 17
  • 86
  • 124

3 Answers3

4

try this to run Network-Adapter-Settings

ProcessStartInfo startInfo = new ProcessStartInfo("NCPA.cpl");
startInfo.UseShellExecute = true;

Process.Start(startInfo);
Edi G.
  • 2,432
  • 7
  • 24
  • 33
3

You can open both via:

Process.Start("ncpa.cpl");
Process.Start("explorer.exe", @"shell:::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}");
Philipp H.
  • 552
  • 1
  • 3
  • 19
2

You can just use;

System.Diagnostics.Process.Start("NCPA.cpl");
Umut D.
  • 1,746
  • 23
  • 24