Archived
1
0

! raised version to 1.3

+ compare size/timestamp of files before backing up (saves time!)
! need to implement the same for folders - may have to rewrite to file-loop
This commit is contained in:
mbirth 2007-03-26 15:49:21 +00:00
parent 28a048690c
commit 429f254029
2 changed files with 12 additions and 1 deletions

View File

@ -83,6 +83,17 @@ Else
{
IfExist %U3_HOST_EXEC_PATH%\%CurFile%
{
IfExist %U3_APP_DATA_PATH%\%CurFile%
{
FileGetSize FilSize1, %U3_HOST_EXEC_PATH%\%CurFile%
FileGetSize FilSize2, %U3_APP_DATA_PATH%\%CurFile%
FileGetTime FilStamp1, %U3_HOST_EXEC_PATH%\%CurFile%
FileGetTime FilStamp2, %U3_APP_DATA_PATH%\%CurFile%
if ((FilSize1 = FileSize2) and (FilStamp1 = FilStamp2)) {
; Both versions are same size and same date/time - skip
Continue
}
}
Status("Saving data file " . CurFile . " ...")
FileCopy %U3_HOST_EXEC_PATH%\%CurFile%, %U3_APP_DATA_PATH%\%CurFile%, 1
}

View File

@ -2,7 +2,7 @@
#NoEnv
#Include mb_IniTools.ahk
#Include mb_TextTools.ahk
U3HVer = 1.2
U3HVer = 1.3
EnvGet U3_DEVICE_SERIAL, U3_DEVICE_SERIAL ; serial number of device (copy protection)
EnvGet U3_DEVICE_PATH, U3_DEVICE_PATH ; drive letter to device (F:)