• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

Can a file's "time created" property be changed using VB?

I have the code that will change the "time modified" property of a file.  But I'm wondering if the "time created" property can be changed as well using VB.  Any insights?  Thanks in advance.

P.S  I'm so sorry I can only give 35 points for this question.  That's all the points I have.  I promise to give more when I get more points.  I'm still waiting for some of my answers to be graded.
1 Solution
BTW, you won't get points to spend from questions you answer ... just your 5 points a day.
It can be done (maybe via C)
This site has a utility that does it ... maybe you can ask them the sources

Public Declare Function SetFileTime Lib "kernel32" Alias "SetFileTime" (ByVal hFile As Long, lpCreationTime As FILETIME, lpLastAccessTime As FILETIME, lpLastWriteTime As FILETIME) As Long

piratepatrolAuthor Commented:
SiriusP, please kindly tell me what exactly to put in the code section of the form to have the program actually execute the desired intent.  I'm new on API's.  Thank you so much.

This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.

Thank you,
Moderator @ Experts Exchange
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now