[python-win32] setting title bar of cmd.exe
Thomas Heller
theller at ctypes.org
Fri Jul 29 19:19:56 CEST 2011
Am 29.07.2011 19:15, schrieb Ethan Furman:
> When running commands from cmd the title bar will update to relect the
> currently running command. Is there a way to have python scripts run
> from cmd.exe to update the cmd title bar?
>
> ~Ethan~
from ctypes import windll
windll.kernel32.SetConsoleTitleA("foobar")
-or-
windll.kernel32.SetConsoleTitleA(u"spam")
Thomas
More information about the python-win32
mailing list