pixels75 Posted June 2, 2007 Share Posted June 2, 2007 Hi ! I can't manage milliseconds with FileSetTime and FileGetTime (RoboCopy use it for comparing files). I think it's specific to NTFS. Anyone know a simple way to do it ? Thanks Link to comment Share on other sites More sharing options...
PaulIA Posted June 2, 2007 Share Posted June 2, 2007 Hi !I can't manage milliseconds with FileSetTime and FileGetTime (RoboCopy use it for comparing files).I think it's specific to NTFS. Anyone know a simple way to do it ?ThanksYou can rip the _Time_GetFileTime and _Time_SetFileTime functions from Auto3Lib. They handle milliseconds. Check the Auto3Lib help file for examples on usage. Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
pixels75 Posted June 2, 2007 Author Share Posted June 2, 2007 You can rip the _Time_GetFileTime and _Time_SetFileTime functions from Auto3Lib. They handle milliseconds. Check the Auto3Lib help file for examples on usage.Perfect ! Waow, great job your "Auto3Lib", next time I start by looking on it ! I was trying to match the time / date of two files, $hFileSrce and $hFileDest. CODE $aTime = _Time_GetFileTime($hFileSrce) $pCreateTime = DllStructGetPtr($aTime[0]) $pLastAccess = DllStructGetPtr($aTime[1]) $pLastWrite = DllStructGetPtr($aTime[2]) _Time_SetFileTime($hFileDest, $pCreateTime, $pLastAccess, $pLastWrite) Thank's a lot ! Link to comment Share on other sites More sharing options...
PaulIA Posted June 2, 2007 Share Posted June 2, 2007 Perfect ! Waow, great job your "Auto3Lib", next time I start by looking on it ! I was trying to match the time / date of two files, $hFileSrce and $hFileDest. CODE $aTime = _Time_GetFileTime($hFileSrce) $pCreateTime = DllStructGetPtr($aTime[0]) $pLastAccess = DllStructGetPtr($aTime[1]) $pLastWrite = DllStructGetPtr($aTime[2]) _Time_SetFileTime($hFileDest, $pCreateTime, $pLastAccess, $pLastWrite) Thank's a lot ! You're welcome. Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
ScottSaltz Posted January 24, 2017 Share Posted January 24, 2017 (edited) On 6/2/2007 at 6:35 AM, PaulIA said: You can rip the _Time_GetFileTime and _Time_SetFileTime functions from Auto3Lib. They handle milliseconds. Check the Auto3Lib help file for examples on usage. Edited January 24, 2017 by ScottSaltz Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 24, 2017 Moderators Share Posted January 24, 2017 @ScottSaltz any explanation on why you resurrected a 7 year old thread, just to quote what someone else already said? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
ScottSaltz Posted January 24, 2017 Share Posted January 24, 2017 Just now, JLogan3o13 said: @ScottSaltz any explanation on why you resurrected a 7 year old thread, just to quote what someone else already said? sorry, just looking for help that's all... i tried to delete the message after a little more research...again, sorry Link to comment Share on other sites More sharing options...
ScottSaltz Posted January 24, 2017 Share Posted January 24, 2017 31 minutes ago, JLogan3o13 said: @ScottSaltz any explanation on why you resurrected a 7 year old thread, just to quote what someone else already said? sorry, just looking for help that's all... i tried to delete the message after a little more research...again, sorry... guess i'm too stupid to ask for help Link to comment Share on other sites More sharing options...
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