How can I maximize a specific window through cmd? (Windows)

前端 未结 2 1550
不知归路
不知归路 2020-12-16 20:36

I just want to make a simple Notepad .bat file that would maximize a specific process window. Is that possible?

2条回答
  •  忘掉有多难
    2020-12-16 21:14

    Start takes an argument to do that.

    START /MAX notepad.exe
    

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

提交回复
热议问题