Hello Sir, The code you send me that i already tried. when i use HINTERNET hFind = FtpFindFirstFile(hConnect, NULL, &findData, ...); it returns hFind = NULL and in GetLastError it returns Error No.12018 ERROR_INTERNET_INCORRECT_HANDLE_TYPE i read in msdn that we can use InternetOpenUrl in place of FtpFindFirstFile HINTERNET hFind = InternetOpenUrlhInternetOpen,sUrl,NULL,0,INTERNET_FLAG_RAW_DATA| INTERNET_FLAG_RELOAD| INTERNET_FLAG_DONT_CACHE,0); now hFind is not Null but when i use this hFind in InternetFindNextFile API than it return false. So this is the problem. Anyway thanx for helping me. sorry for ur inconvinience. :):rose: