@echo offrem 修改下面的数字,从1到100
set brightness=50rem set /P brightness=输入亮度值:echo %brightness%
Powershell -Command "& {(Get-WmiObject -Namespace root/WMI -Class WmiMonitorBrightnessMethods).WmiSetBrightness(1, %brightness%)}"
但是部分电脑可能不支持Get-WmiObject命令,则可能需要进行windows驱动编程相关知识了
使用SetDeviceGammaRamp可以参考这篇博客
https://blog.csdn.net/weixin_30268071/article/details/99518280