Jump to content

Whats the best FTP Funtion..?


Recommended Posts

I wana make an APP that utilizes FTP, so I wana know whats the best FTP AutoIt function here that's most used and developed on..??

Hi,

Have your searched on autoit forum ?

Certainly not... go to Exemples Script forum and on sticky you have FTP.au3

Link to comment
Share on other sites

Theres also a simplified and updated version here http://www.autoitscript.com/forum/index.php?showtopic=78378

if you need FTP upload/download with progress, you could use the FTP_Ex.au3 from here: http://www.autoit.de/index.php?page=Thread&threadID=6528 , but normally you won't need this :)

Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

Theres also a simplified and updated version here http://www.autoitscript.com/forum/index.php?showtopic=78378

if you need FTP upload/download with progress, you could use the FTP_Ex.au3 from here: http://www.autoit.de/index.php?page=Thread&threadID=6528 , but normally you won't need this :)

Your FTP_Ex has still very old bug for which I posted fix already:

Func _FTPGetFileSize($l_FTPSession, $s_FileName)
        Local $ai_FTPGetSizeHandle = DllCall($GLOBAL_FTP_WININETHANDLE, 'int', 'FtpOpenFile', 'hwnd', $l_FTPSession, 'str', $s_FileName, 'long', 0x80000000, 'long', 0x04000002, 'long', 0)
    Local $ai_FTPGetFileSize = DllCall($GLOBAL_FTP_WININETHANDLE, 'dword', 'FtpGetFileSize', 'long', $ai_FTPGetSizeHandle[0], 'dword*', 0)
    If @error Or $ai_FTPGetFileSize[0] = 0 Then
        SetError(-1)
        Return 0
    EndIf
    DllCall($GLOBAL_FTP_WININETHANDLE, 'int', 'InternetCloseHandle', 'str', $ai_FTPGetSizeHandle[0]) ; <-- fix
    ;~  Return $ai_FTPGetFileSize[0]
    Return BitOR(BitShift($ai_FTPGetFileSize[2], -32), BitAND($ai_FTPGetFileSize[0], 0xFFFFFFFF))
    EndFunc   ;==>_FTPGetFileSize
Link to comment
Share on other sites

This is not possible.

(Don't know if you can do this on your own with InternetWriteFile)

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

  • 2 months later...

I made a func in my UDF, just look in my signature (FTP_Ex) :) It has a callback-func where you can do what you want, e.g. set a progressbar / cancel upload ...

Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...