Do any of you guy know why doing FTP deletes, on some FTP servers might take
30 seconds to show up as taking place where other servers happen
immediately. Even on the servers that take 30 seconds, if I delete the file
via IE, it happens immediately. The problem is that I am running a loop and
if the file shows up the next time I loop through, it causes problems. Or do
any of you have a better way of doing file FTP file deletes than what I am
doing? Any help I can get solving this would be much appreciated. A
simplified version of the code I am using follows:


CInternetSession* pInetSession;
CFtpConnection* pFtpConnection;

if (!AfxParseURL(strFilename, dwServiceType, strServerName, strObject,
nPort)){
        ...
}
if ((dwServiceType != INTERNET_SERVICE_FTP) || strServerName.IsEmpty()){
        ...
}
pInetSession = new CInternetSession(NULL, 1, INTERNET_OPEN_TYPE_PRECONFIG,
NULL, NULL, INTERNET_FLAG_DONT_CACHE | INTERNET_FLAG_RELOAD);

try{
        pFtpConnection = pInetSession->GetFtpConnection(strServerName, strUserID,
strPassword, 21, TRUE);
}catch (CInternetException* pEx){
        ...
}

if (!pFtpConnection->Remove(strObject)){
        ...
}





Reply via email to