Find First File on an FTP server
#include <FTPEx.au3>
_FTP_FindFileFirst ( $hFTPSession, $sRemotePath, ByRef $hFTPFind [, $iFlags = 0 [, $iContext = 0]] )
_FTP_FindFileClose, _FTP_FindFileNext, _FTP_SetStatusCallback
Search FtpFindFirstFile in MSDN Library.
#include <FTPEx.au3>
;~ Local $sServer = 'ftp.cs.brown.edu' ; Brown Computer Science
Local $sServer= 'speedtest.tele2.net'; Tele2 Speedtest Service
Local $sUsername= ''
Local $sPass= ''
Local $hOpen= _FTP_Open ('MyFTP Control')
Local $hConn= _FTP_Connect ($hOpen,$sServer,$sUsername,$sPass)
Local $h_Handle
;~ Local $aFile = _FTP_FindFileFirst($hConn, "/pub/papers/graphics/research/", $h_Handle)
Local $aFile= _FTP_FindFileFirst ($hConn,"/",$h_Handle)
ConsoleWrite ('$sFileName = '&$aFile[10]&' attribute = '&$aFile[1]&' -> Error code: '&@error &@CRLF )
Local $iFindClose= _FTP_FindFileClose ($h_Handle)
Local $iFtpc= _FTP_Close ($hConn)
Local $iFtpo= _FTP_Close ($hOpen)