CFtpFileFind ftpFinder(pConnect);
BOOL bGood = ftpFinder.FindFile(NULL);
nErrorCode = GetLastError();
如上代碼:windows7下回傳true下載檔案正常,server2008下卻回傳false下載不了檔案。最后除錯時發現即使win7下回傳true能下載檔案,呼叫GetLastError();會獲得的一個值=12003.不知server2008下是不是有這個錯誤導致下載不了資料。我呼叫InternetGetLastResponseInfo 將錯誤碼轉換為字符時如下:
550-The filename, directory name, or volume label syntax is incorrect.
Win32 error: The filename, directory name, or volume label syntax is incorrect.
Error details: File system returned an error.
550 End
貌似pConnect設定路徑時傳入的路徑有誤?但是經檢查,傳入的路徑中不包含中文,路徑如:/Scheme/Plan311/
不知哪位大師遇到過類似問題,不吝賜教。謝謝
uj5u.com熱心網友回復:
用FlashFXP輔助測驗FTP客戶端功能。轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/121777.html
標籤:基礎類
上一篇:求大神指點。。哪里不對
