[python-win32] want to leave DOS console at any target dir

Michel Claveau mc at mclaveau.com
Thu Nov 22 08:34:55 CET 2007


Hi!

Try this:
    import os
    os.system('start "TITLE" "cmd /KCD /DD:\\Dev\\python"')     #for dir: 
D:\\Dev\\python

("TITLE" is the title (yes!) of the window)


@-salutations

Michel Claveau



More information about the python-win32 mailing list