Open Control Panel\Network and Internet\Network Connections

Hi, how can I open this:

Control Panel\Network and Internet\Network Connections

I tried with ShellExecute() but I think I did it wrong.

Please help, thanks :)
What did you try to execute? Post some code.
Every Control Panel icon has an associated cpl file in windows folder.
see http://support.microsoft.com/kb/149648
How will I open this:

Netcpl.cpl

I tried this:

 
system("Netcpl.cpl");


but that didn't work.
Odd. I tried "desk.cpl" and it worked fine. Do you get any error message? What happens if you try another cpl?
This is what I get when I run the program:

1
2
'Netcpl.cpl' is not recognized as an internal or external command,
operable program or batch file.
I suppose cmd can't find the file. Are you sure the name is correct? What folder is it in?
That MSDN page probably applies to Windows 98 or ME.
Oh. I didn't notice that.. here's one for xp: http://support.microsoft.com/kb/313808
I have windows seven, here is the code that I tried:

1
2
3
4
5
6
#include <windows.h>

int main()
{
system("Netcpl.cpl");
}


and it shows this:

1
2
'Netcpl.cpl' is not recognized as an internal or external command,
operable program or batch file.
i think you should search for the netcpl.cpl file first on your machine? or *.cpl files to verify that it exists?
Topic archived. No new replies allowed.