Re: Finding and copying files with python.

2007-04-03 Thread gtb
On Apr 3, 9:42 am, "Daniele Varrazzo" <[EMAIL PROTECTED]> wrote: > > > > I wish to copy the highest version number of a file from directory \ > > > > \ > > > > \fileserver\D:\scripts to C:\scripts where the file names are of the > > > > form > > > > > filename_MM.NN.SS.zip, where MM, NN, and SS c

Re: Finding and copying files with python.

2007-04-03 Thread Daniele Varrazzo
> > > I wish to copy the highest version number of a file from directory \ > > > \ > > > \fileserver\D:\scripts to C:\scripts where the file names are of the > > > form > > > > filename_MM.NN.SS.zip, where MM, NN, and SS can be one to three > > > digits. > > > > Example directory: > > > other.zip

Re: Finding and copying files with python.

2007-04-03 Thread Steve Holden
gtb wrote: > On Apr 3, 8:31 am, [EMAIL PROTECTED] wrote: >> On Apr 3, 8:21 am, "gtb" <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >>> I wish to copy the highest version number of a file from directory \ >>> \ >>> \fileserver\D:\scripts to C:\scripts where the file names are of the >>> form >>>

Re: Finding and copying files with python.

2007-04-03 Thread kyosohma
On Apr 3, 8:47 am, "gtb" <[EMAIL PROTECTED]> wrote: > On Apr 3, 8:31 am, [EMAIL PROTECTED] wrote: > > > > > On Apr 3, 8:21 am, "gtb" <[EMAIL PROTECTED]> wrote: > > > > I wish to copy the highest version number of a file from directory \ > > > \ > > > \fileserver\D:\scripts to C:\scripts where the

Re: Finding and copying files with python.

2007-04-03 Thread gtb
On Apr 3, 8:31 am, [EMAIL PROTECTED] wrote: > On Apr 3, 8:21 am, "gtb" <[EMAIL PROTECTED]> wrote: > > > > > > > > > I wish to copy the highest version number of a file from directory \ > > \ > > \fileserver\D:\scripts to C:\scripts where the file names are of the > > form > > > filename_MM.NN.SS.

Re: Finding and copying files with python.

2007-04-03 Thread kyosohma
On Apr 3, 8:21 am, "gtb" <[EMAIL PROTECTED]> wrote: > I wish to copy the highest version number of a file from directory \ > \ > \fileserver\D:\scripts to C:\scripts where the file names are of the > form > > filename_MM.NN.SS.zip, where MM, NN, and SS can be one to three > digits. > > Example di

Re: Finding and copying files with python.

2007-04-03 Thread [EMAIL PROTECTED]
Just sort them and then select the bottom one from a list by using a negative indices. I.e.: list[-1] Would return the bottom result out of a list On Apr 3, 2:21 pm, "gtb" <[EMAIL PROTECTED]> wrote: > I wish to copy the highest version number of a file from directory \ > \ > \fileserver\D:\scr

Finding and copying files with python.

2007-04-03 Thread gtb
I wish to copy the highest version number of a file from directory \ \ \fileserver\D:\scripts to C:\scripts where the file names are of the form filename_MM.NN.SS.zip, where MM, NN, and SS can be one to three digits. Example directory: other.zip dx_ver_1.1.63.zip dx_ver_1.2.01.zip dx_ver_1.12.7