Friday, December 5, 2008

Control Panel access through VBScript.

Using the information at this page about running Control Panel applets from the command prompt, I made a series of small VB scripts to make it easier to access them from my favorite file manager. This first script runs the Add/Remove Programs applet.

Set objShell = CreateObject("Wscript.Shell")
objShell.Run("control appwiz.cpl"), 1, TRUE

And this one brings up your System properties window.

Set objShell = CreateObject("Wscript.Shell")
objShell.Run("control sysdm.cpl"), 1, TRUE

Simple.

0 comments: