We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 15,273 times

Related Categories

Opening Control Panels - Introduction

Kimmy

Introduction

This example demonstrates how to open Control Panel items such as Internet Settings, Mouse, Monitor etc..

The .CPLs can be found in C:\Windows\System, just mess about with the numbers, there are too many to list. Basically the number represents the tab, ie Display->Settings/Appearance/Background etc..

' Internet Settings
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl")

' Internet->Security
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,1")

' Printers Folder
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL main.cpl @2")

' Fonts Folder
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL main.cpl @3")

' Display->Appearance
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL desk.cpl ,2")

' Display->ScreenSaver
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL desk.cpl ,1")

' Display->Settings
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL desk.cpl ,3")

' Display->Background
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL desk.cpl ,5")

Till the Roof comes off Till the Lights go out Till my Legs give out Can't shut my mouth I will not fall, my Wisdoms all.

Comments

  • Opening files with differnt priviliegs

    Posted by Mathews on 15 Aug 2004

    Shell command looks good . I need an option to open the add/remove program with admin privileges. Am using Win xp Pro. Normally when u shift + right click we get an option called run as. Can we provid...