Re: unable to delete file on remote server - WeOnlyDo Discussion board

Re: unable to delete file on remote server (General questions)

by wodSupport, Thursday, March 10, 2005, 07:01 (7010 days ago) @ Shaz Rashid

You cannot just call DeleteFile several times inside the loop if you don't use blocking mode. Each DeleteFile call needs some time to execute, and when he is finished executing Done event is fired - from where you can call new DeleteFile. So, you must be aware it's executed in async manner.

Or, set Blocking = True in which case it works exactly as you planned. But, in that case, get rid of events - you don't need them since you can put all command sequentially.


Complete thread: