add-type -AssemblyName System.Windows.Forms
$CWidth = (([System.Windows.Forms.Screen]::PrimaryScreen).Bounds).Width
$CHeight = (([System.Windows.Forms.Screen]::PrimaryScreen).Bounds).Height
powershell脚本获取电脑分辨率
最新推荐文章于 2023-03-30 11:50:31 发布
add-type -AssemblyName System.Windows.Forms
$CWidth = (([System.Windows.Forms.Screen]::PrimaryScreen).Bounds).Width
$CHeight = (([System.Windows.Forms.Screen]::PrimaryScreen).Bounds).Height