ok i need a way to set a files modified date and time property
thanks in advance
Kris Bennett
Printable View
ok i need a way to set a files modified date and time property
thanks in advance
Kris Bennett
Checkout the SetFileTime API
http://www.allapi.net/apilist/SetFileTime.shtml
that works on some files but on others i get:
err.lastdllerror=6
the err desc for this is:
"The handle is invalid"
any ideas?
thanks
kris bennett
Post the whole block of code (if different from the above link) and state the files it fails on.
code is the same as above - fails on about 50% of files
Check out the attachment (post 9) in this thread:- (FileFolderDateStamper.zip) http://www.vbforums.com/showthread.php?t=404544 It's an app I put together for modifying a file's or folder's created, modified and last accessed dates/times. You may be getting errors because the files have read-only attributes. This app takes care of that.