I have python string as follows
mystring = "copy "d:\Progrm Files" "c:\Progrm Files\once up on a time""
how can I split this string to
mylist = [copy,d:\Progrm Files,c:\Progrm Files\once up on a time]
When I tried to use mysring.split(" ") the spaces Progrm Files and once up on a time are also getting split.
mystringis properly quoted for both python and the shell. Compare the example given in my answer with your own code.