JeffAllenNJ Posted 8 hours ago Posted 8 hours ago After a disk recovery, I have LOTS of files where the modification time is earlier than the create time. So, I wrote a little script to detect and correct. Unfortunately, FileSetTime is returning 0. $Mod = FileGetTime($File,0,1) $Cre = FileGetTime($File,1,1) If Int($Cre) > Int($Mod) Then FileSetTime($File, $Mod, 0) ws(@error,@extended) EndIf
argumentum Posted 6 hours ago Posted 6 hours ago Return Value Success: 1. Failure: 0 if error changing timestamp(s). ... $iRet = FileSetTime($File, $Mod, 0) ConsoleWrite($iRet & ' - ' & @error & ' - ' & @extended) ... Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now