[Tutor] Os.system on winXP system having trouble with spaces indirectory names (original) (raw)

Alan Gauld alan.gauld at blueyonder.co.uk
Tue Jul 20 23:31:45 CEST 2004


I'm having trouble with a using os.system on a windowsXP machine.

Running: os.system('start C:\Documents and Settings\Smith_B2\Desktop\page.html')

Put nested strings:

os.system('start "C:\Documents and Settings\Smith_B2\Desktop\page.html"')

or escape the spaces:

os.system('start C:\Documents\ and
Settings\Smith_B2\Desktop\page.html')

Alan G



More information about the Tutor mailing list