[Tutor] Os.system on winXP system having trouble with spaces
indirectory names
Christian Wyglendowski
Christian.Wyglendowski at greenville.edu
Fri Jul 16 20:07:53 CEST 2004
Quoting your path should take care of it:
os.system('start "C:\\Documents and
Settings\\Smith_B2\\Desktop\\page.html"')
Christian
http://www.dowski.com
________________________________
From: tutor-bounces at python.org [mailto:tutor-bounces at python.org]
On Behalf Of Barrett Smith
Sent: Tuesday, July 13, 2004 1:31 PM
To: 'tutor at python.org'
Subject: [Tutor] Os.system on winXP system having trouble with
spaces indirectory names
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')
Yields and error saying 'Windows cannot find C:\Documents.....'
This same problem means I can't access things in the 'Program
Files' directory and so forth. Any ideas of work-arounds (other than
moving to non-space included directories)?
Thanks,
Barrett
More information about the Tutor
mailing list