execl difficulty

J.R. j.r.gao at motorola.com
Mon Dec 15 09:01:02 CET 2003


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

J.R.

"python newbie" <mesteve_b at hotmail.com> wrote in message
news:W44Db.39213$B03.19442 at newssvr29.news.prodigy.com...
> Can anyone tell me why this would cause "Invalid Number of Parameters"
while
> trying to compile (or interpret or whatever)
>
> import os
>
os.execl("C:/WINDOWS/system32/xcopy.exe","E:/MainWeb/dreampics/*.*","E:/Main
> Web/dp")
>
> Here's what the Python reference says:
>      execl(path,arg0, arg1, ...)
>
> if you can see something obvious, please tell me
> thanks
> Steve
>
>
>






More information about the Python-list mailing list