I just want to make a simple Notepad .bat file that would maximize a specific process window. Is that possible?
Open the Command Prompt and press Alt + ↵ Enter to make it full-screen.
If you just open the batch file, click on the window, and then click "properties", and then to "layout", and scroll down to "Window Size", you can edit it from there. It will also stay that way every time you open that specific batch file, so it's pretty handy.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With