Jump to content
Sign in to follow this  
KenzoIT

Check folder size

Recommended Posts

KenzoIT

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 !

Share this post


Link to post
Share on other sites
LarryDalooza

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.