How to replace the two last digits from an xml file?

2009-03-06 Thread awel
Hi, I am trying to get a value from an xml file, increment it by 1, replace by the new value and write another xml with the new value inside. I have found this code to get the line and it works but I have to do everything manualy: import re lines = open("c:\\File1.xml").readlines() for i in rang

Re: how to filter files by creation date

2007-11-06 Thread awel
On 6 nov, 11:27, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Tue, 06 Nov 2007 01:45:02 -0800, awel wrote: > > On 6 nov, 09:00, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > >> On Mon, 05 Nov 2007 23:33:16 -0800, awel wrote:

Re: how to filter files by creation date

2007-11-06 Thread awel
On 6 nov, 09:00, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Mon, 05 Nov 2007 23:33:16 -0800, awel wrote: > > I am trying to to make a script to move all the files that has been > > created at today's to another folder but my problem is the dat

how to filter files by creation date

2007-11-05 Thread awel
str_time #print filesys for file in filesys: create_time = get_create_time(a) print file, create_time[-4:] # print today Thanks Awel -- http://mail.python.org/mailman/listinfo/python-list

Re: Check a windows service

2007-01-17 Thread awel
Thanks for all 'cause you've really helped me Just one thing in the last line for the specific service, you' ve writted : >print service but I think it is : >print service.Caption Tim Golden a écrit : > awel wrote: > > Sorry, but could you give me

Re: Check a windows service

2007-01-16 Thread awel
Sorry, but could you give me an example with a real service 'cause I've tried this script but nothings happened, no error, nothings ; even if I launch it in cmd prompt. Thanks Chris Mellon a écrit : > On 16 Jan 2007 09:09:34 -0800, Tim Golden <[EMAIL PROTECTED]> wr

Re: Check a windows service

2007-01-16 Thread awel
Sorry, but could you give me an example with a real service 'cause I've tried this script but nothings happened, no error, nothings ; even if I launch it in cmd prompt. Thanks Tim Golden a écrit : > awel wrote: > > > I'm new in python and I would like to know if it&#

Re: Check a windows service

2007-01-16 Thread awel
Sorry, but could you give me an example with a real service 'cause I've tried this script but nothings happened, no error, nothings ; even if I launch it in cmd prompt. Thanks Tim Golden a écrit : > awel wrote: > > > I'm new in python and I would like to know if it&#

Check a windows service

2007-01-16 Thread awel
Hi, I'm new in python and I would like to know if it's possible to check if a specific windows service is present and if it's possible how can I do? Thanks -- http://mail.python.org/mailman/listinfo/python-list