GetFileDate gets the date created, modified of files and directories, however I can not get the SetFileDate to set the dates of folders. Is there a trick to this that I miss?
My code is to read the filedate for folderX on drive Y and set the same filedate to folderX on drive Z.
I searched the forums and not instance of SetFileDate showed up.
Thanks for any help.
SetFileDate() Question
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Yes, you've struck upon an interesting point. PureBasic's SetFileDate command works with files but not with folders. This is due to the fact that the SetFileDate_() API needs a valid folder handle to set the creation date and a string isn't going to cut it. Here's how it can be done:
http://www.purebasic.fr/english/viewtop ... 956#202956
http://www.purebasic.fr/english/viewtop ... 956#202956
BERESHEIT
SetFileDate() Question
Thanks, I am looking at the code trying to figure what you have done.
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada