Archive: Launching Display Settings & System Page


Launching Display Settings & System Page
Does anybody no how to launch the System window and display properties window preferably on the settings page?


ShellExec the desk.cpl file (in system32 on WINNT)... should be in the path (to test this in Start Menu -> Run type desk.cpl and see what happens :))


In windows 98 it doesn't work? the .cpl extension is not associated with any program or dll.

Do i need to associate it first or is there another way? On 2000 you are correct it works there.


That's weird, because when you double click it it does open :weird:
I remember seeing once that you need to open it with some program. Let me search some and see if I can find anything useful.


Well in Win2000 the greek way the filetype is bound is :

rundll32.exe shell32.dll,Control_RunDLL %1,%*

So I guess you could try that under 9x. It's bound to be something similar involving rundll32, so if that fails try searching for rundll32.exe using Google or something.


Yep, I was just about to say it :)

It works both on Win98 and XP.


Cool that works but can i get the display properties to launch with the settings page?


rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3


Excellent


On the function I found on sunjammer (Refresh Uninstall Panel) justin use "control.exe file.cpl"... What's better (if one is better than the other) ?
CU


Originally posted by Wyz
On the function I found on sunjammer (Refresh Uninstall Panel) justin use "control.exe file.cpl"... What's better (if one is better than the other) ?
CU
rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3

This method is better because it lets you open a certain tab. Using control.exe doesn't give you that option (not that I know of).

You can open a tab with control.exe:

control.exe desk.cpl,,3


The 2 methods seems to give the same result...
You have just to choose which one you prefer :p
Regards