[python-win32] os.system problem

Guido Wesdorp mailings at johnnydebris.net
Thu Aug 7 11:47:28 EDT 2003


ryan wrote:

> os.system('C:\\"foo bar"\\some.exe <file://%5C%5Csome.exe> %s' % filename)

I think you need to place the double quotes around the full path (I 
prepended the string with an 'r' so the backslashes don't have to be 
escaped):

os.system(r'"c:\foo bar\some.exe" %s' % filename)

should work afaik.

Cheers,

Guido





More information about the Python-win32 mailing list