Jump to content

Search the Community

Showing results for tags 'Problem with delete files'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum FAQ
  • AutoIt

Calendars

  • Community Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. 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
×
×
  • Create New...