Re: unable to delete file on remote server (General questions)
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:
- unable to delete file on remote server - Shaz Rashid, 2005-03-09, 14:39
- Re: unable to delete file on remote server - wodSupport, 2005-03-09, 15:40
- Re: unable to delete file on remote server - Shaz Rashid, 2005-03-10, 06:45
- Re: unable to delete file on remote server - wodSupport, 2005-03-10, 07:01
- Re: unable to delete file on remote server - Shaz Rashid, 2005-03-10, 06:45
- Re: unable to delete file on remote server - wodSupport, 2005-03-09, 15:40