Windows Nt directory names

James Kew james.kew at btinternet.com
Sun Nov 17 04:04:03 EST 2002


asdfasd asdfasdf (how original) wrote:

>CMD = r'c:\program files\action.exe'
>os.system(CMD)
>how do i code so that the space in "program files" is recognized?

Put double quotes around the executable's path:

os.system(r'"c:\program files\action.exe"')

James





More information about the Python-list mailing list