! 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:
parent
28a048690c
commit
429f254029
@ -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
|
||||
}
|
||||
|
@ -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:)
|
||||
|
Reference in New Issue
Block a user