Sign in to follow this  
Followers 0
cypher175

Whats the best FTP Funtion..?

10 posts in this topic

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..??

Share this post


Link to post
Share on other sites



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


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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..??

Share this post


Link to post
Share on other sites

Does anyone know if what i asked in the above post is even feasible using AutoIt with some FTP Function..??

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#8 ·  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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

#10 ·  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

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