Jump to content

Open Windows System properties


Recommended Posts

Guest sjrixon

Hi all,

I am new to all this!! I am trying to open the Windows systems properties box. This normally involves holding the Windows key and pressing break.

I tried this

Send("{LWINDOWN}")

Send("{BREAK}")

send("{LWINUP}")

If I change the Break to and 'e' it launches explorer fine. I guess it doesn't like break!

Cheers,

Scott

Link to post
Share on other sites

Run("rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0")

If you would like for it to open onto another tab, then have a look at this web site and select a different number at the end of the command

http://vbnet.mvps.org/index.html?code/system/controlpnl3.htm

Select "Adding Control Panel Functions to a VB Application: S-Z" and look for System Properties

Here is some of what is on that site:

System Properties (Win9x / WinNT)

module: SYSDM.CPL

command: Win9x: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0

command: WinNT: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0

result: displays the General property page

command: Win9x: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,1

result: displays the Device Manager property page

command: Win9x: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2

result: displays the Hardware Profiles property page

command: Win9x: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3

command: WinNT: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,1

result: displays the Performance property page

command: WinNT: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2

result: displays the Environment property page

command: WinNT: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3

result: displays the Startup/Shutdown property page

command: WinNT: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,4

result: displays the Hardware Profiles property page

command: WinNT: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,5

result: displays the User Profiles property page

enjoy.........

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to post
Share on other sites
Guest sjrixon

That is fantastic! What a great set of commands.

My script now joins a machine to the domain! Very cool!

Thanks again,

Scott

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...