ken82m Posted February 17, 2004 Share Posted February 17, 2004 Does anyone have an easy way of doing this? this whole array thing is giving me a headache! (I'm an idiot so take me to judge judy lol) okay I have File A and File B. File A is on my server File B is a temporary copy on my local PC I want to do a FileGetTime on both copies of the files and determine if File B was modified more recently than File A if it was I would then copy File B up to the server Thanks Again, Kenny "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains." Link to comment Share on other sites More sharing options...
Developers Jos Posted February 17, 2004 Developers Share Posted February 17, 2004 (edited) didn't test it but something like this should work i think: $FNa = " f:\file1.txt" $FNb = " c:\file1.txt" $Fa=FileGetTime ( $FNa ) $Fb=FileGetTime ( $FNb ) $Da = Int($Fa[0] & $Fa[1] & $Fa[2] & $Fa[3] & $Fa[4] & $Fa[5]) $Db = Int($Fb[0] & $Fb[1] & $Fb[2] & $Fb[3] & $Fb[4] & $Fb[5]) If $db > $da then FileCopy($FNb,$FNa,1) Edited February 17, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
ken82m Posted February 17, 2004 Author Share Posted February 17, 2004 perfect, thanks about the only thing I can do without testing is MSGBOX(4096,"", "This is a box") Thanks again, Kenny "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains." 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