Jump to content
Sign in to follow this  

Sleep Help

Recommended Posts


Hey guys,

I wrote a script to scan some network machines to check for files in certain folders. I am having some latency issues with some of the machines, and it takes a few seconds to reach the folders.


#Include <File.au3>

#Include <Array.au3>

$count = 0

$PC_File = FileOpen("Names.txt",0)

While True

$CompName = FileReadLine($PC_File)

If @error = -1 Then



$count = $count+1

$Files = _FileListToArray("*******") ;normally contains folder location


; I need it to wait here but if I put a sleep command it says that I am calling on a variable that is not an array... Can anyone help?


If @error = 1 Then

MsgBox(0, "Error", "Unable to connenct to Machine "&$CompName&"!")


If @error <> 4 Then

If $Files[0] >= 10 Then

MsgBox(1,"ADR FTP", "The Machine "&$CompName&" is not executing the ftp service.")



If Mod($count,10) = 0 Then

MsgBox(0,"Update:","Currently Scanning "&$CompName)





MsgBox(0,"Complete","The Scan has succesfully been completed.")

Is there a sleep alternative or something? I really apreciate it..

Thanks in advance!

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.