Sign in to follow this  
Followers 0
dallasgfx

help me i have problem with send file with FTP

4 posts in this topic

help me when i turn on the code of ftp it doesn t work

i would know why it doesn t work

+

i have the FTP lebruary

this is the code

#include <ftp.au3>

DllOpen('wininet.dll')

$server = 'server
$username = 'username'
$pass = 'password'
$Open = _FTPOpen('MyFTP Control')
$Conn = _FTPConnect($Open, $server, $username, $pass)
$Ftpp = _FtpPutFile($Conn ,"C:\~.zip" ,"\dallas.zip")
$Ftpc = _FTPClose($Open)

Share this post


Link to post
Share on other sites



help me when i turn on the code of ftp it doesn t work

i would know why it doesn t work

+

i have the FTP lebruary

this is the code

#include <ftp.au3>
 
 DllOpen('wininet.dll')
 
 $server = 'server
 $username = 'username'
 $pass = 'password'
 $Open = _FTPOpen('MyFTP Control')
 $Conn = _FTPConnect($Open, $server, $username, $pass)
 $Ftpp = _FtpPutFile($Conn ,"C:\~.zip" ,"\dallas.zip")
 $Ftpc = _FTPClose($Open)
You need to add some extra code to see what is going wrong. Here is an example copied from one of my own scripts. I possibly use a different FTP udf so the parameters I use for _FTPConnect might not apply to you but for me they are important. (0x08000000 gives passive mode)

$Open = _FTPOpen('MyFTP Control')
            if @error = -1 then
                msgbox(0x40000 + 0,'error','Failed to start FTP')
                SplashOff()
                Return
            EndIf
           
            $Conn = _FTPConnect($Open, $server, $username, $pass,0,1,0x08000000)
            if @error = -1 then
                msgbox(0x40000 + 0,'error','FTP Connection failed')
                SplashOff()
                Return
            EndIf
           
            $Ftpp = _FtpPutFile($Conn, $iniFile, '/public_html/somefolder/somefile',0x08000000)  
            if @error = -1 then
                msgbox(0x40000 + 0,'error','Upload 1 failed')
                Return
            EndIf

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

thanks you for your helping

the code send the file

but when i turn it on it still on the task barr down how can i let him work and when he finish sending the file he close it self

Share this post


Link to post
Share on other sites

thanks you for your helping

the code send the file

but when i turn it on it still on the task barr down how can i let him work and when he finish sending the file he close it self

Can you show your script?


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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