| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Fri Dec 11, 2009 3:50 am Post subject: Automatically keep file history |
|
|
I'm looking to write a script to:
While program x is running
every minute copy c:\blah\file.txt to c:\blah\file00000001.txt having it increment the number every minute.
I've been playing around with ifexist in a loop, but I'm not sure if that's the way to go, never mind I have no idea how to increment the number. |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Dec 11, 2009 4:29 am Post subject: |
|
|
use FileCopy to duplicate the file
then for the file name, u can do a time stamp like
c:\blah\file_%A_now%.txt |
|
| Back to top |
|
 |
iguru42
Joined: 02 Sep 2008 Posts: 49
|
Posted: Fri Dec 11, 2009 4:58 am Post subject: |
|
|
| Anonymous wrote: | use FileCopy to duplicate the file
then for the file name, u can do a time stamp like
c:\blah\file_%A_now%.txt |
Oh geeze, duh, well that's why I post here.
Dunno why I was so obsessed with consecutive numbers.
Thanks for the suggestion  |
|
| Back to top |
|
 |
|