execl difficulty

J.R. j.r.gao at motorola.com
Wed Dec 17 02:51:42 CET 2003


Sorry for the typo. The path delimiter on windows should be double
backslash, the
first one is for escape.

os.execl("c:\\WINDOWS\\system32\\xcopy.exe",
"E:\\MainWeb\\dreampics\\*.*","E:\\MainWeb\\dp")

J.R.

"Fredrik Lundh" <fredrik at pythonware.com> wrote in message
news:mailman.187.1071569341.9307.python-list at python.org...
> "J.R." <j.r.gao at motorola.com> wrote:
>
> > You may try
> > os.execl("c:\\WINDOWS\system32\xcopy.exe",
"E:\\MainWeb\\dreampics\\*.*",
> > "E:\\MainWeb\\dp")
>
> that's a rather verbose way to get a compilation error:
>
>     ValueError: invalid \x escape
>
> </F>
>
>
>
>






More information about the Python-list mailing list