Jump to content

Check folder size


KenzoIT
 Share

Recommended Posts

Hi everyone,

I have an folder and I want to check it every five minutes automatically.

My code :

#Include <File.au3>

AdlibEnable("Auto_check",300000)

Func _Func1()

Select

Case

$size = DirGetSize("D:\database")

_FileWriteLog(@DesktopDir & "\subfolder.log",$size & " Database")

Sleep(10000)

EndSelect

EndFunc

I have an problem when I press F5.

Unknown function name.:

AdlibEnable("Auto_check",300000)

Pls, help me solve the problem.

Many thanks !

Link to comment
Share on other sites

perhaps Auto_check should be _Func1

and you need a

While 1

Sleep(1000)

WEnd

type loop after AdlibEnable to stay in the script... otherwise it just ends right away

and your select statement looks buggared

Edited by LarryDalooza

f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...