[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
- Previous message: [Tutor] Os.system on winXP system having trouble with spaces in directory names
- Next message: [Tutor] Please critique my guessing game program.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Tutor] Os.system on winXP system having trouble with spaces in directory names
- Next message: [Tutor] Please critique my guessing game program.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]