How can i maximize a specific window through cmd?(windows)

流过昼夜 提交于 2019-11-30 19:49:59

Start takes an argument to do that.

START /MAX notepad.exe

However, if it an already running instance, it is outside cmd's control.

If you want to maximize already running program/window you can try with windowMode.bat using its title (or a string that the title starts with)

@echo off
call windowMode -title "Notepad" -mode maximized

or with its process id:

@echo off
call windowMode -pid 1313 -mode maximized
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!