如何通过单击cmd按钮打开“我的计算机属性”(Windows 7)对话框? [英] hw to open 'my computer properties'(windows 7) dialog box by clicking on a cmd button?

查看:566
本文介绍了如何通过单击cmd按钮打开“我的计算机属性”(Windows 7)对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过点击ma项目中的命令按钮来打开我的计算机属性对话框....



System.Diagnostics.Process.Start (sysdm.cpl)



此代码有效。但问题是dat这会打开系统属性对话框。如果我们右键单击'我的话,在windows7中计算机'并选择'属性'它导航到下面的路径。



控制面板\所有控制面板项目\系统



i想要打开这个窗口。



换句话说,通过单击项目中的命令按钮,可以打开以下路径。



控制面板\所有控制面板项目\系统



hw我能做到这一点???

i want to open 'my computer properties' dialog box by clicking on a command button from ma project....

System.Diagnostics.Process.Start("sysdm.cpl")

this code works.but d problem is dat this opens system properties dialog box.its ok.but in windows7 if we rightclick 'my computer' and select 'properties' it navigates to the below path.

Control Panel\All Control Panel Items\System

i want to open this window.

In otherwords hw the below path can be opened by clicking a command button from my project.

Control Panel\All Control Panel Items\System

hw i can do this???

推荐答案

这可以轻松完成:

首先:启动流程,控制显示控制面板。

第二:我们定义显示系统的过程。



This can be done easily:
First: start the process, "control" that displays the Control Panel.
Second: we define the process to display a "system".

System.Diagnostics.Process.Start("control", "system");


System.Diagnostics.Process.Start("sysdm.cpl")


查看http://www.thescarms.com/VBasic/rundll.aspx ,它可以为您提供有关您可以打开的程序的一些想法。另外,我搜索了我的C:\ Windows \ System32文件夹中的* .cpl文件,这就是我提出的(虽然我的电脑是Windows XP):

access.cpl

appwiz.cpl

bthprops.cpl

desk.cpl

firewall.cpl

hdwwiz.cpl

inetcpl.cpl

infocardcpl.cpl

intl.cpl

irprops.cpl

javacpl.cpl

joy.cpl

main.cpl

mmsys.cpl

ncpa.cpl

netsetup.cpl

nusrmgr.cpl

nvcpl.cpl

nvtuicpl.cpl

odbccp32.cpl

powercfg.cpl

sysdm.cpl

telephon.cpl

timedate.cpl

wscui.cpl

wuaucpl.cpl
Look at http://www.thescarms.com/VBasic/rundll.aspx, which should give you some ideas of the programs you can open. Also, I searched my C:\Windows\System32 folder for "*.cpl" files, and this is what I came up with (though my computer is Windows XP):
access.cpl
appwiz.cpl
bthprops.cpl
desk.cpl
firewall.cpl
hdwwiz.cpl
inetcpl.cpl
infocardcpl.cpl
intl.cpl
irprops.cpl
javacpl.cpl
joy.cpl
main.cpl
mmsys.cpl
ncpa.cpl
netsetup.cpl
nusrmgr.cpl
nvcpl.cpl
nvtuicpl.cpl
odbccp32.cpl
powercfg.cpl
sysdm.cpl
telephon.cpl
timedate.cpl
wscui.cpl
wuaucpl.cpl


这篇关于如何通过单击cmd按钮打开“我的计算机属性”(Windows 7)对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆