There may be different ways to code it. This works. The problem is that occasionally somehow, WinRK terminates without terminating the process, or at least Python doesn't pick up the return code. It turns out that using poll() instead of wait() only reduces the error frequency, and allows me to recover from the failure. It doesn't eliminate it.
Earl On Thu, 2005-03-24 at 00:16, Tim Roberts wrote: > Earl Eiland <[EMAIL PROTECTED]> wrote: > > >I'm running the following code on Windows 2000, 5.00.2195: > > > >for x in Files: > > Command_String = 'C:\Program Files\WinRK\WinRK.exe -create ' + > > That can't be right. You need either > Command_String = 'C:\\Program Files\\WinRK\\WinRK.exe -create ' + > or > Command_String = r'C:\Program Files\WinRK\WinRK.exe -create ' + > -- > - Tim Roberts, [EMAIL PROTECTED] > Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list