Hi everybody good programmers
I have some problem to have the example 1 to work but in the example 2 all works my question is what is wrong in
example 1 in line Filedelete ? It deletes not the 0 zize files in example 1
Can anybody tell me why this not works in the example 1 and tell what i have done for
Example #1
; #Include
$var1 = RegRead("HKEY_CURRENT_USER\Software\IncrediMail\Identities", "")
$file = _filelisttoarray(@UserProfileDir & "\Lokala Inställningar\Application Data\IM\Identities\"&$var1, "*",1)
for $i=1 to UBound($file)-1
$file_size = FileGetSize(@UserProfileDir & "\Lokala Inställningar\Application Data\IM\Identities\"&$var1 & $file[$i])
if $file_size = 0 Then
FileDelete(@UserProfileDir & "\Lokala Inställningar\Application Data\IM\Identities\"& $var1 & $file[$i])
endif
next
---------------------------------------------------------------------------
Example #2
; $file = _filelisttoarray(@UserProfileDir & "\Lokala Inställningar\Application Data\IM\Identities\{F9F78C8F-C4D1-4D35-9A40-39333FA992F0}\", "*",1)
;for $i=1 to UBound($file)-1
;$file_size = FileGetSize(@UserProfileDir & "\Lokala Inställningar\Application Data\IM\Identities\{F9F78C8F-C4D1-4D35-9A40-39333FA992F0}\" & $file[$i])
;if $file_size = 0 Then
;FileDelete(@UserProfileDir & "\Lokala Inställningar\Application Data\IM\Identities\{F9F78C8F-C4D1-4D35-9A40-39333FA992F0}\" & $file[$i])
;endif
;next