os.system, backslash and commandline problem
Fredrik Lundh
fredrik at pythonware.com
Tue Oct 30 10:17:01 EST 2001
Sharriff.Aina at med-iq.de wrote:
> I tried out a file that had "dangerous" characters:
> c:\the\boy.txt ("\t" TAB, "\b" BELL)
>>> print "c:\the\boy.txt"
c: hoy.txt
>>> print "c:\\the\\boy.txt"
c:\the\boy.txt
> This is very saddening, any clues? help?
for more info, read up on "string literals" in your favourite
Python book, e.g:
http://www.python.org/doc/current/ref/strings.html
</F>
More information about the Python-list
mailing list