wininet.dll's FTP deletefile function
Posted on 2001-07-08
I've been using wininet.dll to retrieve FTP files from an IIS server without any problem. But if I use it to delete FTP files, I get a successful return message (or no error message) but the files are not deleted. Though the FTP files are still there, it behaves that it has been 'locked' up that you can't do anything with it anymore.
I try to delete it again or move it using different FTP utilities (WS, CuteFTP, FTP in the command prompt) I couldn't delete or move it anymore I get a 'no permission error'. Even if i try to login interactively on the IIS server using an Admin account and try to delete from the servers local drive, I still can't delete or move it.
My only workaround is to restart the server and delete it again from the server's local drive.
My FTP account has sufficient rights to delete the FTP file because I can delete the file with different FTP utilities before it gets 'locked' by wininet.dll' deletefile function.
I'm using VB6 on NT4 Workstation SP6 as my client, the IIS server is an NT4 Server (i believe it has SP5 or SP6). I would really appreciate it if someone can tell me a solution for this and perhaps explain to me why its happening.