Gerhard Häring wrote:
Alexnb wrote:
>Okay, so what I want my program to do it open a file, a music file in
>specific, and for this we will say it is an .mp3. Well, I am using the
>system() command from the os class. [...]
>
>system("\"C:\D ocuments and Settings\Alex\M y Documents\My
>Music\Rhapsody \Bryanbros\Weez er\(2001)\04 - Island In The Sun.wma\"")
>[...]
>specific, and for this we will say it is an .mp3. Well, I am using the
>system() command from the os class. [...]
>
>system("\"C:\D ocuments and Settings\Alex\M y Documents\My
>Music\Rhapsody \Bryanbros\Weez er\(2001)\04 - Island In The Sun.wma\"")
>[...]
-- Gerhard
--
No, it didn't work, but it gave me some interesting feedback when I ran it
in the shell. Heres what it told me:
>>os.startfile( "C:\Documen ts and Settings\Alex\M y Documents\My
>>Music\Rhapsod y\Bryanbros\Jas on Mraz\I'm Yours (Single)\01 - I'm
>>Yours.wma")
>>Music\Rhapsod y\Bryanbros\Jas on Mraz\I'm Yours (Single)\01 - I'm
>>Yours.wma")
File "<pyshell#1 0>", line 1, in <module>
os.startfile("C :\Documents and Settings\Alex\M y Documents\My
Music\Rhapsody\ Bryanbros\Jason Mraz\I'm Yours (Single)\01 - I'm Yours.wma")
WindowsError: [Error 2] The system cannot find the file specified:
"C:\\Docume nts and Settings\\Alex\ \My Documents\\My
Music\\Rhapsody \\Bryanbros\\Ja son Mraz\\I'm Yours (Single)\x01 - I'm
Yours.wma"
See it made each backslash into two, and the one by the parenthesis and the
0 turned into an x....
--
View this message in context: http://www.nabble.com/problems-with-...p17759825.html
Sent from the Python - python-list mailing list archive at Nabble.com.
Comment