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

Bruno Charters picture Bruno Charters · Feb 7, 2013 · Viewed 39.4k times · Source

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

Answer

npocmaka picture npocmaka · Mar 9, 2017

If you want to maximize an 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