| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Delete does not work. |
| dougheeren From: Des Moines, IA USA Posts: 10 Member Since: 06/25/03 |
posted June 25, 2003 8:49 PM Dim ftpITS As New Dart.PowerTCP.Ftp.Ftp() ftpITS.Timeout = ftpTimeout ftpITS.Server = CType(drLocation("FTP_ADDRESS"), String) ftpITS.Username = CType(drLocation("USERNAME"), String) ftpITS.Password = CType(drLocation("PASSWORD"), String) Try Dim list As Dart.PowerTCP.Ftp.Listing list = ftpITS.List(dirITS & "*", True) Dim le As Dart.PowerTCP.Ftp.ListEntry For Each le In list ftpITS.Get(dirITS & le.Name, dirLOD & CType(drLocation("LOCATION"), String) & "\" & le.Name) ftpITS.Delete(dirITS & le.Name, False, False) End If Next The get in this code works fine, but the delete does nothing and does not throw an exception. I can use the command line ftp to delete the file just fine with the same account used here so it is not a permissions issue. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 26, 2003 8:59 AM I'm guessing that you are using IIS 5's FTP server. If so, this is a known bug. For some reason IIS puts a lock on the file when the SIZE command is issued and it does not let go until the system is rebooted. Unfortunately I don't have a work-around for you. Your best bet would be to contact MS and ask them if they have any hot-fixes or workarounds for this problem. |
| dougheeren From: Des Moines, IA USA Posts: 10 Member Since: 06/25/03 |
posted June 26, 2003 9:53 AM You are correct about the server, unfortunately I don't have control over it to apply any patches. I wil contac the site administrator. I did manage to use the invoke to switch directories to the sub directory in question and then the delete will work. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted June 26, 2003 10:02 AM Thanks for posting the work-around. |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|