如何将_FTP_FindFileNext返回的时间高位和低位转换YYYY-MM-DD 24HH:MI:SS[已解决]
本帖最后由 auto 于 2011-8-16 20:39 编辑#include <FTPEx.au3>
$server = 'ftp.csx.cam.ac.uk'
$username = ''
$pass = ''
$Open = _FTP_Open('MyFTP Control')
$Conn = _FTP_Connect($Open, $server, $username, $pass)
Local $h_Handle
$aFile = _FTP_FindFileFirst($Conn, "/pub/software/programming/pcre/", $h_Handle)
ConsoleWrite('$Filename = ' & $aFile & ' attribute = ' & $aFile & '-> Error code: ' & @error & @crlf)
$aFile = _FTP_FindFileNext($h_Handle)
ConsoleWrite('$FilenameNext1 = ' & $aFile & ' attribute = ' & $aFile & '-> Error code: ' & @error & @crlf)
$aFile = _FTP_FindFileNext($h_Handle)
ConsoleWrite('$FilenameNext2 = ' & $aFile & ' attribute = ' & $aFile & '-> Error code: ' & @error & @crlf)
$aFile = _FTP_FindFileNext($h_Handle)
ConsoleWrite('$FilenameNext3 = ' & $aFile & ' attribute = ' & $aFile & '-> Error code: ' & @error & @crlf)
$FindClose = _FTP_FindFileClose($h_Handle)
$Ftpc = _FTP_Close($Open)
还有一个函数可以转换,没看到帮忙。。
页:
[1]