KenzoIT Posted November 17, 2009 Posted November 17, 2009 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) EndSelectEndFunc I have an problem when I press F5. Unknown function name.: AdlibEnable("Auto_check",300000)Pls, help me solve the problem. Many thanks !
LarryDalooza Posted November 17, 2009 Posted November 17, 2009 (edited) 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 November 17, 2009 by LarryDalooza AutoIt has helped make me wealthy
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now