Jump to content

Changing a file date & time


Recommended Posts

I have a requirement where I need to specifically modify the DATE and TIME of a group of a few dozen or so MS-Windows files which are programatically copied by a LV 8.5 utility into a selected destination folder. I have to modify the date and time of ALL the copied files to be the same date and time whether that be the current date and time or a selected date and time. (There's an application specific reason) There doesn't seem to be any file function in LV 8.5 that will allow me to accomplish this. I've tried copyping, renaming and moving with no success. The original windows file timestamp remains unchanged no matter what I do with the file.

The only related (sort of) mention of this that I found on the NI website is a utility that someone wrote called GetFileCreationDate.vi (http://digital.ni.com/public.nsf/allkb/0A2...625727C000CFA7B) which actually does the opposite of what I need to do. I need to SetFileCreationDate. Does anyone know of an easy way for me to accomplish what I've described? Of does someone already have a utility called SetFileCreationDate.vi that does this? Unfortunatley I'm not a C programmer, so searching the MSDN vaults for a solution can be a bit challenging. Comments or suggestions appreciated. Thanks. Ed

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.