From 2dc20012841631b3886b305987295e71b1248460 Mon Sep 17 00:00:00 2001 From: mbirth Date: Sun, 29 Apr 2007 17:55:12 +0000 Subject: [PATCH] + added removal of attributes from files and folders before deletion --- U3H_hostCleanUp.ahk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/U3H_hostCleanUp.ahk b/U3H_hostCleanUp.ahk index 655142b..0062504 100644 --- a/U3H_hostCleanUp.ahk +++ b/U3H_hostCleanUp.ahk @@ -143,6 +143,8 @@ Else { ; Folder got deleted in the meantime, remove it from backup Progress % StepsPos*StepsStep+StepsStep*(A_Index-1)/datexe0, Removing data directory %CurFile% ... + FileSetAttrib -RSH, %U3_APP_DATA_PATH%\%CurFile% + FileSetAttrib -RSH, %U3_APP_DATA_PATH%\%CurFile%\*.*, 1, 1 FileRemoveDir %U3_APP_DATA_PATH%\%CurFile%, 1 } } @@ -200,6 +202,8 @@ Else FileGetAttrib FAttr, %A_LoopFileLongPath% IfInString FAttr, D { + FileSetAttrib -RSH, %A_LoopFileLongPath% + FileSetAttrib -RSH, %A_LoopFileLongPath%\*.*, 1, 1 FileRemoveDir %A_LoopFileLongPath%, 1 If ErrorLevel Errors++ @@ -208,6 +212,7 @@ Else } Else { + FileSetAttrib -RSH, %A_LoopFileLongPath% FileDelete %A_LoopFileLongPath% If ErrorLevel Errors++