I have added a question :
I don't think that it should be so hard but I didn't got any complete answer.
What I like to do is to create backups of a file if it has been changed.
For exaple say the file
When the service starts I like to make a copy of c:\test.tmp
where '2002-07-06 is the current date
and 10-02-11 is the current time. (10:02:54)
then I want the service to check every 10 minute if
the file c:\test.tmp has been changed since the last backup. if so I like to make a new copy
(with a correct name in the same way as before.)
If possible I like to have it that way that the file is not locked for other programs during the copy.
Can someone help me out with this.