i've had a problem when even after closing a file off. it still takes time for windows to "create" the file.
In the meantime you already deleted a file thats not there, and then the file gets created.
try something like
while not deletefile(tempfile)
delay 100
wend
In the meantime you already deleted a file thats not there, and then the file gets created.
try something like
while not deletefile(tempfile)
delay 100
wend