Jump to content

Recommended Posts

Posted

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

Posted (edited)

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

Posted

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
Posted

do any of these FTP function support FTP Upload Resuming, in case only part of the file were uploaded upon next FTP upload it can resume where it left off..??

Posted

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

Posted (edited)

my AceFTP Client can resume uploaded files..!!

Is there any type of external FTP app that Autoit could call to do this FTP Resume Uploading..??

Posted Image

Edited by cypher175
  • 2 months later...
Posted

Does anybody have a working example of an FTP upload that starts an upload and immediately returns back to the script to allow me to make a prorgess bar with FTPGetFileSize?

Posted (edited)

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

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
×
×
  • Create New...