snoozer Posted June 18, 2007 Posted June 18, 2007 hey everybody i just want to know if there is a ftp function that returns the filesize of the ftp file(e.g. 128 kb)?? furthermore i wannt to know how i can get the last date of change or creation of a ftpfile(e.g. 06-17-2007 14:23)?? i hope that was it for the moment thx a lot for (positiv) reply snoozer ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°$₪ǾΩЯº¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø
Toady Posted June 18, 2007 Posted June 18, 2007 InetGetSize ( "URL" ) www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding
snoozer Posted June 18, 2007 Author Posted June 18, 2007 InetGetSize ( "URL" )damn..-.- okay this was to easy (thx for your solution )^^ here the version with the wininet.dll Func _FTPGetFileSize($l_FTPSession, $s_FileName) Local $ai_FTPGetSizeHandle = DllCall('wininet.dll', 'int', 'FtpOpenFile', 'long', $l_FTPSession, 'str', $s_FileName, 'long', 0x80000000, 'long', 0x04000002, 'long', 0) Local $ai_FTPGetFileSize = DllCall('wininet.dll', 'int', 'FtpGetFileSize', 'long', $ai_FTPGetSizeHandle[0]) If @error OR $ai_FTPGetFileSize[0] = 0 Then SetError(-1) Return 0 EndIf DllCall('wininet.dll', 'int', 'InternetCloseHandle', 'str', $l_FTPSession) Return $ai_FTPGetFileSize[0] EndFunc ;==> _FTPGetFileSize() this is not my version...i don't know who wrote this so i can't mention the source(just get this from a friend)^^ so still missing the "date" function..any idea?? thx a lot snoozer ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°$₪ǾΩЯº¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now