This project provides simple batch scripts to quickly switch between single display mode (only the primary monitor is active) and multi-display (extended) mode on Windows 10/11 systems.
- SingleDisplayMode.bat
- Switches your system to use only the primary display, disabling all other connected monitors.
- RestoreDisplays.bat
- Restores the extended desktop mode, enabling all connected monitors.
-
SingleDisplayMode.bat
- Double-click运行,或右键以管理员身份运行。
- 脚本会自动检测显示器数量,若多于1个,则切换到仅主显示器模式。
-
RestoreDisplays.bat
- 双击运行即可恢复多显示器扩展模式。
- 你也可以使用
Win + P快捷键手动切换显示模式。
- 脚本基于 Windows 内置的
DisplaySwitch.exe,无需第三方工具。 - 某些情况下可能需要以管理员身份运行脚本。
- 会议演示、远程办公、临时只用主显示器等。
如有更多需求或建议,欢迎反馈!