LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change the file creation date through Labview 7.1?

I am trying to set up an automatic backup of a data file in which I store data from my VI.  I want to back up my data in 2 ways, first if the the file exceeds a predetermined size I want to copy it to a new directory with a date stamped name, then create a new empty data file to continue logging.  This part I can do.  The problem is that I also want this file to be backed up every 24 hours after its creation date.  I can get the data to tell when it is created and back it up, but when I delete the old file (or move it), then create the new file it has the same creation date as it orgianlly had.  I know that the file has been deleted, if I add long delays into my VI I can watch through windows and see the file disappear from my file directory, then it will be re-created and appear again.  I do not think that I will have much hair left if I continue working on this much longer.  But of course I am sure there is an easy answer somewhere.  I have tried a reply from another thread using the external call to the touch.exe program, however it does not change the programs creation date, only its last modified date.
0 Kudos
Message 1 of 5
(3,296 Views)
Try G Toolbox at:
    http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 2 of 5
(3,293 Views)
I did not find too much useful here, but maybe I am missing something, I had some errors on the page.
0 Kudos
Message 3 of 5
(3,284 Views)
Long ago I wrote a little demo using the touch command. Check out the following thread:
 
Message 4 of 5
(3,281 Views)
Thank you, I tried the original version of touch and it did not work, however after you replied again, I downloaded a newer version and it works great!
0 Kudos
Message 5 of 5
(3,247 Views)