Function Reference


_FTP_FindFileClose

Delete FindFile Handle

#include <FTPEx.au3>
_FTP_FindFileClose ( $hFTPFind )

Parameters

$hFTPFind as returned by _FTP_FindFileFirst()

Return Value

Success: 1.
Failure: 0 and sets the @error flag to non-zero.

Related

_FTP_FindFileFirst, _FTP_FindFileNext

See Also

Search InternetCloseHandle in MSDN Library.

Example

#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)