C#開啟控制台裡的某一屬性視窗

來源:互聯網
上載者:User

找到對應的cpl,啟用一新的線程開啟,

比如System.Diagnostics.Process.Start("RunDLL32.exe","shell32.dll,Control_RunDLL timedate.cpl"); 開啟對應的“日期和時間 屬性”視窗。

其他的視窗對應如下:
輔助選項
模組: access.cpl
命令: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,5
結果: 顯示輔助選項/常規。

命令: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,1
結果: 顯示輔助選項/鍵盤。

命令: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,2
結果: 顯示輔助選項/聲音。

命令: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,3
結果: 顯示輔助選項/顯示。

命令: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,4
結果: 顯示輔助選項/滑鼠。

添加新硬體
模組: sysdm.cpl
命令:rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl @1

增加新的印表機
模組:shell32.dll
命令:rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL AddPrinter

添加/刪除程式
模組:appwiz.cpl
命令:rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1
結果:顯示安裝/卸載。

命令:rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1
結果:顯示安裝/卸載。

命令:rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2
結果:顯示Windows 安裝。

命令:rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,3
結果:顯示啟動盤。

複製磁碟
模組:diskcopy.dll
命令:rundll32.exe diskcopy.dll,DiskCopyRunDll

時間/日期
模組: timedate.cpl
命令: rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0
結果: 顯示設定日期/時間。

命令: rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1
結果: 顯示設定時間地區。

撥號連線(DUN)
模組: rnaui.dll
命令: rundll32.exe rnaui.dll,RnaDial 串連_名稱
結果: 開啟指定的撥號連線。
例子:
x= Shell("rundll32.exe rnaui.dll,RnaDial "  &  "串連_名稱", 1) 

顯示器
模組: desk.cpl
命令: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0
結果: 背景設定。

命令: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1
結果: 螢幕保護裝置設定。

命令: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2
結果: 外觀設定。

命令: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3
結果: 設定視窗。

操縱杆
模組: joy.cpl
命令: rundll32.exe shell32.dll,Control_RunDLL joy.cpl

郵件/傳真
模組: mlcfg32.cpl
命令: rundll32.exe shell32.dll,Control_RunDLL mlcfg32.cpl
結果: 出現 MS Exchange 屬性設定。

郵局設定
模組: wgpocpl.cpl
命令: rundll32.exe shell32.dll,Control_RunDLL wgpocpl.cpl
結果: 顯示 MS Postoffice Workgroup Admin 設定。

主設定
模組: main.cpl
命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @0
結果: 顯示滑鼠屬性。

命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @1
結果: 顯示鍵盤/速度屬性。

命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @1,,1
結果: 顯示鍵盤/語言屬性。

命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @1,,2
結果: 顯示鍵盤/常規屬性。

命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @2
結果: 顯示印表機屬性。

命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @3
結果: 顯示字型屬性。

命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @4
結果: 顯示電源管理屬性。

增加 Modem 
模組:modem.cpl
命令:rundll32.exe shell32.dll,Control_RunDLL modem.cpl,,add

多媒體
模組: mmsys.cpl
命令: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0
結果:聲音。

命令: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,1
結果:視頻。

命令: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,2
結果:聲音 MIDI。

命令: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,3
結果:CD/音樂。

命令: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,4
結果:進階。

命令: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl @1
結果:聲音。

網路
模組:netcpl.cpl
命令:rundll32.exe shell32.dll,Control_RunDLL netcpl.cpl

開啟檔案視窗(Open With)
模組: shell32.dll
命令:rundll32.exe shell32.dll,OpenAs_RunDLL path/filename

口令
模組: password.cpl
命令: rundll32.exe shell32.dll,Control_RunDLL password.cpl

地區設定
模組: intl.cpl
命令: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0
結果: 地區設定。

命令: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,1
結果: 數字格式設定。

命令: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,2
結果: 金額格式設定。

命令: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,3
結果:時間格式設定。

命令: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,4
結果: 日期格式設定。

螢幕保護裝置
模組: appwiz.cpl
命令: rundll32.exe desk.cpl,InstallScreenSaver c:/win/system/Flying Windows.scr
結果: 安裝螢幕保護裝置並顯示預覽屬性頁面。

系統設定
模組: sysdm.cpl
命令: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0
結果: 顯示常規設定。

命令: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,1
結果: 顯示裝置管理設定。

命令: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2
結果: 顯示硬體設定。

命令: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3
結果: 顯示效能設定。

IE4 設定
模組: inetcpl.cpl
命令: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.