import os
import win32gui, win32con
class Path:
pass
path1 = os.popen(r"C:\Windows\notepad.exe")
Once the notepad is open, it should appear with full screen(maximize window).
You can use Windows's start
command with a /max
modifier, i.e.:
import subprocess
subprocess.call(["cmd", "/c", "start", "/max", "C:\\Windows\\notepad.exe"])
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