为什么在 PowerShell 中运行“main”会打开我的鼠标属性

Bra*_*ean 4 powershell

我正在设置一个编程环境,然后我去运行我的Main.exe,由于睡眠不足,我遗漏了.exe. 令我惊讶的是,鼠标属性对话框打开了。我知道我的 hello world 应用程序并没有神奇地打开鼠标属性,所以我跑得很快Get-Command Main,它吐了出来C:\Windows\system32\main.cpl。所以我想这里真正的问题是为什么C:\Windows\system32\main.cpl打开我的鼠标属性?

小智 6

.cpl扩展控制面板项目,以及默认的“开放”是control.exe可执行文件。所以,当你进入main到你的终端,它是开放main.cplcontrol.exe可执行文件,它是打开控制面板的鼠标部分。我不知道为什么他们选择使用main.cpl的鼠标属性,但这里是各种其他列表.cpl的使用有control.exehttps://support.microsoft.com/en-ie/help/149648/description-of- control-panel--cpl-files,也请查看:https : //www.lifewire.com/command-line-commands-for-control-panel-applets-2626060

我实际上已经使用mmsys.cpl来自动切换声音设备。