Sign in to follow this  
Followers 0
snoozer

Request functions for ftp.au3

3 posts in this topic

hey everybody :rolleyes:

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 :rambo:

thx a lot for (positiv) reply :x

snoozer


ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°$₪Ǿَ€Яº¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø

Share this post


Link to post
Share on other sites



InetGetSize ( "URL" )

damn..-.- okay this was to easy (thx for your solution :rolleyes:)^^

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


ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°$₪Ǿَ€Яº¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0