Supprime le handle de FindFile
#include <FTPEx.au3>
_FTP_FindFileClose ( $hFTPFind )
$hFTPFind | Handle retourné par _FTP_FindFileFirst() |
Succès: | Retourne 1. |
Échec: | Retourne 0 et définit @error <> 0. |
_FTP_FindFileFirst, _FTP_FindFileNext
Consultez InternetCloseHandle dans la librairie MSDN.
#include <FTPEx.au3> Local $sServer = 'ftp.csx.cam.ac.uk' 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/software/programming/pcre/", $h_Handle) Local $iFindClose = _FTP_FindFileClose($h_Handle) ConsoleWrite('$iFindClose = ' & $iFindClose & ' -> Error code: '& @error & @CRLF) Local $iFtpc = _FTP_Close($hConn) Local $iFtpo = _FTP_Close($hOpen)