AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Automatically keep file history

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Fri Dec 11, 2009 3:50 am    Post subject: Automatically keep file history Reply with quote

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






PostPosted: Fri Dec 11, 2009 4:29 am    Post subject: Reply with quote

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

PostPosted: Fri Dec 11, 2009 4:58 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group