How to open windows settings pages from c # code?

How do I open windows options as shown below from c # code? I'm not trying to manipulate them, but just opening them up for the user.

Sorry, I don't even know the correct 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

    . Some interesting ones:
    • firewall.cpl
    • hdwwiz.cpl
+3


source to share


3 answers


You can open both with:



Process.Start("ncpa.cpl");
Process.Start("explorer.exe", @"shell:::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE}");

      

+3


source


try running Network-Adapter-Settings



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

Process.Start(startInfo);

      

+4


source


You can just use

System.Diagnostics.Process.Start("NCPA.cpl");

      

+2


source







All Articles