faqts : Computers : Programming : Languages : Python

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

10 of 25 people (40%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

In Windows, how do you use os.system to execute a file with a space in the path?

Mar 15th, 2005 04:25
Cristian Ciupitu, Noel O'Boyle,


Just try using " (double quotes) around the filename containing spaces.
For example: os.system('"C:\\Program Files\\....\\foobar.exe" /l')