Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-31-2004, 11:18 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-20-2003
Location: Dunedin, New Zealand
Posts: 114
Controlling timestamp used for copied files

Is it possible to control the timestamp used for files copied using the Copy Step?

At present it seems that the files get the time that the copy was done. Often it would be nice to use the timestamp from the original file. Sometimes it would be nice to use a supplied timestamp.

In some cases it may be nice to manage the creation and last modified timestamps individually.
Reply With Quote
  #2  
Old 04-01-2004, 09:08 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
The Copy Files action uses the CopyFileEx API to copy files, which sets the creation time to the current time and retains the modification time of the original file. This is consistent with copying from a command prompt or Windows Explorer, and retaining the modification time value is necessary to support incremental file copy.

After copying, you could use a touch utility (such as the one in http://unxutils.sourceforge.net/) to modify file timestamps. We'll consider adding an option to the Copy Files action set the created/modified timestamps for all copied files to a user-supplied date/time value.
Reply With Quote
  #3  
Old 04-01-2004, 04:06 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-20-2003
Location: Dunedin, New Zealand
Posts: 114
In that case something odd is going on. I am getting the modification timestamps set to the time of the copy. Is there an OS option I don't know about that may be doing this? Doesn't seem likely as it doesn't happen when I copy files in the explorer.

Could it be that (&%^*& MacServer is clobbering the timestamps? Not only it could be, it is!

The timestamp still seems like a good idea though, albeit low priority.

Last edited by pjaquiery; 04-01-2004 at 04:43 PM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 04:20 PM.


Copyright © 1999-2023 Kinook Software, Inc.